SlideShare a Scribd company logo
1 of 21
Download to read offline
Upgrade 11.2.0.1 RAC
DB/RDBMS to 11.2.0.2 in Linux




           By Maclean.liu
         liu.maclean@gmail.com
About Me
l Email:liu.maclean@gmail.com
l Blog:www.oracledatabase12g.com
l Oracle Certified Database Administrator Master 10g
and 11g
l Over 6 years experience with Oracle DBA technology
l Over 7 years experience with Linux technology
l Member Independent Oracle Users Group
l Member All China Users Group
l Presents for advanced Oracle topics: RAC,
DataGuard, Performance Tuning and Oracle Internal.
在<Upgrade 11.2.0.1 GI/CRS to 11.2.0.2 in Linux>一文中我们介绍了升级 11.2.0.1 GI/CRS 到
11.2.0.2 的详细步骤,因为 GI/CRS 的版本总是要求大于 DB/RDBMS,所以这是我们升级
RDBMS 数据库软件的前提条件。

接下来我们将具体介绍升级 11.2.0.1 DB/RDBMS 到 11.2.0.2 的详细步骤:

一、 下载补丁介质
11.2.0.2 的 patchset 目前没有公开的下载地址,因为 updates.oracle.com 目前已经不再提供 ftp
下载模式,所以我们只能通过登录 My Oracle Support 后进入 Patch 栏目搜索 Patchid 并获得加
密的下载链接。

11.2.0.2 补丁集的全称是 11.2.0.2.0 PATCH SET FOR ORACLE DATABASE SERVER (Patchset)
(patchid:10098816),可以通过 10098816 这个 id 到 Patch 栏目搜索,并找出对应平台的介质
zip 包。如 在 Linux x86-64 平台上:




以上 p10098816_112020_Linux-x86-64_1of7.zip 和 p10098816_112020_Linux- x86-64_2of7.zip
,这 2 个 zip 包对应为 Database/RDBMS 软件的介质,我们不需要下载所有的 7 个 zip 包,有
这 2 个升级数据库软件就已经足够了。

完成以上 2 个软件的下载后,分别解压 zip 包:
unzip p10098816_112020_Linux-x86-64_1of7.zip -d    $PATCHHOME
unzip p10098816_112020_Linux-x86-64_2of7.zip -d    $PATCHHOME


二、以 out of place 方式安装 11.2.0.2 DB 数据库软件
因为 11.2.0.2 的 Patchset 以后都是 out of place 的,所以我们可以不用像在 11gr2 以前那样必
须在原有安装低版本软件的基础上才能升级软件,而可以选择在别的位置完全新安装。

注意该步骤不需要停止数据库实例,可以在前期工作中完成。

以 DB/RDBMS 数据库软件的拥有者身份(oracle 用户)启动方才解压目录下的 oui 安装界面:
su - oracle

(oracle)$   unset ORACLE_HOME ORACLE_BASE ORACLE_SID
(oracle)$   export DISPLAY=:0
(oracle)$   cd $PATCHHOME
(oracle)$   ./runInstaller


在 Oracle Universal Installer 界面下的 Select Installation Options Screen 选择 install database
only.




在 Grid Installation Options 下若是 RAC 数据库则选择 Oracle Real Application cluster database
installation,注意如果在该屏幕下出现[FATAL] [INS-35354] The system on which you are
attempting to install Oracle RAC is not part of a valid cluster 则可能是在之前的安装 Gird 的过程
中没有正确的 Update Inventory 更新信息库信息,见<11gr2 RAC 安装 INS-35354 问题一例
>。
若是单节点数据库则选择 Single instance database installation
在 Specify Installation Location Screen 上一般 OUI 会帮你自动匹配一个$ORACLE_BASE 变量
下不同于原有数据库软件安装目录的新目录,确认这些目录下有足够的磁盘空间,保 险起
见空间应大于 10GB。注意这里是 out of place 安装,所以千万不要填入原有的安装路径。




以上安装完成后 OUI 会提示要在所有节点上以 root 身份执行 root.sh 脚本:
su - root
(root #) /s01/orabase/product/11.2.0/dbhome_2/root.sh

Running Oracle 11g root script...

The following environment variables are set as:
  ORACLE_OWNER= oracle
  ORACLE_HOME= /s01/orabase/product/11.2.0/dbhome_2

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.


三、升级前的准备工作
以上我们完成了 11.2.0.2 数据库软件的安装工作,但是还没有升级实例和数据字典。
在正式升级之前,极有必要完成一系列的备份和准备工作,这些准备工作可以详见拙作
<Oracle 数据库升级前必要的准备工作>

1.清理数据字典中的无用数据,包括审计和回收站,它们可能拉慢数据字典升级的速度:
TRUNCATE TABLE SYS.AUD$;
purge DBA_RECYCLEBIN;




2.如果条件允许的话,建议使用 RMAN 全量备份数据库,前提是数据库没有达到 TB 级别。
rman target / catalog rman/rman@cata

backup as compressed backupset incremental level 0 database ;




3. 收集数据字典的统计信息,若 dictionary 的统计信息不准备可能导致 catupgrd.sql 字典升级
脚本运行过久:
SQL> set timing on;

SQL> EXECUTE dbms_stats.gather_dictionary_stats;

PL/SQL procedure successfully completed.

Elapsed: 00:00:27.81




4.运行 dbupgdiag.sql 升级信息收集脚本, 该脚本可以提供数据库的一些版本信息和组建信
息,以下为该脚本的示例输出内容:
cat db_upg_diag_VPROD_07-Sep-2011_0737.log

             *** Start of LogFile ***

 Oracle Database Upgrade Diagnostic Utility        09-07-2011 19:37:23

===============
Database Uptime
===============

19:32 07-SEP-11

=================
Database Wordsize
=================
This is a 64-bit database

================
Software Version
================

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

=============
Compatibility
=============

Compatibility is set as 11.2.0.0.0

================
Component Status
================

Comp ID Component                            Status    Version          Org_Version
Prv_Version
------- ----------------------------------   --------- --------------
-------------- --------------
CATALOG Oracle Database Catalog Views        VALID     11.2.0.1.0
CATPROC Oracle Database Packages and Types   VALID     11.2.0.1.0
OWM     Oracle Workspace Manager             VALID     11.2.0.1.0
RAC     Oracle Real Application Clusters     VALID     11.2.0.1.0

======================================================
List of Invalid Database Objects Owned by SYS / SYSTEM
======================================================

Number of Invalid Objects
------------------------------------------------------------------
There are no Invalid Objects

DOC>################################################################
DOC>
DOC> If there are no Invalid objects below will result in zero rows.
DOC>
DOC>################################################################
DOC>#

no rows selected

================================
List of Invalid Database Objects
================================

Number of Invalid Objects
------------------------------------------------------------------
There are no Invalid Objects

DOC>################################################################
DOC>
DOC> If there are no Invalid objects below will result in zero rows.
DOC>
DOC>################################################################
DOC>#

no rows selected
==============================================================
Identifying whether a database was created as 32-bit or 64-bit
==============================================================

DOC>###########################################################################
DOC>
DOC> Result referencing the string 'B023' ==> Database was created as 32-bit
DOC> Result referencing the string 'B047' ==> Database was created as 64-bit
DOC> When String results in 'B023' and when upgrading database to 10.2.0.3.0
DOC> (64-bit) , For known issue refer below articles
DOC>
DOC> Note 412271.1 ORA-600 [22635] and ORA-600 [KOKEIIX1] Reported While
DOC> Upgrading Or Patching Databases To 10.2.0.3
DOC> Note 579523.1 ORA-600 [22635], ORA-600 [KOKEIIX1], ORA-7445 [KOPESIZ] and
DOC> OCI-21500 [KOXSIHREAD1] Reported While Upgrading To 11.1.0.6
DOC>
DOC>###########################################################################
DOC>#

Metadata Initial DB Creation Info
-------- -----------------------------------
B047     Database was created as 64-bit

===================================================
Number of Duplicate Objects Owned by SYS and SYSTEM
===================================================

Counting duplicate objects ....

 COUNT(1)
----------
     4

=========================================
Duplicate Objects Owned by SYS and SYSTEM
=========================================

Querying duplicate objects ....

OBJECT_NAME                                OBJECT_TYPE
----------------------------------------
----------------------------------------
AQ$_SCHEDULES                              TABLE
AQ$_SCHEDULES_PRIMARY                      INDEX
DBMS_REPCAT_AUTH                           PACKAGE BODY
DBMS_REPCAT_AUTH                           PACKAGE

DOC>
DOC>############################################################################
####
DOC>
DOC> If any objects found please follow below article.
DOC> Note 1030426.6 How to Clean Up Duplicate Objects Owned by SYS and SYSTEM
schema
DOC> Read the Exceptions carefully before taking actions.
DOC>
DOC>############################################################################
####
DOC>#

================
JVM Verification
================

JAVAVM - NOT Installed. Below results can be ignored

================================================
Checking Existence of Java-Based Users and Roles
================================================

DOC>
DOC>############################################################################
####
DOC>
DOC> There should not be any Java Based users for database version 9.0.1 and
above.
DOC> If any users found, it is faulty JVM.
DOC>
DOC>############################################################################
####
DOC>#

User Existence
---------------------------
No Java Based Users

DOC>
DOC>###############################################################
DOC>
DOC> Healthy JVM Should contain Six Roles.
DOC> If there are more or less than six role, JVM is inconsistent.
DOC>
DOC>###############################################################
DOC>#

Role
------------------------------
No JAVA related Roles

Roles

=========================================
List of Invalid Java Objects owned by SYS
=========================================

There are no SYS owned invalid JAVA objects

DOC>
DOC>#################################################################
DOC>
DOC> Check the status of the main JVM interface packages DBMS_JAVA
DOC> and INITJVMAUX and make sure it is VALID.
DOC> If there are no Invalid objects below will result in zero rows.
DOC>
DOC>#################################################################
DOC>#

no rows selected

INFO: Below query should succeed with 'foo' as result.
select dbms_java.longname('foo') "JAVAVM TESTING" from dual
    *
ERROR at line 1:
ORA-00904: "DBMS_JAVA"."LONGNAME": invalid identifier
*** End of LogFile ***


以上 spool 内容显示所要升级的数据库现有 CATALOG、CATPROC、OWM 和 RAC 组件,且
没有安装 JVM,升级 JVM 组建的数据字典将消耗较长的时间。

另外一个建议运行的脚本是 utlu112i.sql,它位于新安装的$ORACLE_HOME/rdbms/admin 目
录下。

该脚本会给出一些升级前地建议,包括建议保证系统表空间和闪回区域有足够的空间,以及
收集数据字典的统计信息,如以下输出:
SQL> @/s01/orabase/product/11.2.0/dbhome_2/rdbms/admin/utlu112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 09-07-2011 20:02:30
Script Version: 11.2.0.2.0 Build: 001
.
**********************************************************************
Database:
**********************************************************************
--> name:          VPROD
--> version:       11.2.0.1.0
--> compatible:    11.2.0.0.0
--> blocksize:     8192
--> platform:      Linux x86 64-bit
--> timezone file: V11
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 267 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 150 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
.... minimum required size: 253 MB
--> TEMP tablespace is adequate for the upgrade.
.... minimum required size: 61 MB
.
**********************************************************************
Flashback: ON
**********************************************************************
FlashbackInfo:
--> name:          +SYSTEMDG
--> limit:         4977 MB
--> used:          264 MB
--> size:          4977 MB
--> reclaim:       0 MB
--> files:         7
WARNING: --> Flashback Recovery Area Set. Please ensure adequate disk space
in recover
y areas before performing an upgrade.
.
**********************************************************************
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 or spfile]
**********************************************************************
-- No obsolete parameters found. No changes are required
.

