Oracle数据库ORA-12516:“listener could not find available handler with matching protocol stack!“问题解决方法
Oracle 數(shù)據(jù)庫 sql 連接報(bào)錯(cuò):
java.sql.SQLException: Listener refused the connection with the following error: ORA-12516, TNS:listener could not find available handler with matching protocol stack!
問題原因:
該問題是數(shù)據(jù)庫負(fù)載壓力較大,數(shù)據(jù)庫已經(jīng)啟用的進(jìn)程數(shù)達(dá)到了參數(shù)限制的最大進(jìn)程數(shù),無法再創(chuàng)建新的進(jìn)程了,這個(gè)時(shí)間再連接數(shù)據(jù)庫就會(huì)報(bào)錯(cuò)了。(連接數(shù)據(jù)庫會(huì)創(chuàng)建新的進(jìn)程,占用新的 session 會(huì)話)
解決方法:
我們把數(shù)據(jù)庫參數(shù)的進(jìn)程和 session 的最大限制數(shù)調(diào)高,再重啟數(shù)據(jù)庫就能解決問題了。
首先先查詢當(dāng)前已啟用進(jìn)程數(shù)。
然后查詢參數(shù)里限制的最大進(jìn)程數(shù)
--- 查詢參數(shù)里限制的最大進(jìn)程數(shù) select value from v$parameter where name = 'processes';然后設(shè)置參數(shù)里的最大值,我這兩個(gè)由原來的 500,調(diào)到現(xiàn)在的 2000 了。
alter system set processes = 2000 scope = spfile; alter system set sessions = 2000 scope = spfile;重啟后看下效果:
問題到此解決。
接下來給大家提供一種無需數(shù)據(jù)庫管理員密碼登錄、輸入重啟口令重啟數(shù)據(jù)庫的方法。(oracle 11g 管理員密碼忘記無法用口令重啟數(shù)據(jù)庫)
直接在服務(wù)里把 oracle 的服務(wù)重啟下即可。(簡(jiǎn)單直接)
喜歡的點(diǎn)個(gè)贊?吧!
總結(jié)
以上是生活随笔為你收集整理的Oracle数据库ORA-12516:“listener could not find available handler with matching protocol stack!“问题解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Python 技术篇-基于PyHook3
- 下一篇: Python 技术篇-通过管道命令获取c