View and modify connections in Oracle

Source: Internet
Author: User

Number of connections in Oracle 1. query the number of connections of the current process in the database: www.2cto.com select count (*) from v $ process; 2. view the number of connections to the current session of the database: elect count (*) from v $ session; 3. view the number of concurrent connections of the database: www.2cto.com select count (*) from v $ session where status = 'active'; 4. view the Sessions established by the current database: select sid, serial #, username, program, machine, status from v $ session; 5. query the maximum number of connections allowed by the database: select value from v $ parameter where name = 'processs'; or command: show parameter processes; 6. number of changes Maximum number of connections allowed by the database: alter system set processes = 300 scope = spfile; (you need to restart the database to modify the number of connections) restart the database: SQL> shutdown immediate; SQL> startup; check which users are using data: SQL> select osuser,. username, cpu_time/executions/1000000 |'s, SQL _fulltext, machine SQL> from v $ session a, v $ sqlarea B SQL> where. SQL _address = B. address SQL> order by cpu_time/executions desc; Note: one session of a UNIX user corresponds to an operating system process, while Windows is embodied in a thread. Start oracle su-oracle SQL> sqlplus system/pwd as sysdba // enter SQL SQL> startup // start Database SQL> lsnrctl start // start listening sqlplus "/as sysdba" SQL> shutdown immediate; // close database SQL> startup mount; SQL> alter database open;

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.