In this Document
Goal
Solution
References
For use on versions < 11.2
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.
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_
TRACE_FILE_
TRACE_DIRECTORY_
TRACE_TIMESTAMP_
TRACE_FILELEN_
TRACE_FILENO_
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
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
If your listener name is not using the default name of "listener", then run command "set current_listener
4. When TNS listener tracing is required to be re-enabled. run set trc_level 16 via lsnrctl.
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.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22308399/viewspace-750807/ ,如需转载,请注明出处,否则将追究法律责任。