Listener refused the connection with the following error:ora-12505, Tns:listener does not currently

Source: Internet
Author: User
Listener refused the connection with the following error:ora-12505, Tns:listener does not currently know to SID given in Connect descriptor the listener rejects the connection because the SID connection does not match.

In general, database names and SIDs are created when the database is created. SIDs are used to uniquely identify an instance. Cannot repeat on the same machine. 1. View instance name and Oracle_sid
In the Windows environment you can (take my own Machine for example):
(1) Start-> run (input regedit), in hkey_local_machine\software\oracle\key_oradb11g_home1 has Oracle_sid key value (system default), as shown in the following figure:

My oracle_sid is ORCL, so the SID should enter ORCL instead of XE; After testing, you can connect to the database.

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.