listener start fail TNS-12555 利用trace找到問題
現象:
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
開啟listener時報錯 TNS-12555,Linux Error
scmautosty<*scmauto*/home/oracle>$lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 03-APR-2013 14:25:21
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/product/oracle/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/product/oracle/network/admin/listener.ora
Log messages written to /u01/product/diag/tnslsnr/scmautosty/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.202.10.151)(PORT=1526)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1526)))
TNS-12555: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00525: Insufficient privilege for operation
Linux Error: 1: Operation not permitted
Listener failed to start. See the error message(s) above...
診斷:
使用listener trace
可以參考[ID 219968.1]SQLNet & Oracle Net Services - Tracing and Logging at a Glance
加入$ORACLE_HOME/network/admin/listener.ora
trace_level_listener = 16
trace_file_listener = listener
trace_directory_listener = /u01/product/oracle/network/trace
trace_timestamp_listener = on
trace_filelen_listener = 100
trace_fileno_listener = 2
logging_listener = off
log_directory_listener = /u01/product/oracle/network/log
log_file_listener=listener
DIAG_ADR_ENABLED_LISTENER=OFF
再次開啟
$lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 09-APR-2013 10:44:15
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/product/oracle/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/product/oracle/network/admin/listener.ora
Trace information written to /u01/product/oracle/network/trace/listener1.trc
Error listening on: (ADDRESS=(PROTOCOL=ipc)(PARTIAL=yes)(QUEUESIZE=1))
No longer listening on:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ysdcsssty)(PORT=1526)))
TNS-12546: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00516: Permission denied
Linux Error: 13: Permission denied
$vi /u01/product/oracle/network/trace/listener1.trc
發現其中一條fail記錄
[000001 09-APR-2013 10:44:15:915] sntusgph: fail to search /var/tmp/.oracle
分析:
檢視網上一篇http://blog.163.com/ly_89/blog/static/186902299201210136255650/
修改/var/tmp/.oracle的使用者組到dba.oracle,問題解決,奇怪的是問題時使用者daemon. root
[root@scmautosty //]# cd /var/tmp/
[root@scmautosty tmp]# ls -la
total 24
drwxrwxrwt 4 root root 4096 Apr 2 15:04 .
drwxr-xr-x 26 root root 4096 Apr 2 15:27 ..
drwxrwxrwt 2 root root 4096 Apr 3 14:25 .oracle
drwxrwxrwx 9 root root 4096 Apr 2 15:27 vxif
[root@scmautosty tmp]# cd .oracle/
[root@scmautosty .oracle]# ls -la
total 12
drwxrwxrwt 2 root root 4096 Apr 3 14:25 .
drwxrwxrwt 4 root root 4096 Apr 2 15:04 ..
srwxrwxrwx 1 daemon root 0 Apr 2 17:01 s#14782.1
srwxrwxrwx 1 daemon root 0 Apr 2 17:01 s#14782.2
srwxrwxrwx 1 daemon root 0 Apr 2 17:01 sEXTPROC1526
[root@scmautosty tmp]# chown -R oracle.dba .oracle
[root@scmautosty tmp]# ls -la
total 24
drwxrwxrwt 4 root root 4096 Apr 2 15:04 .
drwxr-xr-x 26 root root 4096 Apr 2 15:27 ..
drwxrwxrwt 2 oracle dba 4096 Apr 3 14:25 .oracle
drwxrwxrwx 9 root root 4096 Apr 2 15:27 vxif
另外關閉時也遇到這個問題可以ps –ef|grep LISTENER檢視並kill程式
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25583515/viewspace-2146428/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle清理trace、alert、aud、listener.log檔案Oracle
- oracle清理trace、alert、aud、listener等日誌檔案Oracle
- TNS問題排查 The listener supports no services
- cannot read prpperty ‘start‘ of undefined(問題記錄)Undefined
- 運用Log和Trace檔案排除Oracle Net問題Oracle
- oracle ebs 根據請求id找到對應trace 檔案Oracle
- 【TRACE】如果通過10046跟蹤資料庫效能問題資料庫
- F3-smart錯誤處理修復fail問題案例AI
- 記錄JSch連線SFTP Exception:Algorithm negotiation fail問題解決JSFTPExceptionGoAI
- 利用greys排查java問題Java
- dubbo啟動多個服務失敗 com.alibaba.dubbo.rpc.RpcException: Fail to start serverRPCExceptionAIServer
- Message 文.件[/register.jsp] 未找到問題JS
- 【根本原因分析】如何找到問題的根源?
- 【ASM】ASM啟動無法找到spfile問題原因ASM
- fail-fast和fail-safeAIAST
- 利用 JavaScript Profiler 分析 Vue 效能問題JavaScriptVue
- 解決new Thread().Start導致高併發CPU 100%的問題thread
- Mac openssl 未找到 / 載入失敗問題處理Mac
- Listener
- Nginx負載均衡的max_fails和fail_timeout的預設配置問題Nginx負載AI
- 利用jstack定位典型效能問題例項JS
- 關於解決Server Tomcat v9.0 Server at localhost failed to start的問題ServerTomcatlocalhostAI
- 找到陣列中出現特定次數數字的問題陣列
- 解決properties、xml等配置檔案無法找到問題XML
- 推薦系統中的冷啟動問題和探索利用問題
- SQL TraceSQL
- 【024期】JavaWeb面試題(五):Filter和ListenerJavaWeb面試題Filter
- 如何利用執行緒堆疊定位問題執行緒
- 利用python找到購物商城裡面的降價商品Python
- 關於Quartus的start按鈕灰色無法下載的問題的解決
- Listener refused the connection with the following error:ORA-12514, TNS:listenerError
- 利用PCT解決快速重新整理效能問題
- 利用Windbg分析高記憶體佔用問題記憶體
- 教你如何解決Python模組導包沒有找到的問題Python
- JavaWeb-ListenerJavaWeb
- Filter&ListenerFilter
- fitter&listener
- Oracle session traceOracleSession
- Fail-Fast in JavaAIASTJava