Modify Oracle,mysql maximum number of connections

Source: Internet
Author: User
Tags oracle cursor

1. Ways to modify the maximum number of connections for Oracle

A, landing in SYSDBA status of PL/SQL or Worksheet

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;

E. Restart the Oracle service or restart the Oracle server


2. How to query Oracle cursor usage

SELECT * from v$open_cursor where user_name = ' traffic ';

3. How to query Oracle session

SELECT * FROM V$session

To modify the maximum number of MySQL connections


MySQL maximum number of connections by default is 100


You can use the following command to modify the maximum number of connections for MySQL


Set GLOBAL max_connections= connection number;


For example:


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


After setting, use the command

Mysqladmin-uroot-p Variables | Find "Max_connect"


Enter Password:


| max_connections | 200


To see if the setting is successful


Modify Oracle,mysql maximum number of connections

Related Article

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.