Net8 Administrator's Guide
Release 8.1.5

A67440-01

Library

Product

Contents

Index

Prev Next

11
Troubleshooting Net8

Net8 provides methods for understanding and resolving network problems through the use of log and trace files. These files keep track of the interaction between network components as errors occur. Evaluating this information will help you to diagnose and troubleshoot even the most complex network problems.

This chapter describes common network errors and outlines procedures for resolving them. It also describes methods for logging and tracing error information to diagnose and troubleshoot more complex network problems. This chapter contains the following sections:

Diagnosing Net8

If you have just completed installing and configuring Net8 and an attempt to make a basic peer-to-peer (single protocol network) connection returns an ORA ERROR, this section may help you diagnose the cause of the problem.

Any underlying fault, noticeable or not, is reported by Net8 with an error number or message that is not always indicative of the actual problem. This section helps you determine which parts of Net8 do function properly rather than the parts that do not work. It also helps you to decide in which of the following categories the fault belongs:

Testing the various network layers progressively should in most cases uncover any problem.

Server Diagnostics

Answer the questions below: (You may need assistance from your server administrator to follow the instructions in this section.)

If you answered YES to any of the above questions/statements, skip this section and continue to "Client Diagnostics".

If you are unsure, or answered NO to any of the above questions, please continue.

Diagnosing Net8 on the server involves the following tasks:

Task 1: Verify the Database Is Running

To check that the database is up:

A message appears, confirming that you are connected with the database. If you receive the following errors, ask your Database Administrator to assist you:

Task 2: Perform a Loopback Test

To perform a loopback test:

  1. Check that the LISTENER.ORA, TNSNAMES.ORA, and SQLNET.ORA files exist in $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows NT.

  2. Follow the instructions in "Testing Configuration on the Server" to perform a loopback test.

    • If the loopback test continues to fail, continue to the next step.

    • If the loopback test passes, skip to "Client Diagnostics" below.

  3. Check the Problem/Solution Database website at http://support.oracle.com for more specific information on the error received, or contact Oracle Worldwide Support.

Client Diagnostics

At this point, you know the Net8 server side listener works properly, because you could verify at least one of the following statements:

To perform diagnostics on the client:

  1. Check that you have installed the same Oracle protocol(s) as were installed on the server. On UNIX, you can run the adapters program to verify this. Run adapters at $ORACLE_HOME/bin.

    Output similar to the following appears:

    Installed Net8 Tranport Protocols are:
    
        IPC
        TCP/IP
        BEQueath
        SSL
        RAW
    ...
    
  2. Check base connectivity for underlying network transport. (You may need help from your network administrator to verify this.) Net8 technology depends on the underlying network for a successful connection.

    Protocol   Verify that you can...  

    TCP/IP  

    Use file transfer or terminal emulation utilities (FTP, TELNET, and PING) from the workstation to the server where the listener and database reside.  

    SPX  

    • Perform a Netware log in to the machine on which the database is running.

    • Ensure you can map drives or use other Novell services such as Print Servers and File Servers on the Network.

    • Check that the listener service is broadcasting by doing a DISPLAY SERVERS from the Novell Server or any Novell File Server on the SPX network.

     

    Named Pipes  

    • See other computers or servers on the MSFT network.

    • Ensure you are able to share drives within the MSFT network.

     

  3. Verify that all Net8 software has been installed to ensure that both the Net8 Client and the appropriate protocol are present.

  4. Ensure that the client machine has the TNSNAMES.ORA and the SQLNET.ORA files in $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows platforms.

    The search order for SQLNET.ORA and TNSNAMES.ORA follows:

    1. Current working directory from where an application is executed

    2. TNS_ADMIN environment variable

      If the TNS_ADMIN environment variable is not defined on Windows platforms, TNS_ADMIN it may be in the registry

    3. If TNS_ADMIN is not defined, $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows platforms

    If you have any other working client machines connecting to your selected Oracle database using Net8, back up your existing files and copy both the working TNSNAMES.ORA and SQLNET.ORA files from the working machine onto the non-working client workstations. This eliminates the possibility of errors in the files.
  5. Test the Net8 layer, as described in "Testing Network Connectivity from the Client".

  6. If the connection still fails:

Resolving the Most Common Error Messages

Due to the complexity of network communications, network errors may originate from a variety of sources, for a variety of reasons. If an error occurs, applications such as SQL*Plus and SQL*Forms, which depend on network services from Net8, will normally generate an error message.

