How to Connect Excel to Oracle Database

Table of contents:

How to Connect Excel to Oracle Database
How to Connect Excel to Oracle Database

Video: How to Connect Excel to Oracle Database

Video: How to Connect Excel to Oracle Database
Video: insert page number in word X of Y 2024, May
Anonim

This article teaches you how to connect an Excel workbook to an Oracle database with Power Query.

Step

Connect Excel to an Oracle Database Step 1
Connect Excel to an Oracle Database Step 1

Step 1. Open the desired workbook using Excel

Excel comes with a feature called Power Query (also called Get & Transform) to make it easier for you to connect to Oracle databases.

If your computer does not have the Oracle client program installed, install this software first. Get the latest version of Oracle for 64 bit computers here, and 32 bit at this link

Connect Excel to an Oracle Database Step 2
Connect Excel to an Oracle Database Step 2

Step 2. Click Data

This tab is at the top of the screen.

Connect Excel to an Oracle Database Step 3
Connect Excel to an Oracle Database Step 3

Step 3. Click Get Data

If this option does not exist, click New Query.

Connect Excel to an Oracle Database Step 4
Connect Excel to an Oracle Database Step 4

Step 4. Click From Database

Connect Excel to an Oracle Database Step 5
Connect Excel to an Oracle Database Step 5

Step 5. Click From Oracle Database

Connect Excel to an Oracle Database Step 6
Connect Excel to an Oracle Database Step 6

Step 6. Type the Oracle server name in the Oracle Database box

This is the hostname or address of the server that hosts your database.

If the database requires a SID, enter the server name/address using this format: servername/SID

Connect Excel to an Oracle Database Step 7
Connect Excel to an Oracle Database Step 7

Step 7. Enter the original database query (optional)

If you need a special query when importing data from the database, expand the SQL Statement box by clicking the small triangle, then type the statement.

Connect Excel to an Oracle Database Step 8
Connect Excel to an Oracle Database Step 8

Step 8. Click OK

This will save your selected options and initiate a connection to the database.

Connect Excel to an Oracle Database Step 9
Connect Excel to an Oracle Database Step 9

Step 9. Log in to the database

If the database asks you to login first, type in your username and password, then click Connect. Doing so will connect the workbook to the database.

  • Depending on your settings, you may also need to specify an authentication method.
  • When you enter the original database query, the results will be displayed in the Query Editor window.

Recommended: