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

Source: Internet
Author: User

Ready to start learning Oracle in 51, so today we're going to install Oracle 10g. After the installation is done to test whether it will work properly.

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

But when using SQL Plus to log in, Username: Scott, password: Tiger, host string: TMT. But always landing not on, the newspaper prompts Ora-12154tns cannot resolve the specified connection identifier. Baidu, the original is my Tnsnames.ora file does not have TMT related configuration. The following configuration is added 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)
)
)

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,

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.