Unable to set up ODBC after installing ODAC (Xcopy) - oracle

We are trying to use ODAC Xcopy to minimize the footprint of installing Oracle 11g Client. Currently, we use the Oracle 11g Admin install (~700mb). I've tried using the ODAC Xcopy, and that works. However, the only issue I now have is that I cannot set up an ODBC on the target system by just installing the ODAC Xcopy. After installing ODAC (Windows XP fyi), I go to Control Panel-->Admin Tools-->Data Sources (ODBC)-->System DSN-->Add-->Microsoft ODBC for Oracle. I get the following error: "The Oracle(tm) client and networking components were not found. These components are supplied by Oracle and are part of the Oracle Version 7.3 (or greater) client software installation. You will be unable to use this driver until these components have been installed." I've tried editing the registry and creating the same keys that the Oracle Admin install creates, but still no luck. I'm not sure how to get past this. Any suggestions? Thanks in advance.

Shouldn't you be using the Oracle Driver instead of the Microsoft ODBC driver? Microsoft's driver will require the SQLNet drivers which come with your full client install. There should be an additional ODBC driver available after installing the Oracle ODAC. Go to the Drivers tab of the ODBC Adminstrator and you should see something along the lines of "Oracle in OraClient11g_home1" with a version of 11.something. That's the driver you should make your DSN from. I've only used the 10g ODBC install (which could be minimally installed with a selection of "Instant Client").
HTH

I would advise you stick to the full installer, which takes care of all the configuration tasks (registry, DLL registrations, etc..), but do a custom install using a response file.
Get the correct version of Oracle client installer (not the ODAC) from here:
32-bit:
https://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_client.zip
64-bit:
https://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_client.zip
the Oracle client bitness has to match your executable's.
Do an silent install using this reponse file (edit as needed and save as client_install.rsp in the same directory as setup.exe)
Response file
setup.exe" ORACLE_HOME_NAME=OracleClient11201 -waitforcompletion -nowait -silent -responseFile client_install.rsp
The key config entry is this:
oracle.install.client.customComponents="oracle.rdbms.oci:11.2.0.1.0","oracle.network.client:11.2.0.1.0","oracle.odbc:11.2.0.1.0"

Related

Proper Oracle ODBC Driver Installation on 32 bit Windows 7

I am using an Excel VBA application to connect to an Oracle 12c database.
Excel is 2010, 32 bit, in Windows 7.
Many have advised Oracle Instant Client, but this has not worked for me. The installation requires a number of configuration steps that I cannot perform due to administrative restrictions on my workstation.
However, I have installed the ODAC 12.2c Release 1 and Oracle Developer Tools for Visual Studio (12.2.0.1.0), available HERE. This package includes the Oracle ODBC driver which works for my application. However, it contains several other components that I do not need, and throws some errors during installation that are disconcerting.
Can anyone tell me which of the following components I actually need to select in order to get the ODBC Driver?
Since I cannot get InstantClient to work with my companies restrictions, I'm now aiming to use this package, but hopefully to slim it down to just the component I need. I'm doing trial and error, but it's messy. The installation takes a long time and there's no uninstaller, so I have to manually delete the files after installation.
Thanks for any help you can provide!
The smallest solution is to download the
Instant Client Package - ODBC: Additional libraries for enabling ODBC applications (instantclient-odbc-nt-12.2.0.1.0-2.zip)
from Instant Client Downloads for Microsoft Windows 32-bit
You can also download the ODAC with Oracle Developer Tools for Visual Studio from ODAC Developer Downloads - Oracle Universal Installer
Get the full 32-bit Oracle client installer (not the ODAC) from here:
http://download.oracle.com/otn/nt/oracle12c/122010/win32_12201_client.zip
Do an silent install using this reponse file (edit as needed and save as client_install_32.rsp in the same directory as setup.exe)
Response file
setup.exe" ORACLE_HOME_NAME=OracleClient12201x32 -waitforcompletion -nowait -silent -responseFile client_install_32.rsp
The key config entry is this:
oracle.install.client.customComponents="oracle.rdbms.oci:12.2.0.1.0","oracle.network.client:12.2.0.1.0","oracle.odbc:12.2.0.1.0"

How to update Oracle ODBC driver in Windows and all existing ODBC sources

