1.3 修改改Grid帐号下的Oracle_HOME值
[root@Oracle-LAB/]# gedit /home/grid/.bash_profile
ORACLE_SID=+ASM
ORACLE_BASE=/u01/app/grid
ORACLE_HOME=/u01/app/11.2.0.4/grid
PATH=$PATH:$ORACLE_HOME/bin
export PATH ORACLE_SID ORACLE_BASE ORACLE_HOME
1.4 重启oracle
[root@Oracle-LAB /]# cd/u01/app/11.2.0.4/grid/bin
[root@Oracle-LAB bin]# ./crsctlstop has
CRS-2791: Starting shutdown of Oracle HighAvailability Services-managed resources on 'oracle-lab'
CRS-2673: Attempting to stop'ora.LISTENER.lsnr' on 'oracle-lab'
CRS-2673: Attempting to stop 'ora.DATA01.dg'on 'oracle-lab'
CRS-2673: Attempting to stop 'ora.FRA.dg' on'oracle-lab'
CRS-2673: Attempting to stop 'ora.orcl.db' on'oracle-lab'
CRS-2677: Stop of 'ora.DATA01.dg' on'oracle-lab' succeeded
CRS-2677: Stop of 'ora.FRA.dg' on 'oracle-lab'succeeded
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'oracle-lab'succeeded
CRS-2677: Stop of 'ora.orcl.db' on'oracle-lab' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on'oracle-lab'
CRS-2677: Stop of 'ora.DATA.dg' on'oracle-lab' succeeded
CRS-2679: Attempting to clean 'ora.DATA.dg' on'oracle-lab'
CRS-2681: Clean of 'ora.DATA.dg' on'oracle-lab' succeeded
CRS-2673: Attempting to stop 'ora.asm' on'oracle-lab'
CRS-2677: Stop of 'ora.asm' on 'oracle-lab'succeeded
CRS-2673: Attempting to stop 'ora.cssd' on'oracle-lab'
CRS-2677: Stop of 'ora.cssd' on 'oracle-lab'succeeded
CRS-2673: Attempting to stop 'ora.evmd' on'oracle-lab'
CRS-2677: Stop of 'ora.evmd' on 'oracle-lab'succeeded
CRS-2793: Shutdown of Oracle High AvailabilityServices-managed resources on 'oracle-lab' has completed
CRS-4133: Oracle High Availability Serviceshas been stopped.
[root@Oracle-LAB bin]#./crsctl start has
CRS-4123: Oracle High Availability Serviceshas been started.
完成重启后检查版本:
[root@Oracle-LAB bin]# ./crsctlquery has releaseversion
Oracle High Availability Services releaseversion on the local node is [11.2.0.4.0]
2. 升级数据库软件
2.1 升级前准备
2.1.1 软件准备
这个当然不用多说:下载、上传到服务器、解压
2.1.2 新建DB软件的新HOME
mkdir -p/u01/app/oracle/product/11.2.0.4/dbhome_1
chown -R oracle:oinstall/u01/app/oracle/product/11.2.0.4
chmod -R 775 /u01/app/oracle/product/11.2.0.4
2.1.3 检查Oracle软件版本
[oracle@Oracle-LAB ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on MonJan 6 13:08:12 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic StorageManagement, OLAP, Data Mining
and Real Application Testing options
2.1.4 备份数据库
不再详述。
2.2 进行升级
[oracle@Oracle-LAB ~]$ unset ORACLE_BASE
[oracle@Oracle-LAB ~]$ unset ORACLE_HOME
[oracle@Oracle-LAB ~]$ unset ORACLE_SID
[oracle@Oracle-LAB ~]$ cd /software/database/










[root@Oracle-LAB ~]# /u01/app/oracle/product/11.2.0.4/dbhome_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are setas:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0.4/dbhome_1
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 not changed.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.
Finished product-specific root actions.
