Oracle Error Message Ora-12154
Contents |
while creating a linked server to Oracle ★★★★★★★★★★★★★★★ SnehadeepJune 30, 201028 Share 0 0 This is one of the most common errors while creating linked server to Oracle database. Today I will discuss the reason for this error
Ora 12154 Could Not Resolve The Connect Identifier Specified
and possible resolutions.
Full error message: OLE DB provider "MSDAORA" for linked ora-12154 tns could not resolve the connect identifier specified windows 7 server "LINKED_ORA" returned message "ORA-12154: TNS:could not resolve the connect identifier specified". Msg 7303, Level 16, State 1, Line 1Ora-12154 Tns Listener Does Not Currently Know Of Service Requested In Connect Descriptor
Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "LINKED_ORA".
First of all make sure you have reviewed the following Microsoft KB article that has a lot of good asp.net ora-12154: tns:could not resolve the connect identifier specified 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 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. ora-12154 sqlplus 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 list of things that you can try to resolve this issue. 1. Verify that the tnsnames.ora file has the alias and the service name that the customer is using. TNS entry for the Oracle database =========================== OracleDB_Dev = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = server01.mydomain.com)(PORT = 1521)) ) (CONNECTresolve 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 specified in your Easysoft ODBC-Oracle Driver ODBC data source. You
Error While Trying To Retrieve Text For Error Ora-12154
need to check the Database attribute value in the data source.If you are using the ora-12154 tns could not resolve service name oracle 11g standard Oracle client, the Database attribute value must specify a valid service name defined in tnsnames.ora. For example, for the following tnsnames.ora
Tns Could Not Resolve The Connect Identifier Specified Oracle 10g
entry, the Database attribute value needs to be my_database: my_database = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = my_host)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = my_database) ) ) If you are using 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/ 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 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 http://www.easysoft.com/support/kb/kb00951.html 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 Licenses Prices Support Support Home Solution Wizard Getting Started Guides User Guides Knowledge Base Search Easysoft.com Documentation Knowledge Base Popular Resources Developer Area Client Applications Legal Privacy Statement © 1993 - 2016 Easysoft Limited. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other trademarks and registered trademarks appearing on easysoft.com are the property of their respective owners.
the ora 12154 error DBA Pro SubscribeSubscribedUnsubscribe1,9751K Loading... Loading... Working... Add to Want to watch this again later? Sign in to add this video to a playlist. Sign in Share More Report Need to report the video? Sign in to https://www.youtube.com/watch?v=QVJ1xO2V7Dc report inappropriate content. Sign in Statistics 50,633 views 42 Like this video? Sign in http://stackoverflow.com/questions/206055/oracle-ora-12154-tns-could-not-resolve-service-name-error to make your opinion count. Sign in 43 17 Don't like this video? Sign in to make your opinion count. Sign in 18 Loading... Loading... Loading... Rating is available when the video has been rented. This feature is not available right now. Please try again later. Published on Jan 31, 2014In this tutorial you will could not learn how to resolve the ora 12145 error. Category People & Blogs License Standard YouTube License Show more Show less Loading... Autoplay When autoplay is enabled, a suggested video will automatically play next. Up next Oracle - Understanding the tnsnames.ora and listener.ora files - Duration: 12:46. Chris Ostrowski 91,272 views 12:46 How to Fix ORACLE 6i Error "ORA-12154: TNS:could not resolve the connect identifier specified". - Duration: 4:02. SYED AIZAD could not resolve RAZA KAZMI 3,522 views 4:02 ora - 12514 and ora - 12505 tns listener error fixed in 90 seconds ✅ - Duration: 1:30. CBOT 1,746 views 1:30 解决 Oracle ora-12514错误 - Duration: 33:45. Maclean Liu 1,025 views 33:45 Listener Basics For DBA - Duration: 45:23. Satish Lodam 14,492 views 45:23 Best way to connect Oracle with Visual Studio .NET (no BadImageFormatException or mismatch error) - Duration: 9:45. Samiul Al Hossaini 12,779 views 9:45 Oracle 10g Listener and Database Creation - Duration: 6:05. Recouner 7,681 views 6:05 Easy guidelines to fix Error 12514 - Duration: 1:24. rhina disouza 2,023 views 1:24 Oracle - TNS : Protocol Adapter Error Working Solution - Duration: 0:57. Srijit Banerjee 49,307 views 0:57 How to connect to Oracle Database using Toad for Oracle. - Duration: 8:42. Subhroneel Ganguly 54,517 views 8:42 how to solve ORA-12560: TNS:protocol adapter error - Duration: 2:27. Deepak Soni 111,585 views 2:27 Oracle listener configuration | listener.ora | listener configuration in oracle 11g - Duration: 5:29. Wysheid Wysheid 10,553 views 5:29 Oracle Data Export and Import using DataPump expdp and impdp - Duration: 9:38. Abbasi Asif 94,783 views 9:38 ORA-12505: TNS:listener does not currently know of SID given in connect descriptor - Duration: 1:49. INNo MATHs 25,545 views 1:49 Step
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 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 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Oracle ORA-12154: TNS: Could not resolve service name Error? up vote 11 down vote favorite 5 I am a SQL Server user . I am on a project that is using oracle (which I rarely use) I need to create an ODBC connection so I can access the some data via MS Access I have a application on my machine called oraHome90. It seems to allow a configuration of something called a listener in a “net configuration utility”, I think that a “Local Net Service Name Configuration” needs to also be done. The IT support gave me this information to set up the ODBC connection . I have tried every combination that I can think of. I can get past a test that successfully passes a test to “login“ to the oracle server database. When I try to create the ODBC connection I get the following error: ORA-12154: TNS: Could not resolve service name. Assuming that I want to start from scratch and the following information is supposed to allow for me to connect to the database….. Any suggestions or comment ? Note: ultimately the project will have a website .ASP page query the data, but I have to first prove that I can see the data using the ODBC connection via MS Access Service name: SERVICENAME HOST = HOST.XYZi.com User Id: MYUSERID Password: MYPASSWORD ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 'Oracle Connection Dim ocst Dim oconn ocst = "Provider=OraOLEDB.Oracle;" & _ "Data Source=DATASOURCE;" & _ "User ID=CHIJXL;" & _ "Password=password;" set oconn = CreateObject("ADODB.Connection") oracle odbc tns share|improve this question edited Oct 15 '08 at 19:26 David Basarab 35.4k38105145 asked Oct 15 '08 at 19:23 Joe 4164811 add a comment| 19 Answers 19 active oldest votes up vote 8 down vote from http://ora-12154.ora-code.com ORA-12154: TNS:could not resolve the connect identifier specified Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be fo