Home > tns could > error ora 12154 tns could not resolve connect identifier specified

Error Ora 12154 Tns Could Not Resolve Connect Identifier Specified

Contents

while creating a linked server to Oracle ★★★★★★★★★★★★★★★ SnehadeepJune 30, 201028 0 0 0 This is one of the most common errors while creating linked server to

Ora 12154 Tns Could Not Resolve The Connect Identifier Specified Xe

Oracle database. Today I will discuss the reason for this error and ora 12154 tns could not resolve the connect identifier specified 11g possible resolutions.

Full error message:

OLE DB provider "MSDAORA" for linked server "LINKED_ORA" returned message "ORA-12154:

Ora 12154 Tns Could Not Resolve The Connect Identifier Specified 10g

TNS:could not resolve the connect identifier specified".

Msg 7303, Level 16, State 1, Line 1

Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked system data oracleclient oracleexception ora 12154 tns could not resolve the connect identifier specified server "LINKED_ORA".

First of all make sure you have reviewed the following Microsoft KB article that has a lot of good information on troubleshooting Oracle linked server issues.

How to set up and troubleshoot a linked server to an Oracle database in SQL Server

http://support.microsoft.com/kb/280106 Also make sure you have installed Oracle Client on the SQL server. If ora 12154 tns could not resolve the connect identifier specified at oci call ociserverattach the SQL server is 64 bit then we need to install 64 bit Oracle provider. You can also create linked server using Oracle ODBC driver together with Microsoft OLE DB provider for ODBC. Once again on a 64 bit SQL server you need to install the 64-Bit OLEDB Provider for ODBC (MSDASQL) and 64 bit Oracle ODBC drivers. However 64-Bit OLEDB Provider for ODBC (MSDASQL) is already there in Windows Vista/Windows Server 2008 and later OS.

This particular error message is a very general error message and can happen for quite a number of reasons. For general understanding of the error, you can review oracle documentation like this http://ora-12154.ora-code.com/

In SQL Server Linked Server, it could indicate a few things (not limited to)–

1. SQL Server (and oracle net libraries) is not able to get the TNS alias from tnsnames.ora file.

2. Something is wrong with the way the alias is created in the tnsnames.ora file (incorrect syntax)

3. TNS alias could not be resolved into a connect descriptor

Below is a l

resolve the connect identifier specified"? Article: 00951 Last Reviewed: 7th September 2006 Revision: 1 This error indicates that Oracle is unable to locate the service name

Ora 12154 Tns Could Not Resolve The Connect Identifier Specified N

specified in your Easysoft ODBC-Oracle Driver ODBC data source. You need to ora 12514 tns could not resolve the connect identifier specified check the Database attribute value in the data source.If you are using the standard Oracle client, the Database attribute

Ora 12154 Tns Could Not Resolve Service Name Oracle 9i

value must specify a valid service name defined in tnsnames.ora. For example, for the following tnsnames.ora entry, the Database attribute value needs to be my_database: my_database = (DESCRIPTION = (ADDRESS = https://blogs.msdn.microsoft.com/dataaccesstechnologies/2010/06/30/ora-12154-tns-could-not-resolve-the-connect-identifier-specified-error-while-creating-a-linked-server-to-oracle/ (PROTOCOL = TCP)(HOST = my_host)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = my_database) ) ) If you are using the Instant Client without a tnsnames.ora file, the Database attribute value needs to be a SQL connect URL rather than a service name: //host:port/service_name where host is the host name or IP address of the Oracle database server, port is the http://www.easysoft.com/support/kb/kb00951.html Oracle listener port and service_name is the service name. For example: //my_host:1521/my_database If you want to use the Instant Client with a tnsnames.ora file, the Database attribute value must specify a tnsnames.ora service name and you need to set and export the TNS_ADMIN environment variable. Set TNS_ADMIN to specify the location of the tnsnames.ora file. For example: TNS_ADMIN = /home/oracle/network/admin export TNS_ADMIN Applies To Products Easysoft ODBC-Oracle Driver Knowledge Base Feedback * Did this content help you? Yes No Maybe * Please select one option based on your first choice: I'm very satisfied I think it will help, but I haven't tried it yet It is helpful, but I need more information It is helpful, but hard to understand Seemed relevant in search results, but didn't help me The information is incorrect The page contains one or more broken links Suggest new content or let us know how we can improve this content: (* Required Fields) About Easysoft Contact Us About Us Clients Upgrade Offer Blog Careers Products ODBC Drivers JDBC Drivers Bridges and Gateways In Development Services Consultancy Training Custom Development Licensing Product Licen

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/35252170/oracle-error-ora-12154-tns-could-not-resolve-the-connect-identifier-specified the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. tns could Join them; it only takes a minute: Sign up Oracle Error: ORA-12154: TNS: could not resolve the connect identifier specified up vote 0 down vote favorite I am new in oracle. I am using windows 10 64 bit, Oracle XE 11g, visual studio 2010 and vb.net. But Why I am getting error: related to listener always when I tns could not turn off or hibernate my machine Services are also running. This is listner code: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-4R5A2SG)(PORT = 1521)) ) ) DEFAULT_SERVICE_LISTENER = (SUIDO) And This is tnsname.ora code: SUIDO = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-4R5A2SG)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = SUIDO) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) ) Can anybody help me what can i do to fix this problem as soon as possible. vb.net oracle oracle11g database-connectivity share|improve this question edited Feb 7 at 13:1

 

Related content

error in initializing provider ora-12154

