Oracle DB patch monitor
- Last Updated 3/31/2023, 12:34:01 PM UTC
- About 2 min read
Plugin info
name: ora-sql-patches
Collects Oracle database SQL patch information
# Summary
Collects the last SQL patches that have been applied to this instance
# Prerequisites
- Linux
- User Groups:
oinstall
,dba
- User Groups:
- Windows
- Group Memeberships:
ORA_HOMENAME_DBA
- Group Memeberships:
Important, the connection to the database/ASM takes place over BEQ. This means that the process resource limits for
myrmex-ad
must match those set for the oracle database/ASM processes. Set these limits in thesystemd
unit file formyrmex-ad
and then reload and restart themyrmex-ad
service. Refer to https://www.man7.org/linux/man-pages/man5/systemd.exec.5.html#PROCESS_PROPERTIES (opens new window) for the process limit directives and theirulimit
equivalents.
# Events
myrmex/oracle/db/patch/sid/patch/descr/sql-patch
set to 1 when a patch has been applied- Dimensions
sid
: the SID the patch was applied topatch
: the ID of the patch applieddesce
: the description for the path
- Dimensions
myrmex/plugins/error/plugin/msg
set to error message on plugin execution failure- Dimensions
plugin
the name of the plugin that failed
- Dimensions
# Configuration
Plugin is configured with a yaml
file:
source
: the value that will appear as the source of metrics generated by this configuration. defaults to plugin hostnameoracle_home
: path to database instanceORACLE_HOME
timeout
: execution timeout in duration format (opens new window). Defaults to2m
sid
: the SID to connect toconnect_as
: (optional) one ofsysdba
,sysoper
,sysasm
. Default issysdba
# Example Configuration
# path to oracle_home for this instance
oracle_home: /u01/app/oracle/product/12.2.0.1/dbhome_1
# sid to connect to
sid: suwpdb1
# Validate Configuration
ora-sql-patches --run-conf /path/to/config/file.yaml --validate
# Testing
Run the plugin from the command line and get any emmited events on stdout
ora-sql-patches --run-conf /path/to/config/file.yaml
# List events emmited by this plugin
ora-sql-patches --events