1. 升級Grid Infrastructure1.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]