Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1182623
  • 博文数量: 398
  • 博客积分: 10110
  • 博客等级: 上将
  • 技术积分: 4055
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-23 20:01
个人简介

新博客http://www.cnblogs.com/zhjh256 欢迎访问

文章分类

全部博文(398)

文章存档

2012年(1)

2011年(41)

2010年(16)

2009年(98)

2008年(142)

2007年(100)

我的朋友

分类:

2011-02-16 11:42:23

昨天给一客户打补丁cpujan2006补丁,先升级到10.1.0.5,随后opatch打补丁的时候遇到下列异常:

OPatch detects your platform as  while this patch supports platforms

212 (AIX-Based Systems (64-bit) 5L)

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\10.1.0\db_1 is not registered with the Central Inventory.  O
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,成功打上补丁,扫描软件检测安全漏洞已修复。

阅读(997) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~