How to Install Oracle ODBC Driver in Windows 10

Are you planning to install the Oracle ODBC Driver on Windows 10?

Open Database Connectivity (ODBC) is a standard interface that gives one application access to several different data sources. As a result, the Oracle ODBC can be used to access Oracle databases.

This is a great advantage for advanced users and programmers, who need access to the Oracle ODBC for running online transaction processing, data warehousing, and mixed database workloads — which Oracle is widely used for.

The Oracle ODBC Database 19c for Microsoft Windows 10

However, it is not as easy as installing a program, as it requires downloading and compiling files together. You may also need to input additional data the application will need to run properly. Luckily, we’re here to help.

In this article, we’ll introduce you to a structured process behind procuring and installing the Oracle ODBC Driver in Windows 10. 

Let’s dive right in!

1. Download the Oracle Instant Client Package From the Website. 

Before installing and setting up your driver, you’ll need to download three separate files from the Oracle website and place them into the appropriate folder location. These files are essential in making the software function as it should, enabling your ODBC applications to work by providing additional libraries and resources.

Additionally, you need to download the right files; they must be compatible with each other, as well as your operating system. Downloading or otherwise using the wrong version of each file may cause errors for your driver and your system.

Here’s where you can find and download the Oracle packages:

  1. Begin by going to the Oracle Instant Client page on your browser.
  2. Next, click the Instant Client for Microsoft Windows. Look for the link that matches your PC’s platform.
  3. Follow by choosing the Basic package download link.
  1. Once it’s finished downloading, scroll down and press the SDK package hyperlink to download that archive.
  2. Then, click the download link for the ODBC package.
  3. Now that it’s on your PC, go to your File Explorer window.
  4. Check the C: root drive in File Explorer.
  5. Then, right-click a space within the C: drive and make a new folder.
  1. Name your new folder Oracle and make sure that it has this path: C:\Oracle
  2. After that, move the three downloaded Oracle ZIP archives into the Oracle folder and extract them there.
  3. Look for the extracted instantclient-basic-windows.x64-19.11.0.0.0dbru folder and open it.
  4. Inside, find a subfolder entitled instantclient_19_11 and move it into the Oracle folder.
  5. Finally, erase the instantclient-basic-windows.x64-19.11.0.0.0dbru folder.

This process ensures that the ODBC and basic ZIP archives have been extracted to the same folder by the end of this process. You can also get the SDK package and extract it to the instantclient_19_11 folder. It’s not necessary, but we recommend getting it as well.

2. Add an Oracle Client Directory to PATH Environment. 

An environment variable is an editable value that other programs and applications can access within your computer. This lets the Oracle driver know where to install files, store them, and find user settings.

After extracting and setting up the necessary files for your driver to work, you’ll need to add the Oracle Client directory as an environment variable. This lets other applications and programs access your ODBC driver, allowing you to access the Oracle Database.

Here’s how to properly add the Oracle Client as an environment variable:

  1. Press the Windows+S keys. This will open the search bar.
Windows 10 search bar
  1. Type in the phrase system environment variables into the search bar.
  2. Next, select the Edit the system environment variables option. This should open the System Properties window.
Editing system environment variables in Windows 10
  1. Select the Environment Variables... under the Advanced tab.
  1. Next, select New… under the system variables list.
Editing system variables under the Environment Variables in Windows 10
  1. Input OCI_LIB32 into the Variable Name box.
  2. Under the Variable Value box, input the directory path of your Oracle folder.
  3. Considering you properly formatted the folders previously, your directory path should be: C:\Oracle\instantclient_19_11.
  4. Within the system variables list, double-click the Path variable.
  5. Once opened, click the New button and input the same directory path you added under the Variable Value box. (This would be C:\Oracle\instantclient_19_11).
  6. Click OK and exit the window.

Finishing this process should allow your Oracle Client to run its processes properly. Your previously downloaded Oracle packages can now act as an environment variable for your programs that require the Oracle driver.

3. Install the Oracle ODBC Client.

This step is fairly straightforward. We’ll be installing the Oracle client itself, which can be done in just a few moves.

Here’s how you can install the Oracle ODBC client:

  1. First, start by opening the instantclient_19_11 folder. 
  2. Next, right-click the odbc_install.exe file. 
  3. Finally, select Run as Administrator.

4. Create New ODBC Data Source.

Finally, we’ll be setting up the DSN (Data Source Name) for your newly installed Oracle driver. Note that the information you’ll be adding will be specific to the database you’re trying to connect to. Hence, this information will be different.

Your DSN will contain information that your ODBC driver will need to connect to a specific database. This will include information like the name, directory, and driver of the database. Depending on the type of DSN, it may also include the ID and password of the user.

Here is how to set up your DSN:

  1. Press both the Windows and S keys to open up the search bar.
  2. Enter ODBC Data Sources into the search box.
  3. Select the ODBC Data Sources to open a window.
Setting up your ODBC Data Source so you can install an Oracle ODBC driver in Windows 10.
  1. Click the Add button to open the Create New Data Sources 
  2. Select your Oracle driver and click Finish.
  3. Open the Oracle ODBC Driver Configuration window and enter your information; such as the Data Source Name, TNS Service Name, and User ID.
  4. Press the OK button to exit.

After setting this up, your driver should be able to connect to the Oracle Database server directly.

That wraps it up for this tutorial on how you can install the Oracle ODBC driver in Windows 10. We hope this article has helped you in setting up your own ODBC driver. If you have concerns or inquiries, don’t hesitate to leave a comment don’t below.

If this guide helped you, please share it. 🙂

Author

  • Mako Young

    Mako is a staff writer at Saint. He's been writing about tech for more than a decade. When he isn't reading about the latest news on Apple, he's busy studying cybersecurity, cryptocurrency, cloud computing, and other IT-related sectors. His exceptional work graces technology and Apple-related blogs like How-To Geek, VEED.io, Macgasm, onMac, PhotoWorkout, GameRant, and many more. He also has a Bachelors in Computer Science and has been writing since 2018, with over 400 posts published. LinkedIn X (Twitter)

Leave a Reply

Your email address will not be published. Required fields are marked *