新博客http://www.cnblogs.com/zhjh256 欢迎访问
分类:
2011-02-16 11:42:23
昨天给一客户打补丁cpujan2006补丁,先升级到
OPatch detects your platform as while this patch
212 (AIX-Based Systems (64-bit)
215 (windows server 2003)
….
This patch is not suitable for this operating system.
Please contact support for the correct patch.
因为客户的机器是windows server 2003 sp1,因此手工更改环境变量,如下:
Set OPATCH_PLATFORM_ID=215
然后执行opatch。
随后又遇到Oracle_home没有注册到oracle inventory directory,如下:
The Oracle Home d:\oracle\product\
Patch was not able to get details of the home from the inventory.
Make sure that Windows 'System32' directory is in your PATH. For example, C:\WINNT\System32
ERROR: OPatch failed because of Inventory problem.
OPatch returns with error code = 100
尝试使用oui注册,如下:
./runInstaller -silent -attachHome -invPtrLoc ./oraInst.loc
ORACLE_HOME="" ORACLE_HOME_NAME=""
不知道为什么,还是不行,只能no_inventory打补丁,如下所示:
opatch apply -no_inventory
上述错误顺利结果了,结果最后又报错了,相关信息如下:
OPatch encounters the following issues during file patching:
The following files had problems with being patched:1. /lib
[ Couldn't copy /files/lib/libjox9.a to /lib from . ]
….
反正所有的目录无法创建,所有的文件也都无法拷贝过去。
重启了机器还是不行,最后的手工全部文件拷贝过去。
在执行opatch apply,成功打上补丁,扫描软件检测安全漏洞已修复。