Upgrade 11.2.0.1 RAC
DB/RDBMS to 11.2.0.2 in Linux
By Maclean.liu
liu.maclean@gmail
About Me
l Email:liu.maclean@gmail
l acledatabase12g
l Oracle Certified Database Administrator Master 10g and 11g
l Over 6 years experience with Oracle DBA technology  l Over 7 years experience with Linux technology
l Member Independent Oracle Users Group
l Member All China Users Group
l Presents for advanced Oracle topics: RAC, DataGuard, Performance Tuning and Oracle Internal.
在<Upgrade 11.2.0.1 GI/CRS to 11.2.0.2 in Linux>一文中我们介绍了升级11.2.0.1 GI/CRS到11.2.0.2的详细步骤,因为GI/CRS的版本总是要求大于DB/RDBMS,所以这是我们升级RDBMS数据库软件的前提条件。
接下来我们将具体介绍升级11.2.0.1 DB/RDBMS到 11.2.0.2的详细步骤:
一、 下载补丁介质
11.2.0.2的patchset目前没有公开的下载地址,因为acle目前已经不再提供ftp 下载模式,所以我们只能通过登录My Oracle Support后进入Patch栏目搜索Patchid并获得加密的下载链接。
11.2.0.2补丁集的全称是11.2.0.2.0 PATCH SET FOR ORACLE DATABASE SERVER (Patchset) (patchid:10098816),可以通过10098816这个id到Patch栏目搜索,并出对应平台的介质zip包。如 在Linux x86-64平台上:
以上p1*******_112020_Linux-x86-64_1of7.zip和p1*******_112020_Linux- x86-64_2of7.zip ,这2个zip包对应为Database/RDBMS软件的介质,我们不需要下载所有的7个zip包,有这2个升级数据库软件就已经足够了。
完成以上2个软件的下载后,分别解压zip包:
unzip p1*******_112020_Linux-x86-64_1of7.zip -d  $PATCHHOME
unzip p1*******_112020_Linux-x86-64_2of7.zip -d  $PATCHHOME
二、以out of place方式安装11.2.0.2 DB数据库软件
因为11.2.0.2的Patchset以后都是out of place的,所以我们可以不用像在11gr2以前那样必
须在原有安装低版本软件的基础上才能升级软件,而可以选择在别的位置完全新安装。
注意该步骤不需要停止数据库实例,可以在前期工作中完成。
以DB/RDBMS数据库软件的拥有者身份(oracle用户)启动方才解压目录下的oui安装界面: su - oracle
(oracle)$ unset ORACLE_HOME ORACLE_BASE ORACLE_SID
(oracle)$ export DISPLAY=:0
(oracle)$ cd $PATCHHOME
(oracle)$ ./runInstaller
在Oracle Universal Installer界面下的Select Installation Options Screen选择install database only.
在Grid Installation Options下若是RAC 数据库则选择Oracle Real Application cluster database installation,注意如果在该屏幕下出现[FATAL] [INS-35354] The system on which you are attempting to install Oracle RAC is not part of a valid cluster则可能是在之前的安装Gird的过程中没有正确的Update Inventory更新信息库信息,见<11gr2 RAC安装INS-35354问题一例>。
若是单节点数据库则选择Single instance database installation
在Specify Installation Location Screen上一般OUI会帮你自动匹配一个$ORACLE_BASE变量下不同于原有数据库软件安装目录的新目录,确认这些目录下有足够的磁盘空间,保 险起见空间应大于10GB。注意这里是out of place安装,所以千万不要填入原有的安装路径。
以上安装完成后OUI会提示要在所有节点上以root身份执行root.sh脚本:
su - root
(root #) /s01/orabase/product/11.2.0/dbhome_2/root.sh
Running Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME=  /s01/orabase/product/11.2.0/dbhome_2
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
linux安装数据库oracleDatabase Configuration Assistant when a database is created
Finished running generic part of root script.