Oracle Error 12154 Windows 7
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 and possible resolutions.
Full error message: OLE DB provider "MSDAORA" for linked server "LINKED_ORA" returned message "ORA-12154: 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 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 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 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)) ) (CONNECT_DATA = (SERVICE_NAME = OracleDB) (SERVER = DEDICATED) ) ) In the above tnsnames.ora file Alias = OracleDB_Dev Service Name: OracleDB (Actual Oracle service nametry again. 4 Replies Latest reply on Mar 25, 2015 7:44 AM by Mark Fraser Oracle database error 12154: ORA-12154: TNS:could not resolve the connect identifier specified tonyfeole Jan 16, 2013 2:03 PM I have Tableau Desktop 7.0 installed on my local pc along with the Oracle Client drivers. I am able to create a successful ODBC connection using MS Access and TNSNAMES.ora file. However, when I try to connect directly to Oracle using Tablue Desktop, Server Name, Service Name and Port Number (under Advanced Settings) I get the Oracle database error 12154: ORA-12154: TNS:cound 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/ not resolve the connection identified. Has anyone come accross this same issue and was there a workable solution available? Thanks in advance.-Tony I have the same question Show 0 Likes(0) 5361Views Tags: none (add) This content has been marked as final. Show 4 replies 1. Re: Oracle database error 12154: ORA-12154: TNS:could not resolve the connect identifier specified Dimitri.B Jan 16, 2013 8:32 https://community.tableau.com/thread/122839 PM (in response to tonyfeole) This can happen if Tableau can't find TNSNAMES.ora, which usually happens with non-standard installations of Oracle, i.e. Oracle home directory is not where Tableau expects it to be. You might need to set up an environment variable as described here: http://kb.tableausoftware.com/articles/knowledgebase/oracle-connection Like Show 1 Likes(1) Actions 2. Re: Oracle database error 12154: ORA-12154: TNS:could not resolve the connect identifier specified David Edwards Feb 13, 2014 9:10 AM (in response to tonyfeole) I guess this might be necro posting, but since it was never answered.....Tony,I am also experiencing this problem in v8.0 and v8.1.The article that Dimitri is referring to does not describe or address the problem that Tony and I are having.Specifically, it is for setting up the TNSNAMES.ora file so that you can use the service name to connect, rather than a host:port/servicename connection string.I was able to follow the instructions in the oracle connection knowledge base article that Dimitri linked above to set a TNS_NAMES environment variable to look up and utilize the corporate network names file. However it seems this is not what Tableau is actually using o
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 http://stackoverflow.com/questions/3273148/ora-12154-error-on-win7-64 about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges http://stackoverflow.com/questions/12825635/ora-12154-tnscould-not-resolve-the-connect-identifier-specified-plsql-develop 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 ORA-12154 error on Win7 64 up vote 0 down vote favorite Is there any solution for this error on Windows 7 64 bit (because I think it's the main oracle error cause) in .NET application? (ASP.MVC2 with EF4) I've: Windows 7 64 bit Oracle Express 10g (i've tried to install Client 11g, but then, during installation i got another error - Net Configuration Assist~ Error - something about oraclj11 and java) I've also checked and tried: tnsnames.ora - everything is all right tnsping - was successfull sqlnet.ora - NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT) I'd like to connect with Oracle DB via ASP application (as above) and I still see this oracle error 12154 error. .NET cannot see alias which is in tnsnames.ora .net oracle ora-12154 share|improve this question edited Jul 17 '10 at 23:12 OMG Ponies 199k37361417 asked Jul 17 '10 at 20:27 Simon 1,15911638 2 I've heard "Oracle sux" war stories before. This is proof, nobody should have to put up with "something about oraclj11 and java" error messages! –Hans Passant Jul 17 '10 at 20:52 I updated the tags, might want to check the other ORA-12154 questions –OMG Ponies Jul 17 '10 at 23:13 @Hans Passant: At least Oracle gives (albeit sometimes cryptic) error codes - SQL Server doesn't, no easy reference code to google for... –OMG Ponies Jul 17 '10 at 23:14 @OMG, which leg would you prefer me to pull? –Hans Passant Jul 17 '10 at 23:40 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted Error: ORC-12154 and Oracle Provider not compatible with current OS (povider 32 bit, OS 64) OS: Windows 7 64-bit, .NET 4.0, Visual Studio 2010, Tunel via SSH (putty) Solution: Uninstall oracle software, especially Oracle’s client (OracleExpress Client and whole db 10g) Install Oracle 11g Client for Windows 7 64-bit. If occurs errors during installation (Config Net Assistant), check and clean previous Oracle’s software. Everything including register and ORACLE_HOME, TNS_ADMIN environment variables should be removed. Install Oracles .NET tools for Visual Stu
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 ORA-12154: TNS:could not resolve the connect identifier specified (PLSQL Developer) up vote 3 down vote favorite 1 I need to use PLSQL Developer to access oracle databases. I get the following error when I try to connect to my database. ORA-12154: TNS:could not resolve the connect identifier specified. I am able to use SQLPLUS from the command line to connect to the database, and tnsping returns successfully, but I can't figure out why PLSQL Developer will not work - it's using the right tnsnames.ora file, and the connection string in there is correct because it's the same one that tnsping uses. Anyone have an idea what I can do to fix this? I've looked at other threads about this specific error with no luck. tnsnames.ora ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = MININT-AIVKVBM)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) sqlnet.ora SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT) sqlpus command line image here PLSQL Developer Connection Preferences: image here oracle plsql sqlplus plsqldeveloper tnsnames share|improve this question edited Oct 10 '12 at 19:11 asked Oct 10 '12 at 18:09 ZakTaccardi 3,63732043 Are you sure that PL/SQL Developer is using exactly the same TNS alias that you are using in SQL*Plus? My wild guess is that you're missing a domain (i.e. you need FOO.WORLD rather than FOO) –Justin Cave Oct 10 '12 at 18:27 @JustinCave my computer doesn't have a domain name. If I run the command echo