How tracing works
Tracing is the process of writing status messages for routines to a file. Use tracing for debugging; tracing can generate a high volume of output, which is not appropriate for production databases. By default, tracing is disabled whenever you start a new database session.
Each tracing message has a tracing level associated with it. When you enable tracing, you set a threshold for tracing levels. Messages with a trace level less than or equal to the threshold are written to the trace file.
Tracing messages are written to a trace file, which is created with a default name and location, or with a name and location you specify. If you remove the trace file while tracing is enabled, it is automatically recreated. The default name and location of the trace file is tmp/session_id.trc, where session_id is the four-digit identifier of the current database server session. To obtain your current session ID, use the onstat -g ses command.
- Generate source code with tracing. See Generate source files for instructions.
- Compile the DataBlade module. See Compile DataBlade module code for instructions.
- Enable tracing in your DataBlade module by adding a trace class to the systraceclasses system catalog and creating the TraceSet_project() procedure. See Enabling tracing in a DataBlade module for more information.
- Enable tracing for a database session by setting a threshold and optionally specifying a trace file with the TraceSet_project() procedure. See Enabling tracing in a database session for instructions.
=========================================
Tracing session: 12 on 3/4/1998
10:55:32 Entering function Distance (Circle.c)
10:55:32 Successfully exiting Distance (Circle.c)