- It presents key metrics from multiple OEM Pages in single pane of glass.
- It does not require browser/GUI. It only need access to port 22 or 1521 on Oracle db host.
- It works for Real Application Cluster and Single node configuration.
- It is best to run on clients where Cssh is available (MacOS or Linux).
- It does not replace OEM, but it is very useful tool where OEM is not available.
# install csshX
git clone https://github.com/brockgr/csshx.git
# install oracle-db-monitor
git clone https://github.com/AVM-Consulting/oracle-db-monitor.git
# copy .sql file to db host.. in RAC configuration, can copy file to any single rac node.
scp oracle-db-monitor/oramonitor__*.sql amoseyev@mydbhost1:/tmp
# spin 8 ssh session to the node
csshx/csshX oracle@mydbhost{1,1,1,1,1,1,1,1}.mycompany.comIn each open ssh session run oramonitor__*.sql script: 8 sessions, 8 scripts.
(Argument 5, is monitoring window of 5 seconds)
In session 1:
oracle@mydbhost1:~$ sqlplus -s / as sysdba @/tmp/oramonitor__1_DB_ash.sql 5In session 2:
oracle@mydbhost1:~$ sqlplus -s / as sysdba @/tmp/oramonitor__2_DB_top_events.sql 5and so on..
Only difference is cssh install:
sudo apt-get install clustersshResults will be similar as on screenshot below
Check screenshots below. First screenshot is Oracle DB Monitor, and other screenshots are from OEM.
What is marked in RED - is direct translation between OEM metrics and Oracle DB Monitor Metrics.
What is marked in GREEN - are metrics, which we think are very useful metrics, but are not easily accessible in OEM.
- oramonitor__x_DB_*.sql scripts track DB level numbers
- oramonitor__x_SESSION_*.sql scripts track details down to SESSION/PROCESS level
- oramonitor__x_SQL_*.sql scripts track number on SQL level
- By default Oracle DB Monitor covers all RAC instances. But if you need stats only from particular instance(s) - modify following line in scripts:
define inst_clause='and inst_id in (1,2,3,4,5,6)'-
In scripts oramonitor__{6,7,8}*.sql you can change output columns. Just open script, comment column you do not need, uncomment columns you need.
-
In script oramonitor__8_SQL_specific_sql_id.sql add specific SQL_ID which are needed to be monitored. Now its 2 SQL_IDs, but can add more.
-
Change really anything... It is just SQL scripts.
- OEM is just simply not installed.
- In DMZ setup, OEM is under Network Address Translation (NAT) and OEM https port is not forwarded. ssh forwarding is too much work.
- OEM is accessible only via public Internet (Common for Cloud installations), and default OEM self-signed certificates are prohibited for security reasons More details.




