Only use this command when told to do so by Support. The database trace is not required for normal database operation. Find out from support which activities are to be logged.
You activate the database trace with this command. In this way, selected database kernel activities are logged.
The database trace is stored in the knltrace log file in the run directory of the database instance. To evaluate the file, you first create the text version of the database trace (Creating the Text Version of the Database Trace).
The file_id (see also: Opening a Database File) for opening this binary file is KNLTRC.
You
can use the activity_list command option to specify which activities
are to be logged. Separate multiple activities by spaces.
The special command option ALL activates logging of all activities.
You can enter a logging level from 1 to 9 for some activities. This entry is optional. The default value of the Database Manager CLI is level 5.
You have the server authorization DBInfoRead or DBFileRead.
trace_on <activity_list> | ALL [<level>]
The system displays an OK message.
In the event of errors, see Reply Format.
Activating the database trace for the following areas:
LOCK
COMMANDS
TOPICIOMAN Level 7
CHECKVOLUME Level 3
dbmcli -d a74 -u dbm,dbm trace_on LOCK COMMANDS TOPICIOMAN 7 CHECKVOLUME 3
OK