To install the ODP.NET driver, complete the following
steps:
-
To perform the installation using the XCOPY installer, complete
the following substeps:
- Go to https://www.oracle.com/database/technologies/dotnet-odacdeploy-downloads.html and locate the ODAC XCopy section.
- Download 64-bit ODAC 19.3.
- Unzip the downloaded file.
- Open a command prompt window as an administrator and navigate to the directory that contains the contents of the 64-bit ODAC 19.3 ZIP file.
-
Execute the following command.
install.bat odp.net4 [oracle installation directory][oracle home key] true true
Example
install.bat odp.net4 c:\oracle odac true true
-
To perform the installation using the Oracle Universal Installer
(OUI), complete the following substeps:
- Go to https://www.oracle.com/database/technologies/dotnet-odacdeploy-downloads.html and locate the ODAC OUI section.
- Download 64-bit ODAC 19.3.1.
- Unzip the downloaded file and then run the setup.exe file included in the ZIP file.
-
On each page, provide the required information and then click
Next.
Note: In the Available Product Components page, select only Oracle Data Provider for .NET. Other components are not required.
- Review the summary and then click Install.
-
Add the
ODP.NET installation directory and its
bin subdirectory to the Windows environment variable
PATH, if not yet present.
Example
If C:\Oracle is the installation directory, add C:\Oracle and C:\Oracle\bin.
Note: Ensure to place the newly added directories before all other Oracle directories. -
To register the
Oracle.DataAccess.dll in the Global Assembly Cache (GAC),
complete the following substeps:
-
Open a command prompt window as an administrator and navigate
to the directory that contains the
OraProvCfg.exe file.
Note: The default directory is [Oracle installation directory]\odp.net\bin\4.
-
Execute the following command.
oraprovcfg /action:gac /providerpath:[full path to Oracle.DataAccess.dll]Example
oraprovcfg /action:gac /providerpath:C:\oracle\odp.net\bin\4\Oracle.DataAccess.dll
-
Open a command prompt window as an administrator and navigate
to the directory that contains the
OraProvCfg.exe file.