Setting up an Oracle database monitor

Analyze your database performance, usage, and availability at scale to enhance resource efficiency and optimize end-user experience problems.

Start 30-day free trial Try now, sign up in 30 seconds

Get Started

Quick installation

If you're using Linux servers, use the Oracle plugin installer that checks the prerequisites and installs the plugin with a bash script. You don't need to manually set up the plugin if you're using the installer.
Execute the command below in the terminal to run the installer and follow the instructions displayed on-screen:
wget https://raw.githubusercontent.com/site24x7/plugins/master/oracle/installer/Site24x7OraclePluginInstaller.sh && sudo bash Site24x7OraclePluginInstaller.sh

Standard installation

Prerequisites

  • Download and install the Site24x7 server monitoring agent (Linux | Windows) in the server where you plan to run the plugin.
  • Ensure that you have Python 3.7 or a higher version installed in the server.
  • Install the oracledb Python module using the command below:
    pip3 install oracledb
  • Grant the following roles to the user:
    grant select_catalog_role to {username}
    grant create session to {username}

Installation

  • Create a folder named oracle.
  • Download the oracle.py and the oracle.cfg files from our Github repository and place them in the oracle folder.
    wget https://raw.githubusercontent.com/site24x7/plugins/master/oracle/oracle.py && sed -i "1s|^.*|#! $(which python3)|" oracle.py
    wget https://raw.githubusercontent.com/site24x7/plugins/master/oracle/oracle.cfg
  • To check if the plugin is working, execute a command with appropriate arguments and see if the script returns a valid JSON output with applicable metrics and their corresponding value.
    python3 oracle.py --hostname=<name of the host> --port=<port> --sid=<SID> --username=<USERNAME> --password=<PASSWORD> --oracle_home=<ORACLE_HOME>
  • Add the following configuration in the oracle.cfg file.
    [ORCL]
    hostname = "localhost"
    port = "1521"
    sid = "ORCL"
    username = "oracle_username"
    password = "oracle_password"
    tls = "false"
    wallet_location = "/opt/oracle/product/19c/dbhome_1/network/admin/wallets"
    oracle_home = "/opt/oracle/product/19c/dbhome_1/"
  • For Windows servers, follow the steps in this article to learn how to run the Python script on Windows. You don't need to do this for Linux.
  • Move the oracle folder to the Site24x7 server monitoring plugins directory.

    For Linux: /opt/site24x7/monagent/plugins/

    For Windows: C:\Program Files (x86)\Site24x7\WinAgent\monitoring\plugins\

The agent will automatically execute the plugin within five minutes and display performance data in Site24x7.
To view the plugin monitor and associated performance charts:
  • Log in to Site24x7.
  • Navigate to Plugins and click the required monitor.

Plugin Contribution

Feel free to contribute to our existing plugin and come up with suggestions or feedback on our Community.

Other Plugin Integrations

  • Out-of-the-box plugins - Monitor your entire app stack with our extensive list of integrations
  • NGINX and NGINX Plus - Stay ahead of issues occuring within NGINX as well as anywhere else in your web infrastructure
  • MySQL - Monitor performance metrics of your MySQL databases
  • Postgres - Proactively monitor the availability and performance of business-crtical Postgres database server
  • Nagios - Execute thousands of Nagios plugins in Site24x7 without the need of running a Nagios server
  • Custom Script Monitoring - Create custom Linux and Windows plugins and monitor attributes that you need
  • GitHub Repository - Check out our 50+ plugin integrations
Looking for assistance? We’re here to help!

Want to learn more?

  • Personalized product demo
  • Proof of concept for set up
  • 30-day, unlimited, free trial
Request a Demo

Interested in our services?

  • 24/5 customer support
  • Flexible and competitive pricing
  • Better ROI
Get quote