Using and Disabling the Automatic Diagnostic Repository (ADR) with Oracle Net for 11g [ID 454927.1] | |||||
| |||||
修改时间 08-OCT-2010 类型 HOWTO 状态 PUBLISHED |
Applies to:
Oracle Net Services - Version: 11.1.0.6.0 to 11.2.0.1 - Release: 11.1 to 11.2Linux x86
Microsoft Windows (32-bit)
MS Windows
Intel Based Server LINUX
Checked for relevance on 19-MAR-2010.
Goal
Using and Disabling the Automatic Diagnostic Repository (ADR) with Oracle Net. Includes instructions for using the adrci executable included in the 11g installation.Solution
Client Trace Files
Viewing Method 1
adrci> show base -product client
adrci> set base
adrci> show tracefile
adrci> show trace
Viewing Method 2 (Linux)
cd oradiag_username
cd clients
cd user_username
cd host*
cd trace
-or-
Followed by ls -ltr to sort the directory listing by date.
Viewing Method 2 (Windows)
Server Trace Files
Viewing Method 1
adrci> show tracefile
adrci> show trace
Viewing Method 2 (Linux)
Server traces are in the format of _ora_.trc
e.g., /u01/app/oracle/product/diag/rdbms/v11/V11/trace
Viewing Method 2 (Windows) List of server traces:
Server traces are in the format of _ora_.trc
Listener Trace Files
Viewing Method 1
adrci> show tracefile
adrci> show trace
Viewing Method 2 (Linux)
Listener traces are in the format of ora__.trc
ls -ltr to sort by time and date
Viewing Method 2 (Windows)
Listener traces are in the format of ora__.trc
dir /od *.trc to sort by time and date
LSNRCTL traces
Viewing Method 1
adrci> show base -product client
adrci> set base
adrci> show tracefile
adrci> show trace
Viewing Method 2 (Linux)
ls -ltr *.trc to sort by time and date
Viewing Method 2 (Windows)
dir /od *.trc to sort by time and date
Listener and CMAN Log Files
Viewing Method 1
adrci
adrci> show alert
[pick a number corresponding to a log file]
Use vi commands and :w to write the file
CMAN Trace Files
Viewing Method 1 (Linux)
Viewing Method 1 (Windows)
If you have "n" number of CMAN gateways configured then the last (n + 2) traces in the directory output are what is needed.
Out of these last (n + 2) traces, the 1st will be the cmadmin trace, the 2nd will be the cman tnslsnr trace, and the remaining will be gateway traces.
sqlnet.log
Viewing Method 1
adrci
adrci>show base -product client
adrci> set base <above output>
adrci> show alert
[pick a number corresponding to a log file]
Use vi commands and :w to write the file
trcasst
No ADR created tracefile can be read by trcasst. Please see below on how to disable ADR.
Tnsping Tracing
Tnsping traces are not effected by ADR being set or not. Set tnsping_trace_level as usual.
Reverting Back to Old-Style. Tracing and Logging:
Set DIAG_ADR_ENABLED=off in the following locations, after doing so, set a trace_level accordingly:
revert to client/server tracing/logging: set parameter DIAG_ADR_ENABLED=off in the client or server sqlnet.ora files
revert to listener tracing/logging: set parameter DIAG_ADR_ENABLED_listenerName=off in the listener.ora file
revert to cman tracing/logging:
Linux and Windows: add (DIAG_ADR_ENABLED=off) inside the parameter_list
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/756652/viewspace-719232/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/756652/viewspace-719232/