记录一次rolling mode给oracle打补丁
2015-11-13 17:53
603 查看
数据库是RAC,需要打一个关于library cache 的补丁,使用rolling mode,将停机时间缩短到最小。
先停止第一个节点的数据库和crs,使用opatch apply打补丁
到这一步的时候,节点1的补丁已经打好了,这个时候就可以启动节点1,并且关闭节点2的CRS,为下面打补丁做准备。节点2资源都关闭之后,输入y
先停止第一个节点的数据库和crs,使用opatch apply打补丁
[oracle@XXRAC1 7122093]$ opatch apply Invoking OPatch 10.2.0.4.9 Oracle Interim Patch Installer version 10.2.0.4.9 Copyright (c) 2009, Oracle Corporation. All rights reserved. Oracle Home : /oracle/product/10.2.0/db Central Inventory : /oracle/oraInventory from : /etc/oraInst.loc OPatch version : 10.2.0.4.9 OUI version : 10.2.0.4.0 OUI location : /oracle/product/10.2.0/db/oui Log file location : /oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch2015-10-15_21-51-19PM.log Patch history file: /oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch_history.txt ApplySession applying interim patch '7122093' to OH '/oracle/product/10.2.0/db' Running prerequisite checks... OPatch detected the node list and the local node from the inventory. OPatch will patch the local system then propagate the patch to the remote nodes. This node is part of an Oracle Real Application Cluster. Remote nodes: 'xxrac2' Local node: 'xxrac1' Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/oracle/product/10.2.0/db') 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 '7122093' for restore. This might take a while... Backing up files affected by the patch '7122093' for rollback. This might take a while... Patching component oracle.rdbms, 10.2.0.4.0... Updating archive file "/oracle/product/10.2.0/db/lib/libserver10.a" with "lib/libserver10.a/kqlf.o" Updating archive file "/oracle/product/10.2.0/db/lib/libserver10.a" with "lib/libserver10.a/kqf.o" Patching component oracle.rdbms.rsf, 10.2.0.4.0... Updating archive file "/oracle/product/10.2.0/db/lib/libgeneric10.a" with "lib/libgeneric10.a/kgl2.o" Patching component oracle.rsf.hybrid, 10.2.0.4.0... Updating archive file "/oracle/product/10.2.0/db/lib32/libgeneric10.a" with "lib32/libgeneric10.a/kgl2.o" Running make for target ikfod Running make for target ioracle Running make for target client_sharedlib ApplySession adding interim patch '7122093' to inventory Verifying the update... Inventory check OK: Patch ID 7122093 is registered in Oracle Home inventory with proper meta-data. Files check OK: Files from Patch ID 7122093 are present in Oracle Home. The local system has been patched. You can restart Oracle instances on it. Patching in rolling mode. The node 'xxrac2' will be patched next. Please shutdown Oracle instances running out of this ORACLE_HOME on 'xxrac2'. (Oracle Home = '/oracle/product/10.2.0/db') Is the node ready for patching? [y|n]
到这一步的时候,节点1的补丁已经打好了,这个时候就可以启动节点1,并且关闭节点2的CRS,为下面打补丁做准备。节点2资源都关闭之后,输入y
y User Responded with: Y Updating nodes 'xxrac2' Apply-related files are: FP = "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/copy_files.txt" DP = "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/copy_dirs.txt" MP = "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/make_cmds.txt" RC = "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/remote_cmds.txt" Instantiating the file "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/copy_files.txt.instantiated" by replacing $ORACLE_HOME in "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/copy_files.txt" with actual path. Propagating files to remote nodes... Instantiating the file "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/copy_dirs.txt.instantiated" by replacing $ORACLE_HOME in "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/copy_dirs.txt" with actual path. Propagating directories to remote nodes... Instantiating the file "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/make_cmds.txt.instantiated" by replacing $ORACLE_HOME in "/oracle/product/10.2.0/db/.patch_storage/7122093_Nov_18_2010_09_32_26/rac/make_cmds.txt" with actual path. Running command on remote node 'xxrac2': cd /oracle/product/10.2.0/db/rdbms/lib; /usr/bin/make -f ins_rdbms.mk ikfod ORACLE_HOME=/oracle/product/10.2.0/db || echo REMOTE_MAKE_FAILED::>&2 Running command on remote node 'xxrac2': cd /oracle/product/10.2.0/db/rdbms/lib; /usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/product/10.2.0/db || echo REMOTE_MAKE_FAILED::>&2 Running command on remote node 'xxrac2': cd /oracle/product/10.2.0/db/network/lib; /usr/bin/make -f ins_net_client.mk client_sharedlib ORACLE_HOME=/oracle/product/10.2.0/db || echo REMOTE_MAKE_FAILED::>&2 The node 'xxrac2' has been patched. You can restart Oracle instances on it. There were relinks on remote nodes. Remember to check the binary size and timestamp on the nodes 'xxrac2' . The following make commands were invoked on remote nodes: 'cd /oracle/product/10.2.0/db/rdbms/lib; /usr/bin/make -f ins_rdbms.mk ikfod ORACLE_HOME=/oracle/product/10.2.0/db cd /oracle/product/10.2.0/db/rdbms/lib; /usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/product/10.2.0/db cd /oracle/product/10.2.0/db/network/lib; /usr/bin/make -f ins_net_client.mk client_sharedlib ORACLE_HOME=/oracle/product/10.2.0/db ' OPatch succeeded.
[oracle@XXRAC1 7122093]$ opatch lsinventory Invoking OPatch 10.2.0.4.9 Oracle Interim Patch Installer version 10.2.0.4.9 Copyright (c) 2009, Oracle Corporation. All rights reserved. Oracle Home : /oracle/product/10.2.0/db Central Inventory : /oracle/oraInventory from : /etc/oraInst.loc OPatch version : 10.2.0.4.9 OUI version : 10.2.0.4.0 OUI location : /oracle/product/10.2.0/db/oui Log file location : /oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch2015-10-15_21-59-11PM.log Patch history file: /oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch_history.txt Lsinventory Output file location : /oracle/product/10.2.0/db/cfgtoollogs/opatch/lsinv/lsinventory2015-10-15_21-59-11PM.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 (1) : Patch 7122093 : applied on Thu Oct 15 21:52:43 CST 2015 Unique Patch ID: 13156169 Created on 18 Nov 2010, 09:32:26 hrs PST8PDT Bugs fixed: 7122093 Rac system comprising of multiple nodes Local node = xxrac1 Remote node = xxrac2 -------------------------------------------------------------------------------- OPatch succeeded.
相关文章推荐
- 自己动手 CentOS-6.5 安装Oracle11g R2
- ORACLE 多表连接与子查询
- Oracle 工作语句记录
- Oracle安装配置—64位Win7安装配置64位Oracle
- 查看oracle 分区表
- Oracle 中count(1) 和count(*) 的区别
- oracle分析函数
- Oracle中定义DES加密解密及MD5加密函数
- oracle 数据库方面总结
- Oracle按季度统计语句
- Oracle中的join
- oracle杀死进程
- [层次结构|树状结构] oracle中用start with...connect by prior子句实现递归查询
- oracle 11g 密码过期|修改密码
- 查询 java 或 oracle 或 jsp的图书
- oracle 11.2.0.1.0 升级 11.2.0.4.0 并 patch 到11.2.0.4.7
- 配置Oracle数据库和监听随Linux系统自启动【转】
- ORACLE常用命令大全
- Oracle的基本语法
- oracle 常用sql