
Figure 1 - 1. Network Products and Error Stack Components
The layers shown in this figure have the following meanings:
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.
TNS-00103: Parameter file initialization error.
of this guide, and the information
explains the error and offers a recommended action.
, regardless of their prefix.
of this guide, and the information
explains the error and offers a recommended action. ORA-12203: TNS: Unable to connect to destination
NMC-00010: Resource file cannot be opened
of this guide, and the information
explains the error and offers a recommended action. NNO-00052: invalid domain description list
of this guide, and the information
explains the error and offers a recommended action. 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 |
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 | |