Validate Applied Patches in Oracle 12c
Whenever we do patch apply before/after, need to validate all applied patches in Oracle home & databases. Below is the command to validate patches in Oracle 12c.
Command to validate applied patches on Oracle home. Click here to get sample output.
cd $ORACLE_HOME/OPatch/
or
$ORACLE_HOME/OPatch/opatch lsinventory
SQL Command to validate applied patches in Oracle database. Click here to get sample output.
SET LINESIZE 401
COLUMN ACTION_TIME FORMAT A21
COLUMN ACTION FORMAT A11
COLUMN STATUS FORMAT A11
COLUMN DESCRIPTION FORMAT A41
COLUMN VERSION FORMAT A11
COLUMN BUNDLE_SERIES FORMAT A13
SELECT TO_CHAR(ACTION_TIME, 'DD-MON-YYYY HH24:MI:SS') AS ACTION_TIME,
ACTION,STATUS,DESCRIPTION, VERSION,PATCH_ID,BUNDLE_SERIES
FROM SYS.DBA_REGISTRY_SQLPATCH ORDER BY ACTION_TIME;
prompt$$$$$$$**Welcome to DBsGuru!**Share Learn Grow**$$$$$$$
Execute the below command in the multitenant database which fetches applied patches from the container along with all pluggable databases.
SET LINESIZE 401
COLUMN ACTION_TIME FORMAT A21
COLUMN ACTION FORMAT A11
COLUMN STATUS FORMAT A11
COLUMN DESCRIPTION FORMAT A41
COLUMN VERSION FORMAT A11
COLUMN BUNDLE_SERIES FORMAT A13
SELECT CON_ID, TO_CHAR(ACTION_TIME, 'DD-MON-YYYY HH24:MI:SS') AS ACTION_TIME,
ACTION,STATUS,DESCRIPTION, VERSION,PATCH_ID,BUNDLE_SERIES
FROM SYS.CDB_REGISTRY_SQLPATCH ORDER BY CON_ID,ACTION_TIME;
prompt$$$$$$$**Welcome to DBsGuru!**Share Learn Grow**$$$$$$$
Click here to “Validate Applied Patches in Database Oracle 19c.”
Click here for “Step by Step Apply Patch in Oracle.”
We always encourage the technical person to visit section SCRIPTS to get more daily usage SQL commands.
Hope so you like this article
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the most recent update. Click here to know more about our pursuit.