()

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.

 


Loading

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

DBsGuru

Hello and welcome to DBsGuru,DBsGuru is a group of experienced DBA professionals and serves databases and their related community by providing technical blogs, projects, training. Technical blogs are the source of vast information not about databases but its related product like middleware, PL/SQL, replication methodology, and so on.Thanks for the visits!Share Learn Grow!