Entering content frame

Procedure documentation Activating the Database Trace Locate the document in its SAP Library structure

Use

Caution

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.

Prerequisites

You have the server authorization DBInfoRead or DBFileRead.

Syntax

trace_on <activity_list> | ALL [<level>]

Reply

The system displays an OK message.

In the event of errors, see Reply Format.

Example

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

 

Leaving content frame