Note
This variable is available starting with V2.2.77.
Description
tracefile_identifier is used to add specified content to logs for easier filtering of line iteration tracking logs.
Privilege requirements
Query variables
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the values of Session system variables.Modify variables
systenants and all user tenants can directly modify the values of Session system variables for their own tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | Empty string |
| Scope | Session |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage
Using the TRACING and STAT HINTs instructs the executor to print the content of each row during operator execution. To make these contents easier to search, you can use tracefile_identifier to specify a string, such as XXXYYYZZZ or MY_TRACE, and output it along with the row content to the log.
Examples
Specify the MY_TRACE string to output it along with the row content to the log for easier subsequent search.
obclient> SET tracefile_identifier = 'MY_TRACE';
