I am not able to add Oracle monitor, it says "Permission denied".

I am not able to add Oracle monitor, it says "Permission denied".

Reason:

Applications Manager requires access to specific Oracle system views in order to collect database performance and availability metrics. If the configured Oracle user lacks sufficient privileges, the monitor cannot be added successfully and a permission denied error may occur.

Solution:
For creating new Oracle database monitor, ensure that the monitoring Oracle user has the necessary permissions:
1. Administrator privileges
2. CONNECT and SELECT_CATALOG_ROLE roles
3. Refer Prerequisites or grant view for the attached views (Oracle_views.html) file by adding the following views table to the Oracle_views.html file:

Views
Grant Permission
GV$LISTENER_NETWORK
GRANT SELECT ON GV$LISTENER_NETWORK TO C##MinPer ;
gv$parameter
GRANT SELECT ON gv$parameter TO C##MinPer ;
V$VERSION
GRANT SELECT ON V$VERSION TO C##MinPer ;
GLOBAL_NAME
GRANT SELECT ON GLOBAL_NAME TO C##MinPer ;
v$pdbs
GRANT SELECT ON v$pdbs TO C##MinPer ;
gv$osstat
GRANT SELECT ON gv$osstat TO C##MinPer ;
gv$cluster_interconnects
GRANT SELECT ON gv$cluster_interconnects TO C##MinPer ;
v$services
GRANT SELECT ON v$services TO C##MinPer ;
v$archived_log
GRANT SELECT ON v$archived_log TO C##MinPer ;
v$appman_alertlog_ext
GRANT SELECT ON v$appman_alertlog_ext TO C##MinPer ;
v$diag_alert_ext
GRANT SELECT ON v$diag_alert_ext TO C##MinPer ;
v$appman_redolog_cp_ext
GRANT SELECT ON v$appman_redolog_cp_ext TO C##MinPer ;
v$appman_redolog_le_ext
GRANT SELECT ON v$appman_redolog_le_ext TO C##MinPer ;
appman_redolog_cp_view
GRANT SELECT ON appman_redolog_cp_view TO C##MinPer ;
appman_redolog_le_view
GRANT SELECT ON appman_redolog_le_view TO C##MinPer ;
dba_hist_sqlstat
GRANT SELECT ON dba_hist_sqlstat TO C##MinPer ;
dba_data_files
GRANT SELECT ON dba_data_files TO C##MinPer ;
dba_tablespaces
GRANT SELECT ON dba_tablespaces TO C##MinPer ;

NotesNote: Some might try changing the SYS as SYSDBA for adding Oracle monitor. It is not possible to change the SYS as SYSDBA because Applications Manager uses JDBC for connecting with Oracle. In JDBC mode, changing of user into another user privilege is not possible. 

Prerequisites for monitoring Oracle Pluggable Database (PDB) metrics:
  1. SYS or SYSTEM or Common user with CONNECT and SELECT_CATALOG_ROLE roles is required to monitor Oracle PDBs.
  2. If Common user is chosen for monitoring, then the below privilege has to be provided by connecting to the CDB container with SYS user:
    alter user set container_data=all container = current;
    For example:
    alter user C##APM set container_data=all container = current;
    The C##APM user has now been given the SELECT role privilege to access all the objects.


                  New to ADSelfService Plus?