Oracle9i Net Services Administrator's Guide
Release 1 (9.0.1)

Part Number A90154-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

17
Troubleshooting Oracle Net Services

Oracle Net Services provide 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 these topics:

Diagnosing Oracle Net

If 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 Oracle Net with an error number or message that is not always indicative of the actual problem. This section helps you determine which parts of Oracle Net 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


Note:

You may need assistance from your server administrator to follow the instructions in this section. 


Answer the following questions:

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 Oracle Net on the server involves the following tasks:

Task 1: Verify the Database Is Running

To check that the database is up, login to the database and connect with a valid user name and password. For example:

SQLPLUS system/manager 

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 from the server to the database:

  1. Ensure that the listener.ora, tnsnames.ora, and sqlnet.ora files exist in the $ORACLE_HOME/network/admin directory on UNIX, or the ORACLE_HOME\network\admin directory on Windows NT.

    The search order for configuration files is as follows:

    1. For the sqlnet.ora file, current working directory from where an application is executed

    1. Directory specified by the TNS_ADMIN environment variable

      If the TNS_ADMIN environment variable is not defined as a variable on Windows NT, it may be in the registry.

    2. The node's global configuration directory. For Sun Solaris, this directory is /var/opt/oracle. Windows NT does not have a central directory.

    3. $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows operating systems

  2. Follow the instructions in "Testing Configuration on the Database 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".

  3. Check the Problem/Solution Database Web site 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 serverside 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 Oracle Net Services Tranport Protocols are:
    
        IPC
        TCP/IP
        BEQueath
        SSL
        RAW
    
    
  2. Check base connectivity for underlying network transport. Oracle Net technology depends on the underlying network for a successful connection.

    Protocol  Verify that you can... 

    TCP/IP 

    Use terminal emulation or file transfer utilities, (PING, FTP, TELNET) from the client to the server.  

    Named Pipes 

    • See other computers or servers on the Microsoft network.

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

     
  3. To ensure that both the Oracle Net foundation layer and the appropriate Oracle protocol support are present, verify that all Oracle Net Services software for the client has been installed.

  4. Ensure that the client computer has the tnsnames.ora and the sqlnet.ora files in $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows operating systems.

    The search order for sqlnet.ora and tnsnames.ora follows:

    1. For the sqlnet.ora file, current working directory from where an application is executed

    1. Directory specified by the TNS_ADMIN environment variable

      If the TNS_ADMIN environment variable is not defined as a variable on Windows NT, it may be in the registry.

    2. The node's global configuration directory. For Sun Solaris, this directory is /var/opt/oracle. Windows NT does not have a central directory.

    3. $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows operating systems

    If you have any other working client computers connecting to the selected Oracle database using Oracle Net, back up your existing files and copy both the working tnsnames.ora and sqlnet.ora files from the working computer onto the non-working client workstations. This eliminates the possibility of errors in the files.
  5. Test the Oracle Net foundation layer as described in "Testing Network Connectivity from the Client".

  6. If the connection still fails:

Resolving the Most Common Error Messages for Oracle Net Services

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, that depend on network services from Oracle Net Services, will normally generate an error message.

A list of the most common network error messages follows:

ORA-12154: TNS:could not resolve service name

Cause: Oracle Net could not locate the net service name specified in the tnsnames.ora configuration file.

Action: Perform these steps:

  1. Verify that a tnsnames.ora file exists.

  2. Verify that there are not multiple copies of the tnsnames.ora file.

  3. In the tnsnames.ora file, verify that the net service name specified in your connect string is mapped to a connect descriptor.

  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.

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

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

  8. Activate client tracing and repeat the operation.

Cause: Oracle Net could not locate the database service name or net service name specified in the directory server.

Action: Perform these steps:

  1. Verify that the database service or net service name entry exists in the directory that this computer was configured to use.

  2. Verify that the sqlnet.ora file includes the following entry:

    NAMES.DIRECTORY_PATH=(ldap, other_naming_methods)
    

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

ORA-12203: TNS:unable to connect to destination

Cause: The client cannot find the desired database.

Action: Perform these steps:

  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.

  3. If using local naming, verify that the tnsnames.ora file is stored in the correct directory.

  4. Verify that the listener on the remote node has started and is running. Enter:

    lsnrctl
    LSNRCTL> STATUS [listener_name]
    
    

    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]
    
    
  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

Cause: ORA-12203 error is a generic error that often shields secondary errors.

Action: Check the latest sqlnet.log file for secondary ORA messages.

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

Action: Verify that the net service name supplied in the connect string exists in the tnsnames.ora file or directory server and the ADDRESS information for that net service name is valid. Ask yourself the following questions:

  • Is the SERVICE_NAME correct?

  • Is the HOST correct?

  • Is the PORT specified correct?

Cause: The tnsnames.ora file is not located in the proper directory.

Action: Make sure the tnsnames.ora file is in the proper location.

See Also:

Step 4 in "Client Diagnostics" for configuration file location information 

Cause: The (HOST=server_name) parameter for TCP/IP addresses is not consistent on the client and server computers.

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

For TCP/IP, 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.

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]

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]

Cause: There are underlying network transport problems.

Action: Use the utilities supplied with the underlying networking protocol to verify that the protocol itself is functional. For example, with TCP/IP, try to ping the remote system.

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 displays:

Installed Oracle Net Tranport Protocols are:

    IPC
    TCP/IP
    BEQueath
    SSL
    RAW
