WINDOWS下的程序员出身,偶尔也写一些linux平台下小程序, 后转行数据库行业,专注于ORACLE和DB2的运维和优化。 同时也是ios移动开发者。欢迎志同道合的朋友一起研究技术。 数据库技术交流群:58308065,23618606
全部博文(599)
分类: Oracle
2009-12-15 13:46:33
首先以用户登陆到视窗界面(如果以root用户登陆后su到oracle下的话,注意设置环境变量DISPLAY,或在执行su命令前执行xhost +命令),找到补丁包的路径,执行runInstaller即可:
[root@jssdbn1 ~]# xhost +
access control disabled, clients can connect from any host
[root@jssdbn1 ~]# su - oracle
[oracle@jssdbn1 ~]$ cd /data/software/oraupdate/Disk1/
[oracle@jssdbn1 Disk1]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
.........................
.........................弹出OUI的欢迎窗口如下,直接点击下一步:
选择的目录,这里我们要首先选择OraCrs10g的主目录,点击Name中的下拉框:
OUI 自动选中的cluster的方式,并选中了所有可用的节点:
安装环境的检查,如无异常,直接点击下一步即可:
显示摘要信息,如无异常点击install:
文件复制中:
提示安装结束:
图形界面操作完成,不过认真看了窗口中提示信息的朋友(就是Please remember下面的信息),会发现接下来还需要执行两个命令,具体操作如下:
首先在节点1上执行下列命令,注意是root用户执行哟:
[root@jssdbn1 software]# /data/ora10g/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@jssdbn1 software]# /data/ora10g/product/10.2.0/crs_1/install/root102.sh
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /data/ora10g/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
WARNING: directory ¨/data/ora10g/product/10.2.0¨ is not owned by root
WARNING: directory ¨/data/ora10g/product¨ is not owned by root
WARNING: directory ¨/data/ora10g¨ is not owned by root
WARNING: directory ¨/data¨ 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 1: jssdbn1 jssdbn1-priv jssdbn1
Creating OCR keys for user ¨root¨, privgrp ¨root¨..
Operation successful.
clscfg -upgrade completed successfully随后,在节点2上执行相同命令,操作如下:
[root@jssdbn2 ~]# /data/ora10g/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@jssdbn2 ~]# /data/ora10g/product/10.2.0/crs_1/install/root102.sh
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /data/ora10g/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
WARNING: directory ¨/data/ora10g/product/10.2.0¨ is not owned by root
WARNING: directory ¨/data/ora10g/product¨ is not owned by root
WARNING: directory ¨/data/ora10g¨ is not owned by root
WARNING: directory ¨/data¨ 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: jssdbn2 jssdbn2-priv jssdbn2
Creating OCR keys for user ¨root¨, privgrp ¨root¨..
Operation successful.
clscfg -upgrade completed successfully查看之前的文章:
=====================================
ORACLE 10gR2 RAC升级至10.2.0.4-(1)停止相关进程