set sql tracing session argument: Control tracing for a session (SQL administration API)

Use the set sql tracing session argument with the admin() or task() function to change SQL tracing for the current session.

Syntax


1  EXECUTE FUNCTION
1 admin
1 task
2  ( "set sql tracing session" ,
3.1 "clear"
3.1 "off"
3.1 "on"
3.1! ,"current_session_id"
3.1  , "session_id"
2  ) ;
Element Description Key Considerations
current_session_id The ID of the current session. This is the default session ID.
session_id The ID of the session to which this command applies.

Usage

Use the clear argument to clear any global tracing overrides. The session will conform to the global tracing policy.

Use the off argument to turn off tracing for the session, even if the global tracing policy is set to enable tracing.

Use the on argument to turn on tracing for the session, even if the global tracing policy is set to disable tracing.

Example

The following example stops tracing for the current session:
EXECUTE FUNCTION task("set sql tracing session","off");