In this Document
Goal
Solution
References
Applies to:
Oracle Net Services - Version: 9.2.0.1.0 to 11.2.0.1 - Release: 9.2 to 11.2Information in this document applies to any platform.
Checked for relevance on 7-MAY-2010.
Goal
When attempting to limit the amount of trace generated when TNS listener tracing is enabled, cyclic tracing can be used. But to further restrict the amount of time TNS listener is enabled, tracing can be enabled and disabled, dynamically via the listener control, lsnrctl. This means tracing can be enabled only when required and allows the listener to run without generating trace until required.But when enabled via this method, Time stamp is missing from the trace file(s) generated. The following steps explain how to workaround the time stamp restriction.
Solution
To workaround the current restriction of TNS listener tracing enabled via listener control, generating traces without time stamp, the following steps can be used. Steps 1 to 3 must be inplaced before attempting to capture any problem with tracing.
1. Backup the Listener.ora file, add the following parameters and save.
TRACE_LEVEL_<Listener Name> = 16
TRACE_FILE_<Listener Name> = <File Name>
TRACE_DIRECTORY_<Listener Name> = <Directory>
TRACE_TIMESTAMP_<Listener Name> = ON
TRACE_FILELEN_<Listener Name> = <Size in KiloBytes>
TRACE_FILENO_<Listener Name> = <Number>
TRACE_FILELEN and TRACE_FILENO are the cyclic tracing parameters.Ensure values used for these are large enough to capture information,without being overwritten.
2.Reload the listener, with command lsnrctl reload <listener name>
$lsnrctl reload
LSNRCTL for Solaris: Version 10.2.0.4.0 - Production on 21-NOV-2008 13:32:15
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sample.com)(PORT=1521)))
The command completed successfully
With a default listener name of "listener", the listener name can be excluded from commands.
3. Stop listener tracing, run set trc_level 0 via lsnrctl
LSNRCTL> set trc_level 0
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sample.com)(PORT=1521)))
listener parameter "trc_level" set to off
The command completed successfully
If your listener name is not using the default name of "listener", then run command "set current_listener <listener name> in listener control, before any other command is used.
4. When TNS listener tracing is required to be re-enabled. run set trc_level 16 via lsnrctl.
LSNRCTL> set trc_level 16
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sample.com)(PORT=1521)))
listener parameter "trc_level" set to support
The command completed successfully
5. Turn off tracing as soon as the problem / issue has been captured with command "set trc_level 0" from lsnrctl. (As per step 3). Remove or hash out the parameters added to the listener.ora in Step 1 and run reload command. This will stop tracing from being re-activated.
'ORACLE > ADMIN' 카테고리의 다른 글
How to Enable Oracle SQLNet Client , Server , Listener , Kerberos and External procedure Tracing from Net Manager [ID 395525.1] (0) | 2011.05.02 |
---|---|
How to Run and View a Listener Trace. [ID 147446.1] (0) | 2011.05.02 |
ORA-3113: Network Busy Timed Out [ID 1017442.102] (0) | 2011.05.02 |
oracle listener trace (0) | 2011.05.02 |
multi listener(멀티 리스너 구성) (0) | 2011.04.27 |