...

ORA-12224: TNS:no listener

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

Action: Perform these steps:

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

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

ORA-12533: TNS:illegal ADDRESS parameters

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

Action: Correct the protocol address.

See Also:

Oracle9i Net Services Reference Guide for correct protocol syntax 

ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor

Cause: The service name specified in the connect descriptor is incorrect, or the database service is not registered with the listener.

Action: Perform these steps:

  1. Check to make sure the SERVICE_NAME specified in the connect descriptor is correct.

  2. Ensure the database instance is running. If the instance not running, start it so that it can register with the listener. You can use the Listener Control utility SERVICES command to see what services are currently registered with the listener.

ORA-12520: TNS:listener could not find available handler for requested type of server

Cause: The type of service handler requested by the client is incorrect or not registered for the requested SERVICE_NAME/INSTANCE_NAME, or the database instance is not registered with the listener.

Action: If you suspect the problem is the wrong type of service handler, perform these steps:

  1. If (server=value) is set is in the connect descriptor, ensure that the value is set to the appropriate service handler type for the database, that is, dedicated for dedicated server or shared for dispatchers. You can use the Listener Control utility SERVICES command to see what service handlers are currently registered with the listener.

  2. If USE_DEDICATED_SERVER is set to ON in the sqlnet.ora file, then ensure the database is configured to use dedicated servers. If it is not, set this parameter to off.

  3. Ensure that the database instance is running. If the instance not running, start it so that it can register with the listener.

ORA-12521: TNS:listener could not resolve INSTANCE_NAME given in connect descriptor

Cause: The INSTANCE_NAME in the connect descriptor is incorrect, or the database instance is not registered with the listener.

Action: Perform these steps:

  1. Check to make sure the service name specified in the connect descriptor is correct.

  2. Ensure the database instance is running. If the instance not running, start it so that it can register with the listener. You can use the Listener Control utility SERVICES command to see what instances are currently registered with the listener.

ORA-12545: TNS:name lookup failure

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

Action: Perform these steps:

  1. Verify that the ADDRESS in the tnsnames.ora file and the listener.ora file is correct.

  2. Verify that the listener on the remote node has been started. Enter:

    lsnrctl
    LSNRCTL> STATUS [listener_name]
    
    

    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-12560: TNS:protocol adapter error

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

Cause: Perform these steps:

  1. Turn on tracing and repeat 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 error has occurred on the database server.

Action: Check the alert_sid.log on the server. The location of alert_sid.log is specified by the BACKGROUND_DUMP_DEST initialization parameter.

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 retransmission count.

See Also:

Operating system documentation for more information about troubleshooting this error 

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 computer that had no local Oracle database installed.

Action: Specify a connect string.

Troubleshooting Directory Naming Errors

Directory naming issues associated with connectivity errors such as ORA-12154, ORA-12203, or ORA-12224 for database service or net service name entries in a directory server require analysis of the data. You can analyze the data contained within a directory server with the ldifwrite command line tool.

ldifwrite enables you to convert all or part of the information residing in a directory server to LDAP Data Interchange Format (LDIF). The ldifwrite tool performs a subtree search, including all entries below the specified distinguished name (DN), including the DN itself.

The ldifwrite tool syntax is as follows:

ldifwrite -c net_service_name/database_service -b base_DN -f ldif_file 

Table 17-1 ldapwrite Arguments

Argument  Description 

-c net_service_name/database_service 

Specify the net service name or database service name that will connect you to the directory server. 

-b base_DN 

Specify the base of the subtree to be written out in LDIF format. 

-f ldif_file 

Specify the input file name. 

The following example writes all the Oracle Net Services entries under dc=us,dc=acme,dc=com into the output1.ldi file:

ldifwrite -c ldap -b "dc=us,dc=acme,dc=com" -f output.ldif

Oracle Names LDAP Proxy Server Error Reporting

Errors in the region load operation will be reported in the Oracle Names server log file (names.log). These errors may range from failure to contact the directory server to errors with the query for all, some, or one of the records.

Some directories, such as Oracle Internet Directory, have limits on ldapsearch operations. There are settings in the directory server that limit the number of objects returned by the search and the amount of time spent performing a search.

Increasing Search Size Limit

The size limit specifies how many objects can be returned from a search. The default limit is 1000. If this limit is exceeded, you will see the following errors in the names.log file:

NNO-00062: cannot load domain data from configuration database
NNO-00850: Error: LDAP query returns 4

You can also use the ldapsearch command line tool to mimic what the Oracle Names server will do when it loads its region. The following syntax shows loading data from DN (dn:dc=acme,dc=com):

ldapsearch -p 389 -h host -b "dc=acme,dc=com" 
"(objectclass=orclNetService)(objectclass=orclService)"

After returning the allowed number of object, ldapsearch returns the following error message:

ldapsearch: Sizelimit exceeded

You can modify the size limit using the following sample LDIF file output. Enter the appropriate DN. In addition, set orclsizelimit high enough to allow for the number of databases defined in the region in the directory server, with a little room for future expansion.

dn:
changetype: modify
replace: orclsizelimit
orclsizelimit: 5000

Increasing the Search Time Limit

The time limit specifies the amount of time that can be spent performing a search. The default time limit is 10 seconds. Ten seconds is sufficient to query for roughly 1,000 object, which is sufficient for most searches. If the query exceeds the time limit, you will see the following errors in the names.log file:

NNO-00062: cannot load domain data from configuration database
NNO-00850: Error: LDAP query returns 105

