opatch被异常中断后的处理

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

今天在打一个patch的时候,已经是用opatch执行到了最后一个patch,一时手欠,没看清楚telnet的窗口,不小心按下了ctrl+C,于是,opatch被中断了。

汗了,晚节不保啊!
再次执行opatch apply,报错:
$ opatch apply 6163771
Invoking OPatch 10.2.0.4.6
Oracle Interim Patch Installer version 10.2.0.4.6
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/oracle/product/10.2.0/db_1
Central Inventory : /oracle/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 10.2.0.4.6
OUI version : 10.2.0.4.0
OUI location : /oracle/app/oracle/product/10.2.0/db_1/oui
Log file location :
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-04-08_16-29-59PM.log
Patch history file:
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_hist ory.txt
ApplySession applying interim patch '6163771' to OH
'/oracle/app/oracle/product/10.2.0/db_1'
Running prerequisite checks...
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/oracle/app/oracle/product/10.2.0/db_1')
Is the local system ready for patching? [y|n]
Y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '6163771' for restore. This might take a while...
Backing up files affected by the patch '6163771' for rollback. This might take a while...
Patching component oracle.rdbms, 10.2.0.4.0...
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfc.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfcb.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfcl.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfr.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfrb.o"
The following actions have failed:
Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfc. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcl .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfr. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfrb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... ''
Do you want to proceed? [y|n]
Y
User Responded with: Y
Running make for target ioracle
Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld: I/O error, file "/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a": Fatal error.
Stop.
'
The following make actions have failed :
Re-link fails on target "ioracle".
Do you want to proceed? [y|n]
Y
User Responded with: Y
ApplySession adding interim patch '6163771' to inventory
Verifying the update...
Inventory check OK: Patch ID 6163771 is registered in Oracle Home inventory with proper meta-data.
ApplySession failed: ApplySession failed in system modification phase... 'Verification of patch failed: Error verification failed: ar: kfc.o not found
'
OPatch will attempt to restore the system...
Restoring the Oracle Home...
Checking if OPatch needs to invoke 'make' to restore some binaries... Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld: I/O error, file "/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a": Fatal error.
Stop.
'
--------------------------------------------------------------------------------
Failed to run make commands. They are stored in file
'/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19 _2008_17_41_45/make.txt'
Invoke these commands manually to restore the binaries in the Oracle Home. OPatch failed to restore OH '/oracle/app/oracle/product/10.2.0/db_1'.
Consult OPatch document to restore the home manually before proceeding. --------------------------------------------------------------------------------
The following warnings have occurred during OPatch execution:
1) OUI-67124:Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfc. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcl .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfr. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfrb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... ''
2) OUI-67200:Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld:
I/O error, file
"/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a":
Fatal error.
Stop.
'
3) OUI-67124:Re-link fails on target "ioracle".
4) OUI-67200:Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld:
I/O error, file
"/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a":
Fatal error.
Stop.
'
--------------------------------------------------------------------------------
OPatch failed with error code 115
$
用opatch lsinventory检查,发现这个patch还是已经安装上去了的:
$ opatch lsinventory
Invoking OPatch 10.2.0.4.6
Oracle Interim Patch Installer version 10.2.0.4.6
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/oracle/product/10.2.0/db_1
Central Inventory : /oracle/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 10.2.0.4.6
OUI version : 10.2.0.4.0
OUI location : /oracle/app/oracle/product/10.2.0/db_1/oui
Log file location :
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-04-08_17-13-49PM.log
Patch history file:
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_hist ory.txt
Lsinventory Output file location :
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinv entory2009-04-08_17-13-49PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (2):
Oracle Database
10g 10.2.0.1.0 Oracle Database 10g Release 2 Patch Set
3 10.2.0.4.0
There are 2 products installed in this Oracle Home.
Interim patches (18) :
Patch 6163771 : applied on Wed Apr 08 17:12:16 SGT 2009
Created on 19 Jun 2008, 17:41:45 hrs US/Pacific
Bugs fixed:
6163771
Patch 6052226 : applied on Wed Apr 08 17:11:53 SGT 2009
Created on 15 Sep 2008, 03:10:44 hrs PST8PDT
Bugs fixed:
6052226
……
Patch 5868257 : applied on Wed Apr 08 16:24:42 SGT 2009
Created on 21 Oct 2008, 11:41:00 hrs PST8PDT
Bugs fixed:
5868257
--------------------------------------------------------------------------------
OPatch succeeded.
$
ok,既然你已经在完成安装的列表中了,那我卸载可以不?
$ opatch rollback -id 6163771
Invoking OPatch 10.2.0.4.6
Oracle Interim Patch Installer version 10.2.0.4.6
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/oracle/product/10.2.0/db_1
Central Inventory : /oracle/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 10.2.0.4.6
OUI version : 10.2.0.4.0
OUI location : /oracle/app/oracle/product/10.2.0/db_1/oui
Log file location :
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-04-08_18-47-48PM.log
Patch history file:
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_hist ory.txt
RollbackSession rolling back interim patch '6163771' from OH
'/oracle/app/oracle/product/10.2.0/db_1'
Running prerequisite checks...
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/oracle/app/oracle/product/10.2.0/db_1')
Is the local system ready for patching? [y|n]
Y
User Responded with: Y
Backing up files affected by the patch '6163771' for restore. This might take a while...
Patching component oracle.rdbms, 10.2.0.4.0...
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfc.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfcb.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfcl.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfr.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfrb.o"
The following actions have failed:
Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfc.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_
2008_17_41_45/files/lib/libserver10.a/kfcb.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfcl.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfr.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfrb.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... ''
Do you want to proceed? [y|n]
Y
User Responded with: Y
Running make for target ioracle
Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld: I/O error, file "/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a": Fatal error.
Stop.
'
The following make actions have failed :
Re-link fails on target "ioracle".
Do you want to proceed? [y|n]
N
User Responded with: N
RollbackSession failed: RollbackSession failed in system modification phase... 'Re-link fails on target "ioracle".
'
OPatch will attempt to restore the system...
Restoring the Oracle Home...
Checking if OPatch needs to invoke 'make' to restore some binaries... Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld: I/O error,
file "/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a": Fatal error.
Stop.
'
--------------------------------------------------------------------------------
Failed to run make commands. They are stored in file
'/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19 _2008_17_41_45/make.txt'
Invoke these commands manually to restore the binaries in the Oracle Home. OPatch failed to restore OH '/oracle/app/oracle/product/10.2.0/db_1'. Consult OPatch document to restore the home manually before proceeding. --------------------------------------------------------------------------------
The following warnings have occurred during OPatch execution:
1) OUI-67124:Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfc.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfcb.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfcl.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfr.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not rolled back
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45/files/lib/libserver10.a/kfrb.o to
/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... ''
2) OUI-67200:Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld:
I/O error, file
"/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a":
Fatal error.
Stop.
'
3) OUI-67124:Re-link fails on target "ioracle".
4) OUI-67200:Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1"....'ld:
I/O error, file
"/oracle/app/oracle/product/10.2.0/db_1/lib//libserver10.a":
Fatal error.
Stop.
'
--------------------------------------------------------------------------------
OPatch failed with error code 115
$
完蛋了,无论是重新apply还是rollback,都失败了。

