Oracle Net Services - Version 11.2.0.1 to 19.5.0.0.0 [Release 11.2 to 19]
Oracle Database - Enterprise Edition - Version 12.2.0.1 to 12.2.0.1 [Release 12.2]
Information in this document applies to any platform.
This document is intended to clarify that from 11.2 onwards, there is no need to first set any tracing parameters under listener.ora or reload the listener to activate listener tracing with timestamps.
Listener tracing can be enabled dynamically through 'set trc_level' command in lsnrctl utility. Independent if ADR is or not enabled, the trace is created with timestamps.
Limitation
~~~~~~~~
Please note that if the
ADMIN_RESTRICTIONS_<listener_name> is set to ON for the Listener, then this cannot be done. This parameter needs to be set to OFF or commented out for Dynamic commands to work.
If your listener name is not using the default name of "listener", then run the command " set current_listener <listener name>" in lsnrctl utility , before any other command is used.
1. To enable SQL*Net listener tracing dynamically run 'set trc_level 16' command in lsnrctl utility:
If ADR is enabled for the listener , the trace is generated under $ORACLE_BASE/diag/tnslsnr/<hostname>/listener/trace on UNIX or $ORACLE_BASE\diag\tnslsnr\<hostname>\listener\trace on Windows. Default trace name is ora_xxxx_xxxxxxxxx.trc
If ADR is disabled for the listener , the trace is generated under $ORACLE_HOME/network/trace on UNIX or $ORACLE_HOME\network\trace on Windows. Default trace name is <listener_name>.trc
2. To disable SQL*Net listener tracing dynamically run 'set trc_level 0' command in lsnrctl utility:
Limitation
As mentioned above, if you have the
ADMIN_RESTRICTIONS_<listener_name> set to ON for the Listener in the listener.ora file, then you cannot issue any dynamic commands against this listener.
For example:
ADMIN_RESTRICTIONS_<listenername> = ON
The error that will be thrown is:
This parameter would need to be set to OFF or commented out, for Dynamic commands to work:
ADMIN_RESTRICTIONS_<listenername> = OFF
Now this will work:
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29487349/viewspace-2856260/ ,如需转载,请注明出处,否则将追究法律责任。