How to clean up patch history?

If you are applying any CPU, PSU, or interim patches, OPatch will consume a large amount of disk space under $ORACLE_HOME/.patch_storage. To perform a cleanup, use the file orapatch.util.cleanup. The folder patch_storage contains the backup of the affected libraries and modules that have been updated. Cleanup can be performed as follows:

[oracle@oracle-primary ~]$ opatch util cleanup
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation.  All rights reserved.
................
Invoking utility "cleanup"
OPatch will clean up 'restore.sh,make.txt' files and 'rac,scratch,backup' directories.
You will be still able to rollback patches after this cleanup.
Do you want to proceed? [y|n]
y
User Responded with: Y
.................
"/u01/home/oracle/product/11.2.0/db_1/.patch_storage" after cleanup is 79575030 bytes.
UtilSession: Backup area for restore has been cleaned up. For a complete list of files/directories
deleted, Please refer log file.
OPatch succeeded.
[oracle@oracle-primary ~]$

Tip

To find out the OPatch version, use the OPatch utility as follows:

[oracle@oracle-stby admin]$ opatch version

OPatch Version: 11.2.0.3.0

OPatch succeeded.

[oracle@oracle-stby admin]$

What just happened?

We have seen how to interface patching using the OPatch utility and options available with OPatch in the Performing prerequisite of patch and How to clean up patch history? sections.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.115.155