查看Oracle的串連數

來源:互聯網
上載者:User

1.查看Oracle最大串連數
SQL>show parameter processes                                            #最大串連數

2.修改最大串連數
SQL>alter system set processes=value scope=spfile        #value為需要設定的串連數的值

重啟資料庫後,即可查看到修改的最大串連已經生效

3.查看當前串連數
SQL>select * from V$SESSION where username is not null   #查看當前串連數

4.查看不同使用者的串連數
SQL>select username,count(username) from V$SESSION where username is not null group by username                   
 
5.查看並發串連數
SQL>select count(*) from V$SESSION where status='ACTIVE'               #查看並發串連數

6.查指定程式的串連數
SQL>select count(*) from V$SESSION where program='JDBC Thin Client'     #JDBC串連Oracle的數目

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.