Friday, April 8, 2016

Orale Home Space Issues Because OPatch Backups


Often we all face issues with the Oracle Homes getting filled, and most likely we will go and remove the .patch storage, But we end up facing challeneges when ever next time we try applying new patches.
Oracle Recommends safe way how we can clean up the .patch storage in safe and Easy way.

oracle:ORCL>opatch util cleanup -help

Oracle Interim Patch Installer version 12.1.0.1.6

Copyright (c) 2016, Oracle Corporation.  All rights reserved.


DESCRIPTION

     This utility cleans up 'restore.sh,make.txt' files and 'scratch,backup'

     directories of the.patch_storage directory of Oracle Home.If -ps option is used,

     then, it cleans the above specified areas only for that patch, else for all

     patches under ORACLE_HOME/.patch_storage. You will be still able to

     rollback patches after this cleanup.

SYNTAX

opatch util cleanup  [-invPtrLoc <Path to oraInst.loc> ]

                     [-jre <LOC> ] [-oh <ORACLE_HOME> ]

                     [-silent] [-report]

                     [-ps <patch ID with time stamp>, this will

                       be located under ORACLE_HOME/.patch_storage/]



OPTIONS

       -invPtrLoc

              Used to locate the oraInst.loc file. Needed when the

              installation used the -invPtrLoc flag. This should be

              the path to the oraInst.loc file.



       -jre

              This option tells OPatch to use JRE (java) from the

              specified location instead of the default location

              under Oracle Home. Both -jdk and -jre options cannot

              be specified together. OPatch will display error in

              that case.



       -oh

              The oracle home to work on. This takes precedence over

              the environment variable ORACLE_HOME.



       -ps

              This option is used to specify the Patch ID with timestamp.

              This Patch ID with timestamp should be the same as in

              .patch_storage directory.



              A directory by this name will be present under

              ORACLE_HOME/.patch_storage. If this directory is specified

              and is valid, then the contents specified in the description

              will be cleaned up only for this patch. Otherwise, all patch

              related directories will be acted upon by this utility.



      -silent

              In silent mode, the cleanup always takes place.



      -report

              Prints the operations without actually executing them.

OPatch succeeded.

64bit test-db ~

oracle:ORCL>

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

No comments :

Post a Comment