Get the App
SLTechnology News&Howtos  ›  Database  › 

Modify the maximum number of Oracle,mysql connections

Shulou Source: shulou.com Published: 2022-06-01 19:15:18 11月14日 Update

1. The method of modifying the maximum number of connections in Oracle

A. Log in to PL/SQL or Worksheet as sysdba

B. Query the current number of connections

Show parameter processes

C. Change the number of system connections

Alter system set processes=1000 scope=spfile

D, create pfile

Create pfile from spfile

Restart the Oracle service or restart the Oracle server

2. Methods of querying the usage of Oracle cursors

Select * from v$open_cursor where user_name = 'TRAFFIC'

3. The method of querying Oracle session

Select * from v$session

Modify the maximum number of mysql connections

The maximum number of connections for MySQL is 100 by default

You can modify the maximum number of connections for Mysql using the following command

Number of set GLOBAL max_connections= connections

For example:

Set the new maximum number of connections to 200:mysql > set GLOBAL max_connections=200

After setting up, use the command

Mysqladmin-uroot-p variables | find "max_connect"

Enter password:

| | max_connections | 200 |

Let's see if the setting is successful.

Tags: Maximum method query command service success can make situation server cursor for system identity login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi NVidia vpn Microsoft Linux