16.7.2 Setting Tracing Parameters

Parameters that control tracing, including the type and amount of information trace, and the location where the files are stored, are set in the configuration file of each network component as described in Table 16-19.

Table 16-19 Location of Trace Parameters

Configuration File Component

cman.ora

Oracle Connection Manager processes

listener.ora

Listener

sqlnet.ora

Client

Database server

TNSPING utility

This section contains the following topics:

See Also:

Oracle Database Net Services Reference for additional information about these parameters

16.7.2.1 cman.ora Trace Parameters

Review the trace parameter settings for Oracle Connection Manager that can be set in the cman.ora file.

Table 16-20 cman.ora Trace Parameters

cman.ora Parameter Description

TRACE_DIRECTORY

The destination directory for trace files.

By default, the directory is ORACLE_HOME/network/trace.

TRACE_FILELEN

The size of the trace file in KB. When the size is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO parameter.

TRACE_FILENO

The number of trace files for tracing. When this parameter is set along with the TRACE_FILELEN parameter, trace files are used in a cyclical fashion. The first file is filled, then the second file, and so on. When the last file has been filled, the first file is reused, and so on.

The trace file names are distinguished from one another by their sequence number. For example, if this parameter is set to 3, then the Oracle Connection Manager trace files for the gateway processes would be named instance-name_cmgw1_pid.trc, instance-name_cmgw2_pid.trc and instance-name_cmgw3_pid.trc.

In addition, trace events in the trace files are preceded by the sequence number of the file.

TRACE_LEVEL

The level of detail the trace facility records for the listener. Specify one of the following trace level values:

  • off (equivalent to 0) provides no tracing.

  • user (equivalent to 4) traces to identify user-induced error conditions.

  • admin (equivalent to 10) traces to identify installation-specific problems.

  • support (equivalent to 16) provides trace information for troubleshooting by Oracle Support Services.

The Oracle Connection Manager listener, gateway, and CMADMIN processes create trace files on both Linux and Microsoft Windows.

TRACE_TIMESTAMP

If the TRACING parameter is enabled, then a time stamp in the form of dd-mon-yyyy hh:mi:ss:mil is created for every trace event in the listener trace file.

16.7.2.2 listener.ora Trace Parameters

Review the trace parameter settings for the listener that can be set in the listener.ora file.

Table 16-21 listener.ora Trace Parameters

listener.ora Parameter Oracle Enterprise Manager Cloud Control/Oracle Net Manager Field Description

TRACE_LEVEL_listener_name

Select a trace level/Trace Level

The level of detail the trace facility records for the listener. The trace level value can either be a value within the range of 0 (zero) to 16 where 0 is no tracing and 16 represents the maximum amount of tracing or one of the following values:

  • off (equivalent to 0) provides no tracing.

  • user (equivalent to 4) traces to identify user-induced error conditions.

  • admin (equivalent to 6) traces to identify installation-specific problems.

  • support (equivalent to 16) provides trace information for troubleshooting by Oracle Support Services.

TRACE_DIRECTORY_listener_name

TRACE_FILE_listener_name

Trace File

The destination directory and file for the trace file. By default, the directory is ORACLE_HOME/network/trace, and the file name is listener.trc.

TRACE_FILEAGE_listener_name

You must set this parameter manually.

The maximum age of listener trace files in minutes. When the age limit is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_listener_name parameter.

TRACE_FILEAGE_SERVER

You must set this parameter manually.

Specifies the maximum age of server trace files in minutes. When the age limit is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_SERVER parameter.

TRACE_FILELEN_listener_name

You must set this parameter manually.

The size of the listener trace files in KB. When the size is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_listener_name parameter

TRACE_FILENO_listener_name

You must set this parameter manually.

The number of trace files for listener tracing. When this parameter is set along with the TRACE_FILELEN_listener_name parameter, trace files are used in a cyclical fashion. The first file is filled, then the second file, and so on. When the last file has been filled, the first file is re-used, and so on.

The trace file names are distinguished from one another by their sequence number. For example, if the default trace file of listener.trc is used, and this parameter is set to 3, then the trace files would be named listener1.trc, listener2.trc and listener3.trc.

In addition, trace events in the trace files are preceded by the sequence number of the file.

When this parameter is set with the TRACE_FILEAGE_listener_name parameter, trace files are cycled based on the age of the trace file. The first file is used until the age limit is reached, then the second file is use, and so on. When the last file's age limit is reached, the first file is re-used, and so on.