A list of the most common network error messages follows:

The table below describes each network error and outlines procedures to troubleshoot them.

Error #: Message   Description/Troubleshooting Procedures  

ORA-12154: TNS:could not resolve service name  

Cause: Net8 could not locate the net service name specified in the TNSNAMES.ORA configuration file.

Actions:

  1. Verify that a TNSNAMES.ORA file exists and that it is accessible.

  2. Verify that there are not multiple copies of the TNSNAMES.ORA file.

  3. In your TNSNAMES.ORA file, verify that the net service name specified in your connect string is mapped to a connect descriptor in the TNSNAMES.ORA file. Also, verify that there are no syntax errors in the file.

  4. Verify that there are no duplicate copies of the SQLNET.ORA file.

  5. If you are using domain names, verify that your SQLNET.ORA file contains a NAMES.DEFAULT_DOMAIN parameter. If this parameter does not exist, you must specify the domain name in your connect string.

    If you are not using domain names, and this parameter exists, delete it or disable it by commenting it out.

  6. If you are connecting from a login dialog box, verify that you are not placing an "@" symbol before your connect net service name.

  7. Activate client tracing and re-execute the operation.

 

ORA-12198: TNS:could not find path to destination

ORA-12203 TNS:unable to connect to destination  

Cause: The client is not able to find the desired database.

Actions:

  1. Verify that you have entered the net service name you wish to reach correctly.

  2. Verify that the net service name ADDRESS parameters in the connect descriptor of your TNSNAMES.ORA file are correct.

  3. Verify that your TNSNAMES.ORA file is stored in the correct directory.

  4. Verify that the listener on the remote node has started and is running. If not, start the listener by using the Listener Control Utility.

  5. If you are connecting from a login box, verify that you are not placing an "@" symbol before your connect net service name.

 

ORA-12203 TNS:unable to connect to destination  

ORA-12203 error is a generic error that often shields secondary errors. For this reason, check the latest SQLNET.LOG file located in $ORACLE_HOME/network/log on UNIX and ORACLE_HOME\network\log on Windows platforms for secondary ORA messages. If after analyzing the log file you determine there are no secondary errors, determine if the problem may be caused by one the following scenarios:

Cause: The incorrect Oracle protocol for the selected networking protocol is installed. A missing protocol support driver usually produces the following errors in the SQLNET.LOG or any client trace file:

  • ORA-12203

  • ORA-12538

  • ORA-00508

Action: Check that you have installed the appropriate Oracle protocol. On UNIX, you can run the adapters program to verify this. Run adapters at $ORACLE_HOME/bin.

Output similar to the following appears:

Installed Net8 Tranport Protocols are:

    IPC
    TCP/IP
    BEQueath
    SSL
    RAW
...
 

ORA-12203 continued  

Cause: An invalid net service name was supplied in the connect string.

Action: Verify that the net service name supplied in your connect string exists in your TNSNAMES.ORA file and the ADDRESS information for that net service name is valid. Ask yourself the following questions:

  • Is the HOST or SERVICE name correct?

  • Is the PORT specified correct?

 

ORA-12203 continued

 

Cause: Net8 could not find the connect descriptor specified in the TNSNAMES.ORA file.

Action: After verifying that the database is running, check the following:

  1. Verify the listener is running. Enter:

        lsnrctl
        lsnrctl> status listener_name
    

    where listener_name is the name of the listener defined in the LISTENER.ORA file. It is not necessary to identify the listener if you are using the default listener, named LISTENER.

    If the output indicates the listener is not running, try starting it with the command:

        lsnrctl> start listener_name
    
  2. Ensure the TNSNAMES.ORA file is in the correct location, $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows platforms.

 

ORA-12203 continued

 

Cause: The destination system's listener is not listening.

Action: Verify that the remote system's listener is running. Enter:

lsnrctl
lsnrctl> status listener_name

where listener_name is the name of the listener defined in the LISTENER.ORA file. It is not necessary to identify the listener if you are using the default listener, named LISTENER.

If the output indicates the listener is not running, try starting it with the command:

lsnrctl> start listener_name
 

ORA-12203 continued

 

Cause: There are underlying network transport problems.

Action: Verify with utilities supplied with the networking protocol being used that the protocol itself is functional. For example, with TCP/IP, try to PING the remote system.  

ORA-12203 continued

 

