RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]

 

RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]

  修改时间 22-JUN-2011    
类型 HOWTO     状态 MODERATED
 

 

In this Document
  Goal
  Solution
     Assumptions
     Procedure
     Example
  References


 

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.4 - Release: 10.1 to 10.2
Information in this document applies to any platform.

Goal

RMAN Duplicate Database From RAC ASM to RAC ASM

Solution

Assumptions

This note assumes the following:

You are using recovery catalog database catdb

The target database trgt is on host1 and contains ASM datafiles and online logs in diskgroup +DISK1

You want to duplicate the target to database dupdb on remote host host2.

host2 has diskgroup +DISK2

You want to store the datafiles for dupdb to +DISK2

You want to store two controlfiles in +DISK2

The backups and archivelogs created by host1 are accessible by host2

Procedure

1) Create an initialization parameter for auxiliary instance by copying the target database initialization parameter file. Change the parameters as follows:

Set DB_NAME to the new database name dupdb

Set CONTROL_FILES to store two copies of the control file in +DISK2

Set DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT to convert the datafile and online log file names from +DISK1 to +DISK2

Set any other initialization parameters that end in _DEST, such as DB_CREATE_FILE_DEST and DB_CREATE_ONLINE_DEST_n, to reference +DISK2

Comment all the RAC related parameters in the dupdb parameter file. We will re-enable them once the duplicate is completed.

2) For an active production RAC environment, you must use a SET UNTIL clause, otherwise the archivelogs would not have been backed up and the duplicate would fail with RMAN-06025.

To get the sequence number, you need to look at the following:

   RMAN> list backup of archivelog all;

We need to determine the most recent archivelog backed up from each thread, and then take the least recent of these.

 

Example

Parameter file (init.ora) would include:

DB_NAME=dupdb
CONTROL_FILES=+DISK2,+DISK2
DB_FILE_NAME_CONVERT=+DISK1,+DISK2
LOG_FILE_NAME_CONVERT=+DISK1,+DISK2

Create an SPFILE from the parameter file, and start the auxiliary instance:


SQL> CONNECT SYS/oracle@dupdb;
SQL> CREATE SPFILE FROM PFILE='location of auxiliary instance pfile';
SQL> STARTUP NOMOUNT;

Then run the following RMAN commands to duplicate the database:


RMAN> CONNECT TARGET /;
RMAN> CONNECT CATALOG rman/cat@catdb;
RMAN> CONNECT AUXILIARY SYS/oracle@dupdb;
RMAN> run {
set until sequence x thread y;
DUPLICATE TARGET DATABASE TO dupdb;
}

==> replace the sequence and thread number as appropriate

 

When the DUPLICATE command completes, the duplicate database is created, with datafiles, online logs and control files in ASM disk group +DISK2.

Shutdown the database and add all the RAC related parameters and then start the database.

Note:-  The only difference between duplicate from RAC ASM and standalone ASM is not to perform the last step i.e. adding of the RAC related parameters.



 

References

NOTE:388431.1 - Creating a Duplicate Database on a New Host.

时间: 2024-10-17 22:30:14

RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]的相关文章

RMAN 'Duplicate Database' Feature in 11G [ID 452868.1]

RMAN 'Duplicate Database' Feature in 11G [ID 452868.1] ------------------------------------------------------------------------------  Modified 14-MAY-2010     Type BULLETIN     Status PUBLISHED    In this Document   Purpose   Scope and Application  

RMAN 'Duplicate From Active Database' Feature in 11G [ID 452868.1]

RMAN 'Duplicate From Active Database' Feature in 11G [ID 452868.1]   修改时间 12-OCT-2011     类型 BULLETIN     状态 PUBLISHED   In this Document  Purpose   Scope and Application   RMAN 'Duplicate From Active Database' Feature in 11G      Basic Steps to  ACT

Creating a Duplicate Database on a New Host. [ID 388431.1]

Creating a Duplicate Database on a New Host. [ID 388431.1]   修改时间 12-OCT-2011     类型 HOWTO     状态 PUBLISHED   In this Document  Goal   Solution      Duplicate database from server A to server B (Non ASM)      1. Backup of the primary database.      2

RMAN duplicate from active 时遭遇 ORA-17627 ORA-12154

    最近在从活动数据库进行异机克隆时碰到了ORA-17629,ORA-17627,ORA-12154的错误,起初以为是一个Bug呢.Oracle Bug着实太多了,已经成了习惯性思维了.汗!错误提示是无法连接到连接到远程数据库,连接字符串无法解析.咦,配置了从auxiliary DB到target DB的tnsnames,且都是连通的阿......   1.故障现象    --下面的操作在auxiliary DB所在的机器上完成    [oracle@linux4 ~]$ export OR

基于RMAN从活动数据库异机克隆(rman duplicate from active DB)

      Oracle 11g RMAN能够实现基于活动数据库进行异机克隆,从而省去需要先备份再ftp到辅助服务器的过程.这一切可以全部交给Oracle来搞定.在克隆期间,Oracle会读取Target DB的所有数据结构,无须人为的干预(不同的磁盘系统,文件路径与文件名要指定转换方式).尽管如此,对于生产环境数据库在整个克隆期间性能会下降,其次在Target Server与Auxiliary Server中会产生较大的网络流量.如果这些可以接受的话,从活动数据库进行异机克隆是一个不错的选择.

SUSE 11.1 安装ORACLE 11.2.0.3 ASM非RAC双机过程纪要

SUSE 11.1 安装ORACLE 11.2.0.3 ASM非RAC双机过程纪要 增加用户和组: /usr/sbin/groupadd -g 501 oinstall /usr/sbin/groupadd -g 502 dba /usr/sbin/groupadd -g 503 oper /usr/sbin/groupadd -g 504 asmadmin /usr/sbin/groupadd -g 505 asmoper /usr/sbin/groupadd -g 506 asmdba us

aix-oracle asm 的rac 中,weblogic总无法连接其中一台,报ora-15025的错

问题描述 oracle asm 的rac 中,weblogic总无法连接其中一台,报ora-15025的错 在AIX上 oracle +asm的rac,2台服务器,一台是server1.2,另一台是server1.55. 1.2 这台server之前运行正常,但最近总是无法连接到服务器.查看了log,有ora-15025 could open a disk,和ORA-27041: unable to open file这两个错误. 求高手指点一二. 附: 另外1.2这台server上有一个 +A

RAC ASM instances crash with ORA-29702 when multiple ASM instances start(ed) [ID 733262.1]

RAC ASM instances crash with ORA-29702 when multiple ASM instances start(ed) [ID 733262.1]   修改时间 21-JAN-2011     类型 PROBLEM     状态 PUBLISHED   In this Document  Symptoms   Cause   Solution Applies to: Oracle Server - Enterprise Edition - Version: 10

【RAC】将RAC备份集恢复为单实例数据库

[RAC]将RAC备份集恢复为单实例数据库 1.1  BLOG文档结构图   1.2  前言部分   1.2.1  导读 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① rac数据库的备份集是如何恢复到单实例的数据库 ② ASM文件系统到OS文件系统的转换 ③ 一般的备份恢复过程       本文如有错误或不完善的地方请大家多多指正,ITPUB留言或QQ皆可,您的批评指正是我写作的最大动力. 1.2.2  实验环境介绍   源库:1