当前位置: 首页 > news >正文

Restoring Or Duplicating Between Different Versions And Platforms

个人总结


挂着先

Answers To FAQ For Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1]

 Modified 23-AUG-2011     Type FAQ     Status PUBLISHED 

In this Document
  Purpose
  Questions and Answers
     1) Can I restore or duplicate my previous version database using a later version of Oracle?
     2) Can I restore or duplicate between two different patchset levels?
     3) Can I restore or duplicate between two different versions of the same operating system?
     4) Is it possible to restore or duplicate when the bit level (32 bit or 64 bit) of Oracle does not match? 
     5) Is it possible to restore a later version backup to an earlier version of Oracle?
     6) Can I restore or duplicate my RMAN backup between two different platforms such as Solaris to Linux?
  References


Applies to:

Oracle Server - Enterprise Edition - Version: 9.0.1.0 and later   [Release: 9.0.1 and later ]
Information in this document applies to any platform.
Oracle Server Enterprise Edition

Purpose

Answers To FAQ For Restoring Or Duplicating Between Different Versions And Platforms

Questions and Answers

Note: Restore in the following sections refers to either a user managed (non-RMAN) or a RMAN restore. Duplicate is a function of RMAN only but where duplicate is mentioned it also applies to user managed database cloning.

1) Can I restore or duplicate my previous version database using a later version of Oracle?

RMAN can restore a backup taken on an older database release into a newer release. The older backups must be taken on 9.2 or later release.

This method can be used as part of an out-of-place database upgrade, in which the older backups are restored to the newer release database and then the upgrade scripts are run as normal. Since the older database can remain online during the upgrade, this may be preferable to an in-place upgrade, where the database must remain offline.

For example, I want to upgrade a 10.2 database to 11.2, using backups taken on the 10.2 database. The 11.2 database will reside on a new host.

The steps are:

1. Install 11.2 binaries and latest patch sets on new host and prepare the 11.2 Oracle home per this doc.
2. Allow disk and/or tape backups to be accessible from the new host.
3. Restore backups to the 11.2 database and recover the database to a consistent point-in-time per this doc. Do not open the database at this time. 
4. Manually upgrade the 10.2 database to 11.2 per the instructions in this doc, starting from the point immediately after the 11.2 software has been installed. 

Please ensure that you complete pre-upgrade / post-upgrade procedures for various database components as listed under the upgrade docs for example:
Note 837570.1 Complete Checklist for Manual Upgrades to 11gR2
 

Note: the above procedure is for restoring a 10.2 database that had never been upgraded to 11.2. If the database has already been upgraded, and you need to restore a backup that was created while the database was running as 10.2, you just need to restore and recover it, and media recovery will replay everything done by the upgrade.

RMAN "duplicate" is not supported as it will fail attempting to automatically open the database after recovery (step #3).

2) Can I restore or duplicate between two different patchset levels?

As you can restore between different Oracle version, you can also do so between two different patchset levels. See question #1 for details.

Note, you must follow the instructions in the appropriate readme file. If resetlogs is required, you can execute:

alter database open resetlogs upgrade;
OR
alter database open resetlogs downgrade;

As needed before executing the required scripts to either upgrade or downgrade to a patch level. 

Because RMAN "duplicate" attempts to automatically open the database you may not use RMAN duplicate for this case, only RMAN restore.

3) Can I restore or duplicate between two different versions of the same operating system?

For example, can I restore my 9.2.0.1.0 RMAN backup taken against a host running Solaris 9 to a different machine where 9.2.0.1.0 is installed but where that host is running Solaris 10?

If the same Oracle Server installation CDs (media pack) can be used to install 9.2.0.1.0 on Solaris 9 and Solaris 10, this type of restore is supportable.

For example, is it possible to restore or duplicate my 9.2. 64-bit database to a 9.2.32-bit installation?

It is preferable to keep the same bit version when performing a restore/recovery. However, excluding the use of duplicate command, the use of the same operating system platform. should allow for a restore/recovery between bit levels (32 bit or 64 bit) of Oracle. Note, this may be specific to the particular operating system and any problems with this should be reported to Oracle Support.

If you will be running the 64-bit database against the 32-bit binary files or vice versa, after the recovery has ended the database bit version must be converted using utlirp.sql.

See this note for details on switching between bit sizes:

Note 62290.1 Changing between 32-bit and 64-bit Word Sizes

If you do not run utlirp.sql you will see errors including but not limited to:

ORA-06553: PLS-801: INTERNAL ERROR [56319]

5) Is it possible to restore a later version backup to an earlier version of Oracle?

Say for example you are preparing to upgrade to 11.2 from 10.2. After a successful upgrade and running on 11.2 for a few days you take a new backup of the 11.2 database. You want to know if run into a problem with 11.2 if you could restore the 11.2 backup to 10.2 on another host  (or reinstall 10.2 on the same host then restore the 11.2 backup).

Such a restore is possible if the COMPATIBLE parameter had never been increased after the upgrade. In this example, if the 11.2 database had always been run with COMPATIBLE=10.2 then it is possible to restore a backup of the 11.2 database into a 10.2 instance, then perform. the downgrade procedures.

If the 11.2 database has ever been opened with COMPATIBLE = 11.2, then this is not possible. Another good way for maintaining HA and the old version database (if you need to fall back) is to use the Data Guard rolling upgrade method which involves a transient logical standby database (a primary that temporarily becomes a logical standby just during the upgrade period). After upgrading the standby to new version (and primary still running on old version), you can switchover and verify that upgraded database is working well. If it is not, you can switchback to primary old version.

