Understanding SQL*Net
Common Errors During Testing
If you are unsuccessful in bringing up a listener, Interchange, or Names Server, or fail to make a connection to a database, check to see if the cause is one of the following common errors.
- Files were put in the wrong place.
Both the listener and the Interchange will indicate that they cannot start because configuration files could not be found. Check your operating system-specific documentation to see that the LISTENER.ORA file has been placed correctly on the listener machine, and the INTCHG.ORA, TNSNAV.ORA, and TNSNET.ORA files are placed correctly on the Interchange machine. (Refer to "Testing the Network Configuration" in this chapter, and to the Oracle Network Products Troubleshooting Guide for more information.)
If you are using TNSNAMES.ORA files, make sure they were created with Network Manager, and not created by hand. If you are using Oracle Names Servers, make sure they have been started. Also make sure that NAMES.ORA is placed correctly, and that SQLNET.ORA file contains the preferred Names Server parameter. If a native naming service such as NIS is in use, make sure that the appropriate Native Naming adapter has been installed on clients and servers, and that service names have been properly loaded into it. Refer to your operating system-specific documentation for information.
Another process may already be using the address listed in LISTENER.ORA. On some protocols such as TCP/IP, DECnet, and OSI, each network service on a node must use a unique port or socket. On other network protocols such as SPX/IPX or NetBIOS, each network service name must be unique for the entire network. Another network service may be using the same configuration. Contact your network administrator to evaluate whether the network address is available.
- When trying to connect to a database, you may get the message ORA-12203: "TNS:Unable to connect to destination" .
Use the LSNRCTL utility to start the listener on the server machine. See Appendix C for further information.
- When trying to make a connection from a client, you may get the message ORA-12154:"TNS:Could not resolve service name".
The service name you requested is not listed in the TNSNAMES.ORA file, or the TNSNAMES.ORA file has been placed incorrectly. See Appendix C for further information.
- When trying to connect to a database, you may get the message ORA-1034: "Oracle Not Available".
The database is not running on the server machine. A listener alone does not provide a database connection; the database instance must also be started.
To correct this problem, follow these steps:
- Reconfigure QUEUESIZE in LISTENER.ORA, TNSNET.ORA, or NAMES.ORA to be a larger value (based on anticipated simultaneous connect requests).
Note: The default for QUEUESIZE is operating system-specific. Similarly, it is dependent upon the operating system whether the QUEUESIZE parameter will be recognized and be put into effect.
- When attempting to stop the listener, you may get the message TNS-01169: "The listener has not recognized the password." Enter the SET PASSWORD command from within LSNRCTL, and then enter the STOP command to stop the listener.
Other common errors are listed in Appendix C of this manual. All the error messages generated by SQL*Net, the Interchange, Oracle Names, Oracle Native Naming Adapters, and Oracle Network Manager and their underlying layers can be found in the Oracle Network Products Troubleshooting Guide. The Oracle Network Products Troubleshooting Guide also contains information about how to interpret log files and how to use the trace facility for troubleshooting purposes.