Oracle Network Products Troubleshooting Guide
Sorting Out Networking Error Messages
Error messages may originate from many sources, especially in distributed applications in which many components interact. Applications such as SQL*Plus, SQL*Forms, or Pro*C applications, which depend on network services from network applications such as SQL*Net, display a single message for errors encountered. This concise error message is often insufficient to identify the specific cause of a network error. A network error may originate at any of several different layers within the TNS products, but the user application reports only the highest level error. The actual cause of the error can be found in the error stack produced by all the layers of Oracle network products such as SQL*Net and Oracle Protocol Adapters.
Error Stacks
The relationships among Oracle network products as they might appear in an error stack is shown in Figure 1 - 1:
Figure 1 - 1. Network Products and Error Stack Components
The layers shown in this figure have the following meanings:
Note: Your network may not include all of these components.
When a network error occurs, each layer contributes to the error stack. Layers that know nothing about the error report nothing, while other layers report what they know about the error. For example, suppose that a user of a client application tries to establish a connection with a database server using SQL*Net version 2 and TCP/IP, and the user enters:
sqlplus scott/tiger@hrserver.world
After the banner of SQL*Plus appears on the screen, the following error is displayed:
ORA-12203: TNS:Unable to connect to destination
This message indicates that the error message file on the Oracle server could not be opened, because the connection to the server failed. However, 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, if it is able to locate the appropriate message files on the client machine. This error stack can also be captured in trace files by invoking the trace facility and trying the connection again.
In the client-side log output file, SQLNET.LOG, an error stack corresponding to the SQL*Plus ORA-12203 error contains the following message:
***********************************************************
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: Version 2.1.3.0.0 -
Oracle Bequeath NT Protocol Adapter for SunOS: Version
2.1.3.0.0
Unix Domain Socket IPC NT Protocol Adaptor for SunOS:
Version 2.1.3.0.0 -
TCP/IP NT Protocol Adapter for SunOS: Version 2.1.3.0.0
Time: 07-FEB-94 17:36:38
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
Each of the six middle layers shown in Figure 1-1 contributes an error status to the error stack. In this example, the actual cause of the error is introduced and reported at the "nt main" layer. When the error number 511 is propagated to the upper layers, the same error is interpreted by the ns secondary, ns main, and nr layers to be errors 12560, 12541, and 12203 respectively. These error messages are all listed of this guide, along with a cause and suggested corrective action for each.
Oracle Networking Error Prefixes
Oracle network product error messages are identified by the following prefixes:
- The prefix "TNS" means that the error message is generated by an Oracle network product. For example, an application may display the following error:
TNS-00103: Parameter file initialization error.
The error is documented of this guide, and the information explains the error and offers a recommended action.
- The prefix "ORA" is the generic prefix returned by all Oracle applications, but within that category network product-specific errors can be identified by the "TNS:" prefix at the beginning of the error string. Some network product error messages may appear with either the ``ORA-" or the ``TNS-" prefix, depending on the source of the error message. In these cases, the message text is the same regardless of whether the message is looked up in the ORA or the TNS message files.
In addition, Secure Network Services messages have the ``ORA-" prefix.
Error messages for the Oracle Protocol Adapters, TNS, SQL*Net, the Oracle MultiProtocol Interchange, and Secure Network Services are documented, regardless of their prefix.
For example, although the following error has the "ORA-" prefix used by all Oracle products, the ``TNS:" characters in the beginning of the message text identify it as an Oracle network product error message. The error is documented of this guide, and the information explains the error and offers a recommended action.
ORA-12203: TNS: Unable to connect to destination
- The prefix "NMC" indicates that an error message is generated by the Oracle Network Manager. The prefix "NMO" indicates error messages generated by the network object layer of the Network Manager. The prefix "NMR" is for messages generated from the ROS file level of the Network Manager. For example, the Network Manager may display the following error:
NMC-00010: Resource file cannot be opened
The error is documented of this guide, and the information explains the error and offers a recommended action.
- The prefix "NNO" precedes error messages generated by a Names Server. The prefix "NNC" is for error messages generated by an Oracle Names client, and those common to both server and client. The prefix "NNL" is for error messages generated by the Oracle Names Control Utility.
The "NMP" prefix is for error messages generated by the Network Management Protocol, the part of the Names Server that handles SNMP queries. The "NPL" prefix precedes error messages generated by the Network Presentation Layer component of the Names Server. (Network Management Protocol and Network Presentation Layer error messages are typically not visible to the user.)
For example, a Names Server may display the following error:
NNO-00052: invalid domain description list
The error is documented of this guide, and the information explains the error and offers a recommended action.
- The prefix "NMS" precedes error messages related to Oracle SNMP Support. Chapter 9 explains the error and offers a recommended action.
- The prefix "NNF" precedes error messages related to native naming adapters. Chapter 10 explains the error and offers a recommended action.
Error Ranges
Oracle network product error messages are listed in Chapter 6 through Chapter 10. All error messages are identified by error message numbers. The error messages are organized in ascending numerical order and are separated into sections based on the error message prefix. Within each section, the error messages are organized into subsections based on the component that reported the error. The prefixes, error message numbers, and the product components where they are generated are shown in Table 1-1:
Table 1 - 1.
Error Message Prefix, Numbers, and Components
Prefix
| Error Number
| Component
| Type of Error
|
TNS
| 1 to 500
| NR (routing)
| MultiProtocol
Interchange
|
TNS
| 501 to 1000
| NT (transport)
| Protocol Adapter
|
TNS
| 1001 to 2500
| Listener Control Program
| Listener Control
Program
|
TNS
| 2501 to 3500
| NA Internal Messages
| NAU (Authentication) and NAE (Encryption)
|
ORA/TNS
| 12150 to 12195
| SQL*Net
| Oracle SQL*Net
|
ORA/TNS
| 12196 to 12285
| NR (routing)
| TNS
|
ORA/TNS
| 12500 to 12530
| Listener
| Listener to client
|
ORA/TNS
| 12531 to 12629
| NS (session)
| TNS
|
ORA/TNS
| 12630 to 12699
| NA (Native Services)
| Native Services (Authentication and Encryption)
|
NMC
| 00001 to 11000
| Network
Manager
| Oracle Network Manager
|
NMO
| 01001 to 01300
| Object Layer
| Oracle Network Manager Object Store
|
NMR
| 00001 to 00500
| Resource Layer
| Oracle Network Manager
|
NNO
| 00050 to 00711
| NN (Network Naming)
| Oracle Names Server
|
NNC
| 00001 to 00501
| NN (Network Naming)
| Oracle Names client and server
|
NNL
| 00001 to 01073
| NN (Network Naming)
| Oracle Names Control Utility
|
NMP
| 00001 to 00011
| NMP (Network Management Protocol)
| Oracle Names client and server
|
NPL
| 00100 to 00420
| NPL (Network Presentation Layer)
| Network Presentation Layer
|
NMS
| 00001 to 00275
| NMS (Oracle SNMP Support)
| Oracle SNMP Support
|
NNF
| 00001 to 04999
| NNF (Native Naming Adapters)
| Native Naming Adapters
|
Error Messages and Documentation
Error messages you may encounter while using Oracle network products fall into the categories shown in Table 1-2:
Table 1 - 2.
Error Messages and Related Documentation
Type of Error Message
| Where to Find Information
|
Application
| Application reference manual
|
Operating system
| Operating system documentation
|
Network protocol
| Protocol-specific documentation
|
Oracle network software
| This guide
|
SQL*Net Version 2.x
|
|
MultiProtocol Interchange
|
|
TNS
|
|
Secure Network Services
|
|
Oracle Protocol Adapters
Network Manager
Oracle Names
|
|
|
|
|
|
SNMP Support
| This guide
|
Native Naming
|
|