When this parameter is set with both the TRACE_FILELEN_listener_name and TRACE_FILEAGE_listener_name parameters, trace files are cycled when either the size limit or the age limit is reached.

TRACE_TIMESTAMP_listener_name

You must set this parameter manually.

A time stamp in the form of dd-mon-yyyy hh:mi:ss:mil for every trace event in the listener trace file.

16.7.2.3 sqlnet.ora Trace Parameters

Review the trace parameter settings that can be set in the sqlnet.ora file.

Table 16-22 sqlnet.ora Trace Parameters

sqlnet.ora Parameter Oracle Net Manager Field Description

TRACE_DIRECTORY_CLIENT

Client Information: Trace Directory

The destination directory for the client trace output. By default, the client directory is ORACLE_HOME/network/trace.

TRACE_DIRECTORY_SERVER

Server Information: Trace Directory

The destination directory for the database server trace output. By default, the server directory is ORACLE_HOME/network/trace.

TRACE_FILE_CLIENT

Client Information: Trace File

The name of the trace file for the client. By default, the trace file name is sqlnet.trc.

TRACE_FILE_SERVER

Server Information: Trace File

The name of the trace file for the database server. By default the trace file name is svr_pid.trc.

TRACE_FILEAGE_CLIENT

You must set this parameter manually.

Specifies the maximum age of client trace files in minutes. When the age limit is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_CLIENT parameter.

TRACE_FILEAGE_SERVER

You must set this parameter manually.

Specifies the maximum age of server trace files in minutes. When the age limit is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_SERVER parameter.

TRACE_FILELEN_CLIENT

You must set this parameter manually.

The size of the client trace files in KB. When the size is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_CLIENT parameter.

TRACE_FILELEN_SERVER

You must set this parameter manually.

The size of the database server trace files in KB. When the size is reached, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_SERVER parameter.

TRACE_FILENO_CLIENT

You must set this parameter manually.

The number of trace files for client tracing. When this parameter is set along with the TRACE_FILELEN_CLIENT parameter, trace files are used in a cyclical fashion. The first file is filled, then the second file, and so on. When the last file has been filled, the first file is re-used, and so on.

The trace file names are distinguished from one another by their sequence number. For example, if the default trace file of sqlnet.trc is used, and this parameter is set to 3, then the trace files would be named sqlnet1_pid.trc, sqlnet2_pid.trc and sqlnet3_pid.trc.

In addition, trace events in the trace files are preceded by the sequence number of the file.

When this parameter is set with the TRACE_FILEAGE_CLIENT parameter, trace files are cycled based on the age of the trace file. The first file is used until the age limit is reached, then the second file is use, and so on. When the last file's age limit is reached, the first file is re-used, and so on.

When this parameter is set with both the TRACE_FILELEN_CLIENT and TRACE_FILEAGE_CLIENT parameters, trace files are cycled when either the size limit or age limit is reached.

TRACE_FILENO_SERVER

You must set this parameter manually.

The number of trace files for database server tracing. When this parameter is set along with the TRACE_FILELEN_SERVER parameter, trace files are used in a cyclical fashion. The first file is filled, then the second file, and so on. When the last file has been filled, the first file is re-used, and so on.

The trace file names are distinguished from one another by their sequence number. For example, if the default trace file of svr_pid.trc is used, and this parameter is set to 3, then the trace files would be named svr1_pid.trc, svr2_pid.trc and svr3_pid.trc.

In addition, trace events in the trace files are preceded by the sequence number of the file.

When this parameter is set with the TRACE_FILEAGE_SERVER parameter, trace files are cycled based on the age of the trace file. The first file is used until the age limit is reached, then the second file is use, and so on. When the last file's age limit is reached, the first file is re-used, and so on.

When this parameter is set with both the TRACE_FILELEN_SERVER and TRACE_FILEAGE_SERVER parameters, trace files are cycled when either the size limit or age limit is reached.

TRACE_LEVEL_CLIENT

Client Information: Trace Level

The level of detail the trace facility records for the client.

The trace level value can either be a value within the range of 0 (zero) to 16 where 0 is no tracing and 16 represents the maximum amount of tracing or one of the following values:

  • off (equivalent to 0) provides no tracing.

  • user (equivalent to 4) traces to identify user-induced error conditions.

  • admin (equivalent to 6) traces to identify installation-specific problems.

  • support (equivalent to 16) provides trace information for troubleshooting by Oracle Support Services.