You can modify the time limit using the following sample LDIF file output. Enter the appropriate DN.

dn:
changetype: modify
replace: orcltimelimit
orcltimelimit: 20

The time limit is applied at both the directory server and API levels. Therefore, in addition to resetting the directory server time limit, you will also need to set the TIMEOUT sub-parameter of NAMES.ADMIN_REGION. For example:

NAMES.ADMIN_REGION= 
 (REGION= 
  (TIMEOUT=20)
  (TYPE=ldap)
  (HOST=dlsun1598)
  (PORT=389)
  (SUBTREE=(BASE=dc=acme,dc=com)))

Troubleshooting Tips from the Field for Oracle Net Services

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

Questions to Ask When Troubleshooting Oracle Net Services

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

Troubleshooting Network Problems Using Log and Trace Files

Oracle Net Services 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.

Logging Error Information for Oracle Net Services

All errors encountered in Oracle Net Services 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 contains these topics:

Oracle Net 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 17-1 depicts the relationship among error stack components and Oracle Net.

Figure 17-1 Error Stack Components Mapped to Oracle Net


Text description of net81121.gif follows
Text description of the illustration net81121.gif

The error stack components in Figure 17-1 are described in Table 17-2.

Table 17-2 Error Stack Components :
Error Stack Component  Description 

NI  

Network Interface. This layer provides a generic interface for Oracle clients, servers, or external processes to access Oracle Net functions. The NI layer handles the "break" and "reset" requests for a connection.

NI uses the Network Routing (NR) layer to obtain network route information for pre-Oracle9i clients, and the Network Naming (NN) layer to resolve names to connect descriptors. For Oracle9i clients, NI goes directly to the Network Session (NS) layer.  

    NN

 

Network Naming (Oracle Names). This layer resolves connect identifiers to connect descriptors. 

NS 

Network Session (main and secondary layers). These layers receive requests from NI, and settle all generic computer-level connectivity issues, such as: the location of the server or destination (open, close functions); whether one or more protocols will be involved in the connection (open, close functions); and how to handle interrupts between client and server based on the capabilities of each (send, receive functions).

NS uses NR to route the network session to the destination and Network Authentication (NA) to negotiate any authentication requirements with the destination. 

    NR

 

Network Routing. This layer routes the network session to the destination. 

    NA

 

Network Authentication. This layer negotiates authentication and encryption requirements. 

NT 

Network Transport (main, secondary, and operating system layers). These layer map Oracle Net foundation layer functionality to industry-standard protocols. 

Example: Error Stack

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

sqlplus scott/tiger@hrserver.com 

The following error displays:

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 sqlnet.log file (Figure 17-2) contains an error stack corresponding to the ORA-12203 error.

Figure 17-2 sqlnet.log File

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

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

Oracle Net Services Log File Names

Each Oracle Net Services component produces its own log file. Table 17-3 provides the default file names and a description of the information they contain.

Table 17-3 Oracle Net Log Files

Log File  Contains error information about the... 

sqlnet.log 

Client or database server 

listener.log 

Listener 

names.log 

Oracle Names Server 

cman_pid.log on UNIX

cmanpid.log on Windows NT 

Oracle Connection Manager CMGW gateway process 

cmadm_pid.log on UNIX

cmadmpid.log on Windows NT 

Oracle Connection Manager CMADMIN administrative process 

Setting Oracle Net Services 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 described in Table 17-4.

Table 17-4 Oracle Net Log Parameters

Network Component  Configuration Files 

Client 

sqlnet.ora 

Database Server 

sqlnet.ora 

Listener 

listener.ora 

Oracle Names Server 

names.ora  

Oracle Connection Manager 

cman.ora 

This section contains these topics:

sqlnet.ora Log Parameters

Table 17-5 describes the log parameters settings that can be set in the sqlnet.ora file.

Table 17-5 sqlnet.ora Log Parameters

sqlnet.ora Parameter  Oracle Net Manager Field  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 database 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 

Not applicable 

Sets the name of the log file for the database server. By default the log name is sqlnet.log

listener.ora Log Parameters

Table 17-6 describes the log parameters settings that can be set in the listener.ora file.

Table 17-6 listener.ora Log Parameters

listener.ora Parameter  Oracle Net Manager Field  Description 

LOG_DIRECTORY_listener_name and

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 defaulted to listener.log

names.ora Log Parameters

Table 17-7 describes the log parameters settings that can be set in the names.ora file.

Table 17-7 names.ora Log Parameters

names.ora Parameter  Oracle Net Manager Field  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 Log Parameters

Table 17-8 describes the log parameters settings that can be set in the cman.ora file.

Table 17-8 cman.ora Log Parameters

cman.ora Parameter  Description 

LOG_LEVEL 

Establishes the level of logging. Five levels are supported:

  • 0--No log output

  • 1--Basic reporting

  • 2--RULE_LIST matching lookup reporting

  • 3--Relay blocking reporting

  • 4--Relay I/O counts reporting

The CMGW gateway process creates a log file called cman_pid.log on UNIX and cmanpid.log on Windows NT. The CMADMIN administrative process creates a log file called cmadm_pid.log on UNIX and cmadmpid.log on Windows NT. 

Setting Oracle Net Log Parameters in Configuration Files

Logging parameters for the sqlnet.ora file, listener.ora files and names.ora file can be set with the Oracle Net Manager. The cman.ora file logging parameters must be set manually.

