Oracle 11.2.0.3.0 RAC GI_DB升级到11.2.0.4.0

转载:  http://blog.csdn.net/frank0521/article/details/18226199

前言

还是大家常说的那句:生产环境千万记得备份哈~~~

以下的环境,是我的测试环境,这里就不备份啦~

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.1.3     检查两台Node的名称

[[email protected] ~]# cat /etc/hosts

# Do not remove the following line, or variousprograms

# that require network functionality willfail.

127.0.0.1  localhostlocalhost.localdomain localhost

::1             localhost6.localdomain6localhost6

#Eth0 Public

10.0.0.240              RAC01

10.0.0.242              RAC02

#Virtual IP

10.0.0.241              RAC01-VIP

10.0.0.243              RAC02-VIP

#Eth1 Private

172.30.1.1              RAC01-PRIV

172.30.1.2              RAC02-PRIV

#Scan

10.0.0.244              RACSCAN

1.1.4     升级前的CUV检查(建议)

[[email protected] app]# su - grid

[[email protected] ~]$ /software/grid/runcluvfy.sh stage -pre crsinst-upgrade -n rac01,rac02 -rolling -src_crshome /u01/app/11.2.0/grid-dest_crshome /u01/app/11.2.0.4/grid -dest_version 11.2.0.4.0

如果检查出错误,请根据提示修复。

1.2    进行升级

需要保证所有节点的GI都正常运行

[[email protected] ~]# su – grid

[[email protected] ~]$ unset ORACLE_HOME

[[email protected] ~]$ unset ORACLE_BASE

[[email protected] ~]$ unset ORACLE_SID

[[email protected] ~]$ cd /software/grid/

[[email protected] grid]$ ./runInstaller

注意:如果在上面一个步骤上点“Next”出现下图错误:

第一:先分别在两个NODE上测试SSH,如:

[[email protected] ~]$ sshrac02 date

Fri Jan 10 17:34:55 CST 2014

第二:如果以上不能SSH,那在“SSH Connectivity”中先输入GRID帐号密码,然后再测试,如果SETUP成功,但TEST仍报上图的错误,那可能是因为Node Name大小写引起,需要执行以下命令,命令格式如下:

$ <OLD_GI_HOME>/oui/bin/runInstaller -updateNodelistORACLE_HOME=<OLD_GI_HOME> “CLUSTER_NODES={racnode1,racnode2}” CRS=true

例:

[[email protected] grid]$ cd /u01/app/11.2.0/grid/oui/bin/

[[email protected] bin]$ ./runInstaller -updateNodelistORACLE_HOME=/u01/app/11.2.0/grid "CLUSTER_NODES=rac01,rac02" CRS=true

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500MB.   Actual 5633 MB    Passed

The inventory pointer is located at/etc/oraInst.loc

The inventory is located at/u01/app/oraInventory

‘UpdateNodeList‘ was successful.

执行了以上的命令后,重新执行[[email protected] grid]$ ./runInstaller

你会发现Node Name由原来的大写变为小写了,再“Next“就可以了。

根据以上提示分别在RAC01、RAC02上执行:

[[email protected] ~]#/u01/app/11.2.0.4/grid/rootupgrade.sh

[[email protected] ~]#/u01/app/11.2.0.4/grid/rootupgrade.sh

完成后在当前GRID帐号下运行:crsctlquery has softwareversion查看当前版本信息。

[[email protected] grid]$ crsctl query hassoftwareversion

Oracle High Availability Services version onthe local node is [11.2.0.4.0]

当出现以下报错时,只要能PING通SCAN IP即可忽略。

1.1 修改改Grid帐号下的ORACLE_HOME值

[[email protected]/]# gedit /home/grid/.bash_profile

ORACLE_SID=+ASM1

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

[[email protected]/]# gedit /home/grid/.bash_profile

ORACLE_SID=+ASM2

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.2 重启oracle

[[email protected] /]# cd/u01/app/11.2.0.4/grid/bin

[[email protected] bin]# ./crsctlstop cluster –all

[[email protected] bin]# ./crsctlstart cluster -all

完成重启后检查版本:

[[email protected] bin]# ./crsctlquery crs activeversion

