ORA-12505, Tns:listener does not currently know of SID given in Connect Desc.

Source: Internet
Author: User

ORA-12505, Tns:listener does not currently know of SID given in Connect Desc.

This situation is generally because the instance name of the database is not given, only the service name of the database is given

What is a DB instance name? The database instance name is the identity used to contact the operating system, meaning the database instance name is used for interaction between the database and the operating system.  The instance name is also written to the parameter file, which is instance_name, and the instance name is also written to the registry in the Winnt platform.  The database name and instance name can be the same or different. In general, database names and instance names are a one-to-many relationship, but if you are in an Oracle Parallel server architecture (that is, Oracle real-time application clusters), the database name and instance name are a one-to-numerous relationship.

This situation is generally because the instance name of the database is not given, only the service name of the database is given
Select instance_name from V$instance;

How to solve it?
Orasession has a Datatypemap attribute

Here you can fill in the service name

In fact, the program can not be changed, only used in front of the service name plus sn= on it.

This is the only difference from the instance name.

ORA-12505, Tns:listener does not currently know of SID given in Connect Desc.

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.