ORACLE如何一次性修改用户连接数?
生活随笔
收集整理的這篇文章主要介紹了
ORACLE如何一次性修改用户连接数?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
目錄
- oracle連接數詳解
- 1.修改前問題解決
- 2.登錄oracle
- 3.查詢連接數,并修改
- 3.1使用命令 show parameter processes;
- 3.2修改前需先創建 spfile 并重啟 oracle 服務
- 3.3修改連接數為1500
- 3.4最后驗證連接數是否修改成功
@(終于等到你)
oracle連接數詳解
oracle連接數默認是150,當同一時間連接數大于這個數的時候就會報錯,現在的解決辦法為增大oracle的連接數,從150改為1500,操作如下
1.修改前問題解決
如果已經報超過連接數錯誤后的話,是登錄不上oracle的,所以需要用命令 lsof -i:1521 查看,所有占用這個端口的進程,然后用 kill -9 PID 殺死這些進程,有可能會很多,不想一個一個殺死可以百度谷歌方法
2.登錄oracle
#切換到oracle,再登錄 su - oracle sqlplus / as sysdba3.查詢連接數,并修改
3.1使用命令 show parameter processes;
SQL> show parameter processes; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ aq_tm_processes integer 1 db_writer_processes integer 1 gcs_server_processes integer 0 global_txn_processes integer 1 job_queue_processes integer 1000 log_archive_max_processes integer 4 processes integer 150最后一行為連接數150
3.2修改前需先創建 spfile 并重啟 oracle 服務
SQL> create spfile from pfile; File created.#關閉 oracle 服務 SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down.#啟動oracle服務 SQL> startup ORACLE instance started. Total System Global Area 835104768 bytes Fixed Size 2257840 bytes Variable Size 541068368 bytes Database Buffers 289406976 bytes Redo Buffers 2371584 bytes Database mounted. Database opened.3.3修改連接數為1500
SQL> alter system set processes=1500 scope = spfile; System altered.#oracle操作要養成提交的習慣 SQL> commit; Commit complete.SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down.SQL> startup ORACLE instance started. Total System Global Area 835104768 bytes Fixed Size 2257840 bytes Variable Size 541068368 bytes Database Buffers 289406976 bytes Redo Buffers 2371584 bytes Database mounted. Database opened.3.4最后驗證連接數是否修改成功
SQL> show parameter processes; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ aq_tm_processes integer 1 db_writer_processes integer 1 gcs_server_processes integer 0 global_txn_processes integer 1 job_queue_processes integer 1000 log_archive_max_processes integer 4 processes integer 1500已改為1500,說明修改成功,現在可以多人痛快的連接登錄oracle了
說在最后,如果有什么問題,請留言,我會盡量在第一時間給您答復
轉載于:https://www.cnblogs.com/charmsongo/p/9931188.html
總結
以上是生活随笔為你收集整理的ORACLE如何一次性修改用户连接数?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网上看到的一个百度实习生笔试题
- 下一篇: 用数据辅助设计-搜索中的实践