**********************************************************************
Components: [The following database components will be upgraded or installed]
**********************************************************************
--> Oracle Catalog Views         [upgrade] VALID
--> Oracle Packages and Types    [upgrade] VALID
--> Real Application Clusters    [upgrade] VALID
--> Oracle Workspace Manager     [upgrade] VALID
.
**********************************************************************
Miscellaneous Warnings
**********************************************************************
WARNING: --> The "cluster_database" parameter is currently "TRUE"
.... and must be set to "FALSE" prior to running a manual upgrade.
WARNING: --> Database is using a timezone file older than version 14.
.... After the release migration, it is recommended that DBMS_DST package
.... be used to upgrade the 11.2.0.1.0 database timezone version
.... to the latest version which comes with the new release.
WARNING: --> Your recycle bin is turned on and currently contains no objects.
.... Because it is REQUIRED that the recycle bin be empty prior to upgrading
.... and your recycle bin is turned on, you may need to execute the command:
    PURGE DBA_RECYCLEBIN
.... prior to executing your upgrade to confirm the recycle bin is empty.
.
**********************************************************************
Recommendations
**********************************************************************
Oracle recommends gathering dictionary statistics prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:

  EXECUTE dbms_stats.gather_dictionary_stats;

**********************************************************************
Oracle recommends removing all hidden parameters prior to upgrading.

To view existing hidden parameters execute the following command
while connected AS SYSDBA:

  SELECT name,description from SYS.V$PARAMETER WHERE name
    LIKE '_%' ESCAPE ''

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

**********************************************************************
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.

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




5.如果数据库很大那么建议打开闪回数据库 flashback database,并创建还原点,这样可以极
大地缩短回退时间。

可以通过以下查询判断数据库是或否启用了 flashback database 功能:


SQL> select FLASHBACK_ON from v$database;

FLASHBACK_ON
------------------
NO




若显示 NO 则说明之前没有启用数据库闪回功能,若希望启用数据库闪回功能需要数据库短
时间停机:


关闭所有的数据库实例

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.

启动某一套实例到 mount 状态

SQL> startup mount;
ORACLE instance started.

Total System Global Area 1252663296 bytes
Fixed Size                  2212936 bytes
Variable Size             603982776 bytes
Database Buffers          637534208 bytes
Redo Buffers                8933376 bytes
Database mounted.

SQL> alter database flashback on;

Database altered.
在本节点打开数据库,并启动所有节点

SQL> alter database open;

Database altered.




以上在数据库级别启用了闪回 flashback 功能。

接着我们需要停止应用程序,注意在这一步之前的准备工作都可以在线完成,但是本步骤将
要求停止一切应用程序的链接,关闭数据库,并启动到 restrict 限制模式,以便创建 restore
point,方便可能的升级回退。,strict 模式避免了普通用户的链接。

在所有节点上关闭数据库实例,并在唯一节点上启动数据库到 restrict 模式。


startup restrict;

ORACLE instance started.

Total System Global Area 1252663296 bytes
Fixed Size 2212936 bytes
Variable Size 603982776 bytes
Database Buffers 637534208 bytes
Redo Buffers 8933376 bytes
Database mounted.
Database opened.

SQL> conn maclean/maclean
ERROR:
ORA-01035: ORACLE only available to users with RESTRICTED SESSION privilege

Warning: You are no longer connected to ORACLE.

conn / as sysdba

SQL> create restore point maclean_rollback guarantee flashback database;

Restore point created.

SQL> select * from v$restore_point;

    SCN DATABASE_INCARNATION# GUA STORAGE_SIZE
---------- --------------------- --- ------------
TIME
---------------------------------------------------------------------------
RESTORE_POINT_TIME                                                          PRE
--------------------------------------------------------------------------- ---
NAME
--------------------------------------------------------------------------------
  601958                     1 YES     15941632
07-SEP-11 07.52.59.000000000 PM
                                       YES
MACLEAN_ROLLBACK
四、正式升级数据库实例和数据字典
1. 关闭所有数据库实例

2. 复制相关的 pfile 或 spfile 形式的参数到新的 ORACLE_HOME 下,这里我们假设使用 ASM
存储共享的 spfile,那么只需要在所有节点上将 init$SID.ora 形式的文件拷贝即可:


(oracle $) cat $ORACLE_HOME/dbs/initVPROD1.ora
SPFILE='+SYSTEMDG/VPROD/spfileVPROD.ora'

(oracle $) cp $ORACLE_HOME/dbs/initVPROD1.ora
/s01/orabase/product/11.2.0/dbhome_2/dbs

设置 ORACLE_HOME 和 PATH 变量指向新的 11.2.0.2 数据库软件

(oracle $) export ORACLE_HOME=/s01/orabase/product/11.2.0/dbhome_2
(oracle $) export PATH=/s01/orabase/product/11.2.0/dbhome_2/bin:$PATH

设置正确的 ORACLE_SID

(oracle $) export ORACLE_SID=VPROD1
(oracle $) unset LD_LIBRARY_PATH




3. 启动实例到 nomount 状态,并修改 cluster_database 参数到 spfile:


SQL> startup nomount;
ORACLE instance started.

Total System Global Area 1252663296 bytes
Fixed Size                  2226072 bytes
Variable Size             402655336 bytes
Database Buffers          838860800 bytes
Redo Buffers                8921088 bytes

SQL> alter system set cluster_database=false scope=spfile;

System altered.




4. 重启实例到 upgrade 模式,升级数据字典,运行
$ORACLE_HOME/rdbms/admin/catupgrd.sql 脚本:


SQL> shutdown immediate;
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> startup upgrade;
ORACLE instance started.
Total System Global Area 1252663296 bytes
Fixed Size                  2226072 bytes
Variable Size             402655336 bytes
Database Buffers          838860800 bytes
Redo Buffers                8921088 bytes
Database mounted.
Database opened.

SQL> set echo on

SQL> SPOOL /tmp/upgrade.log

SQL> set time on;

20:40:40 SQL> @/s01/orabase/product/11.2.0/dbhome_2/rdbms/admin/catupgrd.sql

在以上 catupgrd.sql 脚本运行过程中可以通过 DBA_SERVER_REGISTRY 视图了解组件字典升级的进度

SQL> select * from DBA_SERVER_REGISTRY;
select * from DBA_SERVER_REGISTRY
       *
ERROR at line 1:
ORA-04063: view "SYS.DBA_SERVER_REGISTRY" has errors
or
ERROR at line 1:
ORA-04063: package body "SYS.DBMS_REGISTRY" has errors

在一开始会提示该视图有错误,这不要紧,稍等一会。

SQL> select comp_name,status,version from dba_server_registry;

COMP_NAME                                            STATUS
VERSION
--------------------------------------------------   --------------------------
------------------------------
Oracle Workspace Manager                             UPGRADING
11.2.0.1.0
Oracle Database Catalog Views                        VALID
11.2.0.2.0
Oracle Database Packages and Types                   VALID
11.2.0.2.0
Oracle Real Application Clusters                     VALID
11.2.0.2.0

20:50:40 SQL>
20:50:40 SQL> Rem
*********************************************************************
20:50:40 SQL> Rem END catupgrd.sql
20:50:40 SQL> Rem
*********************************************************************
20:50:40 SQL>

以上 catupgrd.sql 脚本运行了 10 分钟左右

重启实例,运行 utlrp.sql 脚本编译失效对象

sqlplus / as sysdba
startup;

@?/rdbms/admin/utlrp
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN 2011-09-07 20:53:38

该脚本会自动根据 cpu 数目选择并行度

DOC>   This script automatically chooses serial or parallel recompilation
DOC>   based on the number of CPUs available (parameter cpu_count) multiplied
DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC>   On RAC, this number is added across all RAC nodes.

TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END 2011-09-07 20:55:09

该脚本耗时约 2 分钟

修改 cluster_database 参数为 true,并重启所有节点实例

SQL> alter system set cluster_database=true scope=spfile;

System altered.


可以看到以上在数据库仅安装了 CATALOG、CATPROC、OWM 和 RAC Cluster View 4 种组
件的情况下,catupgrd.sql 字典升级脚本仅耗时 10 分钟左右。 而实际的生产库可能安装了更
多的组件,如 JVM 等组件将耗时较多。

以下总结了各 Oracle 组件升级字典的平均耗时,是一张十分有用的升级时间参考表:
DB Sample Upgrade Time

较少组件情况下

                            HH:MM:S
Component
                            S
Oracle Server               00:16:17
JServer JAVA Virtual Machine 00:05:19
Oracle XDK                  00:00:48
Oracle Text                 00:00:58
Oracle XML Database         00:04:09
Oracle Database Java
                            00:00:33
Packages
Gathering Statistics        00:02:43


Total Upgrade Time:         00:30:47



较多组件情况下

Component                   HH:MM:S
S
Oracle Server               00:16:17
JServer JAVA Virtual Machine 00:05:19
Oracle Workspace Manager    00:01:01
Oracle Enterprise Manager   00:10:13
Oracle XDK                  00:00:48
Oracle Text                 00:00:58
Oracle XML Database         00:04:09
Oracle Database Java
                            00:00:33
Packages
Oracle Multimedia           00:07:43
Oracle Expression Filter    00:00:18
Oracle Rule Manager         00:00:12
Gathering Statistics        00:04:53


Total Upgrade Time:         00:52:31



5.使用 srvctl 命令更新 ocr 中 DBHOME 相关信息:


su   - oracle

srvctl upgrade database -d VPROD -o $NEW_ORACLE_HOME

srvctl upgrade database -d VPROD -o /s01/orabase/product/11.2.0/dbhome_2

[oracle@vrh1 ~]$ srvctl config database -d VPROD
Database unique name: VPROD
Database name: VPROD
Oracle home: /s01/orabase/product/11.2.0/dbhome_2
Oracle user: oracle
Spfile: +SYSTEMDG/VPROD/spfileVPROD.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: VPROD
Database instances: VPROD1,VPROD2
Disk Groups: SYSTEMDG
Mount point paths:
Services:
Type: RAC
Database is administrator managed

[oracle@vrh1 ~]$ srvctl stop database -d VPROD
PRCC-1016 : VPROD was already stopped
[oracle@vrh1 ~]$ srvctl start database -d VPROD
[oracle@vrh1 ~]$ srvctl status database -d VPROD
Instance VPROD1 is running on node vrh1
Instance VPROD2 is running on node vrh2




6.修改 oracle 用户的 profile 配置文件指中的变量:


cat .bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

ORACLE_HOME=/s01/orabase/product/11.2.0/dbhome_2
ORACLE_SID=VPROD1
ORACLE_BASE=/s01/orabase
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH:$HOME/bin

export PATH ORACLE_HOME ORACLE_SID ORACLE_BASE

SQL> select * from global_name;

GLOBAL_NAME
--------------------------------------------------------------------------------
www.oracledatabase12g.com

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
7. 数据库升级完成后进入一个 pending area,建议在至少 2 个礼拜内,不要升级 compatible
参数和删除 restore point。

在确认没有回退的必要后,修改 compatible 参数并删除 restore point:




alter system set compatible=’11.2.0.2.0′ scope=spfile;

drop restore point   MACLEAN_ROLLBACK;

srvctl stop database -d VPROD

srvctl start database -d VPROD


以上成功地将 11.2.0.1 的 RAC 数据库升级到了 11.2.0.2。



五、回退升级操作(Database Downgrade)
我们可以选择 2 种回退办法:

   1. 通过 restore point 还原到 11.2.0.1 的数据库
   2. 执行 catdwgrd.sql 降级数据字典

针对第一种方法:
关闭所有节点实例

srvctl stop database -d VPROD

export ORACLE_HOME=$OLD_ORACLE_HOME
export PATH=$OLD_ORACLE_HOME/bin:$PATH
unset LD_LIBRARY_PATH

sqlplus   / as sysdba

SQL> select * from v$restore_point;

    SCN DATABASE_INCARNATION# GUA STORAGE_SIZE
---------- --------------------- --- ------------
TIME
---------------------------------------------------------------------------
RESTORE_POINT_TIME                                                          PRE
--------------------------------------------------------------------------- ---
NAME
--------------------------------------------------------------------------------
  601958                     1 YES    462307328
07-SEP-11 07.52.59.000000000 PM
                                       YES
MACLEAN_ROLLBACK
SQL> flashback database to restore point MACLEAN_ROLLBACK;

Flashback complete.

flashback database 的速度 视乎 flashback log 多少而定,一般是很快的,在 1 分钟之内。

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

SQL> alter database open resetlogs;

Database altered.


以上通过 restore point 的方法是我所推荐的,这种方法简单、省时省力、高效且问题少少,
是一种绿色方案。同时不要忘记使用 srvctl upgrade 命令还原 ocr 中的 DBHOME 信息,以及
还原 profile 文件。

针对第二种方法:
catdwgrd.sql 的运行有诸多限制,其所消耗的时间可能要略长于 catupgrd.sql。而且该脚本在
运行过程中可能遇到各种错误,不推荐使用这种方法。

关于使用 catdwgrd.sql 脚本降级数据库 11.2.0.2 到 11.2.0.1,可以参考 MOS note <How To
Downgrade From Database 11.2 To Previous Release (includes 11.2.0.2-11.2.0.1) [ID 883335.1]>。

More Related Content

What's hot

Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupArun Sharma
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptChien Chung Shen
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaultAnar Godjaev
 
MySQL InnoDB Cluster 미리보기 (remote cluster test)
MySQL InnoDB Cluster 미리보기 (remote cluster test)MySQL InnoDB Cluster 미리보기 (remote cluster test)
MySQL InnoDB Cluster 미리보기 (remote cluster test)Seungmin Yu
 
Exadata Patching Demystified
Exadata Patching DemystifiedExadata Patching Demystified
Exadata Patching DemystifiedEnkitec
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Voeurng Sovann
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)K Kumar Guduru
 
在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5maclean liu
 
MySQL Cluster Performance Tuning - 2013 MySQL User Conference
MySQL Cluster Performance Tuning - 2013 MySQL User ConferenceMySQL Cluster Performance Tuning - 2013 MySQL User Conference
MySQL Cluster Performance Tuning - 2013 MySQL User ConferenceSeveralnines
 
Enterprise Manager Cloud Control 12c Release 4 - Installation
Enterprise Manager Cloud Control 12c Release 4 - InstallationEnterprise Manager Cloud Control 12c Release 4 - Installation
Enterprise Manager Cloud Control 12c Release 4 - InstallationIvica Arsov
 
RAC - The Savior of DBA
RAC - The Savior of DBARAC - The Savior of DBA
RAC - The Savior of DBANikhil Kumar
 
WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation K Kumar Guduru
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)Kenny Gryp
 
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南maclean liu
 
Enterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12cEnterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12cRakesh Gujjarlapudi
 
配置Golden gate同步ddl语句
配置Golden gate同步ddl语句配置Golden gate同步ddl语句
配置Golden gate同步ddl语句maclean liu
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptSantosh Kangane
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Yury Velikanov
 

What's hot (20)

Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning Concept
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vault
 
MySQL InnoDB Cluster 미리보기 (remote cluster test)
MySQL InnoDB Cluster 미리보기 (remote cluster test)MySQL InnoDB Cluster 미리보기 (remote cluster test)
MySQL InnoDB Cluster 미리보기 (remote cluster test)
 
Exadata Patching Demystified
Exadata Patching DemystifiedExadata Patching Demystified
Exadata Patching Demystified
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
 
在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5
 
MySQL Cluster Performance Tuning - 2013 MySQL User Conference
MySQL Cluster Performance Tuning - 2013 MySQL User ConferenceMySQL Cluster Performance Tuning - 2013 MySQL User Conference
MySQL Cluster Performance Tuning - 2013 MySQL User Conference
 
Enterprise Manager Cloud Control 12c Release 4 - Installation
Enterprise Manager Cloud Control 12c Release 4 - InstallationEnterprise Manager Cloud Control 12c Release 4 - Installation
Enterprise Manager Cloud Control 12c Release 4 - Installation
 
RAC - The Savior of DBA
RAC - The Savior of DBARAC - The Savior of DBA
RAC - The Savior of DBA
 
WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)
 
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
 
Enterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12cEnterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12c
 
12c installation
12c installation12c installation
12c installation
 
配置Golden gate同步ddl语句
配置Golden gate同步ddl语句配置Golden gate同步ddl语句
配置Golden gate同步ddl语句
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and concept
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
 

Viewers also liked

Oracle数据库升级前必要的准备工作
Oracle数据库升级前必要的准备工作Oracle数据库升级前必要的准备工作
Oracle数据库升级前必要的准备工作maclean liu
 
11g新特性 在线实施补丁online patching
11g新特性 在线实施补丁online patching11g新特性 在线实施补丁online patching
11g新特性 在线实施补丁online patchingmaclean liu
 
了解Oracle critical patch update
了解Oracle critical patch update了解Oracle critical patch update
了解Oracle critical patch updatemaclean liu
 
Material9 catàleg cursos educació
Material9 catàleg cursos educacióMaterial9 catàleg cursos educació
Material9 catàleg cursos educacióMaterial9
 
11g r2新特性之standby max_data_delay
11g r2新特性之standby max_data_delay11g r2新特性之standby max_data_delay
11g r2新特性之standby max_data_delaymaclean liu
 
Marketing print ad 10-step plan
Marketing print ad 10-step planMarketing print ad 10-step plan
Marketing print ad 10-step planbamangustia
 
Shoug at apouc2015 4min pitch_biotwang_v2
Shoug at apouc2015 4min pitch_biotwang_v2Shoug at apouc2015 4min pitch_biotwang_v2
Shoug at apouc2015 4min pitch_biotwang_v2maclean liu
 
了解真实的Oracle unbreakable database appliance
了解真实的Oracle unbreakable database appliance了解真实的Oracle unbreakable database appliance
了解真实的Oracle unbreakable database appliancemaclean liu
 
IIM A _ presentation
IIM A _ presentationIIM A _ presentation
IIM A _ presentationJalaj Saxena
 
Music Video Questionnaire Results
Music Video Questionnaire ResultsMusic Video Questionnaire Results
Music Video Questionnaire Resultsbeckythomas13
 
P _n___l_accounting_website
P  _n___l_accounting_websiteP  _n___l_accounting_website
P _n___l_accounting_websiteAshish Sharma
 
Já jsem z kutné hory...aneb...
Já jsem z kutné hory...aneb...Já jsem z kutné hory...aneb...
Já jsem z kutné hory...aneb...AlfickaH
 
Montageplan styrocontrol 1.8
Montageplan styrocontrol 1.8Montageplan styrocontrol 1.8
Montageplan styrocontrol 1.8laurenztack
 
Creating Brand Stories
Creating Brand Stories   Creating Brand Stories
Creating Brand Stories Namrita Sehgal
 
Developing students' reading skills in science education
Developing students' reading skills in science educationDeveloping students' reading skills in science education
Developing students' reading skills in science educationStefaan Vande Walle
 
Southwick Search Marketing - Youtube SEO
Southwick Search Marketing - Youtube SEOSouthwick Search Marketing - Youtube SEO
Southwick Search Marketing - Youtube SEOlewis887
 

Viewers also liked (20)

Oracle数据库升级前必要的准备工作
Oracle数据库升级前必要的准备工作Oracle数据库升级前必要的准备工作
Oracle数据库升级前必要的准备工作
 
11g新特性 在线实施补丁online patching
11g新特性 在线实施补丁online patching11g新特性 在线实施补丁online patching
11g新特性 在线实施补丁online patching
 
了解Oracle critical patch update
了解Oracle critical patch update了解Oracle critical patch update
了解Oracle critical patch update
 
Material9 catàleg cursos educació
Material9 catàleg cursos educacióMaterial9 catàleg cursos educació
Material9 catàleg cursos educació
 
11g r2新特性之standby max_data_delay
11g r2新特性之standby max_data_delay11g r2新特性之standby max_data_delay
11g r2新特性之standby max_data_delay
 
Marketing print ad 10-step plan
Marketing print ad 10-step planMarketing print ad 10-step plan
Marketing print ad 10-step plan
 
Teeth whitening
Teeth whiteningTeeth whitening
Teeth whitening
 
Three Way Valve
Three Way ValveThree Way Valve
Three Way Valve
 
Shoug at apouc2015 4min pitch_biotwang_v2
Shoug at apouc2015 4min pitch_biotwang_v2Shoug at apouc2015 4min pitch_biotwang_v2
Shoug at apouc2015 4min pitch_biotwang_v2
 
了解真实的Oracle unbreakable database appliance
了解真实的Oracle unbreakable database appliance了解真实的Oracle unbreakable database appliance
了解真实的Oracle unbreakable database appliance
 
IIM A _ presentation
IIM A _ presentationIIM A _ presentation
IIM A _ presentation
 
Music Video Questionnaire Results
Music Video Questionnaire ResultsMusic Video Questionnaire Results
Music Video Questionnaire Results
 
P _n___l_accounting_website
P  _n___l_accounting_websiteP  _n___l_accounting_website
P _n___l_accounting_website
 
Já jsem z kutné hory...aneb...
Já jsem z kutné hory...aneb...Já jsem z kutné hory...aneb...
Já jsem z kutné hory...aneb...
 
The Gambling Industry
The Gambling IndustryThe Gambling Industry
The Gambling Industry
 
Montageplan styrocontrol 1.8
Montageplan styrocontrol 1.8Montageplan styrocontrol 1.8
Montageplan styrocontrol 1.8
 
Creating Brand Stories
Creating Brand Stories   Creating Brand Stories
Creating Brand Stories
 
Developing students' reading skills in science education
Developing students' reading skills in science educationDeveloping students' reading skills in science education
Developing students' reading skills in science education
 
Southwick Search Marketing - Youtube SEO
Southwick Search Marketing - Youtube SEOSouthwick Search Marketing - Youtube SEO
Southwick Search Marketing - Youtube SEO
 
Main
MainMain
Main
 

Similar to Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux

Sap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit SetupSap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit Setupwlacaze
 
One Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cOne Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cJosh Turner
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Ajith Narayanan
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseMonowar Mukul
 
Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Osama Mustafa
 
From single MySQL instance to High Availability: the journey to MySQL InnoDB ...
From single MySQL instance to High Availability: the journey to MySQL InnoDB ...From single MySQL instance to High Availability: the journey to MySQL InnoDB ...
From single MySQL instance to High Availability: the journey to MySQL InnoDB ...Frederic Descamps
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierKellyn Pot'Vin-Gorman
 
Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9Mohamed Sadek
 
MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!Dave Stokes
 
Oracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linuxOracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linuxRavi Kumar Lanke
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...ginniapps
 
Data Base Upgrade
Data Base UpgradeData Base Upgrade
Data Base Upgradeguest362312
 
Obia11.1.1.10.1 installation and configuration on Unix platform
Obia11.1.1.10.1 installation and configuration on Unix platformObia11.1.1.10.1 installation and configuration on Unix platform
Obia11.1.1.10.1 installation and configuration on Unix platformSheikh Zakirulla
 
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
MySQL Without the SQL -- Oh My!  Longhorn PHP ConferenceMySQL Without the SQL -- Oh My!  Longhorn PHP Conference
MySQL Without the SQL -- Oh My! Longhorn PHP ConferenceDave Stokes
 
Oracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_SovannOracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_SovannVoeurng Sovann
 
Scaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container ServiceScaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container ServiceBen Hall
 
Steps to Create odbc connection linux
Steps to Create odbc connection linuxSteps to Create odbc connection linux
Steps to Create odbc connection linuxOsama Mustafa
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库maclean liu
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021Frederic Descamps
 

Similar to Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux (20)

Sap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit SetupSap Solman Instguide Dba Cockpit Setup
Sap Solman Instguide Dba Cockpit Setup
 
One Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cOne Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12c
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create Database
 
Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c
 
Copy Data Management for the DBA
Copy Data Management for the DBACopy Data Management for the DBA
Copy Data Management for the DBA
 
From single MySQL instance to High Availability: the journey to MySQL InnoDB ...
From single MySQL instance to High Availability: the journey to MySQL InnoDB ...From single MySQL instance to High Availability: the journey to MySQL InnoDB ...
From single MySQL instance to High Availability: the journey to MySQL InnoDB ...
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next Frontier
 
Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9
 
MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!
 
Oracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linuxOracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linux
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
 
Data Base Upgrade
Data Base UpgradeData Base Upgrade
Data Base Upgrade
 
Obia11.1.1.10.1 installation and configuration on Unix platform
Obia11.1.1.10.1 installation and configuration on Unix platformObia11.1.1.10.1 installation and configuration on Unix platform
Obia11.1.1.10.1 installation and configuration on Unix platform
 
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
MySQL Without the SQL -- Oh My!  Longhorn PHP ConferenceMySQL Without the SQL -- Oh My!  Longhorn PHP Conference
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
 
Oracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_SovannOracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_Sovann
 
Scaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container ServiceScaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container Service
 
Steps to Create odbc connection linux
Steps to Create odbc connection linuxSteps to Create odbc connection linux
Steps to Create odbc connection linux
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021
 

More from maclean liu

Mysql企业备份发展及实践
Mysql企业备份发展及实践Mysql企业备份发展及实践
Mysql企业备份发展及实践maclean liu
 
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアル
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアルOracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアル
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアルmaclean liu
 
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略maclean liu
 
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案maclean liu
 
TomCat迁移步骤简述以及案例
TomCat迁移步骤简述以及案例TomCat迁移步骤简述以及案例
TomCat迁移步骤简述以及案例maclean liu
 
PRM DUL Oracle Database Health Check
PRM DUL Oracle Database Health CheckPRM DUL Oracle Database Health Check
PRM DUL Oracle Database Health Checkmaclean liu
 
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案dbdao.com 汪伟华 my-sql-replication复制高可用配置方案
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案maclean liu
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响maclean liu
 
【诗檀软件】Mysql高可用方案
【诗檀软件】Mysql高可用方案【诗檀软件】Mysql高可用方案
【诗檀软件】Mysql高可用方案maclean liu
 
Apouc 4min pitch_biotwang_v2
Apouc 4min pitch_biotwang_v2Apouc 4min pitch_biotwang_v2
Apouc 4min pitch_biotwang_v2maclean liu
 
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1maclean liu
 
诗檀软件 Oracle开发优化基础
诗檀软件 Oracle开发优化基础 诗檀软件 Oracle开发优化基础
诗檀软件 Oracle开发优化基础 maclean liu
 
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wang
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wangOrclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wang
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wangmaclean liu
 
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24maclean liu
 
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?maclean liu
 
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践maclean liu
 
Prm dul is an oracle database recovery tool database
Prm dul is an oracle database recovery tool   databasePrm dul is an oracle database recovery tool   database
Prm dul is an oracle database recovery tool databasemaclean liu
 
Oracle prm dul, jvm and os
Oracle prm dul, jvm and osOracle prm dul, jvm and os
Oracle prm dul, jvm and osmaclean liu
 
Oracle dba必备技能 使用os watcher工具监控系统性能负载
Oracle dba必备技能   使用os watcher工具监控系统性能负载Oracle dba必备技能   使用os watcher工具监控系统性能负载
Oracle dba必备技能 使用os watcher工具监控系统性能负载maclean liu
 
Parnassus data recovery manager for oracle database user guide v0.3
Parnassus data recovery manager for oracle database user guide v0.3Parnassus data recovery manager for oracle database user guide v0.3
Parnassus data recovery manager for oracle database user guide v0.3maclean liu
 

More from maclean liu (20)

Mysql企业备份发展及实践
Mysql企业备份发展及实践Mysql企业备份发展及实践
Mysql企业备份发展及实践
 
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアル
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアルOracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアル
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアル
 
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
 
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案
 
TomCat迁移步骤简述以及案例
TomCat迁移步骤简述以及案例TomCat迁移步骤简述以及案例
TomCat迁移步骤简述以及案例
 
PRM DUL Oracle Database Health Check
PRM DUL Oracle Database Health CheckPRM DUL Oracle Database Health Check
PRM DUL Oracle Database Health Check
 
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案dbdao.com 汪伟华 my-sql-replication复制高可用配置方案
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
 
【诗檀软件】Mysql高可用方案
【诗檀软件】Mysql高可用方案【诗檀软件】Mysql高可用方案
【诗檀软件】Mysql高可用方案
 
Apouc 4min pitch_biotwang_v2
Apouc 4min pitch_biotwang_v2Apouc 4min pitch_biotwang_v2
Apouc 4min pitch_biotwang_v2
 
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1
 
诗檀软件 Oracle开发优化基础
诗檀软件 Oracle开发优化基础 诗檀软件 Oracle开发优化基础
诗檀软件 Oracle开发优化基础
 
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wang
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wangOrclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wang
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wang
 
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24
 
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?
 
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践
 
Prm dul is an oracle database recovery tool database
Prm dul is an oracle database recovery tool   databasePrm dul is an oracle database recovery tool   database
Prm dul is an oracle database recovery tool database
 
Oracle prm dul, jvm and os
Oracle prm dul, jvm and osOracle prm dul, jvm and os
Oracle prm dul, jvm and os
 
Oracle dba必备技能 使用os watcher工具监控系统性能负载
Oracle dba必备技能   使用os watcher工具监控系统性能负载Oracle dba必备技能   使用os watcher工具监控系统性能负载
Oracle dba必备技能 使用os watcher工具监控系统性能负载
 
Parnassus data recovery manager for oracle database user guide v0.3
Parnassus data recovery manager for oracle database user guide v0.3Parnassus data recovery manager for oracle database user guide v0.3
Parnassus data recovery manager for oracle database user guide v0.3
 

Recently uploaded

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux

  • 1. Upgrade 11.2.0.1 RAC DB/RDBMS to 11.2.0.2 in Linux By Maclean.liu liu.maclean@gmail.com
  • 2. About Me l Email:liu.maclean@gmail.com l Blog:www.oracledatabase12g.com l Oracle Certified Database Administrator Master 10g and 11g l Over 6 years experience with Oracle DBA technology l Over 7 years experience with Linux technology l Member Independent Oracle Users Group l Member All China Users Group l Presents for advanced Oracle topics: RAC, DataGuard, Performance Tuning and Oracle Internal.
  • 3. 在<Upgrade 11.2.0.1 GI/CRS to 11.2.0.2 in Linux>一文中我们介绍了升级 11.2.0.1 GI/CRS 到 11.2.0.2 的详细步骤,因为 GI/CRS 的版本总是要求大于 DB/RDBMS,所以这是我们升级 RDBMS 数据库软件的前提条件。 接下来我们将具体介绍升级 11.2.0.1 DB/RDBMS 到 11.2.0.2 的详细步骤: 一、 下载补丁介质 11.2.0.2 的 patchset 目前没有公开的下载地址,因为 updates.oracle.com 目前已经不再提供 ftp 下载模式,所以我们只能通过登录 My Oracle Support 后进入 Patch 栏目搜索 Patchid 并获得加 密的下载链接。 11.2.0.2 补丁集的全称是 11.2.0.2.0 PATCH SET FOR ORACLE DATABASE SERVER (Patchset) (patchid:10098816),可以通过 10098816 这个 id 到 Patch 栏目搜索,并找出对应平台的介质 zip 包。如 在 Linux x86-64 平台上: 以上 p10098816_112020_Linux-x86-64_1of7.zip 和 p10098816_112020_Linux- x86-64_2of7.zip ,这 2 个 zip 包对应为 Database/RDBMS 软件的介质,我们不需要下载所有的 7 个 zip 包,有 这 2 个升级数据库软件就已经足够了。 完成以上 2 个软件的下载后,分别解压 zip 包: unzip p10098816_112020_Linux-x86-64_1of7.zip -d $PATCHHOME unzip p10098816_112020_Linux-x86-64_2of7.zip -d $PATCHHOME 二、以 out of place 方式安装 11.2.0.2 DB 数据库软件 因为 11.2.0.2 的 Patchset 以后都是 out of place 的,所以我们可以不用像在 11gr2 以前那样必
  • 4. 须在原有安装低版本软件的基础上才能升级软件,而可以选择在别的位置完全新安装。 注意该步骤不需要停止数据库实例,可以在前期工作中完成。 以 DB/RDBMS 数据库软件的拥有者身份(oracle 用户)启动方才解压目录下的 oui 安装界面: su - oracle (oracle)$ unset ORACLE_HOME ORACLE_BASE ORACLE_SID (oracle)$ export DISPLAY=:0 (oracle)$ cd $PATCHHOME (oracle)$ ./runInstaller 在 Oracle Universal Installer 界面下的 Select Installation Options Screen 选择 install database only. 在 Grid Installation Options 下若是 RAC 数据库则选择 Oracle Real Application cluster database installation,注意如果在该屏幕下出现[FATAL] [INS-35354] The system on which you are attempting to install Oracle RAC is not part of a valid cluster 则可能是在之前的安装 Gird 的过程 中没有正确的 Update Inventory 更新信息库信息,见<11gr2 RAC 安装 INS-35354 问题一例 >。
  • 6. 在 Specify Installation Location Screen 上一般 OUI 会帮你自动匹配一个$ORACLE_BASE 变量 下不同于原有数据库软件安装目录的新目录,确认这些目录下有足够的磁盘空间,保 险起 见空间应大于 10GB。注意这里是 out of place 安装,所以千万不要填入原有的安装路径。 以上安装完成后 OUI 会提示要在所有节点上以 root 身份执行 root.sh 脚本: su - root (root #) /s01/orabase/product/11.2.0/dbhome_2/root.sh Running Oracle 11g root script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /s01/orabase/product/11.2.0/dbhome_2 Enter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite. The contents of "oraenv" have not changed. No need to overwrite. The contents of "coraenv" have not changed. No need to overwrite. 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 script.
  • 7. Now product-specific root actions will be performed. Finished product-specific root actions. 三、升级前的准备工作 以上我们完成了 11.2.0.2 数据库软件的安装工作,但是还没有升级实例和数据字典。 在正式升级之前,极有必要完成一系列的备份和准备工作,这些准备工作可以详见拙作 <Oracle 数据库升级前必要的准备工作> 1.清理数据字典中的无用数据,包括审计和回收站,它们可能拉慢数据字典升级的速度: TRUNCATE TABLE SYS.AUD$; purge DBA_RECYCLEBIN; 2.如果条件允许的话,建议使用 RMAN 全量备份数据库,前提是数据库没有达到 TB 级别。 rman target / catalog rman/rman@cata backup as compressed backupset incremental level 0 database ; 3. 收集数据字典的统计信息,若 dictionary 的统计信息不准备可能导致 catupgrd.sql 字典升级 脚本运行过久: SQL> set timing on; SQL> EXECUTE dbms_stats.gather_dictionary_stats; PL/SQL procedure successfully completed. Elapsed: 00:00:27.81 4.运行 dbupgdiag.sql 升级信息收集脚本, 该脚本可以提供数据库的一些版本信息和组建信 息,以下为该脚本的示例输出内容: cat db_upg_diag_VPROD_07-Sep-2011_0737.log *** Start of LogFile *** Oracle Database Upgrade Diagnostic Utility 09-07-2011 19:37:23 =============== Database Uptime =============== 19:32 07-SEP-11 ================= Database Wordsize =================
  • 8. This is a 64-bit database ================ Software Version ================ Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production ============= Compatibility ============= Compatibility is set as 11.2.0.0.0 ================ Component Status ================ Comp ID Component Status Version Org_Version Prv_Version ------- ---------------------------------- --------- -------------- -------------- -------------- CATALOG Oracle Database Catalog Views VALID 11.2.0.1.0 CATPROC Oracle Database Packages and Types VALID 11.2.0.1.0 OWM Oracle Workspace Manager VALID 11.2.0.1.0 RAC Oracle Real Application Clusters VALID 11.2.0.1.0 ====================================================== List of Invalid Database Objects Owned by SYS / SYSTEM ====================================================== Number of Invalid Objects ------------------------------------------------------------------ There are no Invalid Objects DOC>################################################################ DOC> DOC> If there are no Invalid objects below will result in zero rows. DOC> DOC>################################################################ DOC># no rows selected ================================ List of Invalid Database Objects ================================ Number of Invalid Objects ------------------------------------------------------------------ There are no Invalid Objects DOC>################################################################ DOC> DOC> If there are no Invalid objects below will result in zero rows. DOC> DOC>################################################################ DOC># no rows selected
  • 9. ============================================================== Identifying whether a database was created as 32-bit or 64-bit ============================================================== DOC>########################################################################### DOC> DOC> Result referencing the string 'B023' ==> Database was created as 32-bit DOC> Result referencing the string 'B047' ==> Database was created as 64-bit DOC> When String results in 'B023' and when upgrading database to 10.2.0.3.0 DOC> (64-bit) , For known issue refer below articles DOC> DOC> Note 412271.1 ORA-600 [22635] and ORA-600 [KOKEIIX1] Reported While DOC> Upgrading Or Patching Databases To 10.2.0.3 DOC> Note 579523.1 ORA-600 [22635], ORA-600 [KOKEIIX1], ORA-7445 [KOPESIZ] and DOC> OCI-21500 [KOXSIHREAD1] Reported While Upgrading To 11.1.0.6 DOC> DOC>########################################################################### DOC># Metadata Initial DB Creation Info -------- ----------------------------------- B047 Database was created as 64-bit =================================================== Number of Duplicate Objects Owned by SYS and SYSTEM =================================================== Counting duplicate objects .... COUNT(1) ---------- 4 ========================================= Duplicate Objects Owned by SYS and SYSTEM ========================================= Querying duplicate objects .... OBJECT_NAME OBJECT_TYPE ---------------------------------------- ---------------------------------------- AQ$_SCHEDULES TABLE AQ$_SCHEDULES_PRIMARY INDEX DBMS_REPCAT_AUTH PACKAGE BODY DBMS_REPCAT_AUTH PACKAGE DOC> DOC>############################################################################ #### DOC> DOC> If any objects found please follow below article. DOC> Note 1030426.6 How to Clean Up Duplicate Objects Owned by SYS and SYSTEM schema DOC> Read the Exceptions carefully before taking actions. DOC> DOC>############################################################################ #### DOC># ================ JVM Verification
  • 10. ================ JAVAVM - NOT Installed. Below results can be ignored ================================================ Checking Existence of Java-Based Users and Roles ================================================ DOC> DOC>############################################################################ #### DOC> DOC> There should not be any Java Based users for database version 9.0.1 and above. DOC> If any users found, it is faulty JVM. DOC> DOC>############################################################################ #### DOC># User Existence --------------------------- No Java Based Users DOC> DOC>############################################################### DOC> DOC> Healthy JVM Should contain Six Roles. DOC> If there are more or less than six role, JVM is inconsistent. DOC> DOC>############################################################### DOC># Role ------------------------------ No JAVA related Roles Roles ========================================= List of Invalid Java Objects owned by SYS ========================================= There are no SYS owned invalid JAVA objects DOC> DOC>################################################################# DOC> DOC> Check the status of the main JVM interface packages DBMS_JAVA DOC> and INITJVMAUX and make sure it is VALID. DOC> If there are no Invalid objects below will result in zero rows. DOC> DOC>################################################################# DOC># no rows selected INFO: Below query should succeed with 'foo' as result. select dbms_java.longname('foo') "JAVAVM TESTING" from dual * ERROR at line 1: ORA-00904: "DBMS_JAVA"."LONGNAME": invalid identifier
  • 11. *** End of LogFile *** 以上 spool 内容显示所要升级的数据库现有 CATALOG、CATPROC、OWM 和 RAC 组件,且 没有安装 JVM,升级 JVM 组建的数据字典将消耗较长的时间。 另外一个建议运行的脚本是 utlu112i.sql,它位于新安装的$ORACLE_HOME/rdbms/admin 目 录下。 该脚本会给出一些升级前地建议,包括建议保证系统表空间和闪回区域有足够的空间,以及 收集数据字典的统计信息,如以下输出: SQL> @/s01/orabase/product/11.2.0/dbhome_2/rdbms/admin/utlu112i.sql Oracle Database 11.2 Pre-Upgrade Information Tool 09-07-2011 20:02:30 Script Version: 11.2.0.2.0 Build: 001 . ********************************************************************** Database: ********************************************************************** --> name: VPROD --> version: 11.2.0.1.0 --> compatible: 11.2.0.0.0 --> blocksize: 8192 --> platform: Linux x86 64-bit --> timezone file: V11 . ********************************************************************** Tablespaces: [make adjustments in the current environment] ********************************************************************** --> SYSTEM tablespace is adequate for the upgrade. .... minimum required size: 267 MB --> SYSAUX tablespace is adequate for the upgrade. .... minimum required size: 150 MB --> UNDOTBS1 tablespace is adequate for the upgrade. .... minimum required size: 253 MB --> TEMP tablespace is adequate for the upgrade. .... minimum required size: 61 MB . ********************************************************************** Flashback: ON ********************************************************************** FlashbackInfo: --> name: +SYSTEMDG --> limit: 4977 MB --> used: 264 MB --> size: 4977 MB --> reclaim: 0 MB --> files: 7 WARNING: --> Flashback Recovery Area Set. Please ensure adequate disk space in recover y areas before performing an upgrade. . ********************************************************************** 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:
  • 12. -- 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 or spfile] ********************************************************************** -- No obsolete parameters found. No changes are required . ********************************************************************** Components: [The following database components will be upgraded or installed] ********************************************************************** --> Oracle Catalog Views [upgrade] VALID --> Oracle Packages and Types [upgrade] VALID --> Real Application Clusters [upgrade] VALID --> Oracle Workspace Manager [upgrade] VALID . ********************************************************************** Miscellaneous Warnings ********************************************************************** WARNING: --> The "cluster_database" parameter is currently "TRUE" .... and must be set to "FALSE" prior to running a manual upgrade. WARNING: --> Database is using a timezone file older than version 14. .... After the release migration, it is recommended that DBMS_DST package .... be used to upgrade the 11.2.0.1.0 database timezone version .... to the latest version which comes with the new release. WARNING: --> Your recycle bin is turned on and currently contains no objects. .... Because it is REQUIRED that the recycle bin be empty prior to upgrading .... and your recycle bin is turned on, you may need to execute the command: PURGE DBA_RECYCLEBIN .... prior to executing your upgrade to confirm the recycle bin is empty. . ********************************************************************** Recommendations ********************************************************************** Oracle recommends gathering dictionary statistics prior to upgrading the database. To gather dictionary statistics execute the following command while connected as SYSDBA: EXECUTE dbms_stats.gather_dictionary_stats; ********************************************************************** Oracle recommends removing all hidden parameters prior to upgrading. To view existing hidden parameters execute the following command while connected AS SYSDBA: SELECT name,description from SYS.V$PARAMETER WHERE name LIKE '_%' ESCAPE '' Changes will need to be made in the init.ora or spfile. ********************************************************************** Oracle recommends reviewing any defined events prior to upgrading. To view existing non-default events execute the following commands while connected AS SYSDBA:
  • 13. 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. ********************************************************************** 5.如果数据库很大那么建议打开闪回数据库 flashback database,并创建还原点,这样可以极 大地缩短回退时间。 可以通过以下查询判断数据库是或否启用了 flashback database 功能: SQL> select FLASHBACK_ON from v$database; FLASHBACK_ON ------------------ NO 若显示 NO 则说明之前没有启用数据库闪回功能,若希望启用数据库闪回功能需要数据库短 时间停机: 关闭所有的数据库实例 SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. 启动某一套实例到 mount 状态 SQL> startup mount; ORACLE instance started. Total System Global Area 1252663296 bytes Fixed Size 2212936 bytes Variable Size 603982776 bytes Database Buffers 637534208 bytes Redo Buffers 8933376 bytes Database mounted. SQL> alter database flashback on; Database altered.
  • 14. 在本节点打开数据库,并启动所有节点 SQL> alter database open; Database altered. 以上在数据库级别启用了闪回 flashback 功能。 接着我们需要停止应用程序,注意在这一步之前的准备工作都可以在线完成,但是本步骤将 要求停止一切应用程序的链接,关闭数据库,并启动到 restrict 限制模式,以便创建 restore point,方便可能的升级回退。,strict 模式避免了普通用户的链接。 在所有节点上关闭数据库实例,并在唯一节点上启动数据库到 restrict 模式。 startup restrict; ORACLE instance started. Total System Global Area 1252663296 bytes Fixed Size 2212936 bytes Variable Size 603982776 bytes Database Buffers 637534208 bytes Redo Buffers 8933376 bytes Database mounted. Database opened. SQL> conn maclean/maclean ERROR: ORA-01035: ORACLE only available to users with RESTRICTED SESSION privilege Warning: You are no longer connected to ORACLE. conn / as sysdba SQL> create restore point maclean_rollback guarantee flashback database; Restore point created. SQL> select * from v$restore_point; SCN DATABASE_INCARNATION# GUA STORAGE_SIZE ---------- --------------------- --- ------------ TIME --------------------------------------------------------------------------- RESTORE_POINT_TIME PRE --------------------------------------------------------------------------- --- NAME -------------------------------------------------------------------------------- 601958 1 YES 15941632 07-SEP-11 07.52.59.000000000 PM YES MACLEAN_ROLLBACK
  • 15. 四、正式升级数据库实例和数据字典 1. 关闭所有数据库实例 2. 复制相关的 pfile 或 spfile 形式的参数到新的 ORACLE_HOME 下,这里我们假设使用 ASM 存储共享的 spfile,那么只需要在所有节点上将 init$SID.ora 形式的文件拷贝即可: (oracle $) cat $ORACLE_HOME/dbs/initVPROD1.ora SPFILE='+SYSTEMDG/VPROD/spfileVPROD.ora' (oracle $) cp $ORACLE_HOME/dbs/initVPROD1.ora /s01/orabase/product/11.2.0/dbhome_2/dbs 设置 ORACLE_HOME 和 PATH 变量指向新的 11.2.0.2 数据库软件 (oracle $) export ORACLE_HOME=/s01/orabase/product/11.2.0/dbhome_2 (oracle $) export PATH=/s01/orabase/product/11.2.0/dbhome_2/bin:$PATH 设置正确的 ORACLE_SID (oracle $) export ORACLE_SID=VPROD1 (oracle $) unset LD_LIBRARY_PATH 3. 启动实例到 nomount 状态,并修改 cluster_database 参数到 spfile: SQL> startup nomount; ORACLE instance started. Total System Global Area 1252663296 bytes Fixed Size 2226072 bytes Variable Size 402655336 bytes Database Buffers 838860800 bytes Redo Buffers 8921088 bytes SQL> alter system set cluster_database=false scope=spfile; System altered. 4. 重启实例到 upgrade 模式,升级数据字典,运行 $ORACLE_HOME/rdbms/admin/catupgrd.sql 脚本: SQL> shutdown immediate; ORA-01507: database not mounted ORACLE instance shut down. SQL> startup upgrade; ORACLE instance started.
  • 16. Total System Global Area 1252663296 bytes Fixed Size 2226072 bytes Variable Size 402655336 bytes Database Buffers 838860800 bytes Redo Buffers 8921088 bytes Database mounted. Database opened. SQL> set echo on SQL> SPOOL /tmp/upgrade.log SQL> set time on; 20:40:40 SQL> @/s01/orabase/product/11.2.0/dbhome_2/rdbms/admin/catupgrd.sql 在以上 catupgrd.sql 脚本运行过程中可以通过 DBA_SERVER_REGISTRY 视图了解组件字典升级的进度 SQL> select * from DBA_SERVER_REGISTRY; select * from DBA_SERVER_REGISTRY * ERROR at line 1: ORA-04063: view "SYS.DBA_SERVER_REGISTRY" has errors or ERROR at line 1: ORA-04063: package body "SYS.DBMS_REGISTRY" has errors 在一开始会提示该视图有错误,这不要紧,稍等一会。 SQL> select comp_name,status,version from dba_server_registry; COMP_NAME STATUS VERSION -------------------------------------------------- -------------------------- ------------------------------ Oracle Workspace Manager UPGRADING 11.2.0.1.0 Oracle Database Catalog Views VALID 11.2.0.2.0 Oracle Database Packages and Types VALID 11.2.0.2.0 Oracle Real Application Clusters VALID 11.2.0.2.0 20:50:40 SQL> 20:50:40 SQL> Rem ********************************************************************* 20:50:40 SQL> Rem END catupgrd.sql 20:50:40 SQL> Rem ********************************************************************* 20:50:40 SQL> 以上 catupgrd.sql 脚本运行了 10 分钟左右 重启实例,运行 utlrp.sql 脚本编译失效对象 sqlplus / as sysdba startup; @?/rdbms/admin/utlrp
  • 17. TIMESTAMP -------------------------------------------------------------------------------- COMP_TIMESTAMP UTLRP_BGN 2011-09-07 20:53:38 该脚本会自动根据 cpu 数目选择并行度 DOC> This script automatically chooses serial or parallel recompilation DOC> based on the number of CPUs available (parameter cpu_count) multiplied DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu). DOC> On RAC, this number is added across all RAC nodes. TIMESTAMP -------------------------------------------------------------------------------- COMP_TIMESTAMP UTLRP_END 2011-09-07 20:55:09 该脚本耗时约 2 分钟 修改 cluster_database 参数为 true,并重启所有节点实例 SQL> alter system set cluster_database=true scope=spfile; System altered. 可以看到以上在数据库仅安装了 CATALOG、CATPROC、OWM 和 RAC Cluster View 4 种组 件的情况下,catupgrd.sql 字典升级脚本仅耗时 10 分钟左右。 而实际的生产库可能安装了更 多的组件,如 JVM 等组件将耗时较多。 以下总结了各 Oracle 组件升级字典的平均耗时,是一张十分有用的升级时间参考表: DB Sample Upgrade Time 较少组件情况下 HH:MM:S Component S Oracle Server 00:16:17 JServer JAVA Virtual Machine 00:05:19 Oracle XDK 00:00:48 Oracle Text 00:00:58 Oracle XML Database 00:04:09 Oracle Database Java 00:00:33 Packages Gathering Statistics 00:02:43 Total Upgrade Time: 00:30:47 较多组件情况下 Component HH:MM:S
  • 18. S Oracle Server 00:16:17 JServer JAVA Virtual Machine 00:05:19 Oracle Workspace Manager 00:01:01 Oracle Enterprise Manager 00:10:13 Oracle XDK 00:00:48 Oracle Text 00:00:58 Oracle XML Database 00:04:09 Oracle Database Java 00:00:33 Packages Oracle Multimedia 00:07:43 Oracle Expression Filter 00:00:18 Oracle Rule Manager 00:00:12 Gathering Statistics 00:04:53 Total Upgrade Time: 00:52:31 5.使用 srvctl 命令更新 ocr 中 DBHOME 相关信息: su - oracle srvctl upgrade database -d VPROD -o $NEW_ORACLE_HOME srvctl upgrade database -d VPROD -o /s01/orabase/product/11.2.0/dbhome_2 [oracle@vrh1 ~]$ srvctl config database -d VPROD Database unique name: VPROD Database name: VPROD Oracle home: /s01/orabase/product/11.2.0/dbhome_2 Oracle user: oracle Spfile: +SYSTEMDG/VPROD/spfileVPROD.ora Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: VPROD Database instances: VPROD1,VPROD2 Disk Groups: SYSTEMDG Mount point paths: Services: Type: RAC Database is administrator managed [oracle@vrh1 ~]$ srvctl stop database -d VPROD PRCC-1016 : VPROD was already stopped [oracle@vrh1 ~]$ srvctl start database -d VPROD
  • 19. [oracle@vrh1 ~]$ srvctl status database -d VPROD Instance VPROD1 is running on node vrh1 Instance VPROD2 is running on node vrh2 6.修改 oracle 用户的 profile 配置文件指中的变量: cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs ORACLE_HOME=/s01/orabase/product/11.2.0/dbhome_2 ORACLE_SID=VPROD1 ORACLE_BASE=/s01/orabase PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH:$HOME/bin export PATH ORACLE_HOME ORACLE_SID ORACLE_BASE SQL> select * from global_name; GLOBAL_NAME -------------------------------------------------------------------------------- www.oracledatabase12g.com SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for Linux: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production
  • 20. 7. 数据库升级完成后进入一个 pending area,建议在至少 2 个礼拜内,不要升级 compatible 参数和删除 restore point。 在确认没有回退的必要后,修改 compatible 参数并删除 restore point: alter system set compatible=’11.2.0.2.0′ scope=spfile; drop restore point MACLEAN_ROLLBACK; srvctl stop database -d VPROD srvctl start database -d VPROD 以上成功地将 11.2.0.1 的 RAC 数据库升级到了 11.2.0.2。 五、回退升级操作(Database Downgrade) 我们可以选择 2 种回退办法: 1. 通过 restore point 还原到 11.2.0.1 的数据库 2. 执行 catdwgrd.sql 降级数据字典 针对第一种方法: 关闭所有节点实例 srvctl stop database -d VPROD export ORACLE_HOME=$OLD_ORACLE_HOME export PATH=$OLD_ORACLE_HOME/bin:$PATH unset LD_LIBRARY_PATH sqlplus / as sysdba SQL> select * from v$restore_point; SCN DATABASE_INCARNATION# GUA STORAGE_SIZE ---------- --------------------- --- ------------ TIME --------------------------------------------------------------------------- RESTORE_POINT_TIME PRE --------------------------------------------------------------------------- --- NAME -------------------------------------------------------------------------------- 601958 1 YES 462307328 07-SEP-11 07.52.59.000000000 PM YES MACLEAN_ROLLBACK
  • 21. SQL> flashback database to restore point MACLEAN_ROLLBACK; Flashback complete. flashback database 的速度 视乎 flashback log 多少而定,一般是很快的,在 1 分钟之内。 SQL> alter database open; alter database open * ERROR at line 1: ORA-01589: must use RESETLOGS or NORESETLOGS option for database open SQL> alter database open resetlogs; Database altered. 以上通过 restore point 的方法是我所推荐的,这种方法简单、省时省力、高效且问题少少, 是一种绿色方案。同时不要忘记使用 srvctl upgrade 命令还原 ocr 中的 DBHOME 信息,以及 还原 profile 文件。 针对第二种方法: catdwgrd.sql 的运行有诸多限制,其所消耗的时间可能要略长于 catupgrd.sql。而且该脚本在 运行过程中可能遇到各种错误,不推荐使用这种方法。 关于使用 catdwgrd.sql 脚本降级数据库 11.2.0.2 到 11.2.0.1,可以参考 MOS note <How To Downgrade From Database 11.2 To Previous Release (includes 11.2.0.2-11.2.0.1) [ID 883335.1]>。