修改Oracle,mysql最大串連數

來源:互聯網
上載者:User

標籤:oracle   伺服器   system   create   mysql   

1、修改Oracle最大串連數的方法

   

   a、以sysdba身份登陸PL/SQL 或者 Worksheet

   b、查詢目前串連數

      show parameter processes;

   c、更改系統串連數

      alter system set processes=1000 scope=spfile;

   d、建立pfile

      create pfile from spfile;

   e、重啟Oracle服務或重啟Oracle伺服器


2、查詢Oracle遊標使用方式的方法

   select * from v$open_cursor where user_name = ‘TRAFFIC‘;

3、查詢Oracle會話的方法

   select * from v$session

修改mysql最大串連數


MySQL的最大串連數預設是100 


可以使用以下命令修改Mysql的最大串連數 


set GLOBAL max_connections=串連數; 


例如: 


設定新的最大串連數為200:mysql> set GLOBAL max_connections=200; 


設定後,用命令 

mysqladmin -uroot -p variables | find "max_connect" 


Enter password: 


| max_connections                  | 200 


來看看是否是否設定成功


修改Oracle,mysql最大串連數

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.