【Case】ORA-12519: TNS:no appropriate service handler found
今天有AP使用者反映,資料庫有時候連的上,有時候連不上,報如下的錯誤:
ORA-12519: TNS:no appropriate service handler found
二、原因解析
oracle@C01TEST03:/home/oracle>oerr ORA 12519
12519, 00000, "TNS:no appropriate service handler found"
// *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.
第一個原因可能是Instance沒有註冊到Listener;
第二個原因可能是資料庫上當前的連線數目已經超過了它能夠處理的最大值。
三、解決方法
根據第二步,檢查兩個地方:
1、檢視Instance是否註冊到Listener
oracle@C01TEST03:/home/oracle>lsnrctl status
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 03-NOV-2017 15:29:45
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=C01TEST03)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 25-AUG-2017 13:37:06
Uptime 70 days 1 hr. 52 min. 38 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/product/11.2.0/network/admin/listener.ora
Listener Log File /oracle/product/diag/tnslsnr/C01TEST03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=C01TEST03)(PORT=1521)))
Services Summary...
Service "MTH" has 1 instance(s).
Instance "MTH", status READY, has 1 handler(s) for this service...
確認到"MTH" Instance已經註冊到listener裡了;
2、資料庫上當前的連線數目已經超過了它能夠處理的最大值。
(1)檢視當前連線數
SQL> select count(*) from v$process;
檢視資料庫允許最大的連線數
SQL> show parameter processes;
(2)適當加大processes的值
alter system set processes = 300 scope = spfile;
(3)重啟資料庫
(4)檢視當前有哪些使用者正在使用資料
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;
四、問題總結
以上便是該問題的思考及處理方向。處理方法以第二種,修改引數processes的方法為主。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29734436/viewspace-2148075/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-12519 TNS:no appropriate service handler foundAPP
- ORA-12519 TNS no appropriate service handler foundAPP
- ORA-12519, TNS:no appropriate service handler foundAPP
- ORA-12519: TNS:no appropriate service handler foundAPP
- ORA-12519: TNS:no appropriate service handler found 解決APP
- 診斷ORA-12519 TNS:no appropriate service handler foundAPP
- not found service definition in jdonframework.xmlFrameworkXML
- Failed to start docker.service: Unit not foundAIDocker
- ORA-12528: TNS:listener: all appropriate instances are blocking new connectionsAPPBloC
- Android IntentService完全解析 當Service遇到HandlerAndroidIntent
- 避免PL/SQL Case Not Found錯誤三方法SQL
- No appropriate protocolAPPProtocol
- ORA-12154: TNS:could not resolve service name / TNS-03505: Failed to resolve nameAI
- set up the appropriate environmentAPP
- Oracle案例05——ORA-12162: TNS:net service name is incorrectly specifiedOracle
- 【故障處理】ORA-12162: TNS:net service name is incorrectly specified
- 徹底理解初始化引數SERVICE_NAMES和客戶端TNS中SERVICE_NAME(2)客戶端
- 徹底理解初始化引數SERVICE_NAMES和客戶端TNS中SERVICE_NAME(1)客戶端
- mysql中出現Unit mysql.service could not be found 的解決方法MySql
- 825. Friends Of Appropriate AgesAPP
- ora-12169 tns net service name given as connect identifier is too longIDE
- Could Not Save Service Alias: TNS-04415 : File I/O Error [ID 798206.1]Error
- MySQL 5.6複製報錯Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;MySqlError
- 踩坑記錄:vue-cli-service: command not found(Mac環境下)VueMac
- man -k : nothing appropriate.APP
- ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
- Handler訊息機制及handler原理(Handler,Looper,MessageQueue),自定義HandlerOOP
- [Handler]android-Handler解釋Android
- EBS TNS-12546: TNS:permission denied+ TNS-12560: TNS:protocol adapter error+TNS-00516: Permission deProtocolAPTError
- oracle 11g登陸報錯'ORA-12162: TNS:net service name is incorrectly specified'Oracle
- hpux上的定時任務報:ORA-12162: TNS:net service name is incorrectly specifiedUX
- oracle caseOracle
- TNS - 12516 TNS : 解決
- 備份時報no channel allocated for maintenance(of an appropriate type)AINaNAPP
- [LeetCode] 825. Friends Of Appropriate AgesLeetCodeAPP
- oracle plsql case when_end case小記OracleSQL
- sql case語法和plsql case語法!SQL
- Handler全家桶之 —— Handler 原始碼解析原始碼