Error In Initializing Provider Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Ora- Tns Could Not Resolve The Connect Identifier Specified Windows a li li a href Tns Could Not Resolve The Connect Identifier Specified Oracle g a li li a href Tns- Failed To Resolve Name a li ul td tr tbody table p while creating a linked server to Oracle x x x x x x x x x x x x x x x SnehadeepJune This relatedl is one of the most common errors while ora tns could not

error ora-12154 tns could not resolve the connect

Error Ora- Tns Could Not Resolve The Connect table id toc tbody tr td div id toctitle Contents div ul li a href System Data Oracleclient Oracleexception Ora Tns Could Not Resolve The Connect Identifier Specified a li li a href Ora Tns Could Not Resolve Service Name Oracle i a li li a href Ora Tns Could Not Resolve Service Name Windows a li ul td tr tbody table p TNS received bad packet type from network layer Cause Internal error Action Not normally visible to the user For further details turn on tracing and relatedl reexecute the operation

oci error 12154

Oci Error table id toc tbody tr td div id toctitle Contents div ul li a href Test Connection Failed Because Of An Error In Initializing Provider Ora- a li li a href Ora- Sqlplus a li ul td tr tbody table p Read Quick Links Today's Posts View Site Leaders Who's Online Advanced Search Forum Microsoft SSIS Connectors and Change Data Capture by Attunity Microsoft SSIS Connectors by Attunity Microsoft SSIS Oracle Connector relatedl ORA- TNS could not resolve the connect identifier specified Results to ora tns could not resolve the connect identifier specified g of Thread ORA- TNS

odbc error ora-12514

Odbc Error Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Ora- Tns Could Not Resolve Service Name Oracle g a li li a href Ora Tns Could Not Resolve Service Name Oracle i a li li a href Ora Error In Oracle g a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us relatedl Learn more about Stack Overflow the company Business Learn more about

odp.net tns error

Odp net Tns Error table id toc tbody tr td div id toctitle Contents div ul li a href Ora Tns Could Not Resolve The Connect Identifier Specified g a li li a href Ora- Oracle c a li li a href Ora Tns Could Not Resolve Service Name a li li a href Oracle Managed Data Access a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the relatedl workings and policies of this site About Us Learn more p h

oo4o tns error

Oo o Tns Error table id toc tbody tr td div id toctitle Contents div ul li a href Ora- Tns Could Not Resolve The Connect Identifier Specified Windows a li li a href Tns Could Not Resolve The Connect Identifier Specified Visual Studio a li li a href Oracle Provider For Ole Db a li ul td tr tbody table p CommunityOracle User Group CommunityTopliners CommunityOTN Speaker BureauJava CommunityError You don't have JavaScript enabled This tool uses JavaScript and much of it will not work correctly without relatedl it enabled Please turn JavaScript back on and ora tns could

ora 12154 error in visual studio 2010

Ora Error In Visual Studio table id toc tbody tr td div id toctitle Contents div ul li a href Visual Studio Ora- a li li a href Ora- Tns Could Not Resolve The Connect Identifier a li li a href Tns Could Not Resolve The Connect Identifier Specified Oracle g a li li a href Tnsnames ora Location a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed relatedl answers to any questions you might have Meta p h id Visual Studio Ora- p Discuss the workings and policies of

ora 12154 error visual studio

Ora Error Visual Studio table id toc tbody tr td div id toctitle Contents div ul li a href Ora- Tns Could Not Resolve The Connect Identifier a li li a href Ora- Tns Could Not Resolve The Connect Identifier Specified Windows a li li a href Tns Could Not Resolve The Connect Identifier Specified Oracle g a li li a href Tnsnames ora Location a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have relatedl Meta Discuss the workings and policies of this

ora-12154 ssis error

Ora- Ssis Error table id toc tbody tr td div id toctitle Contents div ul li a href Ora Tns Could Not Resolve The Connect Identifier Specified g a li li a href Ora- Tns Could Not Resolve Service Name a li li a href Tns Could Not Resolve The Connect Identifier Specified Visual Studio a li li a href Tns Could Not Resolve The Connect Identifier Specified Oracle g a li ul td tr tbody table p HomeLibraryLearnDownloadsTroubleshootingCommunityForums Ask a question Quick access Forums home Browse forums users FAQ relatedl Search related threads Remove From My Forums p h

ora-12154 sqlplus error

Ora- Sqlplus Error table id toc tbody tr td div id toctitle Contents div ul li a href Tnsping Works But Sqlplus Does Not Ora- a li li a href Ora- Tns Could Not Resolve Service Name a li li a href Sqlnet ora Example a li ul td tr tbody table p log in tour help Tour Start here for a quick overview of relatedl the site Help Center Detailed answers to any tns could not resolve service name sqlplus questions you might have Meta Discuss the workings and policies of p h id Tnsping Works But Sqlplus Does

oracle error 12151

Oracle Error table id toc tbody tr td div id toctitle Contents div ul li a href Ora- Tns Could Not Resolve Service Name a li li a href Error While Trying To Retrieve Text For Error Ora- a li li a href Tns Could Not Resolve The Connect Identifier Specified Odbc a li ul td tr tbody table p TNS received bad packet type from network layer Cause Internal error Action Not normally visible to the user For relatedl further details turn on tracing and reexecute the operation ora error in oracle g If error persists contact Worldwide Customer

oracle listener error code 10559

Oracle Listener Error Code table id toc tbody tr td div id toctitle Contents div ul li a href Ora Tns No Listener a li li a href Ora- Tns Could Not Resolve Service Name Oracle g a li li a href Tns Could Not Resolve The Connect Identifier Specified Sqlplus a li ul td tr tbody table p TNS received bad packet type from network layer Cause Internal error Action Not normally visible to the user For further details turn on tracing relatedl and reexecute the operation If error persists contact Worldwide Customer ora- error Support ORA- TNS unable