Entering content frame

 Activating the Database Trace  

The Database Manager GUI gives you the option of activating the database trace function if errors occur.

Use this function when asked to do so by your Support organization. Enable the database trace function only if it is really necessary, since it seriously affects the performance of the database instance.

Deactivate the database trace function as soon as the actions needed for the analysis have been logged.

Procedure

Select the required database instance in the list of database instances. Choose Instance ® Check ® Database Trace.

You can execute the log functions below either individually or in a combination that you can define yourself.

Logging Database Statements in General

       1.      On the Options tab page, select the required database trace options in the list. If the options support the selection of a trace level, the system default value is displayed in the column Level.

       2.      Choose Actions ® Selected Items ON to activate the database trace for the chosen database trace options.

If you want to change the trace level for the selected database trace options, choose Actions ® Selected Items ON with Level... You can now select a different trace level. The higher the trace level, the greater amount of detail is provided in the information collected by the database trace.

Choose Actions ® Selected Items OFF to deactivate the database trace.

Logging Database Statements in a Specific Database Session

The database trace is written for all database sessions by default. The default setting can be changed:

 

       1.      Choose the Advanced tab page and select Trace session.

       2.      Decide whether the database trace is to be written for the current session or for a specific database session. In this case, enter the ID of the database session (for information about finding the ID, see Displaying Database Sessions).

       3.      Choose Actions ® Set Advanced Options.

Logging the Occurrence of Specific Errors

 

       1.      On the Advanced tab page, select Stop on error. Enter the code of the error whose occurrence is to stop the creation of the database trace.

       2.      Then choose Actions ® Flush to write the information still contained in the buffer to the trace and therefore update the database trace before the log file is created.

Creating and Displaying the Database Trace Log

 

       1.      On the Protocol tab page, select the required options.

       2.      Then choose Actions ® Flush to write the information still contained in the buffer to the trace and therefore update the database trace before the log file is created.

       3.      Choose Actions ® Make Protocol. The database trace is then converted to a legible format.

To open the log, choose Instance ® Check ® Diagnosis Files. Select the Kernel Trace Protocolfile and choose Actions ® View.

 

Leaving content frame