When you activate the database trace, the system logs all database kernel messages. The log file database trace helps you identify errors that occurred, for example, when SQL statements were processed.
Note
Activating the database trace has a negative effect on performance for SAP liveCache databases. This is not the case for SAP MaxDB databases.
You are logged on to the database as database system administrator or as a DBM operator with server authorization for starting and stopping the database trace.
More information: Glossary, Server Permission
Select the database in the explorer tree.
In the context menu of the database, choose
Select the trace options.
Area |
Property |
Description |
---|---|---|
Options |
- |
You can set a trace level for each option. The higher the trace level, the more detailed the information that is recorded for this option by the database trace. |
Advanced |
Trace Session |
Database sessions that are to be included in the database trace
|
Stop on Error |
If you specify an error number, the system stops the database trace when this error occurs. |
To start the trace, choose Finish.
After you have performed the database actions you want to analyze, stop the database trace:
In the context menu of the database, choose
Choose Deselect All.
Choose Finish.
In the context menu of the database, choose
Choose the properties that you want to display in the log file.
Option |
What Is Written to the Log File |
---|---|
a |
Trace outputs of the order interface |
b |
Trace outputs of the data record interface |
k |
Trace outputs of the table interface |
m |
Message buffer |
e |
Number of the trace page and the position of the block on the page for the order interface and the message buffer |
s |
Information about the processing strategy |
t |
Results of internal time measurements |
x |
Additional trace outputs |
Option |
Description |
---|---|
Flush before generate database trace |
Before the system generates the log file, it writes all the information contained in the working memory to the database trace. |
Open database trace file after generation |
Once the system has generated the log file for the database trace, the file is displayed in Database Studio. |
Deactivate database trace after generation |
Deactivates the database trace after the log file was generated (if you have not already deactivated it). |
To generate the log file, choose Finish.
To display the database trace (Database Trace (Readable) file), proceed as described in section Displaying Configuration and Log Files.
You delete all database trace information that the system has collected so far.
In the context menu of the database, choose