Oracle Clusterware active version on thecluster is [11.2.0.4.0]

2.     升级数据库软件

2.1    升级前准备

2.1.1     软件准备

这个当然不用多说:下载、上传到服务器、解压

注:再次重新强调:生产环境升级前请备份!!

2.1.2     分别在RAC中所有节点上新建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软件版本

[[email protected] ~]$ 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    进行升级

[[email protected] ~]$ unset ORACLE_BASE

[[email protected] rac01 ~]$ unset ORACLE_HOME

[[email protected] rac01 ~]$ unset ORACLE_SID

[[email protected] rac01 ~]$ cd /software/database/

出现以下错误提示可以忽略,这个主要是因为在DNS中没有对应Node记录引起,不会影响数据库软件的应用与运行。

[[email protected] /]# /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 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.

Finished product-specific root actions.

[[email protected] /]#/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 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.

Finished product-specific root actions.

运行完脚本后,即可下一步,然后结束安装。

3.     升级数据库

3.1    升级前检查

进入新目录下执行utlu112i.sql来进行升级前的检查:

[[email protected]~]# su - oracle

[[email protected]~]$ /u01/app/oracle/product/11.2.0.4/dbhome_1/bin/sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Mon Jan 6 13:33:40 2014

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bitProduction

With the Partitioning, Automatic Storage Management, OLAP, Data Mining

and Real Application Testing options

SQL> @/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/utlu112i.sql

Oracle Database 11.2 Pre-Upgrade Information Tool 01-06-2014 13:34:41

Oracle Database 11.2 Pre-Upgrade Information Tool 01-13-2014 16:02:16

Script Version: 11.2.0.4.0 Build: 001

.**********************************************************************

Database:

**********************************************************************

--> name:      RACORCL

--> version:    11.2.0.3.0

--> compatible:    11.2.0.0.0

--> blocksize:       8192

--> platform:        Linux x86 64-bit

--> timezone file: V14

.**********************************************************************

Tablespaces: [make adjustments in the current environment]

**********************************************************************

--> SYSTEM tablespace is adequate for the upgrade.

.... minimum required size: 938 MB

--> SYSAUX tablespace is adequate for the upgrade.

.... minimum required size: 829 MB

--> UNDOTBS1 tablespace is adequate for the upgrade.

.... minimum required size: 400 MB

--> TEMP tablespace is adequate for the upgrade.

.... minimum required size: 60 MB

--> EXAMPLE tablespace is adequate for the upgrade.

.... minimum required size: 310 MB

.**********************************************************************

Flashback: OFF

**********************************************************************

**********************************************************************

Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]

Note: Pre-upgrade tool was run on a lower version 64-bit database.

**********************************************************************

--> If Target Oracle is 32-Bit, refer here for Update Parameters:

-- No update parameter changes are required.

.--> If Target Oracle is 64-Bit, refer here for Update Parameters:

-- No update parameter changes are required.

.**********************************************************************

Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]

**********************************************************************

-- No renamed parameters found. No changes are required.

.**********************************************************************

Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora orspfile]

**********************************************************************

-- No obsolete parameters found. No changes are required

.**********************************************************************

Components: [The following database components will be upgraded orinstalled]

**********************************************************************

--> Oracle Catalog Views      [upgrade]  VALID

--> Oracle Packages and Types   [upgrade]  VALID

--> JServer JAVA Virtual Machine [upgrade]  VALID

--> Oracle XDK for Java         [upgrade] VALID

--> Real Application Clusters       [upgrade]  VALID

--> Oracle Workspace Manager  [upgrade]  VALID

--> OLAP Analytic Workspace     [upgrade]  VALID

--> OLAP Catalog           [upgrade]  VALID

--> EM Repository          [upgrade]  VALID

--> Oracle Text                [upgrade] VALID

--> Oracle XML Database      [upgrade] VALID

--> Oracle Java Packages      [upgrade]  VALID

--> Oracle interMedia           [upgrade]  VALID

--> Spatial                [upgrade]  VALID

--> Expression Filter              [upgrade]  VALID

--> Rule Manager           [upgrade]  VALID

--> Oracle Application Express    [upgrade]  VALID

