Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

962964Jan 6 2014 — edited Jan 8 2014

Hello:  I hope I am in the correct forum because I have been sent all over the place with this question and I am at my wits end.   I am getting error ORA-12154:  TNS could not resolve the connect identifier specified when trying to execute the following stored procedure.

  • odataaccess.ExecuteSQL("VDEV", "ABCSETSCREEN.SetScreenStart", Command.StoredProcedure) in VB2010.  I am using Windows XP and Oracle version 10.1.0.  However, I do not get this error when I use VB2005.  I have VB2010 target framework setup to .NET Framework 2.0.  I have checked to make sure tnsnames.ora has the alias which in this case would be "VDEV" if I am correct and that tnsnames is in sqlnet.ora-(NAMES.DIRECTORY_PATH= (TNSNAMES).  I am able to connect to VDEV thought PL/SQL Developer.              What has me really confused is that the SP works in 05 but not VB2010 so I am thinking there must be some setting in VB2010 that must be changed.  I am really stumped on this and have tried about everything.  Any help would be greatly appreciated.  If I can give you more info, please let me know.  Thank you in advance.                                                                                                                                                                                                                      
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2014
Added on Jan 6 2014
15 comments
2,420 views