Cause: TNSNAMES.ORA file is not located in the proper directory.

Action: Make sure the TNSNAMES.ORA file is located in $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows platforms or an alternative path, as explained in "Client Diagnostics".  

ORA-12203 continued

 

Cause: The (HOST=server_name) parameter for TCP/IP addresses or (SERVICE=tns_application) parameters for SPX addresses is not consistent on the clients and server machines.

Action: Ensure the values for these parameter are the same on the server and client.

For TCP/IP setups, make sure that the HOST parameter in LISTENER.ORA on the server and in the TNSNAMES.ORA file on the client point to the same name, or at least to names that are then translated to the same IP address by each system. This is especially important for servers with multiple IP addresses assigned to the various network interfaces on the server.

For SPX setups, the name must be the same on the server and client workstations.  

ORA-12224:TNS:no listener  

Cause: The connection request could not be completed because the listener is not running.

Actions:

  1. Ensure that the supplied destination address matches one of the addresses used by the listener.

  2. Verify also that this is not a version compatibility problem.

 

ORA-12500: TNS:listener failed to start a dedicated server process  

Cause: The listener was unable to start a process connecting the user to the database server.

Actions:

  1. Verify that the SID_LIST section of the LISTENER.ORA file and the system identifier (SID) in the CONNECT DATA section of the TNSNAMES.ORA file are correct.

  2. Check that the program name specified by the PROGRAM parameter in the SID_LIST section exists in the /bin directory or specify the path for the program name.

  3. Verify that the user has adequate privileges to access the database.

 

ORA-12533: TNS:illegal ADDRESS parameters  

Cause: The protocol specific parameters in the ADDRESS section of the designated connect descriptor in your TNSNAMES.ORA file are incorrect.

Action: For more information about protocol specific keywords, refer to the Oracle operating system specific documentation for your platform.  

ORA-12545: TNS:name lookup failure  

Cause: The listener on the remote node cannot be contacted.

Actions:

  1. Verify that the ADDRESS in the TNSNAMES.ORA file or the LISTENER.ORA file is correct.

  2. Verify that the listener on the remote node has been started. You may check its status with the STATUS command of the Listener Control Utility, and start it with the START command if necessary.

 

ORA-12560: TNS:protocol adapter error  

Cause: The listener was unable to start a process connecting the user to the database server.

Actions:

  1. Turn on tracing and re-execute the operation.

  2. Evaluate the contents of the trace file to diagnose the problem.

 

ORA-3113: TNS:End of file on communication channel  

Cause: An unexpected end of file was processed on the communication channel. This may be an indication that the communications link may have gone down at least temporarily; it may indicate that the server has gone down.

Action: You may need to modify your re-transmission count. For more information about troubleshooting this error, refer to the appropriate Oracle operating system specific documentation.  

ORA-3121: No interface driver connection - function not performed  

Cause: A SQL*Net version 1 prefix was erroneously used in the connect string.

Action: Do not use the following prefixes in the connect string.

  • T:

  • X:

  • P:

Cause: Only the user name and password were specified from a client machine that had no local Oracle database installed.

Action: Specify a connect string.  

Troubleshooting Tips from the Field

Below are some tips you may find helpful when you are having difficulty diagnosing network problems:

Questions to Ask When Troubleshooting

Below are some questions to ask yourself when diagnosing a problem:

Troubleshooting Network Problems Using Log and Trace Files

Net8 provide detailed information about the source and context of problems as they arise. This information is generated and stored in log and trace files. The process of logging and tracing error information will help you to diagnose and resolve network problems.

For server and listener, log files are by default located in $ORACLE_HOME/network/log on UNIX and ORACLE_HOME\network\log on Windows platforms, and trace files are by default located in $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on Windows platforms. For client, log and trace files are by default located in the current working directory.

Logging Error Information

All errors encountered in Oracle network products are appended to a log file for evaluation by a network or database administrator. The log file provides additional information for an administrator when the error message on the screen is inadequate to understand the failure. The log file, by way of the error stack, shows the state of the software at various layers.

To ensure that all errors are recorded, logging cannot be disabled on clients or Names Servers. Furthermore, only an administrator may replace or erase log files. The log file for the listener also includes Audit Trail information about every client connection request, as well as most listener control commands.

This section covers the following topics:

Error Stacks

Log files provide information contained in an error stack. An error stack refers to the information that is produced by each layer in an Oracle communications stack as the result of a network error.

