How to view the current number of connections in Oracle

Source: Internet
Author: User

The following articles will teach you how to view the current number of connections in Oracle and how to view the current number of connections in Oracle databases? We only need to use the following SQL statements for query. The following describes the specific content of the article.

 
 
  1. select * from v$session where username is not null  
  2. select username,count(username) from v$session where 
    username is not null group by username  

View the number of connections of different users

 
 
  1. select count(*) from v$session 

Connections

 
 
  1. Select count(*) from v$session where status='ACTIVE' 

Concurrent connections

 
 
  1. show parameter processes  

Max connection

 
 
  1. alter system set processes = value scope = spfile; 

Restart the database to modify the connection

 
 
  1. /home/Oracle9i/app/Oracle9i/dbs/init.ora  
  2. /home/Oracle9i/app/Oracle9i/dbs/spfilexxx.ora  open_cursor   

The above content describes how to view the current number of connections in Oracle, hoping to help you in this regard.

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.