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檢視alert日誌方法Oracle
- Oracle 11g RAC 監聽日常管理Oracle
- 檢視Oracle的redo日誌切換頻率Oracle
- Linux 檢視日誌Linux
- alertmanager: 檢視日誌
- 檢視oracle的redo日誌組切換頻率Oracle
- oracle 資料庫lsnrctl監聽的日誌路徑和trace檔案Oracle資料庫
- windows10怎麼檢視監聽埠_windows10檢視監聽埠的方法Windows
- ORACLE 11G DATAGUARD 日誌中斷處理方案Oracle
- Hyperf日誌檢視元件元件
- Logminer如何檢視日誌
- oracle監聽檔案listener.ora for 10g/11gOracle
- Oracle 11g/12c 監聽器白名單的配置Oracle
- 2.5.4. 測試Oracle net——2.5.4.2. 檢視監聽程式狀態Oracle
- 監聽MySQL的binlog日誌工具分析:CanalMySql
- 11g rac監聽配置解析
- 【ADRCI】使用ADRCI (ADR Command Interpreter) 工具檢視Oracle alert警告日誌Oracle
- docker檢視容器日誌命令Docker
- 檢視系統的日誌
- windows_weblogic日誌檢視WindowsWeb
- Zabbix如何監控Oracle的告警日誌Oracle
- 自定義 Command 檢視 Laravel 日誌Laravel
- 檢視日誌的幾種形式
- mysql檢視binlog日誌詳解MySql
- 使用zabbix監控oracle的後臺日誌Oracle
- Oracle 自動化運維-Python監控Oracle告警日誌Oracle運維Python
- eclipse設定檢視GC日誌和如何理解GC日誌EclipseGC
- oracle靜態監聽Oracle
- JMS監聽Oracle AQOracle
- 檢視無線網路卡是否支援監聽模式模式
- Oracle“並行執行”——監控檢視Oracle並行
- listener_scan1.log、listener.log監聽日誌清理
- NAS中如何檢視日誌記錄?
- [擴充套件包]-Laravel檢視日誌套件Laravel
- Linux 檢視日誌的命令彙總Linux
- toad使用(檢視alert日誌、Database Report)Database
- win10關機日誌檢視方法_win10電腦關機日誌怎麼檢視Win10
- 【TUNE_ORACLE】Oracle檢查點(四)檢查點對redo日誌的影響和redo日誌大小設定建議Oracle
- Oracle dblink監聽問題Oracle