Oracle 11g 檢視監聽日誌
當連線異常時,可以透過分析監聽日誌來查詢線索
~ [DBCHC]$ find $ORACLE_HOME -name listener.log
/opt/64bit/oracle/11.2.0/log/diag/tnslsnr/sinrndvud062/listener/trace/listener.log
~ [DBCHC]$ vim /opt/64bit/oracle/11.2.0/log/diag/tnslsnr/sinrndvud062/listener/trace/listener.log
110856 Fri Oct 21 17:00:31 2016
110857 21-OCT-2016 17:00:31 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=DBCHC)(CID=(PROGRAM=sqlplus)(HOST=sinrndvud062)(USER=ora112))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.131)(PORT=47405)) * establish * DBCHC * 12514
110858 TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
110859 Fri Oct 21 17:02:47 2016
110860 21-OCT-2016 17:02:47 * service_update * OSMSRDB * 0
110861 21-OCT-2016 17:02:53 * service_update * OSMSRDB * 0
110862 21-OCT-2016 17:02:54 * (CONNECT_DATA=(SID=OSMSRDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.132)(PORT=32823)) * establish * OSMSRDB * 0
110863 21-OCT-2016 17:02:56 * service_update * OSMSRDB * 0
110864 Fri Oct 21 17:03:07 2016
110865 21-OCT-2016 17:03:07 * service_update * XSONGDB * 0
110866 21-OCT-2016 17:03:08 * (CONNECT_DATA=(SID=OSMSRDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.132)(PORT=32835)) * establish * OSMSRDB * 0
110867 21-OCT-2016 17:03:08 * service_update * OSMSRDB * 0
110868 Fri Oct 21 17:06:19 2016
110869 21-OCT-2016 17:06:19 * service_update * XSONGDB * 0
110870 21-OCT-2016 17:06:21 * (CONNECT_DATA=(SID=XSONGDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.200)(PORT=60498)) * establish * XSONGDB * 0
110871 21-OCT-2016 17:06:22 * service_update * XSONGDB * 0
110872 21-OCT-2016 17:06:24 * (CONNECT_DATA=(SID=XSONGDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.200)(PORT=60502)) * establish * XSONGDB * 0
110873 21-OCT-2016 17:06:25 * service_update * XSONGDB * 0
在RAC環境中,需要切換到grid使用者來查詢監聽日誌
vgerndpud852: / # su - grid
/home/ora11grid[FRWK]:find $ORACLE_HOME -name listener.log
find: `/opt/ora11grid/crf/admin/run/crflogd': Permission denied
find: `/opt/ora11grid/crf/admin/run/crfmond': Permission denied
/opt/ora11grid/log/diag/tnslsnr/vgerndpud852/listener/trace/listener.log
/home/ora11grid[FRWK]:lsnrctl
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 17-NOV-2016 04:28:53
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> show
The following operations are available after show
An asterisk (*) denotes a modifier or extended command:
rawmode displaymode
rules trc_file
trc_directory trc_level
log_file log_directory
log_status current_listener
inbound_connect_timeout startup_waittime
snmp_visible save_config_on_stop
dynamic_registration enable_global_dynamic_endpoint
oracle_home pid
connection_rate_limit
LSNRCTL> show log_status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
LISTENER parameter "log_status" set to ON
The command completed successfully
~ [DBCHC]$ find $ORACLE_HOME -name listener.log
/opt/64bit/oracle/11.2.0/log/diag/tnslsnr/sinrndvud062/listener/trace/listener.log
~ [DBCHC]$ vim /opt/64bit/oracle/11.2.0/log/diag/tnslsnr/sinrndvud062/listener/trace/listener.log
110856 Fri Oct 21 17:00:31 2016
110857 21-OCT-2016 17:00:31 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=DBCHC)(CID=(PROGRAM=sqlplus)(HOST=sinrndvud062)(USER=ora112))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.131)(PORT=47405)) * establish * DBCHC * 12514
110858 TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
110859 Fri Oct 21 17:02:47 2016
110860 21-OCT-2016 17:02:47 * service_update * OSMSRDB * 0
110861 21-OCT-2016 17:02:53 * service_update * OSMSRDB * 0
110862 21-OCT-2016 17:02:54 * (CONNECT_DATA=(SID=OSMSRDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.132)(PORT=32823)) * establish * OSMSRDB * 0
110863 21-OCT-2016 17:02:56 * service_update * OSMSRDB * 0
110864 Fri Oct 21 17:03:07 2016
110865 21-OCT-2016 17:03:07 * service_update * XSONGDB * 0
110866 21-OCT-2016 17:03:08 * (CONNECT_DATA=(SID=OSMSRDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.132)(PORT=32835)) * establish * OSMSRDB * 0
110867 21-OCT-2016 17:03:08 * service_update * OSMSRDB * 0
110868 Fri Oct 21 17:06:19 2016
110869 21-OCT-2016 17:06:19 * service_update * XSONGDB * 0
110870 21-OCT-2016 17:06:21 * (CONNECT_DATA=(SID=XSONGDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.200)(PORT=60498)) * establish * XSONGDB * 0
110871 21-OCT-2016 17:06:22 * service_update * XSONGDB * 0
110872 21-OCT-2016 17:06:24 * (CONNECT_DATA=(SID=XSONGDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=linqus))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.160.164.200)(PORT=60502)) * establish * XSONGDB * 0
110873 21-OCT-2016 17:06:25 * service_update * XSONGDB * 0
在RAC環境中,需要切換到grid使用者來查詢監聽日誌
vgerndpud852: / # su - grid
/home/ora11grid[FRWK]:find $ORACLE_HOME -name listener.log
find: `/opt/ora11grid/crf/admin/run/crflogd': Permission denied
find: `/opt/ora11grid/crf/admin/run/crfmond': Permission denied
/opt/ora11grid/log/diag/tnslsnr/vgerndpud852/listener/trace/listener.log
/home/ora11grid[FRWK]:lsnrctl
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 17-NOV-2016 04:28:53
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> show
The following operations are available after show
An asterisk (*) denotes a modifier or extended command:
rawmode displaymode
rules trc_file
trc_directory trc_level
log_file log_directory
log_status current_listener
inbound_connect_timeout startup_waittime
snmp_visible save_config_on_stop
dynamic_registration enable_global_dynamic_endpoint
oracle_home pid
connection_rate_limit
LSNRCTL> show log_status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
LISTENER parameter "log_status" set to ON
The command completed successfully
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2126891/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 刪除oracle 11g的警告日誌和監聽日誌Oracle
- oracle清理監聽日誌Oracle
- oracle 11g檢視alert日誌方法Oracle
- Oracle 監聽器日誌解析Oracle
- Oracle 11g RAC檢視ASM日誌、grid日誌和DB日誌OracleASM
- Oracle 監聽器日誌解析(續)Oracle
- Oracle之外部表監聽日誌Oracle
- ORACLE停止監聽日誌檔案Oracle
- 11G Oracle 關閉監聽XML日誌產生的方法OracleXML
- oracle 日誌檢視方法Oracle
- Oracle 監聽器日誌配置與管理Oracle
- Oracle監聽日誌2g-監聽啟動報錯Oracle
- rac scan listener log 清理監聽日誌 oracleOracle
- Oracle之備份和清理監聽日誌、告警日誌指令碼Oracle指令碼
- Oracle 使用logmnr檢視日誌Oracle
- oracle物化檢視日誌系列(一)Oracle
- oracle物化檢視日誌系列(二)Oracle
- oracle物化檢視日誌系列(三)Oracle
- 11g 日誌目錄查詢檢視
- 關閉監聽的日誌。
- 檢視日誌
- Oracle 跟蹤/告警/監聽日誌的清理指令碼Oracle指令碼
- oracle監聽器日誌過大-處理辦法Oracle
- Oracle監聽日誌過大導致的問題Oracle
- oracle 監聽日誌停止寫入的解決方法Oracle
- 監聽日誌檔案的管理
- online清理oracle 監聽日誌推薦的做法Oracle
- alertmanager: 檢視日誌
- Oracle 11g 修改監聽埠Oracle
- oracle 11g 監聽檔案Oracle
- 方便檢視11g錯誤日誌的指令碼指令碼
- 用oracle的ADRCI功能檢視日誌Oracle
- oracle cluster叢集相關日誌檢視Oracle
- 管理監聽器日誌listener.log
- 使用外部表訪問監聽日誌
- MYSQL啟用日誌和檢視日誌MySql
- windows10怎麼檢視監聽埠_windows10檢視監聽埠的方法Windows
- 方便檢視11g錯誤日誌的指令碼(新)指令碼