<<Back to DB Administration Main Page
How to Enable Oracle Client Side and Server side Tracing to investigate Connection Issues
Enabling Oracle Net Client Side TracingTo enable oracle SQL *Net client tracing enter following lines in sqlnet.ora file.
TRACE_LEVEL_CLIENT = SUPPORT
TRACE_UNIQUE_CLIENT = on
TRACE_LEVEL_SERVER = SUPPORT
TRACE_DIRECTORY_CLIENT = C:\TEMP
TRACE_FILE_CLIENT = CLIENT
TRACE_DIRECTORY_SERVER = C:\TEMP
TRACE_FILE_SERVER = SERVER
TRACE_TIMESTAMP_CLIENT = ON
DIAG_ADR_ENABLED= OFF
NOTE: If TNS_ADMIN variable is set in your environment then, enter the above lines in sqlnet.ora file available under TNS_ADMIN location
Enabling Oracle Net Server Side Tracing
To enable oracle Net server side tracing enter following lines in sqlnet.ora file.
TRACE_LEVEL_CLIENT = SUPPORT
TRACE_UNIQUE_CLIENT = on
TRACE_LEVEL_SERVER = SUPPORT
TRACE_DIRECTORY_CLIENT = C:\TEMP
TRACE_FILE_CLIENT = CLIENT
TRACE_DIRECTORY_SERVER = C:\TEMP
TRACE_FILE_SERVER = SERVER
TRACE_TIMESTAMP_CLIENT = ON
TRACE_UNIQUE_CLIENT = on
TRACE_LEVEL_SERVER = SUPPORT
TRACE_DIRECTORY_CLIENT = C:\TEMP
TRACE_FILE_CLIENT = CLIENT
TRACE_DIRECTORY_SERVER = C:\TEMP
TRACE_FILE_SERVER = SERVER
TRACE_TIMESTAMP_CLIENT = ON
DIAG_ADR_ENABLED= OFF
NOTE: If TNS_ADMIN variable is set in your environment then, enter the above lines in sqlnet.ora file available under TNS_ADMIN location
Enabling Oracle SQL*Net Listener Tracing
To enable oracle Net Listener tracing enter following lines in listener.ora file. This requires listener restart
TRACE_LEVEL_<listenername> = 16
TRACE_FILE_<listenername> = Lsnr.trc
TRACE_DIRECTORY_<listenername> = C:\TEMP
TRACE_TIMESTAMP_<listenername> = ON
DIAG_ADR_ENABLED_<listener name> = OFF
TRACE_FILE_<listenername> = Lsnr.trc
TRACE_DIRECTORY_<listenername> = C:\TEMP
TRACE_TIMESTAMP_<listenername> = ON
DIAG_ADR_ENABLED_<listener name> = OFF
NOTE: If TNS_ADMIN variable is set in your environment then, enter the above lines in listener.ora file available under TNS_ADMIN location
NOTE: Starting from 11g and higher to create any client, server and Listener Trace file the DIAG_ADR_ENABLED= OFF and DIAG_ADR_ENABLED_<listener name> = OFF, must be set to OFF
Comments
Post a Comment