Ora-12154 TNS cannot handle service names (the execution of program paths is inconsistent, enumeration of several network methods, there are other solutions ?)

Source: Internet
Author: User
There are many different solutions on the internet, mainly because the causes are different, but Oracle only gives the same error Code , A little unfriendly.
1) modify Tnsnames. ora solutions account for the majority See 1
2) Sqlnet. ora For more information, see
3) version problems also exist See 3
4) There are also alternative methods See 4
I tried this method (coincidentally) and was inspired by Method 4. However, the method of execution path is different here. Server: 9.2; client: 9.0; test code:

The problem is: Debugging The following error occurs:

However, directly run Program The following message is displayed: the connection is successful.

It took more than an hour to solve a problem, but I don't know the root cause of the problem. I am a bit ashamed to provide you with clues to save your time.

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.