Home > Database > Oracle > body text

How to modify the number of connections in oracle

WBOY
Release: 2022-01-21 15:56:15
original
6711 people have browsed it

Method: 1. Use the "alter system set processes = modify the number of connections scope = spfile" statement to modify the maximum number of connections allowed by the database; 2. After modification, use the "shutdown immediate" and "startup" statements to restart .

How to modify the number of connections in oracle

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

How to modify the number of Oracle connections

Step 1: First log in to the database through sqlplus, sqlplus / as sysdba

How to modify the number of connections in oracle

Step 2: View Number of connections of the current database process

How to modify the number of connections in oracle

Step 3: Query the number of connections of the current database session

How to modify the number of connections in oracle

Step 4: View The maximum number of connections and the maximum number of sessions set by the database. The show parameter processes command views the summarized information. You can also directly select value from v$parameter where name ='processes'; to view the statement. The maximum number of process connections is 4000.

How to modify the number of connections in oracle

Step 5: When the number of database connections needs to be adjusted, you can use alter system set processes = 3000 scope = spfile; to modify the number of connections. (Modifying 3000 is just a demonstration. Most of the time, the number of connections is not enough, and the value is modified larger)

How to modify the number of connections in oracle

Step 6: Modifying the processes and sessions values ​​must restart the Oracle server to take effect

shutdown immediate; close the instance

startup startup

How to modify the number of connections in oracle

Step 7: Check again after the step restarts, it has taken effect

How to modify the number of connections in oracle

Step 8: You can use the following command to check the consumption of database connections: select b.MACHINE, b.PROGRAM, b.USERNAME, count(*) from v$process a, v$session b where a.ADDR = b.PADDR and b.USERNAME is not null

group by b.MACHINE, b.PROGRAM, b.USERNAME order by count(*) desc

How to modify the number of connections in oracle

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of How to modify the number of connections in oracle. 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 [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!