Oracle 11g单实例GI and DB升级
1. 升级Grid Infrastructure
1.1 升级前准备
1.1.1 软件准备
这个当然不用多说:下载、上传到服务器、解压
1.1.2 新建GI的新HOME
mkdir -p /u01/app/11.2.0.4/grid
chown -R grid:oinstall /u01/app/11.2.0.4
chmod -R 775 /u01/app/11.2.0.4
1.2 进行升级
[root@Oracle-LAB app]# su - grid
[grid@Oracle-LAB ~]$ cd /software/grid/
[grid@Oracle-LAB grid]$ ./runInstaller
根据以上提示执行:
[root@Oracle-LAB /]#/u01/app/grid/product/11.2.0.4/grid/rootupgrade.sh
Performing root user operation for Oracle 11g
The following environment variables are setas:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/grid/product/11.2.0.4/grid
Enter the full pathname of the local bindirectory: [/usr/local/bin]:
The contents of "dbhome" have notchanged. No need to overwrite.
The contents of "oraenv" have notchanged. No need to overwrite.
The contents of "coraenv" have notchanged. No need to overwrite.
Entries will be added to the /etc/oratab fileas needed by
Database Configuration Assistant when adatabase is created
Finished running generic part of root script.
Now product-specific root actions will beperformed.
Using configuration parameter file:/u01/app/grid/product/11.2.0.4/grid/crs/install/crsconfig_params
Creating trace directory
ASM Configuration upgraded successfully.
Creating OCR keys for user 'grid', privgrp'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp'root'..
Operation successful.
CRS-4664: Node oracle-lab successfully pinned.
Replacing Clusterware entries in inittab
Replacing Clusterware entries in inittab
oracle-lab 2014/01/03 13:25:23 /u01/app/grid/product/11.2.0.4/grid/cdata/oracle-lab/backup_20140103_132523.olr
oracle-lab 2013/12/02 17:22:18 /u01/app/11.2.0/grid/cdata/oracle-lab/backup_20131202_172218.olr
Successfully configured Oracle GridInfrastructure for a Standalone Server
完成后在当前GRID帐号下运行:crsctl query has softwareversion查看当前版本信息。
[grid@Oracle-LAB grid]$ crsctl query has softwareversion
Oracle High Availability Services version onthe local node is [11.2.0.4.0]