set sql user tracing argument: Set global SQL tracing for a user session (SQL administration API)

Use the set sql user tracing argument with the admin() or task() function to set the mode of global SQL tracing for a specified user session.

Syntax


1  EXECUTE FUNCTION
1 admin
1 task
2  (
3.1 "set sql user tracing clear"
3.1 "set sql user tracing off"
3.1 "set sql user tracing on"
2 ,
2 "session_id"
2  ) ;
Element Description Key Considerations
session_id The ID for the session.

Usage

Use the set sql user tracing clear to clear user tracing flags for the specified user session so that it adheres to the global tracing policy.

Use the set sql user tracing off to disable SQL tracing for a user session even if the global mode is ON.

Use the set sql user tracing on to enable user SQL tracing for a user session. Even if the global tracing mode is OFF, SQL statements for this user session are traced.

Example

The following example starts tracing for the session with the ID of 18:
EXECUTE FUNCTION task("set sql user tracing on","18");