MPatcher aims to automate Oracle patching (Release Updates). This page includes a reference for the various scripts that make up the tool.
Patcher should be installed in /u01/dba/mpatcher.
It relies on the following variables from .profile/.bash_profile...
P_OS
PTAR
..and expects the following alias script to be called at the end of .profile/.bash_profile...
. /u01/dba/mpatcher/.alias
Add aliases to /u01/dba/mpatcher/.alias to quickly switch between ORACLE_SIDs on the same server (if necessary)... Examples called ORCL1, ORCL2, ORCL3 and ORCL4 are included for reference. E.g.
alias ORCL1='. /home/oracle/.bash_profile.ORCL1'
Create missing patch variable files in /u01/dba/mpatcher/var.
The following lines should be in /etc/sudoers...
## Allow oracle to run /u01/dba/mpatcher/perms.sh as root
oracle localhost = (root) NOPASSWD: /u01/dba/mpatcher/perms.sh
Queries patch information from registry$patch.
checkreg
Returns the total number of invalid objects in the database.
invobjcnt
Runs opatch prereq checks
prereq
Prints/sets patch variables used by MPatcher.
pvars
It reads from the latest file matching the Target version in /u01/dba/patcher/var and sets the variables.