It depends on what you are looking to monitor. Are you trying to confirm that the database PROCESS is running? Or are you testing connectivity to the Oracle database instance? Two different approaches.
What I documented covers the monitoring the database process. You can grep this out of running processes, do a top command and find it, multiple different ways.
If you are trying to test connectivity, then use the Oracle SQL Sensor, which will connect to both Unix and Linux Oracle. You need to create a user on the Oracle database and assign just enough permissions to run the SQL-expression. One expression that would test connectivity is
select count(*) from sys.v_$session
which returns DB Process Count.
Add comment