About resolving Oracle Login: Ora-12154:tns: Unable to resolve the specified connection identifier

Source: Internet
Author: User

(Note: This digest is from http://www.linuxidc.com/Linux/2012-04/59322.htm)

Start learning Oracle, so we're going to install Oracle 10g today. After the installation is done to test whether the normal work.

During the installation process, the configured global database is TMT.

But when using SQL Plus login, username: Scott, password: Tiger, host string: TMT. But it always fails to log on, the report prompts Ora-12154tns Unable to resolve the specified connection identifier. Baidu, the original is my Tnsnames.ora file does not have the relevant configuration of TMT. Then add the following configuration to the Tnsnames.ora file:

  1. TMT =
  2. (DESCRIPTION =
  3. (Address_list =
  4. (ADDRESS = (PROTOCOL = TCP) (HOST = ysgh6h9w2bxhoil ) (PORT = 1521))
  5. )
  6. (Connect_data =
  7. (service_name = tmt)
  8. )
  9. )

And then landing, you can log on successfully.

Of course, you can also use the Net Manager graphical interface to generate the file.

As follows:

1.

2.

3.

4.

5.

6.

This will allow you to login successfully!!!

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.