手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle10.2.0.4-RAC两节点集群环境搭建

Cluster和Oracle软件升级

[日期:2014-02-23] 来源:CSDN  作者:dbseesee [字体:大 中 小]

将Cluster和Oracle软件升级到10.2.0.4

 

1、升级cluster

/home/oracle/clusterware/runInstaller

 

根据提示:要分别在两个节点执行,先停止CRS,再执行root102.sh脚本

节点1:/oracle/product/10.2.0/crs_1/bin/crsctlstop crs

 

[root@dbcc1~]#/oracle/product/10.2.0/crs_1/install/root102.sh

Creating pre-patchdirectoryfor saving pre-patch clusterware files

Completed patching clusterware filesto/oracle/product/10.2.0/crs_1

Relinking somesharedlibraries.

Relinking ofpatched filesis complete.

WARNING:directory'/oracle/product/10.2.0'isnot ownedby root

WARNING:directory'/oracle/product'isnot ownedby root

WARNING:directory'/oracle'isnotowned by root

Preparing torecopy patchedinitand RC scripts.

Recopying initand RCscripts.

Startup will be queued to init within30seconds.

Starting up the CRSdaemons.

Waiting forthepatched CRS daemonsto start.

This may take a while on some systems.

.

.

.

.

.

.

.

10204 patch successfully applied.

clscfg:EXISTING configurationversion3 detected.

clscfg:version3is 10GRelease 2.

Successfully accumulated necessaryOCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>:<nodename><private interconnectname><hostname>

node 1: dbcc1 dbcc1-pip dbcc1

Creating OCR keys for user 'root', privgrp'root'..

Operation successful.

clscfg -upgrade completed successfully

 

[root@dbcc1~]#/oracle/product/10.2.0/crs_1/bin/crs_stat-t

Name Type Target State Host

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

ora.dbcc1.gsd application ONLINE ONLINE dbcc1

ora.dbcc1.ons application ONLINE ONLINE dbcc1

ora.dbcc1.vip application ONLINE ONLINE dbcc1

ora.dbcc2.gsd application ONLINE OFFLINE

ora.dbcc2.ons application ONLINE OFFLINE

ora.dbcc2.vip application ONLINE OFFLINE

 

节点2:

[root@dbcc2network-scripts]#/oracle/product/10.2.0/crs_1/bin/crsctlstop crs

Stopping resources.

Errorwhile stopping resources. Possible cause: CRSDis down.

Stopping CSSD.

Unable tocommunicatewiththe CSS daemon.

[root@dbcc2network-scripts]#/oracle/product/10.2.0/crs_1/install/root102.sh

Creating pre-patchdirectoryfor saving pre-patch clusterware files

Completed patching clusterware filesto/oracle/product/10.2.0/crs_1

Relinking somesharedlibraries.

Relinking ofpatched filesis complete.

WARNING:directory'/oracle/product/10.2.0'isnot ownedby root

WARNING:directory'/oracle/product'isnot ownedby root

WARNING:directory'/oracle'isnotowned by root

Preparing to recopypatchedinitand RC scripts.

Recopying initand RCscripts.

Startup will be queued to init within30seconds.

Starting up the CRSdaemons.

Waiting forthepatched CRS daemonsto start.

This may take a while on some systems.

.

10204 patch successfully applied.

clscfg:EXISTING configurationversion3 detected.

clscfg:version3is 10GRelease 2.

Successfully accumulated necessaryOCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>:<nodename><private interconnectname><hostname>

node 2: dbcc2 dbcc2-pip dbcc2

Creating OCR keys for user 'root', privgrp'root'..

Operation successful.

clscfg -upgrade completed successfully

 

最后完成安装,退出界面;

[root@dbcc2network-scripts]#/oracle/product/10.2.0/crs_1/bin/crs_stat-t

Name Type Target State Host

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

ora.dbcc1.gsd application ONLINE ONLINE dbcc1

ora.dbcc1.ons application ONLINE ONLINE dbcc1

ora.dbcc1.vip application ONLINE ONLINE dbcc1

ora.dbcc2.gsd application ONLINE ONLINE dbcc2

ora.dbcc2.ons application ONLINE ONLINE dbcc2

ora.dbcc2.vip application ONLINE ONLINE dbcc2

查看CRS版本:

[root@dbcc1 ~]# /oracle/product/10.2.0/crs_1/bin/crsctl query crs softwareversion
CRS software version on node [dbcc1] is [10.2.0.4.0]

 

2、升级OracleSoft

执行root脚本:

 

[root@dbcc1~]# /oracle/product/10.2.0/db_1/root.sh

RunningOracle10 root.sh script...

Thefollowing environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /oracle/product/10.2.0/db_1

 

Enterthe full pathname of the local bin directory: [/usr/local/bin]:

Thefile "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:y

Copying dbhome to /usr/local/bin ...

Thefile "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:y

Copying oraenv to /usr/local/bin ...

Thefile "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:y

Copying coraenv to /usr/local/bin ...

Entrieswill be added to the /etc/oratab file as needed by

DatabaseConfiguration Assistant when a database is created

Finishedrunning generic part of root.sh script.

Nowproduct-specific root actions will be performed.

 

[root@dbcc2network-scripts]# /oracle/product/10.2.0/db_1/root.sh

RunningOracle10 root.sh script...

Thefollowing environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /oracle/product/10.2.0/db_1

Enterthe full pathname of the local bin directory: [/usr/local/bin]:

Thefile "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:y

Copying dbhome to /usr/local/bin ...

Thefile "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:y

Copying oraenv to /usr/local/bin ...

Thefile "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:y

Copying coraenv to /usr/local/bin ...

Entrieswill be added to the /etc/oratab file as needed by

DatabaseConfiguration Assistant when a database is created

Finishedrunning generic part of root.sh script.

Nowproduct-specific root actions will be performed.

 

 

完成Cluster和Oracle软件升级到10.2.0.4

linux
【内容导航】
第1页:共享存储服务端ISCSI配置 第2页:共享存储客户端ISCSI配置
第3页:本次RAC环境规划 第4页:系统参数配置
第5页:host-ssh-ntp配置 第6页:磁盘分区与asmdisk创建
第7页:Cluster和Oracle软件安装 第8页:Cluster和Oracle软件升级
第9页:dbca建库-RAC安装完成
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款