在这个情况下,我们可以在$ORACLE_HOME找到一个隐含的文件夹,里面的rollback.sh和make.txt文件,来清楚已经安装的信息,从而让我们重新安装。

因为在进行opatch的过程在,在$ORACLE_HOME下有个隐含目录.patch_storage,在这个目录下的对应的目录,
$ cat rollback.sh
#!/bin/sh
# Copyright (c) 2009, Oracle Corporation. All rights reserved
echo This script is going to rollback the changes made to system files on
echo this Oracle Home only. It does not perform any of the following: echo - Inventory update
echo - Oracle binary re-link
echo - Running init/pre/post scripts
echo - Customized steps performed manually by user
echo Please use this script with supervision from Oracle Technical Support. echo To rollback a patch, please use "'opatch rollback'".
echo NOTE: JDK should be present in the Oracle Home to rollback Java Archives.
# Get ORACLE_HOME from environment variable "ORACLE_HOME"
OH=${ORACLE_HOME}
# Error out if OH is not set
if [ "$OH" = "" ]; then
echo Oracle Home is not set.
echo Please set env. variable ORACLE_HOME and try again.
echo Script failed to proceed.
exit 1
fi
echo "About to modify Oracle Home( $OH )"
echo "Do you want to proceed? [Y/N]"
if [ "$1" = "-silent" ]; then
response="Y"
else
read response;
fi
if [ $response = "y" ] || [ $response = "Y" ]; then
echo "User responded with : Y"
else
echo "User responded with : $response"
exit 0
fi
echo Date Time : `date` >> $OH/cfgtoollogs/opatch/opatch_history.txt echo Oracle Home : $OH >> $OH/cfgtoollogs/opatch/opatch_history.txt echo Command : rollback.sh >>
$OH/cfgtoollogs/opatch/opatch_history.txt
cd $OH/lib
/usr/ccs/bin/ar -rc $OH/lib/libserver10.a
$OH/.patch_storage/6163771_Jun_19_2008_17_41_45/files/lib/libserver10 .a/kfc.o
cd $OH/lib
/usr/ccs/bin/ar -rc $OH/lib/libserver10.a
$OH/.patch_storage/6163771_Jun_19_2008_17_41_45/files/lib/libserver10 .a/kfcb.o
cd $OH/lib
/usr/ccs/bin/ar -rc $OH/lib/libserver10.a
$OH/.patch_storage/6163771_Jun_19_2008_17_41_45/files/lib/libserver10 .a/kfcl.o
cd $OH/lib
/usr/ccs/bin/ar -rc $OH/lib/libserver10.a
$OH/.patch_storage/6163771_Jun_19_2008_17_41_45/files/lib/libserver10
.a/kfr.o
cd $OH/lib
/usr/ccs/bin/ar -rc $OH/lib/libserver10.a
$OH/.patch_storage/6163771_Jun_19_2008_17_41_45/files/lib/libserver10 .a/kfrb.o
echo Rollback script completed.
另一个rollback.sh脚本用于回滚失败的opatch执行过程,和一个make.txt
脚本用于回滚编译ioracle的过程:
cd $ORACLE_HOME/rdbms/lib;/usr/ccs/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=$ORACLE_HOME
其实我们从回滚脚本可以具体的看到,第一个是将一些kfc.o,kfcb.o,kfcl.o 的文件从libserver10.a中抽取出类备份且还原出来。