6) Can I restore or duplicate my RMAN backup between two different platforms such as Solaris to Linux?

In general, you cannot restore or duplicate between two different platforms.

Note: Refer to Note 1079563.1 which lists supported mixed platforms and Oracle versions for duplicate/restore/recover.

In versions previous to 10g the only option to migrate from one platform. to another was using export / import. With 10g, using the RMAN convert commands, you can cross between platforms using the 10g Cross-Platform. Transportable Tablespaces option. For more details review this note:

Note 243304.1 Transportable Tablespaces Across Different Platforms

and:

http://www.oracle.com/technetwork/database/features/availability/thehartfordprofile-xtts-133180.pdf


In version 10.2 and later if the source and target OS are the same endian you may issue a "CONVERT DATABASE" so that datafiles are converted and ready for transport to the destination machine. For more details about "CONVERT DATABASE" see:

Oracle Database Backup and Recovery Advanced User's Guide
10g Release 2 (10.2)
Chapter 15, RMAN Cross-Platform. Transportable Databases and Tablespaces 

Note: Refer to Note 732053.1 for 10.2 and 11.1 procedure to skip non-UNDO containing datafiles during transportable database. This can significantly reduce the overall completion time. Also, note that 11.2 offers SKIP UNNECESSARY DATAFILES option for CONVERT DATABASE, to accomplish this.

There are also 3rd party applications for migration between platforms such as VERITAS Storage Foundation portable data containers:

http://eval.veritas.com/mktginfo/products/White_Papers/Storage_Server_Management/Portable_Data_Containers_for_Oracle.pdf

(Contact Veritas for information about VERITAS Storage Foundation portable data containers)


References

NOTE:307022.1 - RMAN Compatibility Oracle8i 8.1.7.4 - Oracle10g 10.1.0.4
NOTE:560417.1 - Recovery Through Upgrade returns ORA-1092 on Open
NOTE:73431.1 - RMAN Compatibility Matrix

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11780477/viewspace-705664/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11780477/viewspace-705664/

相关文章:

  • How to Find which Session is Holding a Particular Library Cache Lock
  • Adding Node To Rac Fails With Exception Java.Lang.OutOfMemoryError Occurred
  • sybase IQ 听课笔记及后续
  • sybase IQ 创建限制
  • How to Catch Hard Parse Errors [ID 1353015.1]
  • How To Gather The OS Logs For Each Specific OS Platform.
  • vmstat 命令
  • How to Generate an AWR Report and Create Baselines
  • oracle 11gr2 RAC 2nodes on RHEL5.4 32bit 个人实验
  • oracle 10gdb rman 全备恢复测试
  • 理解11g Oracle Base, Oracle Home and Oracle Central/Global Inventory locations
  • How To Create Users Like Another User In Oracle Database At Sql Command Line
  • 11gR2 Clusterware and Grid Home - What You Need to Know
  • ORA-01401 / ORA-12899 当imp数据到UTF8或其他多字符类型数据库
  • unix系统环境变量的设置
  • 【跃迁之路】【477天】刻意练习系列236(2018.05.28)
  • Apache Spark Streaming 使用实例
  • CAP理论的例子讲解
  • CNN 在图像分割中的简史:从 R-CNN 到 Mask R-CNN
  • echarts花样作死的坑
  • Java 11 发布计划来了,已确定 3个 新特性!!
  • JavaScript 奇技淫巧
  • java小心机(3)| 浅析finalize()
  • Median of Two Sorted Arrays
  • PHP面试之三:MySQL数据库
  • Webpack4 学习笔记 - 01:webpack的安装和简单配置
  • Web设计流程优化:网页效果图设计新思路
  • 阿里云容器服务区块链解决方案全新升级 支持Hyperledger Fabric v1.1
  • - 概述 - 《设计模式(极简c++版)》
  • 极限编程 (Extreme Programming) - 发布计划 (Release Planning)
  • 理解IaaS, PaaS, SaaS等云模型 (Cloud Models)
  • 力扣(LeetCode)22
  • 聊聊redis的数据结构的应用
  • 移动互联网+智能运营体系搭建=你家有金矿啊!
  • 找一份好的前端工作,起点很重要
  • 智能合约Solidity教程-事件和日志(一)
  • Mac 上flink的安装与启动
  • shell使用lftp连接ftp和sftp,并可以指定私钥
  • ​LeetCode解法汇总2583. 二叉树中的第 K 大层和
  • ​七周四次课(5月9日)iptables filter表案例、iptables nat表应用
  • (04)Hive的相关概念——order by 、sort by、distribute by 、cluster by
  • (2022 CVPR) Unbiased Teacher v2
  • (3)选择元素——(17)练习(Exercises)
  • (39)STM32——FLASH闪存
  • (附源码)php新闻发布平台 毕业设计 141646
  • (论文阅读11/100)Fast R-CNN
  • (未解决)macOS matplotlib 中文是方框
  • (自用)learnOpenGL学习总结-高级OpenGL-抗锯齿
  • .net on S60 ---- Net60 1.1发布 支持VS2008以及新的特性
  • .NET 回调、接口回调、 委托
  • .NET企业级应用架构设计系列之应用服务器
  • .net下的富文本编辑器FCKeditor的配置方法
  • .Net语言中的StringBuilder:入门到精通
  • [AIGC] 如何建立和优化你的工作流?
  • [Angular] 笔记 6:ngStyle