由高权限目录引起的OPatch auto补丁失败一例(二)

2015-07-16 12:08:04 · 作者: · 浏览: 7
7 23:33 20485808


-rw-r--r-- 1 root root 665035674 May 25 10:27 p20485808_112040_Linux-x86-64.zip


进入目录,确定文件目录权限对应的都是root所有者。


[root@NCR-Standby-Asm gidir]# cd 20485808/


[root@NCR-Standby-Asm 20485808]# ls -l


total 136


drwxrwxr-x 8 root root? 4096 Mar? 4 18:30 20299013


drwxr-xr-x 5 root root? 4096 Mar 27 23:26 20299019


drwxr-xr-x 5 root root? 4096 Mar 27 23:19 20420937


-rw-r--r-- 1 root root? 549 Mar 27 23:32 bundle.xml


-rw-rw-r-- 1 root root 61184 Mar? 6 13:43 PatchSearch.xml


-rw-rw-r-- 1 root root 60655 Apr 13 15:17 README.html


-rw-r--r-- 1 root root? ? 0 Mar 27 23:33 README.txt


使用OPatch auto模式,要求输入一个OCM(Oracle Configuration Manager)的相应文件response file,用于进行多个Patch安装过程中的交互信息的输入。


生成OCM响应文件,要进入OPatch生成。


[grid@NCR-Standby-Asm gidir]$ cd $ORACLE_HOME


[grid@NCR-Standby-Asm grid]$ cd OPatch


[grid@NCR-Standby-Asm OPatch]$ cd ocm/bin


[grid@NCR-Standby-Asm bin]$ ls -l


total 12


-rwxr-x--- 1 grid oinstall 9063 Nov 27? 2009 emocmrsp


调用emocmrsp脚本生成。


[grid@NCR-Standby-Asm bin]$ ./emocmrsp -no_banner -output /u01/unconfig.rsp


Provide your email address to be informed of security issues, install and


initiate Oracle Configuration Manager. Easier for you if you use your My


Oracle Support Email address/User Name.


Visit http://www.oracle.com/support/policies.html for details.


Email address/User Name:?


You have not provided an email address for notification of security issues.


Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:? Y


The OCM configuration response file (/u01/unconfig.rsp) was successfully created.


Validation of Oracle Inventory


GI和Database的Home目录对比。由于GI补丁过程是要进行GI和database两个组件,要进行一下目录对比。


[grid@NCR-Standby-Asm bin]$ env | grep ORACLE_HOME


ORACLE_HOME=/u01/app/grid/product/11.2.0/grid


[oracle@NCR-Standby-Asm ~]$ env | grep ORACLE_HOME


ORACLE_HOME=/u02/app/oracle/product/11.2.0/dbhome_1


[grid@NCR-Standby-Asm bin]$ opatch lsinventory -detail -oh /u02/app/oracle/product/11.2.0/dbhome_1


OPatch could not create/open history file for writing.


Oracle Interim Patch Installer version 11.2.0.3.10


Copyright (c) 2015, Oracle Corporation.? All rights reserved.


Oracle Home? ? ? : /u02/app/oracle/product/11.2.0/dbhome_1


Central Inventory : /u01/app/oraInventory


? from? ? ? ? ? : /u02/app/oracle/product/11.2.0/dbhome_1/oraInst.loc


OPatch version? ? : 11.2.0.3.10


OUI version? ? ? : 11.2.0.4.0


Log file location : /u02/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2015-05-25_14-51-28PM_1.log


Lsinventory Output file location : /u02/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2015-05-25_14-51-28PM.txt


--------------------------------------------------------------------------------


Local Machine Information::


Hostname: localhost


ARU platform id: 226


ARU platform description:: Linux x86-64


Installed Top-level Products (1):?


Oracle Database 11g? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 11.2.0.4.0


There are 1 products installed in this Oracle Home.


(篇幅原因,有省略……)


? ? /oracle/jdbc/driver/OracleSql.class --> ORACLE_HOME/jdbc/lib/ojdbc6.jar


? Patch Location in Inventory:


? ? /u02/app/oracle/product/11.2.0/dbhome_1/inventory/oneoffs/19852360


? Patch Location in Storage area:


? ? /u02/app/oracle/product/11.2.0/dbhome_1/.patch_storage/19852360_Oct_20_2014_08_17_43


--------------------------------------------------------------------------------


OPatch succeeded.


进行正式的补丁过程。注意:这里面是需要使用roo