Configure ODAC for Oracle
If you use an ODAC version newer than version 12, you will need to follow the procedures below. The reason is because newer versions of ODAC do not automatically register their own provider in the Global Assembly Cache (GAC). If you do not follow these procedures, even some of the most basic Meridian functionality will not work.
Prerequisites
To successfully complete these procedures, you must first download the following files:
-
the .NET Framework Software Development Kit (SDK) for the version of .NET you want to use
-
an Oracle ODAC version between version 11.2 and 12.2
If you want to use a newer ODAC version (18 or higher), you can also download that version. However, you must have a version between 11.2 and 12.2 for Meridian Enterprise to function properly.
We recommend you download the XCopy ODAC packages, because you will also need the ODP.NET components. The ODP.NET (Oracle.DataAccess) installation should be compatible with the client. For instance, the latest 64-bit Unmanaged ODP.NET 19.10, download includes the Oracle Instant Client. See the readme documentation included with the download. More than one Oracle client can be installed and configured to use by different executables on the same machine.
Configuration
To configure ODAC for Oracle:
-
Install the .NET Framework Software Development Kit (SDK) using the Windows SDK installation.
You will use the Global Assembly Cache tool (gacutil.exe) from this SDK file.
-
Add the following values to your system PATH environment variable, separated by semicolons:
-
c:\Oracle
This assumes that you will install ODAC to c:\Oracle.
-
c:\Oracle\bin
-
%SystemRoot%\system32
-
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools
Use the proper location of your Windows SDK tools.
-
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64
Use the proper location of your Windows SDK tools.
Learn how to configure your system PATH environment variable.
-
-
Create a folder named temp in your C drive.
-
Create a folder named oratemp in the temp folder you created in the previous step.
-
Unzip the ODAC zip file to C:\temp\oratemp.
-
Open a Windows command prompt window.
-
Change your current working directory using the following command:
Copycd c:\Temp\oratemp
-
Execute a command using the below syntax:
Copyinstall.bat [Oracle Data Provider for .NET 4] [Your installation directory path] odac true
The odac argument is the Oracle Home Name that is used for the registry keys, and the true argument communicates the dependency with the Oracle Instant Client. A properly formatted example appears below:
Copyinstall.bat odp.net4 c:\oracle odac true
-
Change your current working directory using the following command:
Copycd c:\Oracle\odp.net\bin\4
-
Execute the following command:
CopyOraProvCfg /action:gac /providerpath:"c:\Oracle\odp.net\bin\4\Oracle.DataAccess.dll"
-
Change your current working directory using the following command:
Copycd c:\Oracle\odp.net\PublisherPolicy\4
-
Execute the following command:
Copygacutil /i "c:\Oracle\odp.net\PublisherPolicy\4\Policy.4.112.Oracle.DataAccess.dll"
The 4.112 publisher policy is used to redirect the GAC to use the latest installed version of ODP.NET.
-
Check that your Global Assembly Cache (GAC) appears in the following locations:
-
c:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess\v4.0_4.122.19.1__89b483f429c47342\oracle.dataaccess.dll
-
c:\Windows\Microsoft.NET\assembly\GAC_64\Policy.4.122.Oracle.DataAccess\v4.0_4.122.19.1__89b483f429c47342\Policy.4.122.Oracle.DataAccess.config
-
c:\Windows\Microsoft.NET\assembly\GAC_64\Policy.4.122.Oracle.DataAccess\v4.0_4.122.19.1__89b483f429c47342\Policy.4.122.Oracle.DataAccess.dll
-
-
Check that the following registry keys have been created:
-
HKLM\SOFTWARE\Oracle\KEY_odac
-
HKLM\SOFTWARE\Oracle\ODP.NET\4.122.19.1
-
-
Restart your PC.
-
Use the Windows Process Explorer to confirm that the oracle.dataaccess.dll file is correctly mapped to the following services:
-
BlueCieloECM.EnterpriseService.exe
-
w3wp.exe
-