Relationship between two parameters: Sessions=1.1*processes+5
The current summary of the statement, in view of the data connection is very useful, after writing the program while testing the code side to see the release of database connections to help optimize the analysis of a robust system program.
1.
SQL code
1.select Count (*) fromv$process
Select COUNT (*) from v$process where program= ' Oracle.EXE (SHAD) '; --Current number of database connections
2.
SQL code
1.select value from V$parameter where name = ' processes '
Select value from v$parameter where name = ' processes '--the maximum number of connections allowed for the database
3.
SQL code
1.alter system Set processes = Scope =spfile;
alter system SET processes = spfile;--Modify the maximum number of connections:
4.
SQL code
1.shutdown immediate;
2.startup;
Shutdown immediate;
startup;--restarting the database
5.
SQL code
1.SELECT Osuser, a.username,cpu_time/executions/1000000| | ' S ', B.sql_text,machine
2.from v$session A, V$sqlareab
3.where a.sql_address =b.address ORDER by Cpu_time/executionsdesc;
SELECT Osuser, a.username,cpu_time/executions/1000000| | ' S ', B.sql_text,machine
From V$session A, V$sqlarea b
where a.sql_address =b.address order by Cpu_time/executionsdesc;
--See which users are currently using the data
6.
SQL code
1.select Count (*) fromv$session
Select COUNT (*) from V$session--current session connection number
7.
SQL code
1.select Count (*) from v$session wherestatus= ' ACTIVE '
Select COUNT (*) from v$session where status= ' ACTIVE '--Number of concurrent connections
8.
SQL code
1.show parameterprocesses
Show parameter processes--Maximum connection
Go--oracle View information such as maximum number of connections allowed and current number of connections