Entering content frame

Function documentation Traces Locate the document in the library structure

Use

You can use various traces to obtain detailed logs of the actions of the database system.

Note

Performance can decline while a trace is being written. You should therefore switch off the trace as soon as the actions necessary for the analysis have been logged.

As long as a trace is being written, operate the database instance with the lowest possible load and execute only those actions that are necessary to reproduce the error.

Traces

Name

Log File (Default Value)

Description

Database trace

knltrace

The trace writer task logs all kernel messages.

You can use the log file to identify errors, such as those that occur while processing SQL statements.

Note

Switching on the database trace only has a negative effect on performance with liveCache database instances. This is not the case with MaxDB database instances.

ODBC trace

sqltrace.pct

The MaxDB ODBC driver logs all SQL statements that the application transmits to the database system.

This ODBC trace is not identical to the SQL.LOG trace that you can switch on and off in the ODBC Data Source Administrator (Microsoft Windows) in register tracing.

JDBC trace

Your choice

The MaxDB JDBC driver logs all JDBC API calls and their input parameters, return values and the corresponding thread.

SQLDBC Traces

sqldbctrace-<pid>.prt

in the directory

<user_home>\Application Data\sdb (Microsoft Windows)

<user_home>/.sdb (UNIX/Linux)

<pid>=  process ID

Traces of the MaxDB SQLDBC interface

Activities

·        Switch on the database trace: Use the Database Manager database tool, or in SAP systems the CCMS.

¡        Database Manager GUI,Using the Database Trace

¡        Database Manager CLI, Activating the Database Trace

¡        Database Administration in CCMS, Structure linkDatabase Trace

·        Switch on the ODBC trace: Specify the corresponding option for the data source; see ODBC Manual, Logging SQL Statements (Windows) or Logging SQL Statements (UNIX/Linux).

·        Switch on the JDBC trace: Specify the corresponding option for the connection setup; see JDBC Manual, Specifying Other Connection Options.

·        Switch on the SQLDBC traces: Use the database tool sqldbc_cons or in SAP systems the CCMS:

¡        SQLDBC Manual, SQLDBC Traces

¡        Database Administration in CCMS, Structure linkSQLDBC Trace

See also:

Troubleshooting

 

Leaving content frame