Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Oracle Database Archived Forums
C++ Call Interface (OCCI)
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Mar 13, 2013 6:08 AM by
Error ORA-12154: "TNS:could not resolve the connect identifier specified"
Mar 13, 2013 6:08 AM
I am trying to establish a connection between a Visual C++ (Visual Studio 2010) application and an Oracle-Server at my university.
The code used for opening the connection is:
oc::Connection* conn = env->createConnection("username", "password", "db_name");
The program stops at this line and throws the above-named exception. It probably is a problem with the
file, which resides in the
folder of my local Oracle installation.
Using the command-line tool "+tnsping db_name+" shows that the connection is
- so I don't understand why my code does not work.
I hope you guys can help me out - I am really stuck atm...
Thank you in advance,
This content has been marked as final.
Show 0 replies