Showing posts with label opatch. Show all posts
Showing posts with label opatch. Show all posts

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

Friday, November 09, 2007

libjox10.sl error While applying the 10.2.0.2 patch

Issue 2: While applying the 10.2.0.2 patch, you receive the following error message:


The following actions are not applicable:

Copy Action: Desctination File

"/bugmnt4/ap/rmtdchp6/BOD/10.2.0.2/A/64bit/app/oracle/product/10.2.0.2/lib/libjox10.sl" is not writeable.

'oracle.javavm.server, 10.2.0.2.0': Cannot copy file from 'libjox10.sl' to

'/bugmnt4/ap/rmtdchp6/BOD/10.2.0.2/A/64bit/app/oracle/product/10.2.0.2/lib/libjox10.sl'



Do you want to proceed? [y|n]


This error is likely to occur for any third party library that comes with out write permission, like libons.sl, libjox10.sl etc.

Workaround (perform all of the following steps):

Stop the patch installation by typing n as the response.

Make note of the file permissions on the libraries that are not writeable.

Provide write permission (preferably 755) to the libraries.

Reapply the patch.

Revert back to the original file permissions for the libraries. Failure to do so may result in the following error:


usr/lib/pa20_64/dld.sl: Mmap failed for the

library<....10.2.0.2/@ lib/libjox10.sl> : Permission denied.

ERROR:

ORA-12547: TNS:lost contact