You can install and configure the NRDOT Collector for Oracle Database monitoring using the newrelic.newrelic_install Ansible role. The role installs the collector, creates the monitoring database user, and configures the collector in a single play.
Prerequisites
- A New Relic account with a valid license key.
- A New Relic account ID.
- Oracle Database 19c or later.
- Ansible Core 2.13 or 2.14, Python 3.10, and the
ansible.windowsandansible.utilscollections. - For self-hosted Oracle: Oracle Linux 7, 8, or 9, with SSH access (with agent forwarding) to the Oracle Database host where the SSH user can run
sudo su - oraclewithout a password prompt. - For Oracle on AWS RDS: a collector host running Debian/Ubuntu or CentOS/RHEL/OEL.
- For Oracle Autonomous Database (ADB): a collector host running Debian/Ubuntu or CentOS/RHEL/OEL, with Oracle Instant Client (
sqlplus) installed and onPATH; each instance's egress IP allowed in its ADB access control list; and each instance's Oracle Wallet downloaded and unzipped to its own directory on the target host.
Install the role
bash
$ansible-galaxy install newrelic.newrelic_installConfigure the playbook
Run the playbook
bash
$ansible-playbook -i <inventory_file> <playbook_file>.ymlTo find your Oracle Database entity in New Relic, see Find and use your data.