Oracle DB - How To Install the Oracle 19C Full Client, ODBC, and SQL Developer

Objective

Following these steps will install the Oracle Client 19C onto your machine.

Environment

Oracle Client 19C

Before You Begin

You will need to be logged in to MSU's VPN (link) to complete these instructions.

Verify Oracle Client Version

Verify which version of the Oracle client you have installed using the below instructions. If you are using versions 12 through 18 we strongly encourage that you upgrade to the latest version. If you are using any version older than 12, you are required to upgrade to the latest version.

Windows

  • Open Command Prompt (CMD) and type "sqlplus /nolog" (without quotations) to display the version of Oracle installed.

macOS

  • Open Terminal and type "sqlplus -version" (without quotations). This command will display the SQL*Plus client version, which corresponds to the Oracle client version installed.

Steps

Download Client Packages

  1. If you will be using ODBC, you must ensure that the client you download matches the bit architecture of your Microsoft Office installation. To check your version:
    1. Open MS Excel.
    2. Go to File > Account.
    3. Select About Excel to see the version details. It should say 32-bit or 64-bit at the end of the version number.
  2. Select your client below:
  3. To download, hover your mouse over the file you want and select ..., then choose Download
    Screenshot
  4. Once the download completes, unzip (Extract All…) the file to Download folder and navigate down through the folders until you find the setup.exe file.
  5. Run (double-click) setup.exe, this will take a minute to complete, then follow the installation steps below.

Installation Steps

When the installer appears, perform the following actions:

  • Step 1 of 7 - Select Installation Type
    1. Select Administrator
    2. Select Next
      Screenshot
  • Step 2 of 7 - Oracle Home User Selection
    1. Select Use Windows Built-in Account
    2. Select Next
      Screenshot
  • Step 3 of 7 - Specify Installation Location
    • Enter the following:
      • Oracle Base: C:\app\<username>\
      • Software Location: C:\app\<username>\product\19.0.0\client_1
    • Select Next
      Screenshot
  • Step 4 of 7 - Perform Prerequisite Checks
    • This is an automatic step performed by the Installer. Fix any issues if necessary.
    • If no issues are present, the Installer proceeds to step 5 automatically.
      Screenshot
  • Step 5 of 7 - Summary
    • Review the summary.
    • Select Install.
      Screenshot
  • Step 6 of 7 - Install Product
    • A progress bar will appear, indicating the status of the installation. This may take several minutes depending on your system's performance and the components being installed.
    • During the installation, you may encounter a Windows Security Alert for Java. This alert is to ensure that Java can make changes to your system, which is necessary for the Oracle client installation. Select Allow access to permit Java to proceed with the installation.
      Screenshot
  • Step 7 of 7 - Finish
    • Once the installation process is complete, the Installer will display a completion screen indicating that the Oracle client installation has finished successfully.
    • Select Close.
      Screenshot

TNSNAMES.ORA Setup

  1. Locate and Save the tnsnames.ora File:
    • Using the tnsnames.ora file that was attached to the MSUEDW access notification email, save the file on following folder on your local machine. (Oracle Base/Home)
    • C:\app\client\<username>\product\19.0.0\client_1\network\admin\.
  2. Handling Existing tnsnames.ora File:
    • If a tnsnames.ora file already exists in the specified directory:
      1. Open the provided tnsnames.ora file in Notepad.
      2. Append the required MSUEDW and MSUEDWQ database entries to the existing file.
  3. Testing Oracle Client Connectivity:
    • To test the Oracle client’s ability to reach the desired Oracle instance without logging in, follow these steps:
      1. Type “cmd” in the search box next to the Start/Windows button and click on the “Command Prompt” app.
      2. Once the “Command Prompt” window is displayed, enter the following command and press Enter: tnsping MSUEDW
      3. You should receive a result indicating “OK” in the last line of the output, confirming that the Oracle client can reach the MSUEDW instance.

Configuring ODBC

Setting Up ODBC Data Source:

  1. Go to Control Panel > System and Security > Administrative Tools or type in the windows search: ODBC
  2. Open ODBC Data Sources.
    Screenshot
  3. Click Add… to create a new data source.
  4. Select the “Oracle” driver from the list.
  5. Configure the data source as required and test the connection.
    Screenshot
  6. Enter your credentials (e.g., MSUEDW Password) and click OK.
    Screenshot

Oracle SQL Developer Setup

  1. Open the Application:
    1. Click on the Start/Windows button.
    2. Find and click on Oracle – OraClient19C_home1 (this is the Oracle installed name).
    3. Go to Application Development.
    4. Click on SQL Developer.
  2. Java JDK Path (if prompted):
    1. If prompted for the JDK path, click Browse.
    2. Enter your Java JDK path (it should be \jdk\bin) and select java.exe.
    3. Click OK to launch SQL Developer.
    4. If not prompted for the JDK path, proceed to the next step.
  3. Migrating Configuration:
    • You may be offered the opportunity to migrate your configuration from an earlier version of SQL Developer. Follow the prompts if you wish to do so.
  4. Configure File Type Associations:
    • When SQL Developer opens, you might be prompted to configure file type associations.
      • If you are principally an Oracle Developer, select all the SQL*Developer file type associations and click OK.
      • If you are a SQL Server developer and wish to keep using SQL Server Management Studio for certain file types, click Cancel.
  5. Set Up a Connection in SQL Developer:
    1. Right-click Connections and select + New Connection.
      Screenshot
    2. Enter the Database Connection details:
      • Connection Name: A name of your choice.
      • Username: Your database username.
      • Password: Your database password (you can elect to save the password if you like).
      • Connection Type: Select TNS.
      • Network Alias: Select the appropriate alias from your local tnsnames.ora file.
        Screenshot
      • Click the Test button to test the connection.
      • Check the result of the test (you should see Status: Success).
      • Click the Save button to save the connection settings.
      • Click the Connect button to connect to the database.
  6. Execute a Query:
    • Once connected, you can enter a SQL statement in the appropriate tab (e.g., MSUEDW -).
    • For example, enter: SELECT * FROM FINANCE.KFS_CA_ACCOUNT_V;
    • Press the Green arrow to execute the query.
      Screenshot

Additional Info

Help and Documentation:

  • SQL Developer provides documentation to help you understand the tool.
    • Use the Help menu option on the menu bar:
    • Select Help then Start Page to access links to tutorials and documentation.
Print Article

Related Services / Offerings (1)