The cause and solution of Oracle's TNS-12502 error

Source: Internet
Author: User

A few days ago, I received a letter from a reader friend asking the following questions:

There was an error in my listening log Tns-12502:tns:listener received no connect_data from client

After looking for information to understand that this error should be the client Tnsnames.ora did not write connect_data, I checked the client machine did not find the problem.

The current phenomenon:

1. This error occurs every few minutes (see attachment), even in the early hours of the morning, where we have no developers to use Oracle in the wee hours.

2, so far also did not find the client machine can not connect the database properly.

Today is the time to study, for TNS-12502 errors, Oracle's explanation is as follows:

Error: ORA-12502 / TNS-12502
Text: TNS:listener received no CONNECT_DATA from client
Cause: No CONNECT_DATA was passed to the listener.
Action: Check that the service name resolved from TNSNAMES.ORA has the
CONNECT_DATA component of the connect descriptor.

That is, this problem occurs only if Connect_data is not included in the Tnsnames.ora file.

The log may be logged as an error if the listener port is detected through some network tools or the HA tool. We can simply simulate the connectivity of the client through the Telnet database server's 1521 port test:

C:\>telnet 172.16.30.11 1521

The following information is recorded in the log at this time:

TNS-12502:
TNS:listener received no CONNECT_DATA from client
09-AUG-2006 16:21:03 * 12502
TNS-12502: TNS:listener received no CONNECT_DATA from client
09-AUG-2006 16:21:13 * 12502
TNS-12502: TNS:listener received no CONNECT_DATA from client
09-AUG-2006 16:21:22 * 12502
TNS-12502: TNS:listener received no CONNECT_DATA from client

If the client is normal, such errors do not affect the application, and of course can be thoroughly examined to find the root cause.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.