See Also:

Oracle9i Net Services Reference Guide  

To set logging parameters:

  1. Start Oracle Net Manager.

    See Also:

    "Starting Oracle Net Manager" 

  2. Specify the log parameters:

    Log File  Set logging parameters here... 

    sqlnet.log 

    1. In the navigator pane, expand Local > Profile.

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

    3. Choose the Logging tab.

    4. Specify the settings.

     

    listener.log 

    1. In the navigator pane, expand Local > Listeners.

    2. Select a listener.

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

    4. Choose the Logging and Tracing tab.

    5. Specify the settings.

     

    names.log 

    1. In the navigator pane, expand Oracle Names Servers.

    2. Select an Oracle Names server.

    3. From the list in the right pane, select Configure Server.

    4. Choose the Adv. tab.

    5. Specify the log directory and file name.

     
  3. Choose File > Save Network Configuration.

Setting Oracle Net Log Settings During Runtime of Control Utilities

Logging can be set during runtime of 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:

  1. Start Oracle Net Manager.

    See Also:

    "Starting Oracle Net Manager" 

  2. In the navigator, expand the Oracle Names Servers folder.

  3. Select an Oracle Names server.

  4. From the list in the right pane, select Manage Server.

  5. Choose the Logging tab.

  6. Specify the log directory and file name.

  7. Choose File > Save Network Configuration.

Using Oracle Net 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 nonzero 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 repeat the statement that produced the error message.

Analyzing Listener Log Files

This section describes what is recorded in the listener log file, including:

Listener Log Audit Trail Information

The listener log file contains audit trail information that enables you to gather and analyze network usage statistics, as well as information indicating the following:

Format of the Listener's Log Audit Trail

The Audit Trail formats text into the following fields:

Timestamp * Connect Data * [Protocol Info] * Event * [SID | Service] * Return 
Code

Properties of the Audit Trail are as follows:

Example: Listener Log Event for Successful Reload Request

Typical output to the log file upon a RELOAD request follows.

14-SEP-1999 00:29:54 *
(connect_
data=(cid=(program=)(host=dlsun1013)(user=jdoe))(command=stop)(arguments=64)(ser
vice=listener)(version=135290880))
* stop * 0
Example: Listener Log Event for Successful Connection Request

Typical output to the log file upon a connection request follows.

10-AUG-1999 15:28:58 * 
(connect_data=(service_name=sales.us.acme.com)(cid=(program=)(host=dlsun1013)
(user=jdoe))) 
* (address=(protocol=tcp)(host=144.25.185.246)(port=41349)) * establish 
* sales.us.acme.com * 0 
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.

Listener Service Registration Event Information

The listener records service registration events. During service registration, the instance background process PMON process provides the listener with information about the following:

The following service registration-related events are recorded in the listener.log file:

Table 17-9 Service Registration Event Log Information

Event  Description 

service_register 

The listener received registration information for an instance. 

service_update 

The listener received updated registration information for a particular instance, such as dispatcher or instance load information. 

service_died 

The listener lost its connection to PMON. All registration information for the instance is discarded. Clients will be unable to connect to the instance until PMON registers it again. 

Format of the Listener Service Registration Information

The service registration events are formatted into the following fields:

Timestamp * Event *  Instance Name * Return Code

Properties of service registration fields are as follows:

Example: Listener Log with Service Registration Events

The following example shows a log file with service registration events. Notice how the listener is able to receive a client request after a successful service_register event, but is unable to receive client requests after a service_died event.

------------------------------- 
10-AUG-1999 15:28:43 * service_register * sales * 0 
10-AUG-1999 15:28:43 * service_register * sales * 0 
10-AUG-1999 15:28:58 * 
(connect_data=(service_name=sales.us.acme.com)(cid=(program=)(host=dlsun1013)
(user=jdoe))) 
* (address=(protocol=tcp)(host=144.25.185.246)(port=41349)) * establish 
* sales.us.acme.com * 0 
10-AUG-1999 15:38:44 * service_update * sales * 0 
10-AUG-1999 15:38:44 * service_update * sales * 0 
10-AUG-1999 15:48:45 * service_update * sales * 0 
10-AUG-1999 15:48:45 * service_update * sales * 0 
10-AUG-1999 15:50:57 * 
(connect_data=(service_name=sales.us.acme.com)(cid=(program=)(host=dlsun1013)(u
ser=jdoe))) 
* (address=(protocol=tcp)(host=144.25.185.246)(port=41365)) * establish 
* sales.us.acme.com * 0 
10-AUG-1999 15:51:26 * service_died * sales * 12537 
10-AUG-1999 15:51:26 * service_died * sales * 12537 
10-AUG-1999 15:52:06 * 
(connect_data=(service_name=sales.us.acme.com)(cid=(program=)(host=dlsun1013)(u
ser=jdoe))) 
* (address=(protocol=tcp)(host=144.25.185.246)(port=41406)) * establish 
* sales.us.acme.com * 12514 
TNS-12514: TNS:listener could not resolve SERVICE_NAME given in connect 
descriptor  
--------------------------------

Listener Direct Hand-Off Information

The listener records direct hand-off events to dispatchers. These events are formatted into the following fields:

Timestamp * Presentation * Handoff  * Error Code

Properties of direct hand-off fields are as follows:

Example: Listener Log Event for Direct Hand-Off

A direct hand-off event in the log file is shown in the following example.

