Monitoring Oracle with Datadog - CDB / PDB and DBM

For Oracle Database monitoring, the Agent integration alone delivers tablespace and session metrics, and adding dbm: true to the configuration extends it to query-level Database Monitoring. In a multitenant architecture, you connect only to the CDB root and collect PDB information from there.

What Oracle Monitoring Delivers Splits into Two Layers: the Integration and DBM

Think of Oracle Database monitoring in two layers: the Oracle integration included in the Agent, and Database Monitoring (DBM) layered on top of it. The integration collects health and performance metrics such as the number of active sessions, the buffer cache hit ratio, and tablespace usage, which you view in the provided dashboards and monitors. Enabling DBM delivers query-level metrics and snapshots of running and past queries. It also adds wait event analysis, database load, execution plans, and visibility into blocking queries (as of October 2026; source: Oracle Database).

The two layers of Oracle monitoring and the difference in work to add
LayerWhat arrivesMinimum Agent versionWork to add
IntegrationMetrics such as session count, tablespaces, and buffer cachev6.0.0A monitoring user and oracle.d/conf.yaml
DBMQuery-level metrics, wait events, execution plans, blocking queriesv7.53.0dbm: true in the same configuration, a view in the sysdba schema
Source: Oracle Database / Setting Up Database Monitoring for Self-Hosted Oracle

The DBM steps say you may skip user creation if you already have the monitoring user created for the integration, so you move from the integration to DBM with the same user. As one way to proceed, you can split it like this: if you only want to notice tablespace pressure early, start with the integration; if you want to be able to explain why the nightly batch slowed down, follow the DBM steps from the start. What DBM shows on screen is summarized in the Database Monitoring explanation, and how billing works in the pricing guide.

In a Multitenant Architecture, Connect Only to the CDB Root

How you count connection targets is where monitoring Oracle differs most from other databases. Datadog supports two architectures, multitenant (CDB / PDB) and non-CDB, and which one you have changes the monitoring user's name and the value you write in service_name. For the multitenant case, the DBM steps for self-hosted databases state that the Agent connects only to the root container database (CDB) and queries pluggable database (PDB) information while staying connected to the root. On that basis, they ask you not to create separate connections to the PDBs (as of October 2026; source: Setting Up Database Monitoring for Self-Hosted Oracle).

Monitoring user and connection target by architecture
ArchitectureMonitoring userValue to write in service_nameKey points when creating it
Multitenant (CDB / PDB)c##datadogThe CDB service nameCreate it with CONTAINER = ALL and set CONTAINER_DATA=ALL
Non-CDBdatadogThe service name of that databaseCreate it without specifying a container
Oracle 11datadogThe service name of that databaseThe steps have the same form as non-CDB, on a separate tab
Source: Setting Up Database Monitoring for Self-Hosted Oracle / Setting up Oracle

In the configuration examples too, the items listed under instances for multitenant are one per host, and each puts the CDB service name in service_name. There are no items per PDB. There is one exception: to run custom queries on a PDB, connect as sysdba, switch the session to that PDB, and grant c##datadog the set container privilege.

How You Grant the Monitoring User's Permissions Depends on Where It Runs

Create the monitoring user as a read-only login and grant it create session and select on views such as V_$SESSION, V_$SQLSTATS, and CDB_TABLESPACES. There are many target views, and the official documentation lists the SQL to run on separate tabs for each architecture. The way you grant them splits three ways depending on where the database runs (as of October 2026; source: Oracle Database).

How to grant permissions depending on where the database runs
LocationHow to grantHow views are written
Self-hostedLog on as sysdba and run grant select on … to …The V_$SESSION form
Amazon RDSCall rdsadmin.rdsadmin_util.grant_sys_object with execPass the V_$SESSION form as an argument
Oracle Autonomous DatabaseRun grant select on … to datadogThe v$session form
Source: Oracle Database / Setting Up Database Monitoring for RDS Oracle

When you use DBM, the self-hosted steps have one more stage: create a view named dd_session in the sysdba schema and let the monitoring user read it. The RDS DBM steps do not have this stage. DBM covers five locations, self-hosted, RDS, RAC, Exadata, and Autonomous Database, and the setup pages are divided along the same lines. Instead of writing the password in plain text in the configuration file, you can write the secret's name in the form ENC[]. The Agent retrieves that value at runtime from a secrets store such as AWS Secrets Manager or HashiCorp Vault. How it is retrieved is determined either by a built-in method in secret_backend_type or by your own executable in secret_backend_command (source: Secrets Management). For the AWS-side integration when running on RDS, read from tier 1 of monitoring RDS.

Install Instant Client Only When You Use It

You can choose between two clients for connecting to Oracle. The integration can use the native client, so as is, no additional installation is needed. Only if you use Oracle Instant Client is there extra preparation for each OS (as of October 2026; source: Oracle Database).

