The DISABLE_OPT_TRACE procedure disables the optimizer trace feature for the current session.
This procedure is typically used in conjunction with ENABLE_OPT_TRACE: trace information is continuously written to trace files in the OBServer log directory, which have the prefix optimizer_trace_ and the suffix identifier set by SET_OPT_TRACE_PARAMETER. After troubleshooting plan issues, you should promptly call this procedure to disable tracing and prevent continuous log growth from affecting performance.
Syntax
DBMS_XPLAN.DISABLE_OPT_TRACE;
Considerations
- This procedure only disables tracing for the current session and does not affect other sessions.
- Tracing must be enabled within the same session that calls
DISABLE_OPT_TRACE(by usingENABLE_OPT_TRACE). Calling this procedure in other sessions is ineffective. - This procedure does not accept parameters; passing parameters will result in an error.
Examples
Disable the optimizer trace feature for the current session.
obclient> CALL DBMS_XPLAN.DISABLE_OPT_TRACE();