Hello all,
I try for 2 days now to run a SQL Script against an Oracle database but everything i do just fails! The documentation is very weak on this subject. My last hope is this forum.
I use Oracle Instant Client as a part of my installation. Everything goes fine. The ODBC Driver is installed with the name "Oracle in instantclient11_1". I added a TNS_ADMIN environmental variable to point to the relevant folder. If i test the driver using a DSN, everything works ok. If i run AI, i always get a ORA-12560:TNS:Protocol Adapter Error.
Now, through AI i tested two options.
The first is to use directly the aforementioned ODBC Driver. So i make a new connection. The form there, is way underdocumented! What should i put in the field "Server"??? Is this the Local Service Name defined in the tnsnames.ora file to which my TNS_ADMIN variable points? Is this the Server Service Name??? Or maybe the Host of the database? The Port field i can understand if the Server points to Host... And what is the thing with the Database field for an Oracle DB??? (Not to mention the "Create Database if not exists check item....")
The second is to use a DSN that is defined using the aforementioned Driver. I tested a DSN using the Driver and took a note of all the required attributes that should be defined from the Registry. So i set a ServerName, a UserID, a Password. If i test the DSN when the error raises, everything is ok! Its present in my system, and the testing of connection is ok. Of course, the documentation mentions that i should put values for Server, Port and Database!!! Why should i need these values when the DSN requires the Local Service Name to connect????
Anyway, the thing is really a mess. There should be a complete tutorial for all major databases. Any help will be greatly appreciated....
FOLLOW US
Get the latest news in Application Packaging