Choosing a client and the preparation for each
Client usedPreparation
Native clientNo additional installation
Instant Client (Linux)Install the Instant Client Basic package and add the library location as LD_LIBRARY_PATH to /etc/datadog-agent/environment
Instant Client (Windows)Include the Instant Client folder in the PATH environment variable and install the corresponding Microsoft Visual Studio redistributable package
Using DBM on RDSThe documentation explicitly states that no external Oracle client is needed
Source: Oracle Database / Setting Up Database Monitoring for RDS Oracle

If you choose Instant Client, the work centers on telling the Agent where the libraries are. The Linux steps follow Oracle's own installation instructions and then confirm that the Basic package is installed. If you have no reason to choose Instant Client, you can proceed to the next configuration step with the native client. How to install the Agent itself is summarized in installing the Agent on Linux.

The Four Required Items to Write in conf.yaml

The configuration file is conf.d/oracle.d/conf.yaml in the Agent's configuration directory. The form for a multitenant setup that also uses DBM is as follows.

init_config:
instances:
  - server: '<HOSTNAME>:<PORT>'
    service_name: '<CDB_SERVICE_NAME>'
    username: 'c##datadog'
    password: 'ENC[<SECRET_NAME>]'
    dbm: true
Main items in oracle.d/conf.yaml
ItemRequiredValue to write
serverRequiredThe host name and port joined with a colon (the configuration example uses localhost:1521)
service_nameRequiredThe service name you can look up from service_names in v$parameter
username / passwordRequiredThe monitoring user and its password
dbmWhen using DBMtrue
protocolOptionalThe default is TCP; use TCPS to connect over TLS
Source: Oracle Database / Setting Up Database Monitoring for Self-Hosted Oracle

In some Agent versions the configuration subdirectory is named oracle-dbm.d, and the range of affected versions is in a note in the official documentation (as of October 2026). The other items are listed in the sample conf.yaml.example. When you set protocol to TCPS, also match the port in server to the TCPS listener.

RAC Uses a Configuration per Node, Keeping Each Agent's Connection on a Single Host

With RAC, you prepare an Agent configuration for each node. According to the DBM steps for RAC, the Agent queries each node's V$ views separately and uses the GV$ views only when necessary, to limit communication between nodes. The values collected from each node are combined on the Datadog side. In the tags of each node's configuration, write rac_cluster:<CLUSTER_NAME>. This lets you select that cluster's nodes together in the DBM Oracle overview dashboard (as of October 2026; source: Setting Up Database Monitoring for Oracle RAC). The DBM steps further require that the Agent connect directly to the monitored host (as of October 2026; source: Setting Up Database Monitoring for Self-Hosted Oracle).

Requirements for the connection target
SituationRequirement in the official documentation
RACConfigure an Agent for each node and group them with the rac_cluster tag
PathDo not put a proxy, load balancer, or connection pooler in between
FailoverEach Agent knows the actual host name and stays on a single host
LoadThe default settings are conservative, and you can adjust the collection interval and the query sampling rate
Source: Setting Up Database Monitoring for Oracle RAC / Setting Up Database Monitoring for Self-Hosted Oracle

The official documentation warns that if the Agent connects to a different host midway, the metric values become incorrect. Writing in server an entry point that receives the whole cluster under a single name does not meet this requirement. As a guide to the load, the documentation says it is less than 1 percent of both query execution time and CPU for most workloads. The way to add custom queries with query and columns has the same form as SQL Server's custom_queries, so refer to the SQL Server monitoring steps.

Once oracle Appears Under Checks in status, Start with the Tablespace Metrics

After writing the configuration and restarting the Agent, run the Agent's status subcommand and check whether oracle is listed in the Checks section. The success or failure of connections and queries also arrives as service checks, so monitors can pick up anomalies (as of October 2026; source: Oracle Database).

Where to confirm that it has started working
Where to checkValue to look atExpected state
Service checkoracle.can_connectOK if it can connect, CRITICAL if not
Service checkoracle.can_queryOK if all queries can be run
Metricoracle.tablespace.in_useUsage for each tablespace arrives as a percentage
Metricoracle.active_sessionsThe number of active sessions arrives
DBM screensThe Databases page and the Oracle dashboardQueries start to be listed
Source: Oracle Database / Setting Up Database Monitoring for Self-Hosted Oracle

If can_connect is OK but can_query stays CRITICAL, the connection works but some of the queries are not getting through. As one way to proceed, compare the permissions you granted against the list in the official documentation. How service checks are handled is in the service check explanation, and where the integration fits overall is in the integrations explanation. If you are asking a DB administrator to create the monitoring user, include three points in the request: whether it is CDB or non-CDB, the list of nodes if it is RAC, and the secrets store where the password will be kept. These three points correspond directly to which row of the architecture table you create the user from, how many items you list under instances, and what you write in password.

References

Share