Version detailed 10.2.0.4
PART I - Instant Oracle client 10.2.0.4 for Win32
ODBC installation guide
ODBC installation guide
I decided to give a detailed installation guide for this version which will help you save some time and use easily Instant Oracle. It allows to avoid installing the full Oracle client on any computer or server which is not totally seamless.
I- Download the proper files
Create first a directory on C:\ drive C:\Instant_oracle, put all the files in this directory.
and Add ";C:\Instant_oracle" at the end of this variable without the brackets.
PART II - ODBC System DSN creation and
VBS Oracle sample code
III- Creation of the ODBC link to an Oracle database
*Note: The TNS service name matches what is defined in the TNSNAMES.ORA file. Don't think that the scroll down list will propose you all the TNS service name, you have to type it manually without taking care of the junk available in the choices.
In order to illustrate this connection, I have added a simple VBS sample which illustrate how use this configuration.
IV- Sample VBS usage of this ODBC link
I- Download the proper files
Create first a directory on C:\ drive C:\Instant_oracle, put all the files in this directory.
- Go to the link above and download the proper version for the suitable platform.
- For the win32 platform, download the dll file here (Not needed under Windows XP).
- Download the reg file here as well.
- Download this sample TNSNAMES.ORA file here.
- instantclient-basic-win32-10.2.0.4.zip
- instantclient-odbc-win32-10.2.0.4.zip
- mfc71.dll
- Reg_tns.reg
- tnsnames.ora
- Unzip all the files into the same directory*
- Apply the Reg_tns.reg file by double clicking on it and accepting to load it into the registry.
- Update the path environment variable with "C:\Instant_oracle".
and Add ";C:\Instant_oracle" at the end of this variable without the brackets.
- Launch a command window with Start > Run > Cmd, go to the C:\Instant_oracle folder.
- Execute the odbc_install.exe file. If everything works properly, you should get a success message.
PART II - ODBC System DSN creation and
VBS Oracle sample code
III- Creation of the ODBC link to an Oracle database
- Go first to :
- Go to the System DSN tab and click Add...
- Select the Oracle in instantclient10_2 driver then you will see appearing a configuration window.
- In this configuration window, you will have to fill in mainly:
*Note: The TNS service name matches what is defined in the TNSNAMES.ORA file. Don't think that the scroll down list will propose you all the TNS service name, you have to type it manually without taking care of the junk available in the choices.
- You can simply reproduce what is mentioned below:
- At the end of the configuration, you can use the Test Connection option. If everything works well you should get a successful connection message.
In order to illustrate this connection, I have added a simple VBS sample which illustrate how use this configuration.
IV- Sample VBS usage of this ODBC link
- Here is a sample VBS code, just copy it to a text file and save as test.vbs, then double click on it.
- If everything is working, you should be able to get the date in a message box.
No comments:
Post a Comment