Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

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

$
0
0
Hello: 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 or when I am using a form in VB2010 just a module 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 through 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.

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>