how to create oracle DSN? - oracle

I have tried downloading anything remotely resembling the oracle odbc drivers and still i am unable to generate a DSN to oracle.
I do not even see oracle drivers showing up in the odbc creation wizard!
All I see are drivers for SQL server and SQL native client.
how do I create a system DSN for oracle?

You need to use the 32 or 64 bit ODBC Admin client.
A 64-bit version of the Microsoft Windows operating system includes the following versions of the Microsoft Open Database Connectivity (ODBC) Data Source Administrator tool (Odbcad32.exe):
The 32-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\SysWoW64 folder.
The 64-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\System32 folder.
See:
http://support.microsoft.com/kb/942976

Related

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

Microsoft ODBC for Oracle on Windows 2008 R2 x64

I have server under Windows Server 2003 with Oracle 10 32bit. There are several ODBC data sources configured in ODBC Data Source Administrator.
Now I need to move all that system to Windows Server 2008 R2 x64.
I've installed OS, Oracle server 12c x64, Oracle client 12 x64.
Now I need to configure my ODBC data sources, but there is no Microsoft ODBC for Oracle driver.
Where can I find this driver to configure ODBC data source?
(I've tried 32bit tool from SystemWOW64, it has this driver but shows me exception "The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle version 7.3 (or greater) clien costware installation." As far as I could say it looks for 32bit client, but there is no such)
"Microsoft ODBC for Oracle" does not exist for 64 bit. Microsoft provides only a 32-bit version.
You have to download and install the driver from Oracle: ODBC
Developer Center or
64-bit Oracle Data Access Components (ODAC) Downloads
The 32-bit ODBC driver (no matter if from Microsoft or from Oracle) does not work together with an 64-bit Oracle Client, the architectures have to match.

DSN name does not appear in Excel

My notebook has Windows 8 64 bit, Microsoft office 2010 32 bit and Oracle DB 11gR2 64 bit installed. I have created DSN to access oracle databases via ODBC sources 64 bit. I want to obtain data from oracle database to Microsoft Excel or Access via ODBC (in excel -> Data - From other sources - from Microsoft query). But DSN name that I created earlier do not appear. What can I do?
If the Application that wants to Access an ODBC-Datasource is 32bit, you need to use the 32bit version of the ODBC-Driver.
In your case you use a 32bit Version of Microsoft Office to Access the Datasource, so you need to use the 32bit Version of the ODBC-Driver. Configure your DSN using
C:\Windows\SysWOW64\odbcad32.exe
and they will probably show up in the 32bit Version of Office.

Unable to set up ODBC after installing ODAC (Xcopy)

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"

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