I would like to update Oracle ODBC driver on Windows 2008 R2 64bit Machine from version 11.2.0.1 to 11.2.0.4.
I downloaded from http://www.oracle.com/technetwork/topics/winx64soft-089540.html: (version 11.2.0.4)
Instant Client Package - Basic
Instant Client Package - ODBC: Additional libraries for enabling ODBC applications
Then unzipped two files, merged them into one folder and then from CMD line with administrative privileges run script:
odbc_install
Then I was able to see the driver on the list in ODBC driver in 'Microsoft ODBC Administrator'.
The problem is that I would like that all exsting configured System DSN which use 11.2.0.1 Oracle driver should be updated with 11.2.0.4 version.
Could you please advise me what steps I should take to achieve it.
Best regards
Daniel
You can do it directly in your Registry. ODBC Drivers are located at:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\{Oracle Home Name}\Driver
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\{Oracle Home Name}\Driver
Check and update following values:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\{Your DNS Entry}\Driver
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\{Your DNS Entry}\Driver
HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\{Your DNS Entry}\Driver

Unable to install (re-install) Toad DB2

When I try to re-install Toad, i get the following error message:
"The Toad for DB2 installer has detected an existing 64-bit DB2 environment on your computer. This installation of Toad for DB2 includes a 32-bit DB2 client. However, DB2 does not allow both 32-bit and 64bit DB2 Environment to exist on the same computer."
I am using Windows 7 (64bit) and just uninstalled Toad prior to this installation. (Trying to re-install toad)
O and here is the solution. Hope this can help others as well:)
Opened registry, looked for the keys
HKEY_LOCAL_MACHINE\SOFTWARE\IBM
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\IBM
Just renamed the IBM Folder into something else
After that the 64 bit Toad setup will pass the checking for any installed IBM software. And there you go! :)

Oracle ODBC - missing drivers?

I installed
ODAC 11.2 Release 3 and Oracle Developer Tools for Visual Studio (11.2.0.2.1)
from http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html
but i still do not see Oracle driver in the ODBC Manager... please help.
i checked the ODBC Drivers in the Registry, and only found SQL there... maybe i downloaded the wrong thing? someone please point me in the right direction.
Call "c:\windows\SysWOW64\odbcad32.exe" from the start/run box or from the command prompt, so
the drivers are more likely to appear. I´ve been through similar problems with Oracle Instant Client (basic and ODBC) 32-bit driver not appearing at the ODBC Admin Window. I was able to configure a Data Source to Oracle 11g Express by calling "c:\windows\SysWOW64\odbcad32.exe" this way.
Regards.
I can't access the page you referenced to read about it, but to install the Oracle ODBC driver you can install the Oracle Instant Client. This page gives some good instructions on how to do it. Once the instant client is installed, the Oracle ODBC driver should show in the ODBC Manager. Note that you do not need a full client install to use the ODBC driver.
Run cmd with elevated privileges to install odbc_install.exe.

ODBC x64 oracle problem

I have a workstation with Windows 2008 x64, MS Access 2007 and Oracle 11g x64
I use Access to connect to Oracle via ODBC.
I am the administrator (in the administrator group) on the workstation. I run Access as administrator but when I want to make an ODBC call to Oracle it does not work.
How do I do it:
I start MS Access and creates a direct query. In the properties dialog I go to add new and the Select datasource dialog appears. I then use machine datasource and click New, System datasource - but the driver for Oracle is not there.
Regards Robert :-)
Solved! Create a Virtual PC (Hyper-V) and install the 32 bit version of OS and client - it works!
If you want to use the Oracle supplied ODBC driver, you need to install the oracle client. The default client install does not include the driver, so you either need to add it when you do the install or re-run the universal installer to add it later.
To get the Oracle ODBC driver for 10g (don't know about 11):
run the client install. You will be given 4 options for installation type: InstantClient, Administrator, Runtime, and Custom.
select "InstantClient" (it's not in the Runtime install)
You must install this in a new oracle home.
Once the installation is complete, you should see the Oracle driver in your ODBC control.
I can se the Oracle driver in the standard ODBC administration but when I start this from within MSAccess the driver does noe appear. This means that the x64 driver is not present. if I look in the registry the Oracle driver is noe existing under the HKLM\Software\Wow6432Node\ODBC\ODBCINST.INI key like the ones for SQLServer

Resources