Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to connect VFP to Oracle 11g
Message
From
06/05/2013 10:17:21
 
 
To
06/05/2013 09:47:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01572759
Message ID:
01572767
Views:
59
>>>>I am trying to connect VFP to Oracle 11g with the string SQLSTRINGCONNECT("Driver={Oracle in OraClient11g_home1};Dbq=myTNSServiceName;Uid=myuid;Pwd=mypwd"), but always return handle -1
>>>>
>>>>The Oracle ODBC driver is Ok, because when I test it, it returns connection successful
>>>>
>>>>Am I missing something?
>>>
>>>http://www.connectionstrings.com/
>>
>>My connection string is the same than that, but does not work.
>
>See whether aerror() is helpful.


aerror returns code 1526, message "ORA-12154: TNS could not resolve the connect identifier specified. But the strange is that when the I test the ODBC it is OK.

Following my tnsnames

SPC-SC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.150.160)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD)
Antonio Carlos Kleinübing
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform