Oracle ODAC installation x64 – Linked server #7302

This will be my last blog on the linked server to an Oracle database.

Linked server is a great solution for easy datatransfer, but the downsite is, that linked servers and windows updates (security) don’t mix very well. Every time you have security updates  your linked server connection with oracle gets corrupted, to be precise, the linked server provider OraOLEDB.Oracle is.

In my last 3 blogs on linked server, we’ve given you multiple solutions.
Troubleshooting a linked server

– building a linked server

– Creating jobs and queries with linked server

This last blog, will show you the easiest way to solve the issue, to the re-install of the oracle client.

29-4-2013 10-58-24

26-4-2013 16-36-54

In our case, we have 2 installations and 2 homes:
– Oracle Db 11g Release 2 Client ( for Microsoft Windows x64 (Oracle11gR2-Client-x64)
– 64-bit ODAC 11.2 Release 5 ( Xcopy for Windows x64 (ODAC1120320_x64)
De Oracle 11.2.0 Client software:
ORACLE_HOME_NAME: OraClient11g_home1
ORACLE_HOME: D:\oracle\11.2.0\client_1

De Oracle ODAC software:
ORACLE_HOME_NAME: OraClient11g_home2
ORACLE_HOME: D:\oracle\11.2.0\client_2

We’ve learned along the way, since this isn’t the first time, and troubleshooting got us nowhere, we do it drastically, we’re gonna reinstall the ODAC server in order to have the corrupt oraOLEDB11.dll reinstalled.
We currently have 2 Oracle trees, Home1 for the client in order to have sqlplus to test connections and home2 is the ODAC installation, used for the linked server. So we start with reinstalling ODAC to see if this fixes the oracle connection.

Reinstall ODAC server 1

Now we open the setup exe from the ODAC1120320_64 and choose to deinstall the ODAC products from home2 and press remove…

29-4-2013 10-34-29
Next thing is to restart our server, since the files are still visible in the folder. and the dll have not unloaded.

29-4-2013 10-34-29

Now, reinstall ODAC

29-4-2013 12-21-24

29-4-2013 12-22-21

29-4-2013 12-24-21

29-4-2013 12-24-49

29-4-2013 12-25-22

29-4-2013 12-26-17

To see what we have installed in both dirs:

AvailableProdComponents home1en2

After this, we restart the server and the linked server works.

If you still experience problems, the ODAC install also comes with a script to update ASP.NET providers:

@@InstallOracleASPNETCommon.sql @@InstallOracleMembership.sql @@InstallOraclePersonalization.sql @@InstallOracleProfile.sql @@InstallOracleRoles.sql @@InstallOracleSiteMap.sql @@InstallOracleWebEvents.sql

— Install OracleSessionState Provider — For Oracle 10gR1( database and higher, run InstallOracleSessionState.sql — For Oracle 9iR2(9.2.x) database, run InstallOracleSessionState92.sql instead

@@InstallOracleSessionState.sql –@@InstallOracleSessionState92.sql

I hope these linked server blogs have been easy and back to basic tutorials and you found them useful, please let us know if they’ve been helpful to you.

Tooltip for this month SSMA for MySQL

Since Sun MicroSystems has been aquired by Oracle, Some people have had their doubts about the future of MySQL, ofcourse there is MariaDB, a fairly new MySQL solution founded by the masterbrain behind MySQL, Monthy. But it just doesn’t do it ‘yet’ for the bigger audience, i never heard a client ask for a MariaDB database solution, the questions are always the same, Are we going to use Oracle or Microsoft and what are the organization costs to implement and support?

SQL 2008 Express

If you are a personal or a non heavy user of databases Microsoft released the MSSQL Express edition, a free SQL database version that supports databases up to 10 GB. Read more about the free Microsoft SQL 2008 R2 Express here. And to make it even easier for you, Microsoft has now released the MySQL migration Assistent (SSMA) at the 12th of August. The SSMA tool is available for servers SQL2005, 2008, 2008 R2 and SQL Azure and is compatible with MySQL version 4.2 and higher, also suitable for 64 bit platforms. So what’s keeping you up? For everyone who still has doubts, Microsoft will now convince you. After a SQL migration assistant for Oracle, Access and SyBase, MySQl has been added to this list. A pretty smart move for Microsoft to generate even more new clients, who still had cold feet, thinking about costs and downtime of the servers, there is no longer an excuse. Microsoft is listening, improving and on the move!