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

2015-07-16 12:08:04 · 作者: · 浏览: 13

这样的变化的确可以帮助我们解决很多问题,减少很多负担。但是,不完全的文档和谬误的经验秘籍可能会帮上倒忙。这个时候,还是需要我们进行逐层分析,慢慢解决问题。


本篇主要介绍在进行OPatch auto模式给GI打补丁过程中遇到的一个问题,记录下来,待有需要的朋友不时之需。


1、问题说明


笔者使用环境为Oracle 11gR2,小版本为11.2.0.4。


SQL> select * from v$version;


BANNER


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


Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production


PL/SQL Release 11.2.0.4.0 - Production


CORE? ? 11.2.0.4.0 Production


TNS for Linux: Version 11.2.0.4.0 - Production


NLSRTL Version 11.2.0.4.0 – Production


底层环境为GI+Single Instance Database,为了进行安全升级,计划打GI的PSU升级包。


首先,根据提示要求,关闭监听器、数据库实例和ASM实例。


[grid@NCR-Standby-Asm 19852360]$ srvctl stop database -d sicsstb


PRCC-1016 : sicsstb was already stopped


[grid@NCR-Standby-Asm 19852360]$ srvctl stop asm


PRCR-1065 : Failed to stop resource ora.asm


CRS-2529: Unable to act on 'ora.asm' because that would require stopping or relocating 'ora.DATA.dg', but the force option was not specified


[grid@NCR-Standby-Asm 19852360]$ srvctl stop asm -f


[grid@NCR-Standby-Asm 19852360]$ srvctl stop listener


[grid@NCR-Standby-Asm 19852360]$ crsctl stat res -t -init


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


NAME? TARGET? STATE? ? ? ? SERVER? ? ? STATE_DETAILS? ? ? ?


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


Local Resources


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


ora.DATA.dg


? ? ? ? ? ? ? ONLINE? OFFLINE? ? ? ncr-standby-asm? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


ora.LISTENER.lsnr


? ? ? ? ? ? ? OFFLINE OFFLINE? ? ? ncr-standby-asm? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


ora.RECO.dg


? ? ? ? ? ? ? ONLINE? OFFLINE? ? ? ncr-standby-asm? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


ora.asm


? ? ? ? ? ? ? OFFLINE OFFLINE? ? ? ncr-standby-asm? ? ? ? ? Instance Shutdown? ?


ora.ons


? ? ? ? ? ? ? OFFLINE OFFLINE? ? ? ncr-standby-asm? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


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


Cluster Resources


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


ora.cssd


? ? ? 1? ? ? ? ONLINE? ONLINE? ? ? ncr-standby-asm? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


ora.diskmon


? ? ? 1? ? ? ? OFFLINE OFFLINE? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


ora.evmd


? ? ? 1? ? ? ? ONLINE? ONLINE? ? ? ncr-standby-asm? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


ora.sicsstb.db


? ? ? 1? ? ? ? OFFLINE OFFLINE? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Instance Shutdown?


安装包解压。


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


total 1338912


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


[root@NCR-Standby-Asm gidir]# unzip p20485808_112040_Linux-x86-64.zip


? inflating: 20485808/20299019/files/bin/acfsrepl_monitor?


? inflating: 20485808/20299019/files/bin/acfsdriverstate?


? inflating: 20485808/20299019/files/bin/acfsreplcrs?


? inflating: 20485808/20299019/files/bin/acfsrepl_initializer?


? inflating: 20485808/20299019/files/bin/acfsreplcrs.pl?


? inflating: 20485808/20299019/files/bin/acfsregistrymount?


? inflating: 20485808/20299019/README.txt?


? creating: 20485808/20299019/custom/


? creating: 20485808/20299019/custom/scripts/


? inflating: 20485808/20299019/custom/scripts/prepatchverify.sh?


? inflating: 20485808/20299019/custom/scripts/pre.txt?


? inflating: 20485808/20299019/custom/scripts/post.txt?


? inflating: 20485808/bundle.xml? ? ?


? inflating: PatchSearch.xml?


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


total 1338920


drwxr-xr-x 5 root root? ? ? 4096 Mar 2