将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
