OB_SESSION_TRACE_ENABLE is used to enable full-link tracing at the session level.
Applicability
This topic applies only to OceanBase Database Enterprise Edition.
Syntax
DBMS_MONITOR.OB_SESSION_TRACE_ENABLE(
session_id IN BINARY_INTEGER DEFAULT NULL,
level IN INT,
sample_pct IN NUMBER,
record_policy IN VARCHAR2);
Parameters
| Parameter | Description |
|---|---|
| session_id | The session_id for which full-link tracing is enabled. If this parameter is not specified, the session_id of the current session is used. |
| level | The sampling level, which can be Level 1, Level 2, or Level 3. The sampling level determines the granularity of data collection for spans. |
| sample_pct | The sampling rate, which ranges from 0 to 1. |
| record_policy | The trace printing strategy. Valid values:
|
