Skip to content

Oracle Database — Prerequisites

Prerequisites for monitoring Oracle Database with HEAL.

3 min read Updated SS

Prerequisites to complete before adding this component in the HEAL Control Center.

Oracle 9i, 10g, and 11g#

Create a JDBC user for HEAL. To create a JDBC user for HEAL and grant it the necessary privileges, follow the steps below:

  1. Log on to the target Oracle database using an account with administrative privileges.
  2. Create a new user for HEAL by executing the following command, replacing <USERNAME> and <MYPASSWORD> with the desired values:

    CREATE USER <USERNAME> IDENTIFIED BY <MYPASSWORD>;
    
  3. Grant the CONNECT privilege to the HEAL user by executing the following command:

    GRANT CONNECT TO <USERNAME>;
    
  4. Grant the SELECT_CATALOG_ROLE privilege to the HEAL user by executing the following command:

    GRANT SELECT_CATALOG_ROLE TO <USERNAME>;
    

Once you have created the JDBC user and granted the necessary privileges, you can use the same user details to configure the database instance in HEAL for monitoring purposes.

In the above command:

  • <USERNAME> is the user to be configured on the Oracle target database for monitoring purposes.
  • <MYPASSWORD> is this user’s password to access the Oracle database.

The same user details must be used to configure the database instance in HEAL for monitoring of Oracle 9i, 10g, or 11g instances.

Create a common JDBC user with access to all containers (PDBs), and grant CONNECT TO and SELECT ANY DICTIONARY TO privileges to the user.

Note: In case permission is denied for accessing all the dictionaries, kindly submit a request to provide the SELECT privilege to the following tables:

  • apdmadm.apdm_rep
  • dual
  • v$sql_bind_capture
  • DBA_HIST_SQLBIND
  • V$SQL_SHARED_CURSOR
  • dba_tab_columns
  • v$sqlarea
  • v$session
  • v$sesstat
  • v$open_cursor
  • dba_sequences
  • v$sql
  • gv$lock
  • dba_ind_columns
  • tbaadm.lgi
  • gv$session_longops
  • sys.dm_tran_session_transactions
  • v$sql_plan
  • dba_users
  • v$active_session_history
  • dba_data_files
  • dba_free_space
  • dba_objects

Oracle 12c, Oracle 18c#

Create a common JDBC user with access to all containers (PDBs), and grant CONNECT TO and SELECT ANY DICTIONARY TO privileges to the user.

Note: In case permission is denied for accessing all the dictionaries, request SELECT privilege to the following tables (same list as above):

  • apdmadm.apdm_rep
  • dual
  • v$sql_bind_capture
  • DBA_HIST_SQLBIND
  • V$SQL_SHARED_CURSOR
  • dba_tab_columns
  • v$sqlarea
  • v$session
  • v$sesstat
  • v$open_cursor
  • dba_sequences
  • v$sql, gv$lock
  • dba_ind_columns
  • tbaadm.lgi
  • gv$session_longops
  • sys.dm_tran_session_transactions
  • v$sql_plan
  • dba_users
  • v$active_session_history
  • dba_data_files
  • dba_free_space
  • dba_objects

To do so, log on to the target Oracle database as a DBA user and execute the following commands:

SQL> CREATE USER c##<USERNAME> IDENTIFIED BY <MYPASSWORD> CONTAINER=ALL;
GRANT CONNECT TO <USERNAME>;
GRANT SELECT ANY DICTIONARY TO <USERNAME>;

In the above command, <USERNAME> is the user to be configured on the Oracle target database for monitoring purposes, and <MYPASSWORD> is this user’s password to access the Oracle database. The same user details must be used to configure the database instance in HEAL for monitoring of Oracle 12c instance.

Note: The above commands will create a common user with access to all containers or Pluggable Databases (PDB) in the system. If you do not want to create a common user for all PDBs, you may create a specific user for a PDB that you want to monitor.

Ensure that the Oracle database port (default 1521) is opened for the component agent to make a JDBC connection to collect the database server and SQL KPIs.


See also: Oracle Database (what HEAL monitors)