... APEX will only be upgraded if the version of APEX in

... the target Oracle home is higher than the current one.

--> Oracle OLAP API              [upgrade]  VALID

.**********************************************************************

Miscellaneous Warnings

**********************************************************************

WARNING: --> The "cluster_database" parameter is currently"TRUE"

.... and must be set to "FALSE" prior to running a manualupgrade.

WARNING: --> Your recycle bin is turned on and currently contains noobjects.

.... Because it is REQUIRED that the recycle bin be empty prior toupgrading

.... and your recycle bin is turned on, you may need to execute thecommand:

PURGE DBA_RECYCLEBIN

.... prior to executing your upgrade to confirm the recycle bin is empty.

WARNING: --> Database contains schemas with objects dependent onDBMS_LDAP package.

.... Refer to the 11g Upgrade Guide for instructions to configure NetworkACLs.

.... USER APEX_030200 has dependent objects.

.**********************************************************************

Recommendations

**********************************************************************

Oracle recommends gathering dictionary statistics prior to

upgrading the database.

To gather dictionary statistics execute the following command

while connected as SYSDBA:

EXECUTEdbms_stats.gather_dictionary_stats;

**********************************************************************

Oracle recommends reviewing any defined events prior to upgrading.

To view existing non-default events execute the following commands

while connected AS SYSDBA:

Events:

SELECT(translate(value,chr(13)||chr(10),‘ ‘)) FROM sys.v$parameter2

WHERE  UPPER(name) =‘EVENT‘ AND  isdefault=‘FALSE‘

Trace Events:

SELECT(translate(value,chr(13)||chr(10),‘ ‘)) from sys.v$parameter2

WHERE UPPER(name) =‘_TRACE_EVENTS‘ AND isdefault=‘FALSE‘

Changes will need to be made in the init.ora or spfile.

**********************************************************************

3.2   运行DBUA来升级数据库

以Oracle用户,进入新目录运行DBUA。

[[email protected]/]# su - oracle

[[email protected]~]$ cd /u01/app/oracle/product/11.2.0.4/dbhome_1/bin

[[email protected]]$ ./dbua

3.3    修改Oracle帐号的ORACLE_HOME

[[email protected]/]# gedit /home/oracle/.bash_profile

ORACLE_SID=RACORCL1          #第二个节点为ORCL2

ORACLE_UNQNAME=RACORCL   #如果不配置,EM起不来

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4/dbhome_1

PATH=$PATH:$ORACLE_HOME/bin

export PATH ORACLE_SID ORACLE_BASE ORACLE_HOMEORACLE_UNQNAME

[[email protected] /]# gedit/home/oracle/.bash_profile

ORACLE_SID=ORCL2          #第二个节点为ORCL2

ORACLE_UNQNAME=RACORCL      #如果不配置,EM起不来

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4/dbhome_1

PATH=$PATH:$ORACLE_HOME/bin

export PATH ORACLE_SID ORACLE_BASE ORACLE_HOMEORACLE_UNQNAME

重启数据库服务:

[[email protected] /]# /u01/app/11.2.0.4/grid/bin/crsctl stop cluster-all

[[email protected] /]# /u01/app/11.2.0.4/grid/bin/crsctl start cluster-all

Oracle 11.2.0.3.0 RAC GI_DB升级到11.2.0.4.0

时间: 2024-11-15 10:37:33

Oracle 11.2.0.3.0 RAC GI_DB升级到11.2.0.4.0的相关文章

探索Oracle之数据库升级二 11.2.0.3升级到11.2.0.4完整步骤

探索Oracle之数据库升级二  11.2.0.3升级到11.2.0.4完整步骤 说明:         这篇文章主要是记录下单实例环境下Oracle 11.2.0.1升级到11.2.0.3的过程,当然RAC的升级是会有所不同.但是他们每个版本之间升级步骤都是差不多的,先升级Database Software,再升级Oracle Instance. Oracle 11.2.0.4的Patchset No:19852360下载需要有Oracle Support才可以.  Patchset包含有7个

oracle 10g rac环境升级到10.2.0.5

