如何修改oracle并發連接數的設置
來源:易賢網 閱讀:1099 次 日期:2014-10-21 14:08:29
溫馨提示:易賢網小編為您整理了“如何修改oracle并發連接數的設置”,方便廣大網友查閱!

不能連接oracle數據庫了,提示相關的錯誤

oerr: ora-12519 tns:no appropriate service handler found

客戶端連接間歇性失敗,報錯ora-12519

cause: the listener could not find any available service handlers that are

appropriate for the client connection.

action: run lsnrctl services to ensure that the instance(s) have registered

with the listener, and are accepting connections. 檢查lsnrctl service ,instance已經注冊,

狀態顯示ready時,可以連接。

when the listener believes the current number of connections has reached maximum load,

it may set the state of the service handler for an instance to blocked and begin refusing

incoming client connections with either of the following errors: ora-12519 or ora-12516

采用服務動態注冊的方式,由pmon 通過service_update 來得到目前連接情況,但service_update 有時間間隔,

所以,listener顯示的連接數和當前實際的連接數可能不同。

查詢解決方法:

查看一下數據庫現有的進程數,是否已經達到參數processes的大小。

1.select count(*) from v$process; 取得數據庫目前的進程數。

2.select value from v$parameter where name = 'processes'; 取得進程數的上限。

3.如已達到上限,修改initsid.ora中的processes的大小。

4.重新啟動數據庫到nomount狀態下,執行create spfile from pfile; 并startup open。

查詢數據庫自啟動以來最大的并發數量

修改最大連接數:

alter system set processes = 300 scope = spfile;

重啟數據庫:

shutdown immediate;

startup;

--查看當前有哪些用戶正在使用數據

select osuser, a.username,cpu_time/executions/1000000||'s', sql_fulltext,machine

from v$session a, v$sqlarea b

where a.sql_address =b.address order by cpu_time/executions desc;

更多信息請查看IT技術專欄

更多信息請查看數據庫
上一篇:oracle替代變量
易賢網手機網站地址:如何修改oracle并發連接數的設置
由于各方面情況的不斷調整與變化,易賢網提供的所有考試信息和咨詢回復僅供參考,敬請考生以權威部門公布的正式信息和咨詢為準!

2026國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關于我們 | 聯系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
工業和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
云南網警備案專用圖標
聯系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網
云南網警報警專用圖標
未满十八18勿进黄网站免费看