Figure 11-1 depicts the relationship among Oracle network products as they might appear in an error stack:

Figure 11-1 Network Products and Error Stack Component


The layers in Figure 11-1 are as follows:

NI  

Net8 Interface Layer  

NR  

Network Routing  

NN  

Network Naming (Oracle Names)  

NS  

Network Session (main and secondary layers)  

NA  

Native Services includes Network Authentication (NA) and Network Encryption (NAE)  

NT  

Network Transport (main, secondary, and operating system layers)  

Your network may or may not include all of these components.

Error Example

As an example, suppose that a user of a client application tries to establish a connection with a database server using Net8 and TCP/IP, and the user enters:

sqlplus scott/tiger@hrserver.com 

The SQL*Plus banner is displayed on the screen, and the following error is displayed:

ORA-12203: TNS:Unable to connect to destination

This message indicates that the connection to the server failed because the database could not be contacted. Although the application displays only a one-line error message, an error stack that is much more informative is recorded in the log file by the network layer. On the client-side, a log file called SQLNET.LOG, contains an error stack corresponding to the ORA-12203 error as follows:

Figure 11-2 Typical Error Stack

***********************************************************

Fatal OSN connect error 12203, connecting to:
 (DESCRIPTION=(CONNECT_DATA=(SID=trace)(CID=(PROGRAM=)
   (HOST=lala)(USER=sviavant)))(ADDRESS_LIST=(ADDRESS=
   (PROTOCOL=ipc)(KEY=trace))(ADDRESS=(PROTOCOL=tcp)
   (HOST=lala)(PORT=1521))))

VERSION INFORMATION:
TNS for SunOS:
Oracle Bequeath NT Protocol Adapter for SunOS:
Unix Domain Socket IPC NT Protocol Adaptor for SunOS: 
TCP/IP NT Protocol Adapter for SunOS:
  Tracing to file: /home/sviavant/trace_admin.trc
  Tns error struct:
    nr err code: 12203
    TNS-12203: TNS:unable to connect to destination
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener
    nt secondary err code: 61
    nt OS err code: 0

Log File Names

Each Net8 component produces its own log file. The table below provides the default file names and a description of the information they contain:

Log File   Contains Error Information about the...  

SQLNET.LOG  

Client and/or server  

LISTENER.LOG  

Listener  

NAMES.LOG  

Oracle Names Server  

CMAN_PID.TRC  

Oracle Connection Manager CMGW gateway process  

CMADM_PID.TRC  

Oracle Connection Manager CMADMIN administrative process  

Understanding and Setting Log Parameters

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

These log parameters corresponding to the...   ...are set in the following Configuration Files  

client  

SQLNET.ORA  

server  

SQLNET.ORA  

listener  

LISTENER.ORA  

Oracle Names Server  

NAMES.ORA  

Oracle Connection Manager processes  

CMAN.ORA  

This section cover the following topics:

For further information about the parameters described in this section, see Appendix C, "Configuration Parameters".

SQLNET.ORA Parameters

The following parameters settings can be set in SQLNET.ORA:

SQLNET.ORA Parameter   Net8 Assistant Option   Description  

LOG_DIRECTORY_CLIENT  

Client Information: Log Directory  

Establishes the destination directory for the client log file. By default, the client directory is the current working directory.  

LOG_FILE_CLIENT

 

Client Information: Log File  

Sets the name of the log file for the client. By default the log name is SQLNET.LOG.  

LOG_DIRECTORY_SERVER  

Server Information: Log Directory  

Establishes the destination directory for the server log files. By default the server directory is $ORACLE_HOME/network/log on UNIX and ORACLE_HOME\network\log on Windows NT.  

LOG_FILE_SERVER  

n/a  

Sets the name of the log file for the server. By default the log name is SQLNET.LOG.  

LISTENER.ORA Parameters

The following log parameters can be set in LISTENER.ORA:

LISTENER.ORA Parameter   Net8 Assistant Option   Description  

LOG_DIRECTORY_listener_name

LOG_FILE_listener_name

 

Log File  

Establishes 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 on UNIX and ORACLE_HOME\network\log on Windows NT, and the file name is LISTENER.LOG.  

NAMES.ORA Parameters

The following log parameters can be set in NAMES.ORA:

NAMES.ORA Parameter   Net8 Assistant Option   Description  

NAMES.LOG_DIRECTORY  