TRACE_LEVEL_SERVER

Server Information: Trace Level

The level of detail the trace facility records for the database server. The trace level value can either be a value within the range of 0 (zero) to 16 where 0 is no tracing and 16 represents the maximum amount of tracing or one of the following values:

  • off (equivalent to 0) provides no tracing.

  • user (equivalent to 4) traces to identify user-induced error conditions.

  • admin (equivalent to 6) traces to identify installation-specific problems.

  • support (equivalent to 16) provides trace information for troubleshooting by Oracle Support Services.

TRACE_TIMESTAMP_CLIENT

You must set this parameter manually.

A time stamp in the form of dd-mon-yyyy hh:mi:ss:mil for every trace event in the client trace file, sqlnet.trc.

TRACE_TIMESTAMP_SERVER

You must set this parameter manually.

A time stamp in the form of dd-mon-yyyy hh:mi:ss:mil for every trace event in the client trace file, sqlnet.trc.

TRACE_UNIQUE_CLIENT

Client Information: Unique Trace File Name

When the value is set to on, Oracle Net creates a unique file name for each trace session by appending a process identifier to the name of each trace file generated, and enabling several files to coexist. For example, trace files named sqlnetpid.trc are created if default trace file name sqlnet.trc is used. When the value is set to off, data from a new client trace session overwrites the existing file.

You can manually add the TNSPING utility tracing parameters described in Table 16-23 to the sqlnet.ora file. The TNSPING utility determines whether a service, such as a database or other TNS services on an Oracle Net network can be successfully reached.

Table 16-23 TNSPING Trace Parameters

sqlnet.ora Parameter Description

TNSPING.TRACE_DIRECTORY

The destination directory for TNSPING trace file, tnsping.trc. By default, the directory is ORACLE_HOME/network/trace.

TNSPING.TRACE_LEVEL

The level of detail the trace facility records for the TNSPING utility. The trace level value can either be a value within the range of 0 (zero) to 16 where 0 is no tracing and 16 represents the maximum amount of tracing or one of the following values:

  • off (equivalent to 0) provides no tracing.

  • user (equivalent to 4) traces to identify user-induced error conditions.

  • admin (equivalent to 6) traces to identify installation-specific problems.

  • support (equivalent to 16) provides trace information for troubleshooting by Oracle Support Services.

16.7.2.4 Setting Tracing Parameters in Configuration Files

Configure tracing parameters for the sqlnet.ora file with Oracle Net Manager and listener.ora file with either Oracle Enterprise Manager Cloud Control or Oracle Net Manager. You must manually configure cman.ora file tracing parameters.

16.7.2.4.1 Setting Tracing Parameters for sqlnet.ora File Using Oracle Net Manager

The following procedure describes how to set the tracing parameters for the sqlnet.ora file using Oracle Net Manager:

  1. Start Oracle Net Manager.

  2. In the navigator pane, expand Profile under the Local heading.

  3. From the list in the right pane, select General.

  4. Click the Tracing tab.

  5. Specify the settings.

  6. Choose Save Network Configuration from the File menu.

The name of the trace file for the client is sqlnet.trc. The name of the trace file for the server is svr_pid.trc.

16.7.2.4.2 Setting Tracing Parameters for the Listener Using Oracle Enterprise Manager Cloud Control

The following procedure describes how to set the tracing parameters for the listener using Oracle Enterprise Manager Cloud Control:

  1. Access the Net Services Administration page in Oracle Enterprise Manager Cloud Control.

  2. Select Listeners from the Administer list, and then select the Oracle home that contains the location of the configuration files.

  3. Click Go to display the Listeners page.

  4. Select a listener, and then click Edit to display the Edit Listeners page.

  5. Click the Logging & Tracing tab.

  6. Specify the settings.

  7. Click OK.

The name of the trace file is listener.trc.

16.7.2.4.3 Setting Tracing Parameters for the Listener Using Oracle Net Manager

The following procedure describes how to set the tracing parameters for the listener using Oracle Net Manager:

  1. Start Oracle Net Manager.

  2. In the navigator pane, expand Listeners from the Local heading.

  3. Select a listener.

  4. From the list in the right pane, select General.

  5. Click the Logging and Tracing tab.

  6. Specify the settings.

  7. Choose Save Network Configuration from the File menu.