21-MAY-1999 10:54:55 * oracle.aurora.net.SALESHttp2 * handoff * 0

Analyzing Oracle Connection Manager Logs

Oracle Connection Manager generates two types of log files: one for its CMGW gateway process (cman_pid.log) and one for its CMADMIN administrative process.

Figure 17-3 and Figure 17-4 show examples of the log files.

Figure 17-3 cman_pid.log

(TIMESTAMP=30-OCT-98 18:03:10)(EVENT=10)(VERSION=8.1.6.0.0)
(TIMESTAMP=30-OCT-98 18:03:10)(EVENT=36)(rule_list= 
(rule=(src=spcstn)(dst=x)(srv=x)(act=accept)))
(TIMESTAMP=30-OCT-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-OCT-98 18:03:10)(EVENT=34)(ADDRESS_LIST= 
(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1610)(QUEUESIZE=32)))
(TIMESTAMP=30-OCT-98 18:03:12)(EVENT=38)(COMMAND=2)
(TIMESTAMP=30-OCT-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-OCT-98 18:03:43)(EVENT=28)(RLYNO=0)(SINCE=30-OCT-98 
18:03:27)(STATISTICS=(IN=(BYTES=0)(PACKETS=0)(DCDS=0)(OUT=(BYTES=0)(PACKETS=0)(D
CDS=0)))


Figure 17-4 cmadm_pid.log

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

See Also:

"Analyzing Listener Log Files" on page 17-26  

cman_pid.log Event Codes

The cman_pid.log on UNIX and cmanpid.log on Windows NT reports events using event code numbers. The event code reported depends upon the log level set with the LOG_LEVEL parameter in the cman.ora file or with the Oracle Connection Manager Control utility command SET LOG_LEVEL. This section explains what each of these event codes represents.

Table 17-10 cman_pid.log Log Level 1 Event Codes

Code  Description 

10 

Gateway is starting up 

12 

Gateway is shutting down 

14 

Listening on TNS address(es) 

18 

Answer failed

See Also: "Reasons for Event Code 18" 

20 

Refusing in-coming call

See Also: "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 

<RULE_LIST>  

38 

Oracle Connection Manager Control utility command 

40 

Oracle Connection Manager Control utility 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 Oracle Connection Manager Control utility record 

25 

Command line argument is too long 

27 

Memory allocation failure 

29 

TNS error 

31 

TNS error while processing Oracle Connection Manager Control utility requests 

Reasons for Event Code 18

The answer can fail due to the following:

Code  Description 

Timed out 

Connect data buffer is too small  

Refused by TNS 

TNS packet checksum error 

Reasons for Event Code 20

The incoming call can be refused if:

Code  Description 

Gateway is shutting down  

Gateway is offline 

No connect data on in-coming call  

Bad connect data on in-coming call 

All relays are in use 

Unable to get relay buffers 

Fatal TNS error 

No available Oracle Advanced Security service 

Reject from rule filtering 

10 

Out-going call failed 

11 

Refused by Oracle Net/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 

17 

Reject from rule or bad connect string data 

Table 17-11 cman_pid.log Log Level 2 Event Codes

Code  Description 

102 

Answering in-coming call  

104 

Making out-going call  

105 

Accepting in-coming call 

106 

Rule match report  

Table 17-12 cman_pid.log Log Level 3 Event Codes

Code  Description 

202 

Call will block (no asynchronous TNS support)  

204 

Relay blocked

See Also: "Reasons for Event Code 204" 

206 

Buffer contains leftover data 

Reasons for Event Code 204

The relay can be blocked due to the following:

Code  Description 

Waiting for writer to be ready 

Waiting for writer to clear backlog 

WOULDBLOCK error on receive 

WOULDBLOCK or PARTIAL error on send 

Repeated WOULDBLOCK or PARTIAL send error 

Table 17-13 cman_pid.log Log Level 4 Event Codes

Code  Description 

302 

Read this many bytes 

304 

Wrote this many bytes 

306 

Wrote this many bytes on retry 

Oracle Net Tracing Error Information

Tracing produces a detailed sequence of statements that describe network events as they are executed. Tracing an operation enables you to obtain more information on the internal operations of the components of Oracle Net 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 contains topics:

Oracle Net Trace File Names

Each Oracle Net component produces its own trace file. Table 17-14 provides the default file names and a description of the information they contain.

Table 17-14 Oracle Net Trace Files

Trace File  Component 

sqlnet.trc 

Client 

svr_pid.trc 

Database server 

listener.trc 

Listener 

names.trc 

Oracle Names Server 

cman_pid.trc on UNIX

cmanpid.trc on Windows NT 

Oracle Connection Manager CMGW gateway process 

cmadm_pid.trc on UNIX

cmadmpid.trc on Windows NT 

Oracle Connection Manager CMADMIN administrative process 

Setting Oracle Net 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 described in Table 17-15.

Table 17-15 Oracle Net Trace Parameters

Trace Parameters  Configuration Files 

Client 

sqlnet.ora 

Server 

sqlnet.ora 

Listener 

listener.ora 

Oracle Names Server 

names.ora  

Oracle Connection Manager processes 

cman.ora 

This sections contains these topics:

sqlnet.ora Trace Parameters

Table 17-16 describes the trace parameters settings that can be set in the sqlnet.ora file.

Table 17-16 sqlnet.ora Trace Parameters

sqlnet.ora Parameter  Oracle Net Manager Field  Description 

TRACE_LEVEL_CLIENT 

Client Information: Trace Level 

Specifies 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 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 Oracle Support Services

 

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 for each client trace file. If the value is set to on, a process identifier is appended to the name of each trace file generated, so that several files can coexist. If the value is set to off, when a new trace file is created for a client, it overwrites the existing file.

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 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 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 Oracle Support Services

 

TRACE_DIRECTORY_SERVER 

Server Information: Trace Directory 

Establishes the destination directory for the database 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 TNSPING utility tracing parameters described in Table 17-17 to sqlnet.ora. The TNSPING utility determines whether or not a service (such as a database, an Oracle Names Server, or other TNS services) on a Oracle Net network can be successfully reached.

Table 17-17 TNSPING Trace Parameters

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 (zero) 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 Oracle Support Services

 

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 Trace Parameters

Table 17-18 describes the trace parameters settings that can be set in the listener.ora file.

Table 17-18 listener.ora Trace Parameters

listener.ora Parameter  Oracle Net Manager Field  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 (zero) 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 Oracle Support Services

 

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 Trace Parameters

Table 17-19 describes the trace parameters settings that can be set in the names.ora file.

Table 17-19 names.ora Trace Parameters

names.ora Parameter  Oracle Net Manager Field  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_LEVEL 

Not applicable 

Indicates the level of detail the trace facility records for the Oracle Names 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 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 Oracle Support Services

 

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 Trace Parameters

Table 17-20 describes the trace parameters settings that can be set in the cman.ora file.

Table 17-20 cman.ora Trace Parameters

cman.ora Parameter  Description 

TRACE_LEVEL 

Determines whether or not tracing is enabled for the Oracle Connection Manager

yes enables tracing for the Oracle Connection Manager. The proxy processes, the CMON process, and the listener process create trace files called cman_pid.trc, cman_mon.trc, and cman_lsnr.trc, respectively.  

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. 

Setting Oracle Net Trace Parameters in Configuration Files

sqlnet.ora, listener.ora and names.ora logging parameters can be set with the Oracle Net Manager. The cman.ora tracing parameters must be set manually.

See Also:

Oracle9i Net Services Reference Guide  

To set tracing parameters:

  1. Start Oracle Net Manager.

    See Also:

    "Starting Oracle Net Manager" 

  2. Specify the trace parameters:

    Trace File  Instruction 

    sqlnet.trc (for the client)

    svr_pid.trc (for the server) 

    1. In the navigator pane, expand Local > Profile.

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

    3. Choose the Tracing tab.

    4. Specify the settings.

     

    listener.trc 

    1. In the navigator pane, expand Local > Listeners.

    2. Select a listener.

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

    4. Choose the Logging and Tracing tab.

    5. Specify the settings:

     

    names.trc 

    1. In the navigator pane, expand the Oracle Names Servers folder.

    2. Select an Oracle Names server.

    3. From the list in the right pane, select Configure Server.

    4. Choose the Adv. tab.

    5. Specify the trace directory and file name.

     
  3. Choose File > Save Network Configuration.

Setting Oracle Net Trace Settings During Runtime of Control Utilities

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

Evaluating Oracle Net Traces

Trace files can help Oracle Support Service diagnose and troubleshoot network problems.

This section explains how to do basic analysis of trace files. The topics discussed include:

Flow of Data Packets Between Network Nodes

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

Oracle Net Data Packet Formats

Each line in the trace file begins with a procedure followed by a message. Following each procedure is a line of hexadecimal data representing actual data. The actual data that flows inside the packet is sometimes viewable to the right of the hexadecimal data.

Next is a list of the Oracle Net packet keywords and descriptions of the types of packets they represent:

Keyword  Packet Type 

NSPTCN 

Connect 

NSPTAC 

Accept 

NSPTRF 

Refuse 

NSPTRS 

Resend 

NSPDA 

Data 

NSPCNL 

Control 

NSPTMK 

Marker 

For example, the following line describes a procedure called "nscon" sending a NSPTCN packet over the network:

nscon: sending NSPTCN packet

Each packet has a keyword that denotes the packet type. All packet types begin with the prefix "nsp". It is helpful to remember this when reviewing trace files for specific packet information

Figure 17-5 provides typical packet information.

Figure 17-5 Packet Information

nscon: entry
nscon: doing connect handshake...
nscon: sending NSPTCN packet
nspsend: entry
nspsend: plen=187, type=1
nspsend: 187 bytes to transport
nspsend:packet dump
nspsend:00 BB 00 00 01 00 00 00  |........|
nspsend:01 33 01 2C 0C 01 08 00  |.3.,....|
nspsend:7F FF 7F 08 00 00 00 01  |........|
nspsend:00 99 00 22 00 00 08 00  |..."....|
nspsend:01 01 28 44 45 53 43 52  |..(DESCR|
nspsend:49 50 54 49 4F 4E 3D 28  |IPTION=(|
nspsend:43 4F 4E 4E 45 43 54 5F  |CONNECT_|
nspsend:44 41 54 41 3D 28 53 49  |DATA=(SI|
nspsend:44 3D 61 70 33 34 37 64  |D=ap347d|
nspsend:62 31 29 28 43 49 44 3D  |b1)(CID=|
nspsend:28 50 52 4F 47 52 41 4D  |(PROGRAM|
nspsend:3D 29 28 48 4F 53 54 3D  |=)(HOST=|
nspsend:61 70 32 30 37 73 75 6E  |ap207sun|
nspsend:29 28 55 53 45 52 3D 6D  |)(USER=m|
nspsend:77 61 72 72 65 6E 29 29  |warren))|
nspsend:29 28 41 44 44 52 45 53  |)(ADDRES|
nspsend:53 5F 4C 49 53 54 3D 28  |S_LIST=(|
nspsend:41 44 44 52 45 53 53 3D  |ADDRESS=|
nspsend:28 50 52 4F 54 4F 43 4F  |(PROTOCO|
nspsend:4C 3D 74 63 70 29 28 48  |L=tcp)(H|
nspsend:4F 53 54 3D 61 70 33 34  |OST=ap34|
nspsend:37 73 75 6E 29 28 50 4F  |7sun)(PO|
nspsend:52 54 3D 31 35 32 31 29  |RT=1521)|
nspsend:29 29 29 00 00 00 00 00  |))).....|
nspsend: normal exit
nscon: exit (0)

Pertinent Oracle Net Trace Error Output

When there is a problem an Oracle Net connection, the error code is logged in the trace file. Figure 17-6 depicts typical trace file output for a failed SQL*Plus connection to a database server.

Figure 17-6 Trace Example

[09-MAR-2001 13:34:07] nsprecv: entry
[09-MAR-2001 13:34:07] nsbal: entry
[09-MAR-2001 13:34:07] nsbgetfl: entry
[09-MAR-2001 13:34:07] nsbgetfl: normal exit
[09-MAR-2001 13:34:07] nsmal: entry
[09-MAR-2001 13:34:07] nsmal: 44 bytes at 0x132d90
[09-MAR-2001 13:34:07] nsmal: normal exit
[09-MAR-2001 13:34:07] nsbal: normal exit
[09-MAR-2001 13:34:07] nsprecv: reading from transport...
[09-MAR-2001 13:34:07] nttrd: entry
[09-MAR-2001 13:35:09] nttrd: exit
[09-MAR-2001 13:35:09] ntt2err: entry
[09-MAR-2001 13:35:09] ntt2err: Read unexpected EOF ERROR on 10
[09-MAR-2001 13:35:09] ntt2err: exit
[09-MAR-2001 13:35:09] nsprecv: transport read error
[09-MAR-2001 13:35:09] nsprecv: error exit
[09-MAR-2001 13:35:09] nserror: entry
[09-MAR-2001 13:35:09] nserror: nsres: id=0, op=68, ns=12537, 
ns2=12560;
nt[0]=507, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
[09-MAR-2001 13:35:09] nscon: error exit
[09-MAR-2001 13:35:09] nsdo: nsctxrnk=0
[09-MAR-2001 13:35:09] nsdo: error exit
[09-MAR-2001 13:35:09] nscall: unexpected response
[09-MAR-2001 13:35:09] nsclose: entry
[09-MAR-2001 13:35:09] nstimarmed: entry
[09-MAR-2001 13:35:09] nstimarmed: no timer allocated
[09-MAR-2001 13:35:09] nstimarmed: normal exit
[09-MAR-2001 13:35:09] nsdo: entry
[09-MAR-2001 13:35:09] nsdo: cid=0, opcode=98, *bl=0, *what=0,
uflgs=0x440, cflgs=0x2
[09-MAR-2001 13:35:09] nsdo: rank=64, nsctxrnk=0
[09-MAR-2001 13:35:09] nsdo: nsctx: state=1, flg=0x4201, mvd=0
[09-MAR-2001 13:35:09] nsbfr: entry
[09-MAR-2001 13:35:09] nsbaddfl: entry
[09-MAR-2001 13:35:09] nsbaddfl: normal exit
[09-MAR-2001 13:35:09] nsbfr: normal exit
[09-MAR-2001 13:35:09] nsbfr: entry
[09-MAR-2001 13:35:09] nsbaddfl: entry
[09-MAR-2001 13:35:09] nsbaddfl: normal exit
[09-MAR-2001 13:35:09] nsbfr: normal exit
[09-MAR-2001 13:35:09] nsdo: nsctxrnk=0
[09-MAR-2001 13:35:09] nsdo: normal exit
[09-MAR-2001 13:35:09] nsclose: closing transport
[09-MAR-2001 13:35:09] nttdisc: entry
[09-MAR-2001 13:35:09] nttdisc: Closed socket 10
[09-MAR-2001 13:35:09] nttdisc: exit
[09-MAR-2001 13:35:09] nsclose: global context check-out (from slot 0)
complete
[09-MAR-2001 13:35:09] nsnadisc: entry
[09-MAR-2001 13:35:09] nadisc: entry
[09-MAR-2001 13:35:09] nacomtm: entry
[09-MAR-2001 13:35:09] nacompd: entry
[09-MAR-2001 13:35:09] nacompd: exit
[09-MAR-2001 13:35:09] nacompd: entry
[09-MAR-2001 13:35:09] nacompd: exit
[09-MAR-2001 13:35:09] nacomtm: exit
[09-MAR-2001 13:35:09] nas_dis: entry
[09-MAR-2001 13:35:09] nas_dis: exit
[09-MAR-2001 13:35:09] nau_dis: entry
[09-MAR-2001 13:35:09] nau_dis: exit
[09-MAR-2001 13:35:09] naeetrm: entry
[09-MAR-2001 13:35:09] naeetrm: exit
[09-MAR-2001 13:35:09] naectrm: entry
[09-MAR-2001 13:35:09] naectrm: exit
[09-MAR-2001 13:35:09] nagbltrm: entry
[09-MAR-2001 13:35:09] nau_gtm: entry
[09-MAR-2001 13:35:09] nau_gtm: exit
[09-MAR-2001 13:35:09] nagbltrm: exit
[09-MAR-2001 13:35:09] nadisc: exit
[09-MAR-2001 13:35:09] nsnadisc: normal exit
[09-MAR-2001 13:35:09] nsbfr: entry
[09-MAR-2001 13:35:09] nsbaddfl: entry
[09-MAR-2001 13:35:09] nsbaddfl: normal exit
[09-MAR-2001 13:35:09] nsbfr: normal exit
[09-MAR-2001 13:35:09] nsmfr: entry
[09-MAR-2001 13:35:09] nsmfr: 2256 bytes at 0x130508
[09-MAR-2001 13:35:09] nsmfr: normal exit
[09-MAR-2001 13:35:09] nsmfr: entry
[09-MAR-2001 13:35:09] nsmfr: 484 bytes at 0x1398a8
[09-MAR-2001 13:35:09] nsmfr: normal exit
[09-MAR-2001 13:35:09] nsclose: normal exit
[09-MAR-2001 13:35:09] nscall: connecting...
[09-MAR-2001 13:35:09] nsclose: entry
[09-MAR-2001 13:35:09] nsclose: normal exit
[09-MAR-2001 13:35:09] nladget: entry
[09-MAR-2001 13:35:09] nladget: exit
[09-MAR-2001 13:35:09] nsmfr: entry
[09-MAR-2001 13:35:09] nsmfr: 144 bytes at 0x132cf8
[09-MAR-2001 13:35:09] nsmfr: normal exit
[09-MAR-2001 13:35:09] nsmfr: entry
[09-MAR-2001 13:35:09] nsmfr: 156 bytes at 0x138e70
[09-MAR-2001 13:35:09] nsmfr: normal exit
[09-MAR-2001 13:35:09] nladtrm: entry
[09-MAR-2001 13:35:09] nladtrm: exit
[09-MAR-2001 13:35:09] nscall: error exit
[09-MAR-2001 13:35:09] nioqper:  error from nscall
[09-MAR-2001 13:35:09] nioqper:    nr err code: 0
[09-MAR-2001 13:35:09] nioqper:    ns main err code: 12537
[09-MAR-2001 13:35:09] nioqper:    ns (2)  err code: 12560
[09-MAR-2001 13:35:09] nioqper:    nt main err code: 507
[09-MAR-2001 13:35:09] nioqper:    nt (2)  err code: 0
[09-MAR-2001 13:35:09] nioqper:    nt OS   err code: 0
[09-MAR-2001 13:35:09] niomapnserror: entry
[09-MAR-2001 13:35:09] niqme: entry
[09-MAR-2001 13:35:09] niqme: reporting NS-12537 error as ORA-12537
[09-MAR-2001 13:35:09] niqme: exit
[09-MAR-2001 13:35:09] niomapnserror: returning error 12537
[09-MAR-2001 13:35:09] niomapnserror: exit
[09-MAR-2001 13:35:09] niotns: Couldn't connect, returning 12537
[09-MAR-2001 13:35:10] niotns: exit
[09-MAR-2001 13:35:10] nsbfrfl: entry
[09-MAR-2001 13:35:10] nsbrfr: entry
[09-MAR-2001 13:35:10] nsbrfr: nsbfs at 0x132d90, data at 0x132dc8.
[09-MAR-2001 13:35:10] nsbrfr: normal exit
[09-MAR-2001 13:35:10] nsbrfr: entry
[09-MAR-2001 13:35:10] nsbrfr: nsbfs at 0x1248d8, data at 0x132210.
[09-MAR-2001 13:35:10] nsbrfr: normal exit
[09-MAR-2001 13:35:10] nsbrfr: entry
[09-MAR-2001 13:35:10] nsbrfr: nsbfs at 0x12d820, data at 0x1319f0.
[09-MAR-2001 13:35:10] nsbrfr: normal exit
[09-MAR-2001 13:35:10] nsbfrfl: normal exit
[09-MAR-2001 13:35:10] nigtrm: Count in the NI global area is now 1
[09-MAR-2001 13:35:10] nigtrm: Count in the NL global area is now 1

The most efficient way to evaluate error codes is to find the most recent nserror entry logged, as the session layer controls the connection. The most important error messages are the ones at the bottom of the file. They are the most recent errors and the source of the problem with the connection.

For information about the specific return codes, use the Oracle UNIX error tool oerr, by entering the following at any command line:

oerr tns error_number

As an example, consider the following nserror entry logged in the trace file shown in Figure 17-6:

[09-MAR-2001 13:35:09] nserror: nsres: id=0, op=68, ns=12537, 
ns2=12560;
nt[0]=507, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0

Using oserr, you can find out more information about return codes 12537 and 507. (Bold denotes user input.)

oerr tns 12537
12537, 00000, "TNS:connection closed"
// *Cause: "End of file" condition has been reached; partner has
disconnected.
// *Action: None needed; this is an information message.

oerr tns 507
00507, 00000, "Connection closed"
// *Cause: Normal "end of file" condition has been reached; partner has
// disconnected.
// *Action: None needed; this is an information message.

Contacting Oracle Support Services

If you are still unable to resolve your problems, or if you are requested to contact Oracle Support Services to report the error, please have the following information at hand:


Go to previous page Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback