TORA-12154 and TNS-03505: unable to resolve name

Source: Internet
Author: User

Recently after installing the Oracle Developer Suite, you cannot log on to the system and enter an account login error: Ora-12154:tns: Unable to resolve the specified connection flag.

Viewed from the Internet generally because the configuration file does not have the corresponding instance name, then I entered c:/tnsping myoracle (my ora instance name) to see if the Tnsnames.ora and Sqlnet.ora are configured correctly, the results of an error, prompt: TNS-03505: The name description configuration file could not be resolved incorrectly.

Then I'll look at%oracle_home%/db_1/network/admin/tnsnames. ORA file that contains the name of the instance I need to log in to. I was trying to tnsping the command and found that the parameter file it was looking for Sqlnet.ora not the Sqlnet.ora under Oracle that I installed by default, but Oracle Developer The Sqlnet.ora file under the network folder under the Suite directory copies the configuration contents of the Tnsnames.ora in the installation directory to the past, OK.

MyOracle =
(DESCRIPTION =
(address = (PROTOCOL = TCP) (HOST = 127.0.0.1) (PORT = 1521))
(Connect_data =
(SERVER = dedicated)
(service_name = myoracle)
)
)

As to why it was modified to use the parameter file in that directory, no research has been processed. Note the process first

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.