How to Install ODAC for Power BI

Cody Schneider7 min read

Connecting Power BI to an Oracle database should be straightforward, but it often trips people up with confusing driver requirements. If you're struggling to get the two systems to communicate, you've come to the right place. This guide walks you through every step of installing and configuring the Oracle Data Access Components (ODAC) needed to create a stable, reliable connection for your Power BI reports.

What Is ODAC and Why Do You Need It?

Power BI doesn’t have a built-in, native connector that can directly query an Oracle database. Instead, it relies on client software provided by Oracle to act as a bridge. This "bridge" is the Oracle Data Access Components, or ODAC. It’s essentially a package of drivers and utilities that allows applications on a Windows machine (like Power BI) to communicate with a remote Oracle database.

One of the most common stumbling blocks is the architecture mismatch. Power BI Desktop is a 64-bit application, which means it requires a 64-bit Oracle client. If you have an old 32-bit client installed for other applications, Power BI won't be able to use it, leading to frustrating errors. The installation process ensures you get the right components in the right place so Power BI can find and use them.

Prerequisites: What to Check Before You Start

Getting a few things in order upfront will save you a lot of headaches. Run through this checklist before you download or install anything.

  • Power BI Desktop (64-bit): Ensure you have the latest version of Power BI Desktop installed. You can confirm it's the 64-bit version by going to File > About. If you installed it from the Microsoft Store, you automatically have the correct version.
  • Oracle Database Version: You need to install an ODAC version that is compatible with your Oracle database. The client version doesn’t have to match exactly, but it should be compatible. For example, the 19c client can connect to Oracle databases 11.2 and higher. If you’re not sure, ask your database administrator (DBA).
  • Administrator Rights: You must have administrative privileges on your computer to install software and modify system environment variables.
  • Existing Oracle Installations: If you already have other Oracle client software installed, be aware that this can cause conflicts. The steps below will help you configure your system's PATH variable to prioritize the new client for Power BI.

Step-by-Step: Installing and Configuring ODAC for Power BI

Follow these steps carefully. The process isn't complex, but specific details in the configuration steps are critical for success.

Step 1: Download the Correct ODAC File

First, you need to download the appropriate ODAC package from Oracle's website. Be sure to get the 64-bit version.

  1. Navigate to the official Oracle page for 64-bit Oracle Data Access Components Downloads.
  2. Look for a version that is compatible with your database. A good, modern choice that works for most recent databases is ODAC with Oracle Instant Client. The driver name often indicates the version, something like ODAC1931_x64.zip for version 19c.
  3. Download the ZIP file to your computer. You may need an Oracle account to complete the download.

Step 2: Unzip and Install the Components

Unlike a traditional installer with a graphical interface, you'll run the ODAC setup from the command line. This gives you more control and ensures the components are registered correctly.

  1. Create a permanent folder on your C: drive for the Oracle client. For example: C:\oracle\odac_19c. Do not use a folder with spaces in the name, like Program Files, and avoid temporary locations like your Downloads folder.
  2. Unzip the contents of the ODAC file you downloaded into this new folder.
  3. Open the Windows Command Prompt as an administrator. You can do this by searching for "cmd" in the Start Menu, right-clicking on it, and selecting "Run as administrator."
  4. Navigate to the folder where you unzipped the files using the cd command:
  5. Run the installation script. This script will copy the necessary files and configure the Windows Registry. The command follows the pattern install.bat [component] [oracle_home_name]. For Power BI, you need the ODBC component:
  6. You should see messages in the command prompt indicating that the installation was successful.

Step 3: Configure Your System's Environment Variables

This is the most critical step. Environment variables are system-wide settings that tell Windows applications where to find files and libraries. Power BI uses them to locate the Oracle drivers and connection configuration files.

  1. Search for "Environment Variables" in the Start Menu and select "Edit the system environment variables."
  2. In the System Properties window, click the "Environment Variables..." button.
  3. Under the "System variables" section (not "User variables"), you will add or edit two key variables.

Configure TNS_ADMIN

The TNS_ADMIN variable tells the Oracle client where to find the network configuration file, tnsnames.ora.

  1. First, create the folder that will hold this file. A common practice is C:\oracle\network\admin.
  2. Back in the Environment Variables window, click "New..." under System variables.
  3. Enter TNS_ADMIN for the "Variable name".
  4. Enter the path to the folder you just created (e.g., C:\oracle\network\admin) for the "Variable value". Click OK.

Configure the Path Variable

The Path variable tells Windows where to look for executable files and DLLs. You need to add the Oracle client location to it.

  1. Find the Path variable in the list of System variables and click "Edit...".
  2. Click "New" and add the path to your ODAC installation directory (e.g., C:\oracle\odac_19c).
  3. Click "New" again and add the path to the bin sub-directory as well (e.g., C:\oracle\odac_19c\bin).
  4. Important: If you have other Oracle clients installed, use the "Move Up" button to move these two new entries to the top of the list. This ensures that Power BI finds this 64-bit client first.
  5. Click OK on all the windows to save your changes.
  6. Reboot your computer. This is highly recommended to ensure all the changes to the environment variables take effect system-wide.

Step 4: Create and Configure the tnsnames.ora File

The tnsnames.ora file is like a phonebook for your database connections. It maps an easy-to-remember alias to the technical server address, port, and service name needed to connect.

  1. Open a text editor like Notepad.
  2. Create your database entry using the following format. Your DBA can provide you with the correct HOST, PORT, and SERVICE_NAME.
# TNSNAMES.ORA file
# Example Entry

MY_PROD_DB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = proddb.yourcompany.com)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orclprod)
    )
  )

Here, MY_PROD_DB is the friendly alias you will use inside Power BI's connection dialog.

  1. Save the file as tnsnames.ora (make sure it doesn't save as tnsnames.ora.txt) inside the folder you designated for the TNS_ADMIN variable (e.g., C:\oracle\network\admin).

Testing the Oracle Connection in Power BI

With all the components installed and configured, it's time to connect from Power BI.

  1. Open a new Power BI Desktop report.
  2. Go to the Home ribbon and click Get Data. Select Database > Oracle database and click Connect.
  3. In the dialog box, for the Server field, enter the alias you defined in your tnsnames.ora file (e.g., MY_PROD_DB).
  4. You can typically leave "Data Connectivity mode" as "Import" unless you have specific reasons to use "DirectQuery" for massive datasets.
  5. Click OK.
  6. In the next screen, select the "Database" tab on the left. Enter the username and password for a database user that has at least read-access to the tables you need. Click Connect.

If the connection is successful, the Power BI Navigator window will appear, allowing you to browse the schemas and tables in the database. You're now ready to start building your reports!

Troubleshooting Common Connection Errors

If you encounter an error, it's typically one of these two common issues:

  • Error: ORA-12154: TNS: could not resolve the connect identifier specified
  • Error: Object reference not set to an instance of an object, or a notice that the Oracle client is not installed.

Final Thoughts

Connecting Power BI to an Oracle database involves a few more steps than other data sources, but it's a manageable process. By installing the correct 64-bit ODAC drivers, carefully setting up the TNS file, and configuring the environment variables, you can create a robust link for all your reporting needs.

All of this illustrates how frustrating the hands-on, technical setup of data sources can be. We built Graphed to remove this kind of friction. Instead of manually installing drivers or configuring connection files, our platform offers one-click integrations for major marketing and sales platforms. You just connect your sources once, and our AI data analyst handles the rest, allowing you to build real-time dashboards and get answers using simple, natural language.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.