Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5702027
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类: Oracle

2009-08-19 17:03:47

首先升级clusterware补丁,在图形界面中运行./runInstaller进行安装,注意选择正确的路径,比如clusterware软件的路径在“/home/db/oracle/crs"下,那么就必须指定这个路径,否则得不偿失。
 
具体过程略过,在补丁安装完毕之后,系统提示需要分别在两个节点下进行如下步骤:
 
首先在副节点上按照提示的步骤进行执行(主次顺序无所谓):
[storm02@/home/db/oracle/crs/bin]#./crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
 
这时可以看到副节点的vip地址被主节点所接管:
 
接着执行root102.sh脚本:
[storm02@/home/db/oracle/crs/bin]#cd ..
[storm02@/home/db/oracle/crs]#cd install
[storm02@/home/db/oracle/crs/install]#ls
cluster.ini         install.incl        preupdate.sh        rootdelete.sh       templocal
cmdllroot.sh        make.log            root102.sh          rootdeletenode.sh
envVars.properties  paramfile.crs       rootaddnode.sbs     rootinstall
files10203.log      patch102            rootconfig          rootlocaladd
install.excl        prepatch10203       rootdeinstall.sh    rootupgrade
[storm02@/home/db/oracle/crs/install]#sh root102.sh
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /home/db/oracle/crs
Relinking some shared libraries.
Relinking of patched files is complete.
WARNING: directory '/home/db/oracle' is not owned by root
WARNING: directory '/home' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Waiting for the patched CRS daemons to start.
  This may take a while on some systems.
.
10204 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 2: storm02 storm02_hb storm02
Creating OCR keys for user 'root', privgrp 'sys'..
Operation successful.
clscfg -upgrade completed successfully
 
黑体字部分显示副节点上clusterware的补丁已经成功安装。
补丁打完之后,重新启动副节点上crs进程,这个时候会把数据库一起给启动起来,所以切记一定要关闭数据库以及监听进程,防止在打database补丁的时候出错。
 
副节点上补丁打完之后,再按照相同的步骤给主节点打补丁,最后运行root102.sh脚本。
 
在这之后,分别在两个节点上进行clusterware版本的验证:
[storm01@/home/db/oracle/crs/bin]#./crsctl query crs softwareversion
CRS software version on node [storm01] is [10.2.0.4.0]
[storm02@/home/db/oracle/crs/bin]#./crsctl query crs softwareversion
CRS software version on node [storm02] is [10.2.0.4.0]
确认无错之后,紧接着进行数据库补丁的升级,其过程不赘述,但一定要保证监听和数据库是关闭状态。
阅读(2274) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~