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 node [rac10g01] is [10.2.0.1.0]

[[email protected] ~]$ crsctl query crs activeversion

CRS active version on the cluster is [10.2.0.1.0]

[[email protected] ~]$

2.安装升级软件包

[[email protected] ~]$ unzip p8202632_10205_Linux-x86-64.zip

[[email protected] ~]$ cd Disk1/

[[email protected] Disk1]$ ll

total 188

drwxr-xr-x   4 oracle oinstall   4096 Apr 29  2010 install

-rwxr-xr-x   1 oracle oinstall 171131 Apr 29  2010 patch_note.htm

drwxr-xr-x   2 oracle oinstall   4096 Apr 29  2010 response

-rwxr-xr-x   1 oracle oinstall   3927 Apr 29  2010 runInstaller

drwxr-xr-x  11 oracle oinstall   4096 Apr 29  2010 stage

[[email protected] Disk1]$ ./runInstaller

在两个节点先要关闭crs服务,再执行root102.sh脚本

rac10g01节点:

[[email protected] ~]# /u01/oracle/product/10.2.0.1/crs_1/bin/crsctl stop crs

Stopping resources.

Error while stopping resources. Possible cause: CRSD is down.

Stopping CSSD.

Unable to communicate with the CSS daemon.

[[email protected] ~]# sh /u01/oracle/product/10.2.0.1/crs_1/install/root102.sh

Creating pre-patch directory for saving pre-patch clusterware files

Completed patching clusterware files to /u01/oracle/product/10.2.0.1/crs_1

Relinking some shared libraries.

Relinking of patched files is complete.

WARNING: directory ‘/u01/oracle/product/10.2.0.1‘ is not owned by root

WARNING: directory ‘/u01/oracle/product‘ is not owned by root

WARNING: directory ‘/u01/oracle‘ is not owned by root

WARNING: directory ‘/u01‘ is not owned by root

Preparing to recopy patched init and RC scripts.

Recopying init and RC scripts.

Startup will be queued to init within 30 seconds.

/etc/profile: line 61: ulimit: open files: cannot modify limit: Operation not permitted

Starting up the CRS daemons.

Waiting for the patched CRS daemons to start.

This may take a while on some systems.

.

10205 patch successfully applied.

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully deleted 1 values from OCR.

Successfully deleted 1 keys from OCR.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: rac10g01 rac10g01-priv rac10g01

Creating OCR keys for user ‘root‘, privgrp ‘root‘..

Operation successful.

clscfg -upgrade completed successfully

Creating ‘/u01/oracle/product/10.2.0.1/crs_1/install/paramfile.crs‘ with data used for CRS conf iguration

Setting CRS configuration values in /u01/oracle/product/10.2.0.1/crs_1/install/paramfile.crs

[[email protected] ~]#

rac10g02节点:

[[email protected] ~]# /u01/oracle/product/10.2.0.1/crs_1/bin/crsctl stop crs

Stopping resources.

Error while stopping resources. Possible cause: CRSD is down.

Stopping CSSD.

Unable to communicate with the CSS daemon.

[[email protected] ~]# sh /u01/oracle/product/10.2.0.1/crs_1/install/root102.sh

Creating pre-patch directory for saving pre-patch clusterware files

Completed patching clusterware files to /u01/oracle/product/10.2.0.1/crs_1

Relinking some shared libraries.

Relinking of patched files is complete.

WARNING: directory ‘/u01/oracle/product/10.2.0.1‘ is not owned by root

WARNING: directory ‘/u01/oracle/product‘ is not owned by root

WARNING: directory ‘/u01/oracle‘ is not owned by root

WARNING: directory ‘/u01‘ is not owned by root

Preparing to recopy patched init and RC scripts.

Recopying init and RC scripts.

Startup will be queued to init within 30 seconds.

/etc/profile: line 61: ulimit: open files: cannot modify limit: Operation not permitted

Starting up the CRS daemons.

Waiting for the patched CRS daemons to start.

This may take a while on some systems.

.

10205 patch successfully applied.

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully deleted 1 values from OCR.

Successfully deleted 1 keys from OCR.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 2: rac10g02 rac10g02-priv rac10g02

Creating OCR keys for user ‘root‘, privgrp ‘root‘..

Operation successful.

clscfg -upgrade completed successfully

Creating ‘/u01/oracle/product/10.2.0.1/crs_1/install/paramfile.crs‘ with data used for CRS configuration

Setting CRS configuration values in /u01/oracle/product/10.2.0.1/crs_1/install/paramfile.crs

[[email protected] ~]#

脚本执行完了后点退出

3.验证crs的版本

[[email protected] ~]$ crsctl query crs softwareversion

CRS software version on node [rac10g01] is [10.2.0.5.0]

[[email protected] ~]$ crsctl query crs activeversion

CRS active version on the cluster is [10.2.0.5.0]

[[email protected] ~]$

4.验证crs各个服务的状态

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora....g01.gsd application    ONLINE    ONLINE    rac10g01

ora....g01.ons application    ONLINE    ONLINE    rac10g01

