Ora-12154: tns: Unable to parse the specified connection identifier

Source: Internet
Author: User

This is a problem encountered when logging on to oracle, ora-12154: tns: unable to resolve the specified connection identifier, let's look at the solution below.

I plan to install oracle 10 GB on May 1. After the installation is complete, test whether the job works normally.

During installation, the global database configured is tmt.

However, when using SQL Plus to log on, the user name is scott, the password is tiger, and the host string is tmt. But it always fails to log on, reporting that the ora-12154tns cannot parse the specified connection identifier. My TNSNAMES. ORA file has no tmt configuration. Add the following configuration to the TNSNAMES. ORA file:

The Code is as follows: Copy code
TMT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = YSGH6H9W2BXHOIL) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = tmt)
)
)

Then, you can log on successfully.

You can also use the Net Manager graphical interface to generate the file.

As follows:

1,

 

2,

 

3,

 

4,

 

5,

6,

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.