按装PATCH的过程

按装PATCH的过程:

#  1.  cd $ORACLE_HOME/install
#  2.  chmod 755 changePerm.sh
#  3.  chmod 644 restrict.lst

#    % cd 4516865

#    % opatch apply

#  1.  cd $ORACLE_HOME/install
#  2.  Run changePerm.sh script.

#    % opatch lsinventory

操作:
[oracle@rac1 4516865]$ pwd
/home/oracle/4516865
[oracle@rac1 4516865]$ /opt/ora10g/product/10.2.0/db_1/OPatch/opatch apply
Invoking OPatch 10.2.0.1.0

Oracle 中间补丁程序安装程序版本 10.2.0.1.0
版权所有 (c) 2005, Oracle Corporation。保留所有权利。。


Oracle 主目录       : /opt/ora10g/product/10.2.0/db_1
主产品清单: /opt/ora10g/oraInventory
   从           : /opt/ora10g/product/10.2.0/db_1/oraInst.loc
OPatch 版本    : 10.2.0.1.0
OUI 版本       : 10.2.0.1.0
OUI 位置      : /opt/ora10g/product/10.2.0/db_1/oui
日志文件位置 : /opt/ora10g/product/10.2.0/db_1/cfgtoollogs/opatch/opatch-2008_Aug_14_14-31-03-CST_Thu.log

ApplySession 将中间补丁程序 '4516865' 应用到 OH '/opt/ora10g/product/10.2.0/db_1'

OPatch 从产品清单中检测到节点列表和本地节点。OPatch 将对本地系统打补丁, 然后将补丁程序传播到远程节点。

为 Oracle 主目录备份文件和产品清单 (不是用于自动回退)
正在备份受补丁程序 '4516865' 影响的文件以用于恢复。此操作将需要一些时间...
正在备份受补丁程序 '4516865' 影响的文件以用于回退。此操作将需要一些时间...

正在为组件 oracle.rdbms.rsf, 10.2.0.1.0 打补丁...
将文件复制到 "/opt/ora10g/product/10.2.0/db_1/install/changePerm.sh"
将文件复制到 "/opt/ora10g/product/10.2.0/db_1/install/restrict.lst"
ApplySession 将中间补丁程序 '4516865' 添加到产品清单

在滚动模式下打补丁。

Updating nodes 'rac2'
   Apply-related files are:
     FP = "/opt/ora10g/product/10.2.0/db_1/.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files.txt"
     DP = "/opt/ora10g/product/10.2.0/db_1/.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs.txt"
     MP = "/opt/ora10g/product/10.2.0/db_1/.patch_storage/4516865_Feb_14_2006_00_22_00/rac/make_cmds.txt"

Propagating files to remote nodes...

OPatch 无法将文件复制到远程节点 'rac2' 。详细资料: Error on nodes: . All-node error message = 根据列表文件 '/opt/ora10g/product/10.2.0/db_1/.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files.txt.instantiated' 将目录 '/opt/ora10g/product/10.2.0/db_1' 中的文件复制到节点 'rac2' 时出错。[PRKC-1002 : 所有已提交的命令都没有成功执行]
----------------------------------------------------------------------------------
rac2:
    /bin/tar: ./inventory/ContentsXML/comps.xml: time stamp 2008-08-14 14:31:21 is 317 s in the future
----------------------------------------------------------------------------------


OPatch 无法将文件复制到远程节点 'rac2' 。
是否继续? [y|n]
y
User Responded with: Y
Propagating directories to remote nodes...

OPatch 无法将目录复制到远程节点 'rac2' 。详细资料: Error on nodes: . All-node error message = 根据列表文件 '/opt/ora10g/product/10.2.0/db_1/.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs.txt.instantiated' 以及 excludeListFile 'null', 将目录 '/opt/ora10g/product/10.2.0/db_1' 中的文件复制到节点 'rac2' 时出错。[PRKC-1002 : 所有已提交的命令都没有成功执行]
----------------------------------------------------------------------------------
rac2:
    /bin/tar: ./inventory/oneoffs/4516865/etc/config/actions: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./inventory/oneoffs/4516865/etc/config: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./inventory/oneoffs/4516865/etc: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./inventory/oneoffs/4516865: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/make_cmds.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files.txt.instantiated: time stamp 2008-08-14 14:31:21 is 300 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs.txt.instantiated: time stamp 2008-08-14 14:31:32 is 311 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files_4516865.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/mode.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs_4516865.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac: time stamp 2008-08-14 14:31:32 is 311 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rollback.sh: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup/install: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup/inventory/ContentsXML: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup/inventory: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files/install/restrict.lst_opatch_4516865_Feb_14_2006_00_22_00: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files/install/changePerm.sh_opatch_4516865_Feb_14_2006_00_22_00: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files/install: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/restore.sh: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/files/install: time stamp 2008-08-14 14:31:17 is 296 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/files: time stamp 2008-08-14 14:31:17 is 296 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/etc/config: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/etc/xml: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/etc: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00: time stamp 2008-08-14 14:31:18 is 297 s in the future
----------------------------------------------------------------------------------


OPatch 无法将目录复制到远程节点 'rac2' 。
是否继续? [y|n]
y
User Responded with: Y
--------------------------------------------------------------------------------
The following warnings has happened during OPatch execution:
1) OUI-67187:
OPatch 无法将文件复制到远程节点 'rac2' 。详细资料: Error on nodes: . All-node error message = 根据列表文件 '/opt/ora10g/product/10.2.0/db_1/.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files.txt.instantiated' 将目录 '/opt/ora10g/product/10.2.0/db_1' 中的文件复制到节点 'rac2' 时出错。[PRKC-1002 : 所有已提交的命令都没有成功执行]
----------------------------------------------------------------------------------
rac2:
    /bin/tar: ./inventory/ContentsXML/comps.xml: time stamp 2008-08-14 14:31:21 is 317 s in the future
