16.6.5 About the Logging Parameters

Parameters that control logging, including the type and amount of information logged, and the location where the files are stored, are set in the configuration file of each network component.

Table 16-11 Location of Log Parameters

Network Component Configuration File

Oracle Connection Manager processes

cman.ora

Listener

listener.ora

Client

sqlnet.ora

Database server

sqlnet.ora

Note:

If the ADR_ENABLED parameter is set to ON, then all logging parameters are set by ADR. Using Oracle Net Manager to change the parameters will not work.

16.6.5.1 sqlnet.ora Log Parameters

You can set these log parameters in the sqlnet.ora file.

Table 16-12 sqlnet.ora Log Parameters

sqlnet.ora Parameter Oracle Net Manager Field Description

ADR_BASE

Tracing: ADR Base Directory

Specifies the base directory for storing tracing and logging incidents.

Use this parameter when DIAG_ADR_ENABLED is set to ON.

DIAG_ADR_ENABLED

You must set this parameter manually.

Indicates whether ADR tracing is enabled.

When the DIAG_ADR_ENABLED parameter is set to OFF, non-ADR file tracing is used.

ENABLE_CONCISE_LOGS

You must set this parameter manually.

Enables or disables the logging in a concise format, which displays all the relevant information of a failure in a single line.

LOG_SUPPRESSED_COUNT

You must set this parameter manually.

Controls suppression of a log message on the database server side, based on the number of occurrences.

LOG_SUPPRESSED_TIME

You must set this parameter manually.

Controls suppression of a log message on the database server side, based on the time interval.

LOG_DIRECTORY_CLIENT

Client Information: Log Directory

Specifies the destination directory for the client log file.

By default, the client directory is the current working directory. This parameter is disabled when ADR_ENABLED is set to ON.

LOG_DIRECTORY_SERVER

Server Information: Log Directory

Specifies the destination directory for the database server log files.

By default, the server directory is ORACLE_HOME/network/log. This parameter is disabled when ADR_ENABLED is set to ON.

LOG_FILE_CLIENT

Client Information: Log File

Specifies the name of the log file for the client.

By default, the log name is sqlnet.log.

LOG_FILE_SERVER

You must set this parameter manually.

Specifies the name of the log file for the database server.

By default, the log name is sqlnet.log.

16.6.5.2 listener.ora Log Parameters

You can set these log parameters in the listener.ora file.

Table 16-13 listener.ora Log Parameters

listener.ora Parameter Oracle Net Manager Field Description

ADR_BASE_listener_name

You must set this parameter manually.

The ADR_BASE_listener_name parameter specifies the base directory for storing which tracing and logging incidents.

Use when DIAG_ADR_ENABLED_listener_name is set to ON.

DIAG_ADR_ENABLED_listener_name

You must set this parameter manually.

The DIAG_ADR_ENABLED_listener_name parameter indicates whether ADR tracing is enabled.

When DIAG_ADR_ENABLED_listener_name is set to OFF, non-ADR file tracing is used.

LOG_DIRECTORY_listener_name

LOG_FILE_listener_name

Log File

The destination directory and file for the log file that is automatically generated for listener events. By default the directory is ORACLE_HOME/network/log, and the file name is listener.log. These parameters are disabled when ADR_ENABLED is set to ON.

16.6.5.3 cman.ora Log Parameters

You can set these log parameters in the cman.ora file.

Table 16-14 cman.ora Log Parameters

cman.ora Parameter Description

ADR_BASE

The ADR_BASE parameter specifies the base directory for storing tracing and logging incidents.

Use this parameter when DIAG_ADR_ENABLED is set to ON.

DIAG_ADR_ENABLED

The DIAG_ADR_ENABLED parameter indicates whether ADR tracing is enabled.

When the DIAG_ADR_ENABLED parameter is set to OFF, non-ADR file tracing is used.

EVENT_GROUP

The event groups that are logged. Multiple events may be designated using a comma-delimited list. This parameter accepts the following values:

  • INIT_AND_TERM: initialization and termination

  • MEMORY_OPS: memory operations

  • CONN_HDLG: connection handling

  • PROC_MGMT: process management

  • REG_AND_LOAD: registration and load update

  • WAKE_UP: events related to CMADMIN wakeup queue

  • TIMER: gateway timeouts

  • CMD_PROC: command processing

  • RELAY: events associated with connection control blocks

LOG_DIRECTORY

The destination directory for log files.

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

This parameter is disabled when ADR_ENABLED is set to ON.

LOG_LEVEL

The level of logging. Four levels are supported:

  • off (default): no logging

  • user: user log information

  • admin: administrative log information

  • support: Oracle Support Services information