Log Directory  

Establishes the destination directory for log files. By default, the directory is $ORACLE_HOME/network/log on UNIX and ORACLE_HOME\network\log on Windows NT.  

NAMES.LOG_FILE  

Log File  

Sets the name of the log file for the client. By default the log name is NAMES.LOG.  

CMAN.ORA Parameters

The following log parameter can be set in CMAN.ORA:

CMAN.ORA Parameter   Description  

LOG_LEVEL  

Establishes the level of logging:

  • range is 0 to 4:

    level 0 - no logging

    level 1 - basic reporting

    level 2 - RULE_LIST matching lookup reporting

    level 3 - relay blocking reporting

    level 4 - relay I/O counts reporting

The CMGW gateway process creates a log file called CMAN_PID.LOG, and the CMADMIN administrative process creates a log file called CMADM_PID.LOG. The log files are located in $ORACLE_HOME/network/log on UNIX and ORACLE_HOME\network\log on Windows NT.  

Setting Log Parameters in Configuration Files

SQLNET.ORA, LISTENER.ORA and NAMES.ORA logging parameters can be set with the Net8 Assistant. CMAN.ORA logging parameter must be set manually in CMAN.ORA, as described in "Oracle Connection Manager Parameters (CMAN.ORA)". To set logging parameters:

  1. Start the Net8 Assistant:

    • On UNIX, run netasst at $ORACLE_HOME/bin.

    • On Windows NT, choose Start > Programs > Oracle - HOME_NAME > Network Administration > Net8 Assistant.

  2. Specify the log parameters:

    For this log file...   Set logging parameters here...  

    SQLNET.LOG  

    1. Click the Profile icon.

    2. Choose General from the drop-down list box.

    3. Click the Logging tab.

    4. Specify the settings.

     

    LISTENER.LOG  

    1. Click the Listeners folder.

    2. Select a listener.

    3. Choose General Parameters from the drop-down list box.

    4. Click the Logging and Tracing tab.

    5. Specify the settings.

     

    NAMES.LOG  

    1. Click the Oracle Names Servers folder.

    2. Select an Oracle Names Server.

    3. Choose Configure Server from the drop-down list box.

    4. Click the Advanced tab.

    5. Specify the log directory and file name.

     

  3. Choose Save Network Configuration from the File menu.

  4. Choose Exit from the File menu.

    The Net8 Assistant application exits.

Setting Log Settings During Runtime of Control Utilities

Logging can be set during a runtime of a control utilities. Note that setting logging with a control utility will not set parameters in the *.ORA files; the setting is only valid for the session of the control utility:

Using Log Files

To use a log file to diagnose a network error:

  1. Review the log file for the most recent error number you received from the application. Note that this is almost always the last entry in the log file.

  2. Starting from the bottom of the file, locate the first non-zero entry in the error report. This is usually the actual cause.

  3. If that error does not provide the desired information, review the next error in the stack until you locate the correct error information.

  4. If the cause of the error is still not clear, turn on tracing and re-execute the statement that produced the error message.

Listener's Log Audit Trail

The listener log file contains Audit Trail information that allows you to gather and analyze network usage statistics, as well as information indicating the following:

Note that you cannot turn this feature off.

Format of the Listener's Log Audit Trail

The Audit Trail formats text into the following fields: Timestamp, Connect Data, Application, [Protocol Info], event, [SID | service], Return Code. Properties of the Audit Trail are as follows:

Typical output to the log file upon a reload request is as follows:

Figure 11-3 Typical Audit Trail Information for Successful Reload Request

