Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to connect VFP to Oracle 11g
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01572759
Message ID:
01572793
Vues:
49
>>>>>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)

Maybe your TNSNAMES.ORA file is missing entry?
ICQ 10556 (ya), 254117
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform