RMAN database cloning
1)While cloning using RMAN when we say " duplicaicate target database to testdb" will RMAN apply archives which are not archived (uning "backup database archivelog all") or not.
2) Why do we need to connect to the target (rman target=prod@toprod auxillary=/ catalog=cat@tocat ( i.e source db... this db we are cloning form).
we have the backup of the backup's in a say NFS mout and we have info about backup in the catalog?
Hello;
Dan's version question is important because Oracle 11 has many additional duplication options.
That's said if you copy the archive to the remote server it will use them in both Oracle 10 and 11.
Here's my Oracle 11 - Duplicating a Database to a Remote Host with the Same Directory Structure short notes :
http://www.visi.com/~mseberg/rman/active_database_duplicating.html
and with different directory structure :
http://www.visi.com/~mseberg/rman/diff_database_duplicating.html
Best Regards
mseberg
Similar Messages
-
RMAN Active Cloning: how to include SPFILE on ASM
O.S Version HP-UX B.11.31 U ia64
Oracle DB Version 11.2.0.3.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Storage : ASM Diskgroups
On RMAN active cloning of databases, how to include the SPFILE to be cloned on the ASM Storage?Hello;
Check out the example here :
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupad.htm
Under "Example 25-4 Duplicating from a File System to ASM (Active)"
or
Example 25-5 Duplicating from ASM to ASM (Active)
Best Regards
mseberg
Edited by: mseberg on May 15, 2013 10:34 AM -
RMAN Active Cloning fails with RMAN-06054: missing log file
Version Details:
O.S Version HP-UX B.11.31 U ia64
Oracle DB Version 11.2.0.3.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Scenario :
Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
Problem:
At the end of the cloning the below errors are reported;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274
RMAN Script used for Active cloning:
#!/bin/ksh
. setdb entDBu
start_dt=`date +%Y%m%d_%H%M`
job=`basename $0 ".sh"`
rman >> ${job}_${start_dt}.log 2>&1 <<eof
set echo on;
connect target sys/@DCC&(_O@entDBp1
connect auxiliary sys/@DCC&(_O@entDBuu
run {
allocate channel prmy1 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database
to entDBu
from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
show all;
exit
eof
end_dt=`date +%Y%m%d_%H%M`
mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
started: ${start_dt}
finish: ${end_dt}
eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread with sequence and starting SCN of while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.Sivaprasad S wrote:
Version Details:
O.S Version HP-UX B.11.31 U ia64
Oracle DB Version 11.2.0.3.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Scenario :
Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
Problem:
At the end of the cloning the below errors are reported;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274RMAN Script used for Active cloning:
#!/bin/ksh
. setdb entDBu
start_dt=`date +%Y%m%d_%H%M`
job=`basename $0 ".sh"`
rman >> ${job}_${start_dt}.log 2>&1 <<eof
set echo on;
connect target sys/@DCC&(_O@entDBp1
connect auxiliary sys/@DCC&(_O@entDBuu
run {
allocate channel prmy1 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database
to entDBu
from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
show all;
exit
eof
end_dt=`date +%Y%m%d_%H%M`
mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
started: ${start_dt}
finish: ${end_dt}
eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread with sequence and starting SCN of while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.Where UNTIL clause in your script I didn't saw.
Please try following RMAN script
DUPLICATE TARGET DATABASE FOR STANDBY
FROM ACTIVE DATABASE
SPFILE
SET "control_files"="/u01/app/oracle/oradata/stbdbcontrol01.ctl"
SET "db_name"="prmdb"
SET "db_unique_name"="stbdb"
SET "db_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
SET "log_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
SET "db_recovery_file_dest"="/u01/app/oracle/fra"
SET "diagnostic_dest"=/u01/app/oracle"
SET "audit_file_dest"="/u01/app/oracle/admin/stbdb/adump"
PASSWORD FILE
NOFILENAMECHECK;
{code}
Please change parameters for your environment.
Regards
Mahir M. Quluzade -
Rman active cloning is getting failed
Hi Team,
when i am doing rman active cloning it is getting failed
channel ORA_DISK_1: starting datafile copy
input datafile file number=00406 name=/u01/oradata/ebstest/a_txn_ind05.dbf
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/24/2013 19:38:35
ORA-17627: ORA-12577: Message 12577 not found; product=RDBMS; facility=ORA
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting datafile copy
Please helpuser10721329 wrote:
Hi Hussien,
Thanks for the valuable reply,
I have gone through that doc but i am trying to do cloning on the same machine not on the different machine
My Linux version and database both are 32 bit i am trying to create a duplicate instance on the same 32 machine(side by side)Please see the solution in this link -- http://dbadailytelegraph.blogspot.ca/2009/06/duplicate-target-database-from-active.html
Thanks,
Hussein -
RMAN DUPLICATION(cloning)
Hi,
Please give some metalink id for RMAN cloning (from one host to different host)...
iam searching for the documents but no standard & clear documents ............. please help....
Thank u..Hi;
We discussed here many times same topic here. Please use search mechanisim;
One of the from search
Rman-Clone db
database cloning from activedatabase
Regard
Helios -
hi any body help me,
How to clone using rman in Oracle 10g R2 RAC environment.step by step documentation for cloning RAC database.
refer:
RAC Database cloning with HOT Backup
http://www.dba-oracle.com/t_rac_cloning_hot_backup.htm.
hope, this helps you. -
Database Prunning and database cloning?
Hi,
I would like to get help from someone about the database cloning and pruning can i get it?
thx
pradeepHi, plase review the next thread into this forum
Re: cloning using rman backups?
cloning
Good luck.
Regards. -
RMAN Active cloning successful, but spfile found to be missing
Environment:
O.S Version : HP-UX B.11.31 U ia64
Oracle DB Version : 11.2.0.3.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Database files on : +ASM managed Diskgroups
RMAN Active cloning command below is used to clone the database from one host "A" to another host "B".
duplicate target database to testDB from active database nofilenamecheck ; Cloning completed successfully. But when i checked on the spfile existance the spfile found missing.
SQL> show parameter spfile
NAME TYPE VALUE
spfile string /app/oracle/product/11.2.0.3/db/dbs/spfiletestDB.oraWhat could be the cause for the spfile missing?
I have been advised below as workaround;
1. Create spfile or pfile from memory and bounce the db to fix this issue.
2. RMAN Active clone script specified with the the pfile clause.
For example.
duplicate target database to testDB from active database file=/app/oracle/product/11.2.0.3/db/dbs/inittestDB.ora; Would appreciate the advise on this.
Edited by: Sivaprasad S on Jan 31, 2013 5:13 PMHello;
What could be the cause for the spfile missing?
This :
duplicate target database to testDB from active database nofilenamecheckInstead of this :
duplicate target database to testDB from active database spfile nofilenamecheckSee :
http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmdupdb.htm
Example 23-3
Please consider closing some of your old questions
Best Regards
mseberg -
Rman remote cloning...
I want do a Rman remote cloning..so i need to have full backup copy of the database on the local remote system with all archive logs too....so can u please tell me how can i list the rman to copy the list of files to be cloned on the remote system...and also how can we use the dd command on the network system???
Moorthy wrote:
my question is how do i know which database raman backup to be copied ?? is there any command to check on rman....also which command i can use to copy those files across the network.?command pleaseIf you use Oracle 11g, you can use Active database clone feature and NOT copy the backup files through the network. I've video tutorial on this feature
http://kamranagayev.wordpress.com/2010/08/24/rman-cloning-database-without-connecting-to-target-db-and-recovery-catalog-11gr2/
If you use Oracle 10g, then check my following video tutorial on database clone with basic steps:
http://kamranagayev.wordpress.com/2010/06/25/rman-video-tutorial-series-creating-duplicate-and-standby-database-using-rman/ -
Hi
Is it possible to have a cloning strategy of bringing over a small percentage of data to the non-prod environments during the database cloning process for an EBS Env? Say 50% in Test and 25% in Dev.
If possible this would cut down on long-term storage cost and data liability, but I am not sure if this is possible. If possible then I would like to understand the amount of effort how this would be implemented.
Has anyone done this? Any pointers will be much appreciated. We are on R12.1.3 with HR and Payroll.
Thanks1002216 wrote:
Hi
Is it possible to have a cloning strategy of bringing over a small percentage of data to the non-prod environments during the database cloning process for an EBS Env? Say 50% in Test and 25% in Dev.
If possible this would cut down on long-term storage cost and data liability, but I am not sure if this is possible. If possible then I would like to understand the amount of effort how this would be implemented.
Has anyone done this? Any pointers will be much appreciated. We are on R12.1.3 with HR and Payroll.
ThanksRapid Clone doesn't support partial cloning.
One of the options would be cleaning/purging the data on the target instance once the full/complete clone is done -- Search the forum for cleaning/purging and you will get many hits.
Thanks,
Hussein -
What is the exact difference between Database Cloning and Database Refresh?
Hi,
Can anybody tel me the exact difference between Database Cloning and Database Refresh?
I Have some conflicts in these topics.
Thanks
RajeshRefresh is what it says, "refresh" . You have a main site which would always have the data being inserted into it. There would be another site which would remain some where else . This site needs to be refreshed with the primary site. So you need to do export from the primary, push it to the secondary site and done!
HTH
Aman.... -
Database Cloning or Software Cloning
Hi,
Can anyone explain what is database cloning & software cloning available in oracle 10g ?
With Regards
KccrgaIn addition to the above replies.
Let's say you have a Production database (PROD) is running on Linux/Unix Server (AAA). Here you wanna clone your database and Oracle Home (Oracle Software Direcotries) from Server AAA to server BBB. Oracle Home cloning is nothing but software cloning.
Software Cloning: This can be done only once until and unless any Oracle Patch applied on it.
Database Cloning/Refresh: This needs to be done whenever the updated datais required in the test/developement databases from production.
Software Staging: This can be done once when we install Oracle Software. It means that we need to copy the Oracle Software CDs in one area on the server for the future installation of the same software.
Regards,
Sabdar syed. -
how to create listner for the auxiliary instance in database cloning
i am doing the database cloning in the same system
plz give the solution850914 wrote:
how to create listner for the auxiliary instance in database cloning
i am doing the database cloning in the same system
plz give the solutionIf they are on the same system you don't need a listener specifically for the axillary instance.
One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database or client. That would be like the telephone company building a separate switchboard for each customer. -
RMAN-05517: cloning a database issue
hi,
I am using oracle 10.2.0 on windows xp and try cloning database using RMAN duplicate command on the same system. my original database is orcl and i am cloning it to clone(database name).
and got the error
RMAN> run
2> {
3> allocate auxiliary channel aux1 device type disk;
4>
5> SET NEWNAME FOR DATAFILE 1 TO 'D:\ORACLE\ORADATA\clone\SYSTEM01.DBF';
6> SET NEWNAME FOR DATAFILE 2 TO 'D:\ORACLE\ORADATA\clone\UNDOTBS01.DBF';
7> SET NEWNAME FOR DATAFILE 3 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\SYSAUX01.DBF';
8> SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF';
9>
10> duplicate target database to 'clone';
11> }
allocated channel: aux1
channel aux1: sid=156 devtype=DISK
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting Duplicate Db at 03-JUL-09
released channel: aux1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/03/2009 16:49:29
RMAN-05501: aborting duplication of target database
RMAN-05517: temporary file D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBF conflicts with file used by target databasei know this my original file but i can't find out SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF'; like command for temporary files.
i tries like
RMAN> run
2> {
3> allocate auxiliary channel aux1 device type disk;
4>
5> SET NEWNAME FOR DATAFILE 1 TO 'D:\ORACLE\ORADATA\clone\SYSTEM01.DBF';
6> SET NEWNAME FOR DATAFILE 2 TO 'D:\ORACLE\ORADATA\clone\UNDOTBS01.DBF';
7> SET NEWNAME FOR DATAFILE 3 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\SYSAUX01.DBF';
8> SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF';
9> SET NEWNAME FOR DATAFILE 'D:\oracle\product\10.2.0\oradata\orcl\TEMP01.DBF' TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\TEMP01.DBF';
10> duplicate target database to 'clone';
11> }
allocated channel: aux1
channel aux1: sid=156 devtype=DISK
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
released channel: aux1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of set command at 07/03/2009 16:35:13
RMAN-20201: datafile not found in the recovery catalog
RMAN-06010: error while looking up datafile: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBFbut no use. on googled about it i can't find any thing.
Thanks
umeshUmesh Sharma wrote:
hi,
googled about it i can't find any thing.one of your first steps when looking for an answer shoud be visiting tahiti.oracle.com.
Working with tempfiles when using rman duplicate has been mentioning here
Thanksok
umesh -
Database cloning using RMAN using Oracle 11i
Hi all,
I am getting error while connecting to clone database after making necessary changes in initDUP.ora file. Any buddy help me out to resolve this problem. I am doing clonning first time.
C:\Documents and Settings\sanjeevk>tnsping dup
TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 25-JUN-2010 11:57:40
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\11.1.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = abc-117.abc
.com)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dup)))
OK (50 msec)
C:\Documents and Settings\sanjeevk>set ORACLE_SID=dup
C:\Documents and Settings\sanjeevk>sqlplus "sys/****** as sysdba"
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jun 25 11:59:55 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name: / as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error
Edited by: user13174327 on Jun 25, 2010 12:16 AMtry to conenct to clone database from target database as sys by sqlplus 'sys/sys@CLONE as sysdba'
make sure u have remote_login_password_file=exclusive in clone database pfile,,,,
reload the listener,,, with replacing hostname with the ip address of the machine.....
also take care of global_db_name ..
i will post a sample of listener file it may work 4 u..
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/orasoft/10.2.0.4)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = rman_cat)
(ORACLE_HOME = /oracle/orasoft/10.2.0.4)
(SID_NAME = rman_cat)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.$$$.###.***)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
if u want proper SOP for duplicating database through RMAN .. post me ur mail id.I did that at last two days back.....
Regards,
Sisya....
Maybe you are looking for
-
Problem with installation of Adobe Flash Player on mac
Hi, i have a macintosh with OsX Yosemite 10.10.2 and i can't update the software to te last version. The download always stop at 20-30%. It's not a problem of my internet connection. I tried to uninstall e reinstall flash player, but i have the s
-
Ship to Party / Customer address is not correct in Third party PO Printouts
Hi, I am creating Third party PO, concevrted from Qutation-SalesOrder -automatic PR to PO. In these POs, Ship to Party address is replaced by Vendor's address in PO Printout(ME9F). How to avoid this? Is there any setting avilable in SD or MM. Thi
-
Every time i go to a site or and extension of a site i use a lot it asks me if it can you adobe flash I want to know how to make it so it just allows all site to just start it. I only go to mainstream sites so its not a security issue. I have gone in
-
I love Apple products, but last week, Apple really disappointed me. For the first time, Apple made me regret buying the iPhone. Last week, I preordered an iPhone 5 at a Best Buy store, which should have been delivered on the 21st when Apple released
-
Updated Xcode .. iOS 5.1 SDK is missing. [HELP]
Is it posssible to download the 5.1 SDK from somewhere so I can command line compile with iOS6 or 5.1 SDK?