ORA-12514: TNS: The Listener currently cannot identify the Service requested in the connection Descriptor

Source: Internet
Author: User

ORA-12514: TNS: The Listener currently cannot identify the Service requested in the connection Descriptor

When PL/SQL is connected to the Oracle database, the error "ORA-12514: TNS: The Listener currently cannot identify the Service requested in the connection descriptor" is reported.

Cause of this example:

When installing Oracle, the default instance is generally orcl, and it is found that someone did not play the cards according to the routine and changed the name,

 

Solution:

In the Oracle installation directory, find the listener. ora file path: D: \ oracle \ product \ 11.2.0 \ dbhome_1 \ NETWORK \ ADMIN

(Search by yourself) Modify:

# listener.ora Network Configuration File: D:\oracl\product\11.2.0\dbhome_1\network\admin\listener.ora# Generated by Oracle configuration tools.SID_LIST_LISTENER =(SID_LIST =(SID_DESC =(SID_NAME = CLRExtProc)(ORACLE_HOME = D:\oracle\product\11.2.0\dbhome_1)(PROGRAM = extproc)(ENVS = "EXTPROC_DLLS=ONLY:D:\oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll"))(SID_DESC =(GLOBAL_DBNAME = JTW)(ORACLE_HOME = D:\oracle\product\11.2.0\dbhome_1)(SID_NAME = JTW)))LISTENER =(DESCRIPTION_LIST =(DESCRIPTION =(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))))

 

The red part is the added content, and JTW is the name of the listener instance.

Then modify (ADD) instantclient_11_2 \ network \ admin \ tnsnames. ora

MyOracle =  (DESCRIPTION =    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))    (CONNECT_DATA =      (SERVER = DEDICATED)      (SERVICE_NAME = jtw)    )  )


Restart Oracle listening

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.