Docs >
Database Monitoring >
Setting up Oracle >
Setting Up Database Monitoring for RDS Oracle
Database Monitoring provides deep visibility into your Oracle databases by exposing query samples to profile your different workloads and diagnose issues.
The Agent collects telemetry directly from the database by logging in as a read-only user.
Before you begin
Supported Oracle versions
11g, 12c, 18c, 19c, 21c
Supported Agent version
7.53.0+
Performance impact
The default Agent configuration for Database Monitoring is conservative, but you can adjust settings such as the collection interval and query sampling rate to better suit your needs. For most workloads, the Agent represents less than one percent of query execution time on the database and less than one percent of CPU.
Database Monitoring runs as an integration on top of the base Agent (see benchmarks).
Proxies, load balancers, and connection poolers
The Agent must connect directly to the host being monitored. The Agent should not connect to the database through a proxy, load balancer, or connection pooler. Each Agent must have knowledge of the underlying hostname and should stick to a single host for its lifetime, even in cases of failover. If the Datadog Agent connects to different hosts while it is running, the values of metrics will be incorrect.
Data security considerations
See Sensitive information for information about what data the Agent collects from your databases and how to ensure it is secure.
Setup
Complete the following steps to enable Database Monitoring with your Oracle database:
Store your password using secret management software such as Vault. You can then reference this password as ENC[<SECRET_NAME>] in your Agent configuration files: for example, ENC[datadog_user_database_password]. See Secrets Management for more information.
The examples on this page use datadog_user_database_password to refer to the name of the secret where your password is stored. It is possible to reference your password in plain text, but this is not recommended.
Install the Agent
See the DBM Setup Architecture documentation to determine where to install the Agent. The Agent doesn’t require any external Oracle clients.
Create the Oracle Agent conf file /etc/datadog-agent/conf.d/oracle.d/conf.yaml. See the sample conf file for all available configuration options.
Note: The configuration subdirectory for the Agent releases between 7.50.1 and 7.53.0 is oracle-dbm.d. See Configuring the Oracle Integration on Agent 7.50.1+ for more details.
init_config:instances:- server:'<RDS_INSTANCE_ENDPOINT_1>:<PORT>'service_name:"<SERVICE_NAME>"# The Oracle CDB service nameusername:'datadog'password:'ENC[datadog_user_database_password]'dbm:truetags:# Optional- 'service:<CUSTOM_SERVICE>'- 'env:<CUSTOM_ENV>'- server:'<RDS_INSTANCE_ENDPOINT_2>:<PORT>'service_name:"<SERVICE_NAME>"# The Oracle CDB service nameusername:'datadog'password:'ENC[datadog_user_database_password]'dbm:truetags:# Optional- 'service:<CUSTOM_SERVICE>'- 'env:<CUSTOM_ENV>'