查看Oracle数据库连接数,修改数据库连接数

  1. select count(*) from v$process --当前的连接数  
  2. select value from v$parameter where name = 'processes' --数据库允许的最大连接数  
  3.   
  4. 修改最大连接数:  
  5. alter system set processes = 300 scope = spfile;  
  6.   
  7. 重启数据库:  
  8. shutdown immediate;  
  9. startup;  
  10.   
  11. --查看当前有哪些用户正在使用数据  
  12. SELECT osuser, a.username,cpu_time/executions/1000000||'s', sql_fulltext,machine   
  13. from v$session a, v$sqlarea b  
  14. where a.sql_address =b.address order by cpu_time/executions desc;

猜你喜欢

转载自blog.csdn.net/javawutuobang/article/details/80065266