I have seen that there is a way to connect to Oracle using the Instant Client which actually only needs a xcopy of a limited set of Oracle dll's/files.
It would be nice to deploy the apps having these Instant Client files along with it.
I'm not an Oracle expert and my first tries did not work. So I hope someone could give the correct procedure to get it working.
(and confirm that a TD42 app can connect to Oracle using the Instant Client)
This is the setup:
- TD42
- Windows XP SP3 32 bit
- Oracle database 10g
- Oracle Instant Client setup 'instantclient-basiclite-win32-10.2.0.5.zip'
(1)
I created a new folder on my workstation named
c:\working\OraInstantTest
(2)
I downloaded the Instant Client mentioned above and placed all files in the zip to the folder c:\working\OraInstantTest.
No subfolders, all files are at one place (as in the zip).
(3)
I created a tnsnames.ora file with these contents:
Code: Select all
# tnsnames.ora Network Configuration File
# Generated by Oracle configuration tools.
GENOCST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = usaXXXX.eur.tld)(PORT = 1521))
)
(CONNECT_DATA =
(SID = GENOCST)
)
)
(4)
I created a Sql.ini with these contents
Code: Select all
[oragtwy]
remotedbname=GENOCST,@GENOCST
substitute=SYSSQL.,
substitute=",
longbuffer=32767
fetchrow=20
[win32client.dll]
comdll=sqlora32
(5)
I added to the global PATH settings at the front:
Code: Select all
path=c:\working\OraInstantTest;.....
Code: Select all
ORACLE_HOME = C:\Working\OraInstantTest
TNS_ADMIN = C:\Working\OraInstantTest
I created a TD test application with this code:
Code: Select all
Set SqlDatabase = "GENOCST"
Set SqlUser = "TestUser"
Set SqlPassword = "Test1"
!
If SqlConnect( hSql )
Set bConnected = TRUE
Call SqlDisconnect( hSql )
I get this errormessage running the exe when trying to connect:
When I install the complete Oracle Client and run the same application the connection is ok.
(so database is alive, user credentials are fine)
I hope someone can point me to a solution.