----------------------------------------------------------------------------------

2) OUI-67188:
OPatch 无法将目录复制到远程节点 'rac2' 。详细资料: Error on nodes: . All-node error message = 根据列表文件 '/opt/ora10g/product/10.2.0/db_1/.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs.txt.instantiated' 以及 excludeListFile 'null', 将目录 '/opt/ora10g/product/10.2.0/db_1' 中的文件复制到节点 'rac2' 时出错。[PRKC-1002 : 所有已提交的命令都没有成功执行]
----------------------------------------------------------------------------------
rac2:
    /bin/tar: ./inventory/oneoffs/4516865/etc/config/actions: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./inventory/oneoffs/4516865/etc/config: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./inventory/oneoffs/4516865/etc: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./inventory/oneoffs/4516865: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/make_cmds.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files.txt.instantiated: time stamp 2008-08-14 14:31:21 is 300 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs.txt.instantiated: time stamp 2008-08-14 14:31:32 is 311 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_files_4516865.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/mode.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac/copy_dirs_4516865.txt: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rac: time stamp 2008-08-14 14:31:32 is 311 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/rollback.sh: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup/install: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup/inventory/ContentsXML: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup/inventory: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/backup: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files/install/restrict.lst_opatch_4516865_Feb_14_2006_00_22_00: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files/install/changePerm.sh_opatch_4516865_Feb_14_2006_00_22_00: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files/install: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/files: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/restore.sh: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/files/install: time stamp 2008-08-14 14:31:17 is 296 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/files: time stamp 2008-08-14 14:31:17 is 296 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/etc/config: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/etc/xml: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch/etc: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00/original_patch: time stamp 2008-08-14 14:31:18 is 297 s in the future
    /bin/tar: ./.patch_storage/4516865_Feb_14_2006_00_22_00: time stamp 2008-08-14 14:31:18 is 297 s in the future
----------------------------------------------------------------------------------

--------------------------------------------------------------------------------
OPatch 会话已完成, 但出现警告。

OPatch succeeded.
[oracle@rac1 4516865]$ pwd
/home/oracle/4516865
[oracle@rac1 4516865]$ ls
etc  files  README.txt
[oracle@rac1 4516865]$ cd $ORACLE_HOME
[oracle@rac1 db_1]$ ls
assistants   config  demo         install.platform  jlib  md       oc4j    oracore      perl         racg         slax     uix
bin          crs     diagnostics  inventory         jre   mesg     odbc    oraInst.loc  plsql        rdbms        sqlj     wwg
cdata        css     has          javavm            ldap  mgw      olap    ord          precomp      relnotes     sqlplus  xdk
cfgtoollogs  ctx     hs           jdbc              lib   network  OPatch  oui          rac1_racdb1  root.sh      srvm
clone        dbs     install      jdk               log   nls      opmn    owm          rac2_racdb2  root.sh.old  sysman
[oracle@rac1 db_1]$ cd install
[oracle@rac1 install]$ ls
changePerm.sh   createseed.sh       jlib      oratab        readme.txt    rootdeletenode.sh  seed.log   unix
createseed1.sh  envVars.properties  make.log  portlist.ini  restrict.lst  rootlocaladd       templocal  utl
[oracle@rac1 install]$ ./changePerm.sh

-------------------------------------------------------------------------------
Disclaimer: The purpose of this script. is to relax permissions on some of the
files in the database Oracle Home so that all clients can access them.
Please note that Oracle Corporation recommends using the most restrictive file
permissions as possible for your given implementation.  Running this script
should be done only after considering all security ramifications.
-------------------------------------------------------------------------------

Do you wish to continue (y/n) [n]: y

 

Finished running the script. successfully
Please see /tmp/changePerm_err.log for errors and /tmp/changePerm.log for the log of events
[oracle@rac1 install]$
[oracle@rac1 install]$
[oracle@rac1 install]$
[oracle@rac1 install]$ pwd
/opt/ora10g/product/10.2.0/db_1/install
[oracle@rac1 install]$ /opt/ora10g/product/10.2.0/db_1/OPatch/opatch lsinventory
Invoking OPatch 10.2.0.1.0

Oracle 中间补丁程序安装程序版本 10.2.0.1.0
版权所有 (c) 2005, Oracle Corporation。保留所有权利。。


Oracle 主目录       : /opt/ora10g/product/10.2.0/db_1
主产品清单: /opt/ora10g/oraInventory
   从           : /opt/ora10g/product/10.2.0/db_1/oraInst.loc
OPatch 版本    : 10.2.0.1.0
OUI 版本       : 10.2.0.1.0
OUI 位置      : /opt/ora10g/product/10.2.0/db_1/oui
日志文件位置 : /opt/ora10g/product/10.2.0/db_1/cfgtoollogs/opatch/opatch-2008_Aug_14_14-47-00-CST_Thu.log

Lsinventory Output file location : /opt/ora10g/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory-2008_Aug_14_14-47-00-CST_Thu.txt

--------------------------------------------------------------------------------
已安装的顶级产品 (1):

Oracle Database 10g                                                  10.2.0.1.0
此 Oracle 主目录中已安装 1 个产品。


中间补丁程序 (1):

Patch  4516865      : applied on Thu Aug 14 14:31:20 CST 2008
   Created on 14 Feb 2006, 00:22:00 hrs US/Pacific
   Bugs fixed:
     5039292, 4747264, 4908101, 4516865


包含多个节点的 RAC 系统
  Local node = rac1
  Remote node = rac2

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

OPatch succeeded.
[oracle@rac1 install]$

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8102208/viewspace-426952/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8102208/viewspace-426952/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值