28-dec-98 14:12:18 * (connect_data=(service=sales.com)(cid=
(program=)(host=sales=pc)(user=system)) (command=reload) (arguments=64) 
(service=listener) (version=(version=135282688))* reload * 0

Typical output to the log file upon a connection request is as follows:

Figure 11-4 Typical Audit Trail Information for Successful Connection Request

28-dec-98 14:16:21 * (connect_data=(service=sales.com)(cid=
(program=c:\ora81\bin\sqlplus.exe)
(host=windowspc)(user=dsteiner))) * (address=(protocol=tcp)
(host=144.25.23.246)(port=3366))
* establish * sales.com * 0

Notice that the user ID is recorded as well as the platform, protocol, and software used to make the connection.

Using Audit Trail Information

You can use Audit Trail information to view trends and user activity by first storing it in a table and then collating it into a report format. To import the data into a table, use an import utility such as SQL*Loader.

Understanding Oracle Connection Manager Logs

The Oracle Connection Manager CMGW gateway process creates a log file called CMAN_PID.LOG, and the CMADMIN administrative process creates a log file called CMADM_PID.LOG. The log files are located in $ORACLE_HOME/network/log on UNIX and ORACLE_HOME\network\log on Windows NT.

Figure 11-5 CMAN_PID.LOG

(TIMESTAMP=30-DEC-98 18:03:10)(EVENT=10)(VERSION=8.1.4.0.0)
(TIMESTAMP=30-DEC-98 18:03:10)(EVENT=36)(rule_list= 
(rule=(src=spcstn)(dst=x)(srv=x)(act=accept)))
(TIMESTAMP=30-DEC-98 18:03:10)(EVENT=32)(PARAMETER_LIST=(MAXIMUM_
RELAYS=1024)(RELAY_STATISTICS=no)(AUTHENTICATION_LEVEL=0)(LOG_LEVEL=1)(SHOW_TNS_
INFO=no)(ANSWER_TIMEOUT=0)(MAXIMUM_CONNECT_DATA=1024)(USE_ASYNC_
CALL=yes)(TRACING=no)(TRACE_DIRECTORY=default)(MAX_FREELIST_BUFFERS=0))
(TIMESTAMP=30-DEC-98 18:03:10)(EVENT=34)(ADDRESS_LIST= 
(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1610)(QUEUESIZE=32)))
(TIMESTAMP=30-DEC-98 18:03:12)(EVENT=38)(COMMAND=2)
(TIMESTAMP=30-DEC-98 
18:03:27)(EVENT=26)(RLYNO=0)(SRC=(ADDRESS=(PROTOCOL=tcp)(HOST=spcstn.us.oracle.c
om)(PORT=34758)))(DST=(ADDRESS=(PROTOCOL=tcp)(HOST=144.25.187.89)(PORT=1581)))
(TIMESTAMP=30-DEC-98 18:03:43)(EVENT=28)(RLYNO=0)(SINCE=30-DEC-98 
18:03:27)(STATISTICS=(IN=(BYTES=0)(PACKETS=0)(DCDS=0)(OUT=(BYTES=0)(PACKETS=0)(D
CDS=0)))

Figure 11-6 CMADM_PID.LOG

(TIMESTAMP=30-DEC-98 18:03:09)(EVENT=Sent Admin Status to UI)
(TIMESTAMP=30-DEC-98 18:03:10)(EVENT=CMan Registration)

CMAN_PID.LOG Event Codes

The CMAN_PID.LOG reports events using event codes numbers. This section explains what each of these event codes represents dependent on the log level that was The event code reported is dependent upon the log level set with the LOG_LEVEL parameter in CMAN.ORA:

Log Level 1 Events

Code   Description  

10  

Gateway is starting up  

12  

Gateway is shutting down  

14  

Listening on TNS address(es)  

18  

Answer failed

Additional Information: See "Reasons for Event Code 18".  

20  

Refusing in-coming call

Additional Information: See "Reasons for Event Code 20".  

26  

Relay is now open  

28  

Relay is now closed  

30  

Statistics report  

32  

<parameter_list>  

34  

<address_list>  

36  

<parameter_list>  

38  

CMCTL command  

40  

CMCTL command refused because the gateway is busy  

42  

Dead connection detected  

44  

Relay has timed out  

11  

Bad <address_list> argument  

13  

Bad <parameter_list> argument  

15  

Bad <rule_list> argument  

23  

Bad CMCTL record  

25  

Command line argument is too long  

27  

Memory allocation failure  

29  

TNS error  

31  

TNS error doing CMCTL  

Reasons for Event Code 18

The answer can fail due to the following:

Code   Description  

1  

Timed out  

2  

Connect data buffer is too small  

3  

Refused by TNS  

4  

TNS packet checksum error  

Reasons for Event Code 20

The incoming call can be refused if:

Code   Description  

1  

Gateway is shutting down  

3  

No connect data on in-coming call  

4  

Bad connect data on in-coming call  

5  

All relays are in use  

6  

Unable to get relay buffers  

7  

Fatal TNS error  

8  

No available ASO service  

9  

Reject" from filter rule  

10  

Out-going call failed  

11  

Refused by Net8/TNS  

12  

Listener is not running  

13  

Listener is not reachable  

14  

Host name lookup failure  

15  

Protocol adapter (and probably the protocol stack) not loaded  

16  

No SOURCE_ROUTE set in TNSNAMES.ORA or Oracle Names server  

17  

"reject" from rule or bad connect string data  

Log Level 2 Events

Code   Description  

102  

Answering in-coming call  

104  

Making out-going call  

105  

Accepting in-coming call  

106  

Rule match report  

Log Level 3 Events

Code   Description  

202  

Call will block (no asynchronous TNS support)  

204  

Relay blocked

Additional Information: See "Reasons for Event Code 204".  

206  

Buffer contains leftover data  

Reasons for Event Code 204

Code   Description  

1  

Waiting for writer to be ready  

2  

Waiting for writer to clear backlog  

3  

EWOULDBLOCK error on recovery  

4  

TNS packet checksum error  

5  

EWOULDBLOCK or EPARTIAL on send  

Log Level 4 Events

Code   Description  

302  

Read this many bytes  

304  

Wrote this many bytes  

306  

Wrote this many bytes on retry  

Tracing Error Information

Tracing produces a detailed sequence of statements that describe network events as they are executed. Tracing an operation allows you to obtain more information on the internal operations of the components of Net8 than is provided in a log file. This information is output to files that can be evaluated to identify the events that led to an error.


CAUTION:

Tracing uses a large amount of disk space and may have a significant impact upon system performance. Therefore, you should enable tracing only when necessary  


This section covers the following topics:

Trace File Names

Each Net8 component produces its own trace file. The table below provides the default file names and a description of the information they contain:

Log File   Contains Error Information about the...  

SQLNET.TRC  

Client  

SVR_PID.TRC  

Server  

LISTENER.TRC  

Listener  

NAMES.TRC  

Oracle Names Server  

CMAN_PID.TRC  

Oracle Connection Manager CMGW gateway process  

CMADM_PID.TRC  

Oracle Connection Manager CMADMIN administrative process  

Understanding and Setting Trace Parameters

Parameters that control tracing, including the type and amount of information logged, as well as the location where the files are stored, are set in the configuration file of each network component as follows:

These trace parameters corresponding to the...   ...are set in the following Configuration Files  

client  

SQLNET.ORA  

server  

SQLNET.ORA  

listener  

LISTENER.ORA  

Oracle Names Server  

NAMES.ORA  

Oracle Connection Manager processes  

CMAN.ORA  

This sections cover the following topics:

For further information about the parameters described in this section, see Appendix C, "Configuration Parameters".

SQLNET.ORA Parameters

The following parameters settings can be set in SQLNET.ORA:

SQLNET.ORA Parameter   Net8 Assistant Option   Description  

TRACE_LEVEL_CLIENT  

Client Information: Trace Level  

Indicates 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 to 16 (where 0 is no tracing and 16 represents the maximum amount of tracing) or a value of OFF, ADMIN, USER, or SUPPORT.

  • 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 information for support.

 

TRACE_DIRECTORY_CLIENT  

Client Information: Trace Directory  

Establishes the destination directory for the client trace file. By default, the client directory is $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on Windows NT.  

TRACE_FILE_CLIENT

 

Client Information: Trace File  

Sets the name of the log file for the client. By default the log name is SQLNET.TRC.  

TRACE_UNIQUE_CLIENT  

Client Information: Unique Trace File Name  

Determines whether or not a unique trace file is created. By default, the value is OFF. The same trace file name is used for every client. If the value is OFF, when a new trace file is created for a client, it overwrites the existing file. If the value is set to ON, a process identifier is appended to the name of each trace file generated so that several can coexist.

This parameter creates unique trace files named SQLNETPID.TRC  

TRACE_LEVEL_SERVER  

Server Information: Trace Level  

Indicates the level of detail the trace facility records for the server. The trace level value can either be a value within the range of 0 to 16 (where 0 is no tracing and 16 represents the maximum amount of tracing) or a value of OFF, ADMIN, USER, or SUPPORT.

  • 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 information for support.

 

TRACE_DIRECTORY_SERVER  

Server Information: Trace Directory  

Establishes the destination directory for the server trace file. By default, the server directory is $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on Windows NT.  

TRACE_FILE_SERVER  

Server Information: Trace File  

Sets the name of the trace file for the client. By default the log name is SVR_PID.TRC.  

You can also manually add the following optional tracing parameters for the TNSPING utility to SQLNET.ORA. TNSPING determines whether or not a service (such as a database, an Oracle Names Server, or other TNS services) on a Net8 network can be successfully reached.

SQLNET.ORA Parameter   Description  

TNSPING.TRACE_LEVEL  

Indicates 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 to 16 (where 0 is no tracing and 16 represents the maximum amount of tracing) or a value of OFF, ADMIN, USER, or SUPPORT.

  • 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 information for support.

 

TNSPING.TRACE_DIRECTORY  

Establishes the destination directory for TNSPING trace file. By default, the directory is $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on Windows NT.  

LISTENER.ORA Parameters

The following trace parameters can be set in LISTENER.ORA:

LISTENER.ORA Parameter   Net8 Assistant Option   Description  

TRACE_LEVEL_listener_name  

Trace Level  

Indicates 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 to 16 (where 0 is no tracing and 16 represents the maximum amount of tracing) or a value of ADMINISTRATOR, USER, or SUPPORT.

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

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

  • SUPPORT (equivalent to 16) provides trace information for troubleshooting information for support.

 

TRACE_DIRECTORY_listener_name

TRACE_FILE_listener_name  

Trace File  

Establishes the destination directory and file for the trace file. By default the directory is $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on Windows NT, and the file name is LISTENER.TRC.  

NAMES.ORA Parameters

The following trace parameters can be set in NAMES.ORA:

NAMES.ORA Parameter   Net8 Assistant Option   Description  

NAMES.TRACE_DIRECTORY  

Trace Directory  

Establishes the destination directory for trace files. By default, the directory is $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on Windows NT.  

NAMES.TRACE_FILE  

Trace File  

Sets the name of the trace file. By default the trace name is NAMES.TRC.  

NAMES.TRACE_UNIQUE  

Make Trace File Unique  

If set to ON, creates a unique file name for each trace session, allowing multiple trace files to coexist. A process identifier is appended to the name of the trace file generated.

This parameter creates unique trace files named NAMESPID.TRC.  

CMAN.ORA Parameters

The following trace parameters can be set in CMAN.ORA:

CMAN.ORA Parameter   Description  

TRACING  

Sets tracing ON or OFF.  

TRACE_DIRECTORY  

Establishes the destination directory for trace file. By default, the directory is $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on Windows NT.  

Setting Trace Parameters in Configuration Files

SQLNET.ORA, LISTENER.ORA and NAMES.ORA logging parameters can be set with the Net8 Assistant. CMAN.ORA logging parameter must be set manually, as described in "Oracle Connection Manager Parameters (CMAN.ORA)". To set logging parameters:

  1. Start the Net8 Assistant:

    • On UNIX, run netasst at $ORACLE_HOME/bin.

    • On Windows NT, choose Start > Programs > Oracle - HOME_NAME > Network Administration > Net8 Assistant.

  2. Specify the trace parameters:

    For this trace file...   Set tracing parameters here...  

    SQLNET.TRC (for the client

    SVR_PID.TRC (for the server)  

    1. Click the Profile icon.

    2. Choose General from the drop-down list box.

    3. Click the Tracing tab.

    4. Specify the settings:

     

    LISTENER.TRC  

    1. Click the Listeners folder.

    2. Select a listener.

    3. Choose General Parameters from the drop-down list box.

    4. Click the Logging and Tracing tab.

    5. Specify the settings:

     

    NAMES.TRC  

    1. Click the Oracle Names Servers folder.

    2. Select an Oracle Names server.

    3. Choose Configure Server from the drop-down list box.

    4. Click the Logging tab.

    5. Specify the settings.

     

  3. Choose Save Network Configuration from the File menu.

  4. Choose Exit from the File menu.

    The Net8 Assistant application exits.

Setting Trace Settings During Runtime of Control Utilities

Tracing can be set during a runtime of a control utilities. Note that setting tracing with a control utility will not set parameters in the *.ORA files; the setting is only valid for the session of the control utility:

Evaluating Net8 Traces

Evaluating trace files either manually, or by using the Trace Assistant tool will help you to diagnose and troubleshoot network problems by giving you a better understanding of the following:

Understanding the Flow of Data Packets Between Network Nodes

Net8 performs its functions by sending and receiving data packets.By specifying a trace level of SUPPORT, you can view the actual contents of the Net8 packet in your trace file. The order of the packet types sent and received will help you to determine how your connection was established.