PDF download Download Article
Import raw Oracle data into a spreadsheet you can sort and filter
PDF download Download Article

This wikiHow teaches you how to connect an Excel workbook to an Oracle database using Power Query. Note that the Oracle connector is only available in Microsoft 365 Apps for Enterprise Edition, Office 2019 Professional Plus, and Office 2016 Professional Plus. [1]

Connecting Excel to Oracle: Fast Facts

Install both the Oracle Instant Client and the Oracle ODBC package, and add the install directory to your system path. To connect to the Oracle database in Excel, go to Data > Get Data > From Database , select From Oracle Database . Not all versions of Excel support Oracle DBs.

Part 1
Part 1 of 2:

Installing the Oracle Client and DB Connector

PDF download Download Article
  1. 1
    Download the Oracle Instant Client. Go to https://www.oracle.com/database/technologies/instant-client/downloads.html and click the download link for your operating system and processor type/architecture. You can opt for the Basic or Basic Light version—the only difference is that Basic Light only includes English error messages and Unicode, ASCII, and Western European character set support. [2]
    • To find your architecture on Windows, type "System Information" into the Windows search bar, and check the value of "System type."
    • If you're using a Mac, you'll see separate download links for Intel and ARM processors. If you have an Apple silicon processor, choose the ARM download. You can find your processor type in the Apple menu > About this Mac . [3]
  2. 2
    Install the client.
    • Windows
      • Unzip the files.
      • Move the files to an easy-to-remember location, such as C:\Oracle\instantclient_23_4.
      • Add the directory to the PATH environment variable . [4]
    • Mac
      • Double-click the DMG file to mount it.
      • Open a Terminal and enter the directory of the mounted package using the cd command. For example, cd /Volumes/instantclient-basic-macos.x64-19.16.0.0.0dbru . [5]
      • Type ./install_ic.sh and press Return .
      • Add the install directory to your path using the command export PATH=$PATH:/Users/user-name/Downloads/instantclient_23_3 . Replace "user-name" with your username, and the version of Instant Client with the version you downloaded.
    Advertisement
  3. 3
    Download the ODBC package. Return to the Oracle Instant Client download page and click the version you installed. Click the latest version number, then scroll down to the "ODBC Package" section. Click the download link to save the file.
  4. 4
    Install the ODBC driver.
    • Windows
      • Extract the ZIP file and copy its contents to the directory where you installed the Instant Client.
      • Run the odbc_install.exe file in the instant client directory. If you get a security warning, click More and allow it to run anyway.
    • Mac
      • Mount the DMG file.
      • Open a Terminal and enter the directory of the mounted package using the cd command. For example, cd /Volumes/instantclient-obdb-macos.x64-19.16.0.0.0dbru .
      • Type ./install_ic.sh and press Return .
  5. Advertisement
Part 2
Part 2 of 2:

Connecting to the Database in Excel

PDF download Download Article
  1. Excel comes with a feature called Power Query (also called Get & Transform) that makes it easy to connect to an Oracle database. [6]
  2. It’s at the top of the screen.
  3. If you don’t see this option, click New Query or Get External Data instead.
  4. This option is only available if you're using Microsoft 365 Apps for Enterprise Edition, Office 2019 Professional Plus (PC), or Office 2016 Professional Plus (PC).
  5. This should be the hostname or address of the server that hosts your database.
    • If the database requires an SID, use this format to type the server name/address: servername/SID . [8]
  6. If importing data from the database requires a specific query, expand the ″SQL Statement″ box by clicking the small triangle, and then type the statement. [9]
  7. This saves your options and initiates a connection to the database.
  8. If the database requires you to log in, enter your username and password, and then click Connect . This connects the workbook to the database.
    • Depending on your settings, you may also have to choose an authentication method.
    • If you entered a native database query, the results will appear in a Query Editor window.
  9. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      Article Summary X

      1. Click Data .
      2. Click Get Data .
      3. Click From Database .
      4. Click From Oracle Database .
      5. Enter the server name.
      6. Enter a query (optional).
      7. Click OK .
      8. Log in to the database.

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 93,086 times.

      Is this article up to date?

      Advertisement