Home > Database > Oracle > How to modify Oracle session

How to modify Oracle session

WBOY
Release: 2022-05-13 17:06:20
Original
4146 people have browsed it

Method: 1. Use the "alter system set sessions=modified value scope=spfile" statement to modify the session parameters; 2. After modifying the parameters, use the "shutdown immediate – startup" statement to restart the server and it will take effect.

How to modify Oracle session

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to modify session in Oracle

1. Modify the values ​​of processes and sessions

SQL> alter system set processes=500 scope=spfile;
系统已更改。
SQL> alter system set sessions=555 scope=spfile;
系统已更改。
Copy after login

3. To modify the values ​​of processes and sessions, you must restart the oracle server To take effect

shutdown immediate – startup
Copy after login

The number of ORACLE connections (sessions) is related to the number of processes (process) in its parameter file. Their relationship is as follows:

sessions=(1.1*process 5)

Extended knowledge:

View processes and sessions parameters

SQL> show parameter processes
SQL> show parameter sessions
Copy after login

Query the number of connections of the current process in the database

SQL> select count(*) from v$process;
Copy after login

View the current number of connections in the database Number of session connections

SQL> select count(*) from v$session;
Copy after login

View the number of concurrent connections to the database

SQL> select count(*) from v$session where status='ACTIVE';
Copy after login

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of How to modify Oracle session. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template