升级oracle rac环境,以前是oracle 是10.2.0.1版本,现在要10.2.0.5的版本.首先必须安装oracle cluster集群软件,然后下载oracle 10.2.0.5软件包进行打补丁. oracle cluster安装地址: oracle 10.2.0.5下载地址: 1.查看当前的crs版本(两个节点都看一下) [[email protected] ~]$ crsctl query crs softwareversion CRS software version on

探索Oracle之数据库升级六 11.2.0.4.3 Upgrade12c(12.2.0.1)

探索Oracle之数据库升级六 11.2.0.4.3 Upgrade12c(12.2.0.1) 一.前言:        Oracle 12c发布距今已经一年有余了,其最大亮点是一个可以插拔的数据库(PDB),这是在之前版本没有的:但是如果我们要将以前版本的数据库升级到12c来,那么也应顺其自然的将其变成一个pdb,那么我们的工作不仅包含了数据库软件的升级,同时也包含如何将一个NO-CDB的数据库plug to CDB none. 二.升级要求: 三.升级前准备:        3.1.查看数据

Oracle Study之--Oracle 单实例11.2.0.1.0升级到11.2.0.3.0

Oracle Study之--Oracle 单实例11.2.0.1.0升级到11.2.0.3.0 系统环境: 操作系统:RedHat EL6(64位) Oracle:    Oracle 11gR2 Oracle 11.2.0.1 单实例升级到11.2.0.3 Oracle 升级的步骤都差不多,先升级Oracle software,然后升级Oracle instance. Oracle 11.2.0.2的patchset No 是:10098816. 关于该Patchset 的下载地址,参考下面

Oracle 10.2.0.5 RMAN迁移并升级11.2.0.4一例

一.环境介绍 1. 源数据库环境 操作系统版本: OEL 5.4 x64数据库版本  : 10.2.0.5 x64数据库sid名 : orcl Oracle 10g 10.2.0.5(64bit)安装目录如下: 数据库软件:/u01/app/oracle/product/10.2.0/db_1数据库文件:/u01/app/oracle/oradata/orcl 归档目录:/u01/archivelog RMAN目录:/backup/dbbak/orabak 背景:一个老oracle10g数据库,

ORACLE 11.2.0.1升级到11.2.0.3

ORACLE 11.2.0.1升级到11.2.0.3 最近听了李光老师的关于oracle的升级公开课,深有感悟,之前一直想自己测试的,没有下定决心,这几天自己在虚拟机上测试了一下,测试的过程如下,当然这个只是一些基本的步骤,实际的生产环境我想比这个复杂的多了,但是不用急,慢慢来,循序渐进吧... 1. 数据库情况 单实例非ASM存储 ORACLE_SID : orcl ORACLE_HOME: /u01/app/oracle/product/11.2.0/dbhome_1 1. 数据库原始状态

探索Oracle之数据库升级四 11.2.0.4.0 PSU 11.2.0.4.3

探索Oracle之数据库升级四 11.2.0.4.0 PSU 11.2.0.4.3   一.  检查当前数据库PSU号: [[email protected] ~]$ cd/DBSoft/Product/11.2.4/db_1/OPatch/ [[email protected] OPatch]$ ls crs docs emdpatch.pl jlib ocm opatch opatch.bat opatchdiag opatchdiag.bat opatch.ini opatch.pl op

Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part2:clusterware安装和升级

Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part2:clusterware安装和升级环境:OEL 5.7 + Oracle 10.2.0.5 RAC 3.安装Clusterware 3.1 解压clusterware安装介质 3.2 开始安装clusterware 3.3 root用户按提示执行脚本 3.4 vipca创建(可能不需要) 4.升级Clusterware 4.1 解压Patchset包 4.2 开始升级clusterware 4.3 root用户按提

Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级

Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级环境:OEL 5.7 + Oracle 10.2.0.5 RAC 5.安装Database软件 5.1 解压安装介质 5.2 开始安装db软件 5.3 root用户执行脚本 6.升级Database软件 6.1 升级db软件 6.2 root用户执行脚本 7.创建数据库 7.1 创建监听 7.2 创建ASM 7.3 创建数据库 Linux平台 Oracle 10gR2 RAC安装指导:Part1:L