Questions tagged [ora-12154]

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 found in a naming method repository, or the repository could not be located or reached.

Action:

  • When using local naming (TNSNAMES.ORA file):
    • Make sure that TNSNAMES is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
    • Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
    • Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
    • Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
  • When using directory naming:
    • Verify that LDAP is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    • Verify that the LDAP directory server is up and that it is accessible.
    • Verify that the net service name or database name used as the connect identifier is configured in the directory.
    • Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
  • When using easy connect naming:
    • Verify that EZCONNECT is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    • Make sure the host, port and service name specified are correct.
    • Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.
33 questions
9
votes
5 answers

Linking Oracle with SQL Server

I'm trying to link SQL Server 2005 to an Oracle 10g database. I've installed the Oracle client on the SQL server and validated that I can connect to the Oracle database using both tnsping and sqlplus. When I try to run a query in SQL Server I get…
timcase
  • 455
  • 2
  • 4
  • 14
8
votes
7 answers

Oracle (0x80004005)ORA-12154: TNS:could not resolve the connect identifier

I'm trying to connect to an oracle db from an ASP classic application, however I keep running into the ORA-12154 error. TNSNAMES.ORA is configured properly DBSOURCE.A.B.com = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =…
ChickSentMeHighE
  • 1,706
  • 6
  • 21
  • 30
7
votes
1 answer

Oracle EasyConnect connection string using a SID?

I'm trying to connect to an Oracle database through code (Ruby/DBI, but that's irrelevant) using an EasyConnect connection string. All of the Oracle documentation says to specify the connection string as //hostname:port/service_name. I don't have…
Jon Kruger
  • 4,009
  • 4
  • 33
  • 46
4
votes
3 answers

Error when trying to log in: ORA-12154

I am using Oracle 10g and PL/SQL Developer for the development. I have already tested from Net Manager that the database can be connected to, but when I tried to connect with PL/SQL Developer there was problem that I do not understand: ORA-12154:…
Nore
  • 111
  • 2
  • 4
  • 20
4
votes
2 answers

ORA-12154: TNS:could not resolve the connect identifier specified

The issue started when i installed the server version with already existing client version of Oracle 10g. Background : The Oracle client version 10g was installed (at c:/oracle) to connect to a database residing in other country. So we can just…
ErAB
  • 855
  • 4
  • 15
  • 30
4
votes
10 answers

Ora 12154 error

I recently deploy one web application in one of my development servers. I'm using oracle, asp.net and c#. When I run the application in the server everything works fine, but when I try to run the application outside of the server (using my pc, for…
Hugo Assanti
  • 421
  • 1
  • 8
  • 16
4
votes
1 answer

TNS:could not resolve the connect identifier specified

I have oracle server 11g installed on my windows 7 machine. I have to install this server from a remote machine. Remote machine is a 64 bit system,with Ubuntu 12.10. To access the server I installed Oracle instant client and configured…
user650521
  • 583
  • 1
  • 9
  • 23
3
votes
1 answer

ORA-12154 when connecting using tns alias

I installed Oracle 11.2 on a Win7x64 laptop and almost everything works fine. One thing I don't understand, however. I can connect to the sample HR schema with: sqlplus hr/password but not with: sqlplus hr/password@orcl I get an ORA-12154:…
Ronald Wildenberg
  • 31,634
  • 14
  • 90
  • 133
2
votes
1 answer

How to create a DB link between two Oracle RDS instances

I'm trying to create a DB link between two Oracle RDS instances in two different VPCs. I have created a peering VPC connection, added routes and edited security groups according to this guide. But I'm getting "ORA-12154: TNS:could not resolve the…
AchalaM
  • 33
  • 1
  • 6
2
votes
1 answer

Oracle9i connection error (ora-12154) in .NET application only on some machines

I made a .NET(4.6.1) application that connects to an Oracle9i Database. This application works fine on the machine I wrote the application on but not on the machine where the application needs to be installed on. I'm using System.Data.OracleClient.…
Mark Baijens
  • 13,028
  • 11
  • 47
  • 73
2
votes
5 answers

Oracle - ODBC connection using MS Access error (ORA-12154)

I am trying to use MS access to connect to a Oracle database. I keep on getting the following error message: ORA-12154: TSN- could not resolve the connect identifier secified The Oracle Drivers OracleClient10g can verify that the database server…
Joe
  • 791
  • 4
  • 9
  • 11
1
vote
1 answer

Oracle Form Builder / ORA-12154: TNS : could not resolve the connect identifier specified

I'm getting the error message below when trying to connect to database in the Data Block Wizard (in Oracle Form Builder): ORA-12154: TNS : could not resolve the connect identifier specified In order to fix that, I set the TNS_ADMIN environment…
Nadim
  • 382
  • 1
  • 7
  • 29
1
vote
3 answers

ora-12154 could not resolve... with oracle instant client

Here are the details: I installed the oracle instant client 11.2.0.2.0 from the OTN download page on a windows 7 64 bit vm (vmware). I am trying to to connect to a remote oracle database, and I can successfully connect with one program using TNS,…
chrismarx
  • 11,488
  • 9
  • 84
  • 97
1
vote
1 answer

How to connect to oracle 11g (11.2.0.3.0) database using python 3.6

import cx_Oracle print('connection start') db_connection = cx_Oracle.connect("jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = )) (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = ))…
1
vote
0 answers

C# connect with Oracle DB error ORA-12154

I have VS2013 installed and am trying to build a C# application with an active connection to Oracle database. I have Oracle 11g 64 bit on my Windows 8.1 I have also installed Oracle Development Tools for VS2013.But when I try to make a new…
user5340
  • 65
  • 6
1
2 3