This article explains how to monitor an Oracle Pluggable Database (PDB) directly in Foglight, without requiring access to the Container Database (CDB).
When attempting to add a PDB directly, users may encounter the following error:
"Monitoring Oracle 12c is only supported if using a common user and connection details that log in to CDB$ROOT container. The connection details entered are unsuitable."
Note: The term "Oracle 12c" in this message applies to all Oracle versions 12c and higher.
The monitoring user was not created while connected directly to the PDB. To monitor a PDB independently, the user must be created within the PDB context.
An older version of the grant privileges script was used (pre-7.3.2.11), which lacks the necessary permissions for PDB-only monitoring.
Assuming your PDB is named ORCLPDB1, and you are using a SQL query utility like Toad or SQL*Plus, connect using the Admin account directly to the PDB
sqlplus sys@ORCLPDB1 as sysdba
CREATE USER my_newuser IDENTIFIED BY my_password;
GRANT CREATE SESSION TO my_newuser;
GRANT CONNECT TO my_newuser;
The new agent should be created in the dashboard and populated in a moment.
Scenario | Message |
---|---|
Common user not connected to CDB$ROOT | "Monitoring Oracle multitenant database requires appropriate user and connection configuration." |
Local user connected to CDB$ROOT | "To monitor the entire CDB including all PDBs, you must use a common user (with c## prefix)." |
Common user connected to a PDB | "Common users must connect to CDB$ROOT container to monitor the database correctly." |
Insufficient privileges | "The user lacks necessary privileges to access required system views like v$undostat or v$tablespace." |
Schema validation failure | "Database schema validation failed. This may occur with an unsupported Oracle version where required columns are missing." |
Resource limits exceeded | "Database resource limit exceeded. The maximum number of open cursors has been reached." |
FOG-10986