也就是说,在执行opatch 的过程是将kfc.o,kfcb.o,kfcl.o等文件写入到libserver10.a文件中的。

第二步,重新编译ioracle。

因此,我们可以利用这2个脚本,和利用原来在opatch的时候,做的备份(注意,这里一定要用原来的备份,一定要做原来的kfc.o,kfcb.o,kfcl.o的文件,在后续的操作步骤中,请注意这点。

),我们来进行还原操作。

操作步骤为:
情况1,如果你的没有再次执行opatch脚本,即在.patch_storage目录下的rollbak脚本没有被覆盖,你可以:
1.运行rollback脚本:
% sh $ORACLE_HOME/.patch_storage/1234567/rollback_1234567 .sh
注意,可以能会如下报错
./rollback_5901872.sh[89]: System: not found.
./rollback_5901872.sh[97]: System: not found.
这个可以不必忽略。

2.运行make脚本
% sh $ORACLE_HOME/.patch_storage/1234567/1234567_make.txt
注,make脚本仅在relink阶段出错的时候才需要使用。

3.重命名脚本的原目录
% mv $ORACLE_HOME/.patch_storage/1234567
$ORACLE_HOME/.patch_storage/1234567.orig
情况2,如果你已经再次执行opatch脚本,即在.patch_storage目录下的rollbak脚本被覆盖了,你需要:
1.从命名你的原路径:
% mv $ORACLE_HOME/.patch_storage/1234567 $ORACLE_HOME
2.重新生成rolback脚本,注意用no_inventory和on_relink参数
% cd <patch directory>
% opatch apply -no_inventory -no_relink
3.将生产的rollback脚本和make脚本移动至原路径,以便利用原来的备份。

