My Oracle Support Banner

How To Avoid Disk Full Issues Because OPatch Backups Take Big Amount Of Disk Space. (Doc ID 550522.1)

Last updated on JULY 19, 2023

Applies to:

Oracle Universal Installer - Version 10.2.0.1 and later
Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Information in this document applies to any platform.

Goal

When applying interim patches or Security Patch Update (SPU) (formerly Critical Patch Update (CPU)) patches, OPatch takes a big amount of disk space under $ORACLE_HOME/.patch_storage to store a backup of the affected libraries and modules that have been updated.This may increase the used capacity by 5G-10G in some cases. It even could happen that a disk becomes full in the middle of the patching process.

Regarding this topic, the following questions will be answered in this article: 
1. ) If the filesystem gets full in the middle of applying a patch, what is the process to recover?
2. ) Can any of the space be reclaimed from $ORACLE_HOME/.patch_storage?
3. ) Usage of 'opatch util cleanup' to reclaim space from $ORACLE_HOME/.patch_storage
4. ) In preparation for patching systems, is there any way to predict the amount of space that will be required in $ORACLE_HOME/.patch_storage?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 1.) If the filesystem gets full in the middle of applying a patch, what is the process to recover?
 2.) Can any of the space be reclaimed from $ORACLE_HOME/.patch_storage? 
 3.) Usage of 'opatch util cleanup' to reclaim space from $ORACLE_HOME/.patch_storage
 4.) In preparation for patching systems, is there any way to predict the amount of space that will be required in $ORACLE_HOME/.patch_storage?
 5. Usage of opatch ' listorderedinactivepatches' and ' deleteinactivepatches '
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.