Using Ambari with Oracle

This page outlines the step-by-step instructions to install Apache Ambari with Oracle 19c as the backend database.

Prerequisites

Before you setup:

  • Ensure you have access to the Oracle 19c database (CDB + PDB setup).
  • Install Oracle JDBC drivers (ojdbc11.jar).
  • Create required users and grant permissions for Ambari.
  • Confirm Ambari is installed and Java is configured on the cluster.

Oracle Driver Details

Oracle Database VersionDriversFile
Oracle Database 19cOracle Database 19c driversojdbc11.jar

Download and Install Oracle JDBC Driver

Download JDBC Driver.

  1. Navigate to the Oracle JDBC Driver Download Page to download the JDBC Driver.

    1. Download the JDBC driver compatible with Oracle Database 19c:
      1. Select Oracle Database 23ai (23.8.0.25.04) JDBC Driver.
      2. Download ojdbc11.jar
  2. Copy the driver to Java shared directory.

Bash
Copy

Create Ambari Database and User in Oracle

Perform the following steps on the Oracle host using sqlplus.

  1. Connect ot SYSDBA.
Bash
Copy
  1. Switch Switch to the Pluggable Database (PDB).
Bash
Copy

Configure JDBC Driver with Ambari

Run the following command on the Ambari Server host.

Bash
Copy

Ambari Server Schema Load

Perform the following steps.

  1. Navigate to Oracle sqlplus and run the queries of /var/lib/ambari-server/resources/Ambari-DDL-Oracle-CREATE.sql.
Bash
Copy
  1. Verify all the tables.

For new installations, run the script: /var/lib/ambari-server/resources/Ambari-DDL-Oracle-CREATE.sql.

This script should be executed within the SQL*Plus (sqlplus) shell.

Bash
Copy
  1. Run the following command on the Ambari Server host.
Bash
Copy

Start Ambari server

  1. Start the Ambari Server.
Bash
Copy
  1. Verify Ambari logs (ambari-server.{log,out}) for errors and ensure users can access the Ambari Web UI.
  2. Register hosts and provide repo details to set up the cluster.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated