Tuesday, April 17, 2012

opatch util cleanup


testdb01:B.31:ORCL:/software/oratest/product> bdf ./
Filesystem          kbytes    used   avail %used Mounted on
/dev/vgedwsoft/lvedwsoft
                   31449088 13516848 17815672   43% /software/oratest
testdb01:B.31:ORCL:/software/oratest/product> ls -lrt
total 16
drwxr-xr-x  77 oratest     oratest        8192 Apr 16 22:45 11.2.0

testdb01:B.31:ORCL:/software/oratest/product> du -sk 11.2.0
12425088        11.2.0

cd 11.2.0
testdb01:B.31:ORCL:/software/oratest/product/11.2.0> du -sk .patch_storage
5371176 .patch_storage
testdb01:B.31:ORCL:/software/oratest/product/11.2.0> cd ..
testdb01:B.31:ORCL:/software/oratest/product> opatch util cleanup
Invoking OPatch 11.2.0.1.5

Oracle Interim Patch Installer version 11.2.0.1.5
Copyright (c) 2010, Oracle Corporation.  All rights reserved.

UTIL session

Oracle Home       : /software/oratest/product/11.2.0
Central Inventory : /software/oratest/oraInventory11202
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 11.2.0.1.5
OUI version       : 11.2.0.2.0
OUI location      : /software/oratest/product/11.2.0/oui
Log file location : /software/oratest/product/11.2.0/cfgtoollogs/opatch/opatch2012-04-17_10-41-05AM.log

Patch history file: /software/oratest/product/11.2.0/cfgtoollogs/opatch/opatch_history.txt

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
Size of directory "/software/oratest/product/11.2.0/.patch_storage" before cleanup is 5491294372 bytes.
Size of directory "/software/oratest/product/11.2.0/.patch_storage" after cleanup is 348956171 bytes.

UtilSession: Backup area for restore has been cleaned up. For a complete list of files/directories
deleted, Please refer log file.

OPatch succeeded.
testdb01:B.31:ORCL:/software/oratest/product> du -sk 11.2.0
7399216 11.2.0
testdb01:B.31:ORCL:/software/oratest/product> bdf ./
Filesystem          kbytes    used   avail %used Mounted on
/dev/vgedwsoft/lvedwsoft
                   31449088 8491040 22802520   27% /software/oratest