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).
| Layer | What arrives | Minimum Agent version | Work to add |
|---|---|---|---|
| Integration | Metrics such as session count, tablespaces, and buffer cache | v6.0.0 | A monitoring user and oracle.d/conf.yaml |
| DBM | Query-level metrics, wait events, execution plans, blocking queries | v7.53.0 | dbm: true in the same configuration, a view in the sysdba schema |
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).
| Architecture | Monitoring user | Value to write in service_name | Key points when creating it |
|---|---|---|---|
| Multitenant (CDB / PDB) | c##datadog | The CDB service name | Create it with CONTAINER = ALL and set CONTAINER_DATA=ALL |
| Non-CDB | datadog | The service name of that database | Create it without specifying a container |
| Oracle 11 | datadog | The service name of that database | The steps have the same form as non-CDB, on a separate tab |
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).
| Location | How to grant | How views are written |
|---|---|---|
| Self-hosted | Log on as sysdba and run grant select on … to … | The V_$SESSION form |
| Amazon RDS | Call rdsadmin.rdsadmin_util.grant_sys_object with exec | Pass the V_$SESSION form as an argument |
| Oracle Autonomous Database | Run grant select on … to datadog | The v$session form |
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).
| Client used | Preparation |
|---|---|
| Native client | No 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 RDS | The documentation explicitly states that no external Oracle client is needed |
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| Item | Required | Value to write |
|---|---|---|
server | Required | The host name and port joined with a colon (the configuration example uses localhost:1521) |
service_name | Required | The service name you can look up from service_names in v$parameter |
username / password | Required | The monitoring user and its password |
dbm | When using DBM | true |
protocol | Optional | The default is TCP; use TCPS to connect over TLS |
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).
| Situation | Requirement in the official documentation |
|---|---|
| RAC | Configure an Agent for each node and group them with the rac_cluster tag |
| Path | Do not put a proxy, load balancer, or connection pooler in between |
| Failover | Each Agent knows the actual host name and stays on a single host |
| Load | The default settings are conservative, and you can adjust the collection interval and the query sampling rate |
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 check | Value to look at | Expected state |
|---|---|---|
| Service check | oracle.can_connect | OK if it can connect, CRITICAL if not |
| Service check | oracle.can_query | OK if all queries can be run |
| Metric | oracle.tablespace.in_use | Usage for each tablespace arrives as a percentage |
| Metric | oracle.active_sessions | The number of active sessions arrives |
| DBM screens | The Databases page and the Oracle dashboard | Queries start to be listed |
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.