RMAN clone query
Hello DBA's
I'm using an 9i Oracle Solaris box.
I have a task to clone a TEST enviornment into a existing TRAIN enviornment using RMAN.
I edited the TEST spfile and ran the RMAN duplicate commnad - 'duplicate target database to train;' without deleting the existing datafiles on TRAIN.
RMAN automatically refreshed the datafiles with TEST's datafiles.
My query is:
1) Is this acceptable and will i land into problems later on OR should i have dropped the TRAIN database completley before doing a new clone?
2) In 9i (Solaris) there is no easy way to drop the database, should i have done a shutdown and dropped the TRAIN's datafiles manually?
You adivce/suggestions would be much appreciated!
It is always better to remove the "TRAIN" database before cloning "TEST" over to "TRAIN".
Consider the scenario :
Day 1: "TEST" has 5 datafiles in /u01. /u01 has filesystem space of 10GB and the 5 datafiles take up 6GB
Day 2: "TEST" is cloned to "TRAIN" for the first time. "TRAIN" is on /u02, 10GB, 5 files taking 6GB
Day 6: "TRAIN" is very busily used with a lot more data inserted. The 5 files in /u02 grow to 9GB. You add a 6th datafile of 1GB in /u03
Day 12: Your traning is over and you need to clone "TEST" to "TRAIN" again for the next set of trainees
Day 13: "TEST" is cloned to "TRAIN".
As has been pointed out, the clone would actually overwrite files. However, you'll find 5 files of 9GB being replaced by 5 files of 6GB. And a 6th file of 1GB "hanging loose" not being owned by anybody.
Wouldn't that cause confusion on, say, Day 19 ?
Here's another scenario :
Day 1: "TEST" has 5 datafiles in /u01. /u01 has filesystem space of 10GB and the 5 datafiles take up 6GB
Day 2: "TEST" is cloned to "TRAIN" for the first time. "TRAIN" is on /u02, 10GB, 5 files taking 6GB
Day 6: "TRAIN" is used for DBA traning. The trainee DBAs "reorganise" the database, using export import, down to 4 datafiles and taking 4GB only (because data has been deleted)
Day 12 : training is over
Day 13 : "TEST" is cloned to "TRAIN"
What do you see happening now ?
Here's a third scenario :
What about DBAs renaming datafiles (not just locations, but file names) during Training ?
Here's a fourth scenario :
Between Day 2 and Day 13, the "TEST" server storage is expanded and /u01 is 20GB. Also, "TEST" grows to 16GB in size. But the "TRAIN" server's /u02 is still 10GB.
What happens when you re-clone on Day 13 ?
At each refresh clone, you must consider that
a. file numbers may have changed
b. file names may have changed
c. file sizes may have changed
Similar Messages
-
Hello DBA's,
Using a 9i Solaris box and i need to perfom a RMAN clone of prod (target db) to train database. Train database does already exist.
I've performed "backup database plus acrhivelog all delete input" (on prod)
My query is when i do run "duplicate target database to traindb" will it refresh all the existing datafiles already in TRAIN db or will i need to manually drop the datafiles or even 'drop' the TRAIN database?
Many thanks!You should remove or drop TRAIN DB before you clone over from PROD.
However, you can use the NOFILENAMECHECK clause
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta028.htm#sthref466 -
Hi:
I got error at end when doing a RMAN clone on linux, RMAN 11.1.0.7. 89163 is the next to last highest sequence
number in the backup log file. So in the clone script I put 89165.
ORA-19870: error while restoring backup piece
ORA-19504: failed to create file
ORA-17502: ksfdcre:4 Failed to create file
ORA-15173: entry 'archive' does not exist in directory '/'
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/19/2012 17:36:15
RMAN-03015: error occurred in stored script Memory Script
RMAN-20506: no backup of archived log found
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 89163 and starting SCN of 11158664662 found to restore
What is the problem here?
Can I bring up the database up?
Thank you for your help.Then you may get an error as below
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 89165you can try to open the database with resetlogs as you would not be having the archive sequence 89165
Also, 1 suggestion. Since you are on 11g, why not use the feature "active database" ?
rman target sys/pwd@target catalog xxxx auxiliary wwww
RMAN>duplicate target database to 'CLONEDB' from active database;This does not require you to take the backup first and then start the cloning activity -
Rman clone ? duplicate database ? data guard ? standby database?
hey there !!
What is the difference between Rman clone , duplicate database , data Guard , standby db?
1 more thing , standby database and duplicate database are same??RMAN Clone : you take backup of a database on one server ,then take it to other server ,again use RMAN to restore the database,A lot manual intervention is needed in this method
RMAN DUPLICATE: same as above just that manual intervention is less. With 11gR2 there active database duplication in which you can clone your test database directly from production database without taking and then transferring the backup to test server.
Standby Database :they are of two types Physical and logical.The setup is done using RMAN with any of the above methods.Standby is the in-sync (can have some delay) version of primary database either block by block which is physical standby configuration or SQL statment wise which is logical standby.
Data Guard:This is also a standby configuration.Here the failover and switchover are automated with the help of DGMGRL utility.In manual standby this same can be done via SQL*PLUS using sql commands -
Hello,
We use Commvault for our backup software. I can successfully clone one application's PROD instance on server1 to TEST on server2.
However, for another application, attempting the same process of cloning the app's PROD instance on server1 to TEST on server2, I'm getting RMAN errors.
The prod database is ISLP and test database is ISLT. I've set the parameters:
o alter system set db_file_name_convert = '/u02/oradata/ISLP', '/u02/oradata/ISLT'
o alter system set log_file_name_convert= '/u01/oradata/ISLP', '/data/oracle/ISLT'
Again the destination is on a second server.
The error message I receive is:
Oracle instance shut down
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/09/2013 12:48:55
RMAN-05501: aborting duplication of target database
RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_2b.log conflicts with a file used by the target database
RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_1b.log conflicts with a file used by the target database
RMAN>
Recovery Manager complete.
I don't understand why RMAN keeps trying to create new redo log files in a directory that is not specified by the log_file_name_convert parameter. I also don't understand why this exact same process works for cloning one applications database but not this application. I would appreciate any help. Thank you. Here is the RMAN script being executed by Commvault.
Rman Script:
[run {
set newname for datafile '/u02/oradata/ISLP/infosilem_ISLP_01.dbf' to '/u02/oradata/ISLT/infosilem_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/sysaux_ISLP_01.dbf' to '/u02/oradata/ISLT/sysaux_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/system_ISLP_01.dbf' to '/u02/oradata/ISLT/system_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/tools_ISLP_01.dbf' to '/u02/oradata/ISLT/tools_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/undo_ISLP_01.dbf' to '/u02/oradata/ISLT/undo_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/users_ISLP_01.dbf' to '/u02/oradata/ISLT/users_ISLP_01.dbf';
allocate auxiliary channel ch1 type 'sbt_tape'
PARMS="SBT_LIBRARY=/opt/galaxy/Base64/libobk.so,BLKSIZE=262144,ENV=(CV_mmsApiVsn=2,CV_channelPar=ch1,ThreadCommandLine= RESTORE -jm 142 -a 2:0 -cl 137 -ins 150 -at 22 -j 700481 -jt 700481:3:1 -bal 0 -rcp 0 -ms 1 -p 2 -cn s-dbint -vm Instance001)"
TRACE 0;
set until time = "TO_DATE('05/08/2013 09:00:00','MM/DD/YYYY HH24:MI:SS')" ;
duplicate target database to 'ISLT'
exit;
]You haven't defined a log_file_name_convert for /u02/oradata/ISLP/
Possibly, the database has multiplexed redo log files, one member each in /u01/oradata/ISLP and one member each in /u02/oradata/ISLP.
Hemant K Chitale -
Hi
I have rman tape backup of the entire database. I want to clone this on new server.
I have started database in new server. It is in mount stage. how to restore and recover the datafiles on new host.
I am using leagato server for tape backup. Please guide me on this.You need to use RMAN DUPLICATE and to adapt following steps to your environment http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006474.
About tape backups, please note:
>
When using tape backups, you must make the tapes containing the backups accessible to the remote node. You can achieve this goal by physically moving the tape to a drive attached to the remote host or by means of a network-accessible tape server. -
RMAN clone - only subset of data
I have a requirement to clone the Production to Test database with the minimum size (subset of data).
Can some one help me how to extract only subset of data from prod ?You could consider using SKIP TABLESPACE with the RMAN DUPLICATE command to create a test database that is a subset of the production, but it may depend on what you mean by "subset" of data.
-
RMAN clone; Avoid backup image
Oracle 10.2.0.5
When cloning databases with RMAN on ASM, it creates a backup image before restoring the backup to a clone. Whenever I clone a database, I need double amount of storage to do it.
Is there way to clone a database in ASM and avoid the additional backup image?
I appreciate the help.
Thank youHi Philippe,
I really appreciate your post, doing things that seem impossible to be possible. (such as to duplicate (online) a database in 10g without restore). :)
I decided to complement your post doing duplicate using ASM.
I did not make step by step, but for any Senior DBA can understand.
P.S: For All:
Be very careful to do this using ASM because you can damage or remove your target database if the parameters(init<instance_name>.ora) are not configured correctly.
I created/used a different diskgroup from that used by the target database, for precaution and safety.
rman target /
Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:01:42 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: DB10G (DBID=142098503)
RMAN> report schema;
using target database control file instead of recovery catalog
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
1 450 SYSTEM *** +DG_ORCL/db10g/datafile/system.259.749761723
2 1105 UNDOTBS1 *** +DG_ORCL/db10g/datafile/undotbs1.258.749761723
3 250 SYSAUX *** +DG_ORCL/db10g/datafile/sysaux.257.749761723
4 3250 USERS *** +DG_ORCL/db10g/datafile/users.256.749761725
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
1 98 TEMP 32767 +DG_ORCL/db10g/tempfile/temp.260.749761777
# Oracle ASM use db_unique_name to create directory. So I go use.
sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 22:38:48 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
SQL:db10g> show parameter db_unique
NAME TYPE VALUE
db_unique_name string DB10G
SQL:db10g> ALTER SYSTEM SET db_unique_name=dbclone scope=spfile;
SQL:db10g> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL:db10g> startup mount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL> show parameter db_uni
NAME TYPE VALUE
db_unique_name string DBCLONE
$ rman target /
Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:43:27 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: DB10G (DBID=142098503, not open)
RMAN> BACKUP AS COPY DEVICE TYPE DISK DATABASE FORMAT '+DG_CLONE';
Starting backup at 09-MAY-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=153 devtype=DISK
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=+DG_ORCL/db10g/datafile/users.256.749761725
output filename=+DG_CLONE/dbclone/datafile/users.262.750725029 tag=TAG20110509T224348 recid=10 stamp=750725114
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:35
channel ORA_DISK_1: starting datafile copy
input datafile fno=00002 name=+DG_ORCL/db10g/datafile/undotbs1.258.749761723
output filename=+DG_CLONE/dbclone/datafile/undotbs1.263.750725125 tag=TAG20110509T224348 recid=11 stamp=750725152
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.259.749761723
output filename=+DG_CLONE/dbclone/datafile/system.264.750725161 tag=TAG20110509T224348 recid=12 stamp=750725170
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=+DG_ORCL/db10g/datafile/sysaux.257.749761723
output filename=+DG_CLONE/dbclone/datafile/sysaux.265.750725175 tag=TAG20110509T224348 recid=13 stamp=750725182
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
copying current control file
output filename=+DG_CLONE/dbclone/controlfile/backup.266.750725191 tag=TAG20110509T224348 recid=14 stamp=750725193
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 09-MAY-11
channel ORA_DISK_1: finished piece 1 at 09-MAY-11
piece handle=+DG_CLONE/dbclone/backupset/2011_05_09/nnsnf0_tag20110509t224348_0.267.750725195 tag=TAG20110509T224348 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 09-MAY-11
SQL:db10g> alter database backup controlfile to trace;
Database altered.
SQL:db10g>create pfile='$ORACLE_HOME/dbs/initdbclone.ora' from spfile;
File created.
SQL:db10g> show parameter db_un
NAME TYPE VALUE
db_unique_name string DBCLONE
SQL:db10g> alter system set db_unique_name=db10g scope=spfile;
System altered.
SQL:db10g> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
$ vi $ORACLE_HOME/dbs/initdbclone.ora
*.audit_file_dest='/u01/app/oracle/admin/dbclone/adump'
*.background_dump_dest='/u01/app/oracle/admin/dbclone/bdump'
*.control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora'
*.core_dump_dest='/u01/app/oracle/admin/dbclone/cdump'
*.db_create_file_dest='+DG_CLONE'
*.db_name='db10g'
*.db_recovery_file_dest='+DG_CLONE'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=dbcloneXDB)'
*.user_dump_dest='/u01/app/oracle/admin/dbclone/udump'
# Get list of datafiles on ASM (very useful for huge list)
set linesize 110
col DATAFILE_PATH for a100
SQL:+ASM> select ''''||concat('+'||gname, sys_connect_by_path(aname, '/'))||''',' DATAFILE_PATH
from ( select b.name gname, a.parent_index pindex, a.name aname,
a.reference_index rindex , a.system_created, a.alias_directory,
c.type file_type
from v$asm_alias a, v$asm_diskgroup b, v$asm_file c
where a.group_number = b.group_number
and a.group_number = c.group_number(+)
and a.file_number = c.file_number(+)
and a.file_incarnation = c.incarnation(+)
) WHERE file_type = 'DATAFILE'
start with (mod(pindex, power(2, 24))) = 0
and rindex in
( select a.reference_index
from v$asm_alias a, v$asm_diskgroup b
where a.group_number = b.group_number
and (mod(a.parent_index, power(2, 24))) = 0
and a.name = UPPER('&DATABASENAME')
connect by prior rindex = pindex;
DATAFILE_PATH
'+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
'+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
'+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
'+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175',
$ export ORACLE_SID=db10g
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 23:55:16 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL:dbclone> startup nomount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 92275968 bytes
Database Buffers 192937984 bytes
Redo Buffers 6291456 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "DB10G" RESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 (
9 '+DG_CLONE/DBCLONE/onlinelog/group_1.264.749761765',
10 '+DG_CLONE/DBCLONE/onlinelog/group_1.257.749761767'
11 ) SIZE 50M,
12 GROUP 2 (
13 '+DG_CLONE/DBCLONE/onlinelog/group_2.262.749761769',
14 '+DG_CLONE/DBCLONE/onlinelog/group_2.258.749761771'
15 ) SIZE 50M,
16 GROUP 3 (
17 '+DG_CLONE/DBCLONEonlinelog/group_3.261.749761771',
18 '+DG_CLONE/DBCLONE/onlinelog/group_3.259.749761773'
19 ) SIZE 50M
20 DATAFILE
21 '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
22 '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
23 '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
24 '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175'
25 CHARACTER SET WE8ISO8859P1
26 ;
Control file created.
SQL:dbclone> alter database open resetlogs;
Database altered.
SQL:dbclone> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL:dbclone> startup mount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 92275968 bytes
Database Buffers 192937984 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL:dbclone> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ nid TARGET=/ DBNAME=dbclone
DBNEWID: Release 10.2.0.5.0 - Production on Tue May 10 00:02:21 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to database DB10G (DBID=142098503)
Connected to server version 10.2.0
Control Files in database:
/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
Change database ID and database name DB10G to DBCLONE? (Y/[N]) => yes
Proceeding with operation
Changing database ID from 142098503 to 661154259
Changing database name from DB10G to DBCLONE
Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - modified
Datafile +DG_CLONE/dbclone/datafile/system.264.750725161 - dbid changed, wrote new name
Datafile +DG_CLONE/dbclone/datafile/undotbs1.263.750725125 - dbid changed, wrote new name
Datafile +DG_CLONE/dbclone/datafile/sysaux.265.750725175 - dbid changed, wrote new name
Datafile +DG_CLONE/dbclone/datafile/users.262.750725029 - dbid changed, wrote new name
Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - dbid changed, wrote new name
Instance shut down
Database name changed to DBCLONE.
Modify parameter file and generate a new password file before restarting.
Database ID for database DBCLONE changed to 661154259.
All previous backups and archived redo logs for this database are unusable.
Database is not aware of previous backups and archived logs in Recovery Area.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database name and ID.
DBNEWID - Completed succesfully.
$ vi $ORACLE_HOME/dbs/initdbclone.ora
*.db_name='dbclone' # change this
$ export ORACLE_SID=dbclone
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 10 00:04:26 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL:dbclone> startup mount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL:dbclone> alter database open resetlogs;
Database altered.
SQL:dbclone> ALTER TABLESPACE TEMP ADD TEMPFILE '+DG_CLONE(TEMPFILE)' SIZE 200M;
Tablespace altered.
# Moving SPFILE to ASM
SQL:dbclone> create spfile='+DG_CLONE(PARAMETERFILE)' from pfile;
File created.
SQL:dbclone> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
ASMCMD> mkalias +DG_CLONE/DBCLONE/PARAMETERFILE/spfile.277.750732725 +DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA
$ vi $ORACLE_HOME/dbs/initdbclone.ora
SPFILE='+DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA'
# Moving CONTROLFILE to ASM
SQL:dbclone> startup nomount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
SQL:dbclone> show parameter control
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string /u01/app/oracle/product/10.2.0
/db_1/dbs/control_dbclone.ora
SQL:dbclone> alter system set control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora','+DG_CLONE' scope=spfile;
System altered.
SQL:dbclone> exit
$ rman target /
connected to target database: dbclone (not mounted)
RMAN> shutdown immediate
using target database control file instead of recovery catalog
Oracle instance shut down
RMAN> startup nomount
connected to target database (not started)
Oracle instance started
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
RMAN> restore controlfile from '/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora';
Starting restore at 10-MAY-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
channel ORA_DISK_1: copied control file copy
output filename=/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
output filename=+DG_CLONE/dbclone/controlfile/current.278.750733129
Finished restore at 10-MAY-11
RMAN> exit
Recovery Manager complete.
$ sqlplus / as sysdba
SQL:dbclone> show parameter control
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string /u01/app/oracle/product/10.2.0
/db_1/dbs/control_dbclone.ora,
+DG_CLONE/dbclone/controlfile
/current.278.750733129
SQL> alter system set control_files='+DG_CLONE/dbclone/controlfile/current.278.750733129' scope=spfile;
System altered.
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
Database mounted.
Database opened.
SQL> exitCheers,
Levi Pereira -
Hello all,
I'm currently testing cloing using RMAN.
On SERVER A, database backup taken using RMAN catalog to DISK on SERVER A. When I tried to clone to SERVER B, I get an error
ORA-19505: failed to identify file "/dba/sade/kamsbup_scripts/testone_bkup/rman_TESTONE_FULL_240708-12:47:21_afjm9lb0_1_1_660919648.bak"
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
Could you suggest me what channel parameters are to be used?
Thanks,
KamBut in your first reply you said you are using disk not tape.
In case of tape we need to have same configuration of channel paths on both servers, as tape will be accessible to both servers and directory structire will be same or mount points will be same.
In case of disk, we need to copy the backupset file to the same mount point or directory structure as Rman catalog or controlfile will find the backup only from the position where backup was taken and this information is store in rman catalog or controfile.
So when duplicating , restore command will find the backup file on the same path as it was taken but on the other machine as we are restoring on the different machine.
Regards,
Navneet -
Hi guru's,
Any one have short version of doc for RMAN db clone and standby ?
or any link or any metalink note.
ThanksFor db clone using rman at another node see metalink Note:388431.1.
For db clone within same node see
http://oraware.blogspot.com/2008/01/how-to-clone-database-within-same.htmlFor standby notes google out you will find much more documents then mentioning to here.
Khurram -
Hi:
I am using RMAN to clone EBS R12. After the clone I checked the log file against the /staging/.../PROD (data files) and found last three files are not in the log file that mean they are not copied. We use "SET UNTIL SEQUENCE 80426 THREAD 1". Is that Okay or the clone is failed?
Thank you for your help and regardsThere were no errors in the log file except at the end it says
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/29/2012 14:49:25
RMAN-06136: ORACLE error from auxiliary database: ORA-02236: invalid file name
But I managed to open the database. I did get error like flash area space problem. After increase the db_recovery_file_dest_size, the database and apps are up and running.
How to compare schemas and table records? So normally, all the datafiles should be copied/cloned to the target instnace, right? -
Rman clone duplicate database from active database
Hi All,
I read document saying that rman can duplicate database from active database (prod) to a remote server, so long as you configure listener and tnsname.
I am working toward it.
I met a problem, which is when i bring up auxiliary database in nomount mode, the listener service of that auxiliary database is in BLOCKED status, and throw out ora-12528 error when I rman auxiliary sys/pass@clonedb. Isn't nomount mode the mode which auxiliary db is supposed to be in?
(ora-12528: TNS:listener: all appropriate instances are blocking new connections)
Thanks,
milicYou may have run into the same problem like I did recently:
The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
ORA-12528: TNS listener BLOCKED - trying to duplicate database
Also for further problems:
RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628 -
Hi All,
Can anyone share a good doc for cloning a database using RMAN?
Thanks
Regards,Hello,
Hope this helps
http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm
http://www.akadia.com/services/ora_duplicate_database_rman.html
If you feel that your question has been answered, then please consider closing your question by marking it as answered and providing appropriate points !! -
Hi experts,
Could you please recommend some information for better rman performance
what i know is
1. using duration parameter
2. sizing large_pool
3. i/o slaves
Please mention any other point i have missed out.
regards,
shaanCheck Tuning Backup and Recovery.
-
db 10.2.0.4
AIX 5.2
if I require to restore full backup or some of datafiles from previous date backup example today is 19th march 2012 and I need to restore 8th march 2012 backup
how could I get this using rman?
Thanksuser11969485 wrote:
Actually it has been dropped a table by mistake by develpor one week before and we must need to recover that table using rman because we are taking backup by rman on tape and fyi tivoli is not configured on other server so we canot restore the backup to other server and try to recover table, I can only restore the backup on same server where the table is dropped. please suggest how could i recover that table in this scenario?
DB 9.2.0.8
PROD
AIX 5.2
Many ThanksThe only way to recover an individual table from a backup is to restore that backup to a 'throwaway' database, then take an export of the one table, then import that back into the real database.
rman backup backs up and restores files, not individual database objects.
Maybe you are looking for
-
Trouble installing Mac drivers on Windows Vista
I've just installed Windows Vista on my intel-based IMac. I'm at the final part where I'm supposed to install the Mac drivers on Vista by ejecting the Windows installation disk and inserting the Mac OS X installation disk. According to the Boot Camp
-
Server bound to AD requires Un/re-bind on power on
Administrating a MacPro Server running 10.4.10 that is bound to a Windows 2003 server that's running an AD domain for authentication. If the MacPro is powered off smb clients loose the ability to connect to the MacPro. Unbinding and rebinding the Mac
-
IViews opening up in "closed" mode.
Hello All, As a business requirement some IViews in our portal requires to be opened in a "closed" or "minimized" state. This was easily done, because we can configure this in the IView properties. But I noticed that once we maximime (or open) one su
-
Status NOTE on Vendor notifications
Dear QM gurus, When we create vendor notifications manually, the system sets automatically the status NOTE (external). This is fine; I believe the system assumes this because this is normal for vendor notifications. When the notification is confirmed
-
After restarted firefox in safe wth disabled ad-ons, save page as. stil not working
after apdated firefox 15 "save page as " not working.