View the number of Oracle current connections ____oracle

Source: Internet
Author: User


1. View Oracle Max Connection number
Sql>show parameter Processes #最大连接数

2. Modify the maximum number of connections
Sql>alter system set Processes=value Scope=spfile
Restart the database
Sql>shutdown Force
Sql>start Force

3. View the current number of connections
Sql>select * from v$session where username isn't null

4. View the number of connections for different users
Sql>select Username,count (username) from V$session where username was not null GROUP by username #查看指定用户的连接数

5. View the number of concurrent connections
Sql>select Count (*) from v$session where status= ' ACTIVE ' #查看并发连接数

6. Check the number of connections to the specified program
Sql>select Count (*) from v$session where program= ' JDBC Thin Client ' #查看JDBC连接Oracle的数目

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.