Monday, 11 May 2015

Which Patch has been installed?

Which Patch has been installed?

The easiest way to list the installed patches in the current ORACLE_HOME is to use the patch utility.
List of installed patches:
$ORACLE_HOME/OPatch/opatch lsinventory
Grep on the patch description:
$ORACLE_HOME/OPatch/opatch lsinventory|grep "Patch description"
Patch description:  
"Database Patch Set Update : 11.2.0.3.7 (16619892)"
A more verbose list on the installed patches:
$ORACLE_HOME/OPatch/opatch lsinventory -details
The table REGISTRY$HISTORY does contain information on applied patches respectively PSU, SRU or CPU. Since I use this query regularly during the tests of the Critical Patch Update, I have it packed in a handy script

SET linesize 200 pagesize 200
col action_time
 FOR a28
col version
 FOR a10
col comments
 FOR a35
col action
 FOR a25
col namespace
 FOR a12
SELECT * FROM registry$history;

No comments:

Post a Comment