SQLTRACE configuration parameter
Use the SQLTRACE parameter to control the startup environment of SQL tracing.
- onconfig.std value
- #SQLTRACE level=low,ntraces=1000,size=2,mode=global
- values
- See the Usage section.
- takes effect
- After you edit your onconfig file and restart the database server.
Usage
Remove the # symbol from the onconfig value to retain basic information, up to 2 KB in size, about the last 1000 SQL statements that were run by any user. You can customize the scope of the SQL tracing information by adjusting the field values of the SQLTRACE configuration parameter.
Field | Values |
---|---|
level | Amount of information traced:
|
ntraces | The number_traces value is the number of SQL statements to trace before reusing the resources. Default is 1000. The range is 500 - 2147483647. |
size | The buffer_size value is the maximum size of variable length data to be stored, in KB. Default is 2. The range is 1 -100. If this buffer size is exceeded, the database server discards saved data. |
mode | Scope of tracing performed:
|
The onstat -g his command displays SQL trace information.