查看oracle会话和进程 oracle会话连接数什么意思?
oracle会话连接数什么意思?
连接数据库采用会话的模式。会话连接数是说的是最多可以支持同时多少个连接连到数据库。因为数据库系统也会管理进程的。
如何查看oracle当前连接数,会话数?
查看session: select * from v$session where username is not null select username,count(username) from v$session where username is not null group by username 当前连接数: select count(*) from v$process 查看连接数参数的设置情况 select value from v$parameter where name = "processes" Select count(*) from v$session where status="ACTIVE" #并发连接数
oracle连接数,最大可以设置多少?
我以前认为oracle processes参数只是规定进程数的上限,随便设置多大都可以,于是设置了个一千万,结果重启数据库的时候发现启动不了。
其实processes设置的值还是会占用oracle内存的,设置过大的话,你sga中没有足够的内存分配,数据库便无法启动。
你可以自己实验对比下,
当你设置不同processes值时候,shared_pool中的processes池,大小也会随之变化
select * from v$sgastat where pool="shared pool" and name="processes"
-----------------------------------------------------------------------------------------------------
目前我所见到的生产环境中的库,大点的话,一般processes在3000左右就够用了,当然你的环境要是超大型oltp类型的,那么另说了,总的来说就是要根据你业务情况来了。
另外,你可以通过下面语句看看历史会话数的峰值是多少,来判断是否需要调整processes
select sessions_current,sessions_highwater from v$license
查看oracle会话和进程 修改oracle连接数和进程数 oracle默认会话数
版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。