Oracle home consume large space due to Patch Storage folder

Patch Storage Folder is having large size due to Oracle Patching

The Size of Oracle Home is increasing day by day. On checking the size of subfolder we found that patch_storage folder is consuming large amount of space.

Following is the location of Patch Storage folder:

$ORACLE_HOME/.patch_storage

First Option:(opatch util cleanup)
opatch util cleanup to reclaim space from $ORACLE_HOME/.patch_storage
Opatch util has the option for cleaning the patch storage folder. You can check with following commands:

opatch util -help

Clean the patch storage folder with following command:

opatch util cleanup

Note: After this command you can rollback patch, it does not affect.

Note: Command delete few unnecessary files but it does not help to release a lot of space. It only release space in KB’s.

Second option:(Manually Process)
$ORACLE_HOME/.patch_storage is having all the directories of previous version present. Cleaning can be done manually as follows:

1. Run command:

$ opatch lsinventory

2. Get the list of opatch number which present on inventory.

3. Remove the extra directories present in $ORACLE_HOME/.patch_storage that are not present in the list of installed patches in step 1.

Directory names would be prefaced with the patchid for example:

24453456_

Note: Delete the old patches which is not present in opatch lsinventory manually by Operating system commands

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s