View common system information in oracle

Source: Internet
Author: User

View common system information in oracle

It summarizes common SQL statements used to view oracle databases, which helps Analysis and Optimization of a robust system program.

1. Number of current database connections:
Select count (*) from v $ process

2. Maximum number of connections allowed by the database:
Select value from v $ parameter where name = 'processs'

3. Modify the maximum number of connections:
Alter system set processses = 300 scope = spfile;

4. Restart the database:
Shutdown immediate;
Startup;

5. Check which users are using the data:
SELECT osuser, a. username, cpu_time/executions/1000000 |'s ', B. SQL _text, machine from v Sessiona, v Sqlarea B where a. SQL _address = B. address order by cpu_time/executions desc;

6. Number of current session connections
Select count (*) from v $ session

7. concurrent connections
Select count (*) from v $ session where status = 'active'

8. Maximum connections
Show parameter processes

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.