ora....g01.vip application    ONLINE    ONLINE    rac10g01

ora....g02.gsd application    ONLINE    ONLINE    rac10g02

ora....g02.ons application    ONLINE    ONLINE    rac10g02

ora....g02.vip application    ONLINE    ONLINE    rac10g02

[[email protected] ~]$

5.检查oracle database的版本信息

[[email protected] ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 15 17:42:35 2016

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

Connected to an idle instance.

SQL> exit

Disconnected

[[email protected] ~]$

6.升级oracle数据库软件

目前的oracle database是10.2.0.1的版本,下载10.2.0.5的补丁包进行升级.前提是先安装好10.2.0.1的版本.

[[email protected] ~]$ cd Disk1/

[[email protected] Disk1]$ ./runInstaller

rac10g01节点:

[[email protected] ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh

Running Oracle 10g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME=  /u01/oracle/product/10.2.0.1/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

[[email protected] ~]#

rac10g02节点:

[[email protected] ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh

Running Oracle 10g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME=  /u01/oracle/product/10.2.0.1/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

[[email protected] ~]#

7.验证oracle database的版本

[[email protected] Disk1]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.5.0 - Production on Tue Nov 15 18:09:09 2016

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

Connected to an idle instance.

SQL>

8.创建数据库

[[email protected] ~]# xhost +

access control disabled, clients can connect from any host

[[email protected] ~]# su - oracle

[[email protected] ~]$ dbca

时间: 2024-12-22 21:16:57

oracle 10g rac环境升级到10.2.0.5的相关文章

oracle linux 4.8安装oracle 10g rac环境之cluster安装

安装环境: 操作系统:oracle linux 4.8 64位 集群软件:10201_clusterware_linux_x86_64.cpio.gz 数据库:10201_database_linux_x86_64.cpio.gz cpu:1颗 内存:必须1.5G以上(一般是2G) 本地磁盘:20G(根分区17G,swap是4G,boot分区是512M) asm下载地址:http://www.oracle.com/technetwork/server-storage/linux/download

oracle linux 4.8安装oracle 10g rac环境之database安装

1.安装oracle database软件 [[email protected] ~]$ cd database/ [[email protected] database]$ ./runInstaller rac10g01节点: [[email protected] ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh Running Oracle10 root.sh script... The following environment variab

CENTOS 6.4 安装oracle 10g,手工建库及升级到10.2.0.5

一. 数据库软件安装 参照官方手册 1.安装rpm包 注这里的yum直接用163的yum yum -y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio li

Oracle 10g RAC 升级(CPU Update)之--升级CRS

Oracle 10g RAC 升级(CPU Update)之--升级CRS 系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 案例: 本案例是从 Oracle 10.2.0.1.0 升级到10.2.0.4.0,作为Oracle的补丁升级(CPU Update). 升级步骤:   1.CRS 升级(对于CRS 升级可以采用滚动升级,本案例采用了滚动升级)   2

rac 10g 10.2.0.1升级到10.2.0.5具体解释

    RAC 10.2.0.1 升级到 10.2.0.5 一. 准备: Patch 包:p8202632_10205_LINUX.zip   节点数:3个节点       RAC1    RAC2   RAC3 当前节点状态 节点1: [[email protected] bin]# ./crs_stat -t Name          Type           Target    State    Host ---------------------------------------

rac 10g 10.2.0.1升级到10.2.0.5详解

    RAC 10.2.0.1 升级到 10.2.0.5 一. 准备: Patch 包:p8202632_10205_LINUX.zip   节点数:3个节点       RAC1    RAC2   RAC3 当前节点状态 节点1: [[email protected] bin]# ./crs_stat -t Name          Type           Target    State    Host ---------------------------------------

Oracle升级_oracle 10g版本由 10.2.0.1.0升级为10.2.0.4.0(即CPU升级)

CPU升级_ oracle 10g版本由 10.2.0.1.0升级为10.2.0.4.0 ***********************************************声明************************************************ 原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明出处(http://blog.csdn.net/huangyanlong). 表述有错误之处,请您留言,不胜感激. 提醒:点击目录,更有

Solaris 10(x86)构建Oracle 10g RAC之--配置系统环境(2)

Solaris 10(x86)构建Oracle 10g RAC之--配置系统环境(2) 系统环境: 操作系统:Solaris 10(x86-64) Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 一.建立主机之间的信任关系(在所有node) 1.配置主机hosts.equiv文件 [[email protected]:/]# cat /etc/hosts.equiv  node1  root node

Oracle 10g(10.2.0.4)升级到10.2.0.5.19

一.将数据库版本从10.2.0.4 升级到 10.2.0.5,再升级到10.2.0.5.19 (1) 备份等过程略过,一个老库的升级过程,记录之.   (2) 一致性关闭数据库及监听 sqlplus / as sysdba;   shutdown immediate    lsnrctl stop 二.升级数据库软件 1,解压p8202632_10205_Linux-x86-64.zip   2,直接采用安装方式安装,覆盖原安装目录 xhost+   su - oracle    cd Disk