% cp $ORACLE_HOME/.patch_storage/1234567/rollback_1234567.sh $ORACLE_HOME/1234567
% cp $ORACLE_HOME/.patch_storage/1234567/1234567_make.txt $ORACLE_HOME/1234567
% mv $ORACLE_HOME/.patch_storage/1234567 $ORACLE_HOME/1234567.rereun % mv $ORACLE_HOME/1234567$ORACLE_HOME/.patch_storage
4.执行rollback脚本和make脚本,注意执行的时候可能会出现和情况1一样的报错,可以忽略。

% sh $ORACLE_HOME/.patch_storage/1234567/rollback_1234567.sh
% sh $ORACLE_HOME/.patch_storage/1234567/1234567_make.txt
5.重命名原路径
% mv
$ORACLE_HOME/.patch_storage/1234567$ORACLE_HOME/.patch_storage/123456 7.orig
我们是属于情况2,因此采用情况2的方法进行回滚:
$
$ pwd
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage
$ mv $ORACLE_HOME/.patch_storage/6163771_Jun_19_2008_17_41_45 $ORACLE_HOME
$ cd /arch/ora_patch/patch_ia/7409356/6163771
$ opatch apply -no_inventory -no_relink
Invoking OPatch 10.2.0.4.6
Oracle Interim Patch Installer version 10.2.0.4.6
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/oracle/product/10.2.0/db_1
Central Inventory : n/a
from : n/a
OPatch version : 10.2.0.4.6
OUI version : n/a
OUI location : n/a
Log file location :
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-04-09_09-45-17AM.log
Patch history file:
/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_hist ory.txt
ApplySession applying interim patch '6163771' to OH
'/oracle/app/oracle/product/10.2.0/db_1'
Running prerequisite checks...
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/oracle/app/oracle/product/10.2.0/db_1')
Is the local system ready for patching? [y|n]
Y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '6163771' for restore. This might take a while...
Backing up files affected by the patch '6163771' for rollback. This might take a while...
Patching component oracle.rdbms, 10.2.0.4.0...
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfc.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfcb.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfcl.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfr.o"
Updating archive file
"/oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a" with
"lib/libserver10.a/kfrb.o"
The following actions have failed:
Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfc. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcl .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfr. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfrb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... ''
Do you want to proceed? [y|n]
Y
User Responded with: Y
No relink requested, skip running make for target ioracle ApplySession skipping inventory update.
Verifying the update...
Inventory update verification is skipped.
ApplySession failed: ApplySession failed in system modification phase...
'Verification of patch failed: Error verification failed: ar: kfc.o not found
'
OPatch will attempt to restore the system...
Restoring the Oracle Home...
Checking if OPatch needs to invoke 'make' to restore some binaries...
No relink requested, skipping 'make'.
OPatch was able to restore your system. Look at log file and timestamp of each file to make sure your system is in the state prior to applying the patch.
--------------------------------------------------------------------------------
The following warnings have occurred during OPatch execution:
1) OUI-67124:Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfc. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfcl .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfr. o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... '' Archive not applied
/arch/ora_patch/patch_ia/7409356/6163771/files/lib/libserver10.a/kfrb .o to /oracle/app/oracle/product/10.2.0/db_1/lib/libserver10.a... ''
--------------------------------------------------------------------------------
OPatch failed with error code 73
$ cp
$ORACLE_HOME/.patch_storage/6163771_Jun_19_2008_17_41_45/rollback.sh $ORACLE_HOME/6163771_Jun_19_2008_17_41_45
$ cp $ORACLE_HOME/.patch_storage/6163771_Jun_19_2008_17_41_45/make.txt $ORACLE_HOME/6163771_Jun_19_2008_17_41_45
$
$ mv $ORACLE_HOME/.patch_storage/6163771_Jun_19_2008_17_41_45 $ORACLE_HOME/6163771_Jun_19_2008_17_41_45.rereun_20090409
$ mv $ORACLE_HOME/6163771_Jun_19_2008_17_41_45
$ORACLE_HOME/.patch_storage
$ cd 6163771_Jun_19_2008_17_41_45
$ cd
/oracle/app/oracle/product/10.2.0/db_1/.patch_storage/6163771_Jun_19_ 2008_17_41_45
$ ll
total 12
drwxrwxrwx 5 oracle dba 96 Apr 9 09:42 backup
-rw-rw-rw- 1 oracle dba 93 Apr 9 09:49 make.txt drwxrwxrwx 4 oracle dba 96 Apr 9 09:42
original_patch
drwxrwxrwx 2 oracle dba 1024 Apr 9 09:42 rac
-rwxr-xr-x 1 oracle dba 1401 Apr 9 09:42 restore.sh -rw-rw-rw- 1 oracle dba 1401 Apr 9 09:49 rollback.sh drwxrwxrwx 2 oracle dba 96 Apr 9 09:29 scratch $ sh rollback.sh
This script is going to rollback the changes made to system files on this Oracle Home only. It does not perform any of the following:
- Inventory update
- Oracle binary re-link
- Running init/pre/post scripts
- Customized steps performed manually by user
Please use this script with supervision from Oracle Technical Support. To rollback a patch, please use 'opatch rollback'.
NOTE: JDK should be present in the Oracle Home to rollback Java Archives. About to modify Oracle Home( /oracle/app/oracle/product/10.2.0/db_1 ) Do you want to proceed? [Y/N]
Y
User responded with : Y
Rollback script completed.
$
$
$ sh make.txt
chmod 755 /oracle/app/oracle/product/10.2.0/db_1/bin
- Linking Oracle
rm -f /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/oracle cc +DD64 -Wl,+s -Wl,+n +DD64 -o
/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/oracle
-L/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/
-L/oracle/app/oracle/product/10.2.0/db_1/lib/ /oracle/app/oracle/pr oduct/10.2.0/db_1/rdbms/lib/ssoident.o `if /usr/bin/getconf
KERNEL_BITS | grep "64" > /dev/null ; \
then echo "-Wl,+pi,64M -Wl,+pd,L -Wl,+padtext,16M
-Wl,+paddata,1M" ; \
else echo "" ; fi` -Wl,-E -Wl,-PF,linkorderfile +FPd /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/opimai.o
/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/ssoraed.o
/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/ttcsoi.o /oracle/ap p/oracle/product/10.2.0/db_1/rdbms/lib/defopt.o -Wl,+forceload
-lperfsrv10 -Wl,+noforceload
/oracle/app/oracle/product/10.2.0/db_1/lib/nautab.o
/oracle/app/oracle/product/10.2.0/db_1/lib/naeet.o
/oracle/app/oracle/product/10.2.0/db_1/lib/naect.o
/oracle/app/oracle/product/10.2.0/db_1/lib/naedhs.o
/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/config.o -lserver10 -lodm10 -lnnet10 -lskgxp10 -lsnls10 -lnls10 -lcore10
-lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lhasgen10 -lcore10 -lskgxn2 -locr10 -locrb10 -locrutl10 -lhasgen10 -lcore10
-lskgxn2 -lclient10 -lvsn10 -lcommon10 -lgeneric10 -lknlopt `if /usr/ccs/bin/ar tv
/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a | grep xsyeolap.o > /dev/null 2>&1 ; then echo "-loraolap10" ; fi` -lslax10 -lpls10 -lplp10 -lserver10 -lclient10 -lvsn10 -lcommon10
-lgeneric10 `if [ -f
/oracle/app/oracle/product/10.2.0/db_1/lib/libavserver10.a ] ; then echo "-lavserver10" ; else echo "-lavstub10"; fi` `if [ -f
/oracle/app/oracle/product/10.2.0/db_1/lib/libavclient10.a ] ; then echo "-lavclient10" ; fi` -lknlopt -lslax10 -lpls10 -lplp10 -ljox10 -lserver10 /oracle/app/oracle/product/10.2.0/db_1/has/lib/libclsra10 .a -ldbcfg10 -locijdbcst10 -lwwg `cat
/oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10
-lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat
/oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10
-lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lmm -lsnls10
-lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10
-lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat
/oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10
-lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat
/oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10
-lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lsnls10
-lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10
-lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `if
/usr/ccs/bin/ar tv
/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo10"; fi`。

相关文档
最新文档