Duplicate Database and RMAN-20208
I'm trying to duplicate an old backup into an auxiliary database. Both the backup and auxiliary are 10g. When I run the following in RMAN:
run {
set until scn 41429334;
duplicate target database to aux;
}I get this error:
executing command: SET until clause
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of set command at 05/17/2010 08:54:26
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20208: UNTIL CHANGE is before RESETLOGS changeI'm trying to duplicate from a consistent (cold) RMAN backup and there have been a few OPEN RESETLOGS commands applied to the database as it's a development environment. Is there a way I can get around this issue in the duplicate command. I'd really like to avoid copying over the existing environment as it's currently under heavy use. Any suggestions, links, answers would be appreciated.
Thanks,
John
No, I believe you will get the same error. The cause of the problem is that a RESETLOGS operation was performed after the backup was created so the control file isn't aware of any pre-RESETLOGS operations. Even if you use a Recovery Catalog DB, you'll still get this error.
Similar Messages
-
Unable to create a duplicat database through rman
Hi,
Oracle Version:10.2.0.1
Operating System:Linux
Here i am having databae KKK and i need to duplicate that databae to vtldb.I take the backup of the KKK database as
rman target /
RMAN>Backup databsase;after that i copied all the bakup sets to my vtldb database in the location '/u01/app/oracle/oradata/vtldb/'.Then i created a new auxiliary channel as
create auciliary channel as device type disk format '/u01/pp/oracle/oradata/vtldb/%U';Then connecting to my auxiliary databae and getting the following error.
[oracle@vtlsys3-143 ~]$ rman target /
Recovery Manager: Release 10.2.0.3.0 - Production on Thu Mar 11 13:30:12 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: KKK (DBID=2526957931)
RMAN> connect aucxiliary sys@vtldb_rmandup
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "auxiliary, catalog, clone, rcvcat, target"
RMAN-01008: the bad identifier was: aucxiliary
RMAN-01007: at line 1 column 9 file: standard input
RMAN> connect auxiliary sys@vtldb_rmandup
auxiliary database Password:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-01031: insufficient privilegesI create the passowrd file for VTLDB aslo .
Can any one please help me how to solve my problem.
Thanks & Regars,
Poorna Prasad.Hi Anil,
Thanks for your replays.Now i was able to connect to the database.But i am facing another problem.
RMAN> list backup;
RMAN> backup database;
Starting backup at 11-MAR-10
using channel ORA_DISK_1
using channel ORA_DISK_2
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u01/app/oracle/oradata/kkk/system01.dbf
channel ORA_DISK_1: starting piece 1 at 11-MAR-10
channel ORA_DISK_2: starting full datafile backupset
channel ORA_DISK_2: specifying datafile(s) in backupset
input datafile fno=00003 name=/u01/app/oracle/oradata/kkk/sysaux01.dbf
input datafile fno=00002 name=/u01/app/oracle/oradata/kkk/undotbs01.dbf
channel ORA_DISK_2: starting piece 1 at 11-MAR-10
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 03/11/2010 16:36:11
ORA-19504: failed to create file "/u02/rman_bkp/kkk/ora_rbk713378170_s"
ORA-27038: created file already exists
Additional information: 1
channel ORA_DISK_2 disabled, job failed on it will be run on another channel
channel ORA_DISK_1: finished piece 1 at 11-MAR-10
piece handle=/u02/rman_bkp/kkk/ora_rbk713378170_s tag=TAG20100311T163610 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:16
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00003 name=/u01/app/oracle/oradata/kkk/sysaux01.dbf
input datafile fno=00002 name=/u01/app/oracle/oradata/kkk/undotbs01.dbf
channel ORA_DISK_1: starting piece 1 at 11-MAR-10
channel ORA_DISK_1: finished piece 1 at 11-MAR-10
piece handle=/u02/rman_bkp/kkk/ora_rbk713378186_s tag=TAG20100311T163610 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00004 name=/u01/app/oracle/oradata/kkk/users01.dbf
channel ORA_DISK_1: starting piece 1 at 11-MAR-10
channel ORA_DISK_1: finished piece 1 at 11-MAR-10
piece handle=/u02/rman_bkp/kkk/ora_rbk713378201_s tag=TAG20100311T163610 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 11-MAR-10
Starting Control File Autobackup at 11-MAR-10
piece handle=/u02/rman_bkp/rman_ctlbkp/ora_cfc-2526957931-20100311-03 comment=NONE
Finished Control File Autobackup at 11-MAR-10
RMAN> connect auxiliary sys@vtldb
auxiliary database Password:
connected to auxiliary database: VTLDB (not mounted)
RMAN> duplicate target database to vtldb
2> ;
Starting Duplicate Db at 11-MAR-10
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=159 devtype=DISK
allocated channel: ORA_AUX_DISK_2
channel ORA_AUX_DISK_2: sid=157 devtype=DISK
contents of Memory Script:
set until scn 557331;
set newname for datafile 1 to
"/u01/app/oracle/oradata/vtldb/system01.dbf";
set newname for datafile 2 to
"/u01/app/oracle/oradata/vtldb/undotbs01.dbf";
set newname for datafile 3 to
"/u01/app/oracle/oradata/vtldb/sysaux01.dbf";
set newname for datafile 4 to
"/u01/app/oracle/oradata/vtldb/users01.dbf";
restore
check readonly
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 11-MAR-10
using channel ORA_AUX_DISK_1
using channel ORA_AUX_DISK_2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/11/2010 17:07:11
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restoreRegards,
Poorna Prasad. -
Duplicate database and incremental backups
Hello,
I'm currently investigating options to maintain a test server that is "relatively" up-to date compared to the production server.
This is my first contact with RMAN and I went through the manuals but as I did not have a chance to play with it I might have missed something.
This is an Oracle 11.2 (not sure about the full version number) on a Redhat Enterprise Linux.
The test server needs to be writeable and need to be re-synced with the production server approx. once or twice a month. Due to the size of the database (~600GB) we are looking into solutions that could make use of the incremental backups that are already taken on the production database.
While initiating the test server using RMAN DUPLICATE seems to be straight forward, I'm unsure on how the "syncing" can be done in the most efficient way - especially because we are changing the data on the test server.
From the description of the RMAN RECOVER command it's not clear to me if this could be used to "recover" the test database based on the incremental backups to the "current state" of the production database even if the test database has been changed. After reading some posts here, this does not seem to be the case.
Would a restore point make such an incremental restore possible? Creating a (named?) restore point right after the duplication, then once the tests are finished do a flashback to the restore point and then apply the incremental backups that have accumulated since then.
Another options seems to be to create a Standby Database. Then when performing the tests we turn the Standby Database into a Snapshot Standby Database open it in read/write and run the tests. Once we are done, we switch it back to a physical standby. That switchback will rewind the changes and the accumulated redo logs are applied thus "incrementally" catching up with production - which is essentially what we want.
Is there any other solution to this? Or is using a snapshot standby the most efficient solution? If at all possible we would like to avoid transferring the 600GB each time we want to re-sync the test database.
Thanks in advance
ThomasThomas;
RMAN Incremental Backups to Roll Forward a Physical Standby Database might offer some help.
There's a great example of it here :
http://www.oracle-ckpt.com/?s=standby+scn&op.x=0&op.y=0
If you go the Snapshot route make sure you have the space for the Archive on both databases. Also double check you flash recovery area, again on both databases. If you have an issue you may have to use the roll forward.
Best Regards
mseberg -
Duplicate database from RMAN. Physical Dataguard. Error
Hi All,
it is really frustrating. I have used the same script and it worked. versions are same 11.2.0.3.2 on both AIX 5.3 servers. tns entries are correct . listener entries correct.
Here is script and errors
set -x
export NLS_DATE_FORMAT='mm/dd/yyyy hh24:mi:ss'
export ORACLE_BASE=/a0277/oracle
export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
export LD_LIBRARY_PATH=$LIBPATH
export CLASSPATH=$ORACLE_HOME/jlib
export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
export ORACLE_SID=ufms777
rman <<EOF
connect auxiliary sys/sys_143_npr#555@ufms777
connect target sys/sys_143_npr#555@ufms555
run
allocate channel d01 type disk;
allocate channel d02 type disk;
allocate channel d03 type disk;
allocate channel d04 type disk;
allocate channel d05 type disk;
allocate auxiliary channel stby01 type disk;
allocate auxiliary channel stby02 type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert '+DATA/ufms555/','+DATA/','ufms555','ufms777' set db_create_file_dest='+DATA'
set db_unique_name='ufms777'
set control_files='+DATA'
set audit_file_dest='/a0277/oracle/admin/ufms777/adump'
set diagnostic_dest='/a0277/oracle';
release channel d01;
release channel d02;
release channel d03;
release channel d04;
release channel d05;
release channel stby01 ;
release channel stby02 ;
quit;
EOF
ERROR.
+ export NLS_DATE_FORMAT=mm/dd/yyyy hh24:mi:ss
+ export ORACLE_BASE=/a0277/oracle
+ export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
+ export LIBPATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
+ export LD_LIBRARY_PATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
+ export CLASSPATH=/a0277/oracle/app/oracle/product/11203/db_1/jlib
+ export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
+ export ORACLE_SID=ufms777
+ rman
+ 0< /tmp/sh4391202.2
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Oct 15 10:47:25 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN>
connected to auxiliary database: UFMS555 (not mounted)
RMAN>
connected to target database: UFMS555 (DBID=1402717741)
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24>
using target database control file instead of recovery catalog
allocated channel: d01
channel d01: SID=629 device type=DISK
allocated channel: d02
channel d02: SID=681 device type=DISK
allocated channel: d03
channel d03: SID=733 device type=DISK
allocated channel: d04
channel d04: SID=785 device type=DISK
allocated channel: d05
channel d05: SID=837 device type=DISK
allocated channel: stby01
channel stby01: SID=583 device type=DISK
allocated channel: stby02
channel stby02: SID=699 device type=DISK
Starting Duplicate Db at 10/15/2012 10:47:35
contents of Memory Script:
backup as copy reuse
targetfile '/a0143/oracle/product/11203/db_1/dbs/orapwufms555' auxiliary format
'/a0277/oracle/app/oracle/product/11203/db_1/dbs/orapwufms777' targetfile
'/a0143/oracle/product/11203/db_1/dbs/spfileufms555.ora' auxiliary format
'/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora' ;
sql clone "alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''";
executing Memory Script
Starting backup at 10/15/2012 10:47:35
Finished backup at 10/15/2012 10:47:36
sql statement: alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''
contents of Memory Script:
sql clone "alter system set dispatchers =
''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_1 =
''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment=
'''' scope=spfile";
sql clone "alter system set db_create_file_dest =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set db_unique_name =
''ufms777'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set audit_file_dest =
''/a0277/oracle/admin/ufms777/adump'' comment=
'''' scope=spfile";
sql clone "alter system set diagnostic_dest =
''/a0277/oracle'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_1 = ''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment= '''' scope=spfile
sql statement: alter system set db_create_file_dest = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set db_unique_name = ''ufms777'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set audit_file_dest = ''/a0277/oracle/admin/ufms777/adump'' comment= '''' scope=spfile
sql statement: alter system set diagnostic_dest = ''/a0277/oracle'' comment= '''' scope=spfile
Oracle instance shut down
released channel: d01
released channel: d02
released channel: d03
released channel: d04
released channel: d05
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/15/2012 10:47:44
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied
RMAN>
Recovery Manager complete.Thanks Osama for quick response.
Here is output
(NP) SYS@ufms777 AS SYSDBA> startup nomount pfile=$ORACLE_HOME/dbs/initufms777.oraORACLE instance started.
Total System Global Area 1770434560 bytes
Fixed Size 2222320 bytes
Variable Size 1056966416 bytes
Database Buffers 704643072 bytes
Redo Buffers 6602752 bytes
(NP) SYS@ufms777 AS SYSDBA> eit
SP2-0042: unknown command "eit" - rest of line ignored.
(NP) SYS@ufms777 AS SYSDBA> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
k801ora@jd1su277 in /exports/scripts : sqlplus sys/sys_143_npr#555@ufms777 as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 15 11:08:04 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
(NP) SYS@ufms777 AS SYSDBA> -
Hi ALL,
While doing duplicate database using RMAN i m getting following error.
released channel: d1
RMAN-00571: =================================
RMAN-00569: === ERROR MESSAGE STACK FOLLOWS ======
RMAN-00571: =======================================
RMAN-03002: failure of Duplicate Db command at 05/14/2008 08:08:23
RMAN-03015: error occurred in stored script Memory Script
ORA-06550: line 1, column 1730:
PLS-00302: component 'LOGTERMINAL_OBJ' must be declared
ORA-06550: line 1, column 1716:
PL/SQL: Statement ignored
Recovery Manager complete.
Please Help
Regards
Mitalthanks Werner for reply ,
the above problem is solved, the proble was that you have said. the problem was realted to version . the target db was of 10.2.0.3 and the rman aux db is at 10.2.0.4
i have changed auxiliary db to 10.2.0.3 and the problem is resolved.
but now i am facing some diff. error.
setup:
backup server :\\bkpsvr\backup$\
backup location : \\bkpsvr\backup$\
target server \\tgt_svr
auxiliary server :\\aux_svr\ :
restore location : G:\ORACLE\ORADATA\ERPBI2DV\
during duplicate db commad while reading from backup piece it is givnig following error.
ORA-19870: error reading backup piece \\BRNORA10\BACKUP$\BI2\DF_ERPBI2_654625830_4599_1
ORA-19504: failed to create file "G:\ORACLE\ORADATA\ERPBI2DV\OWB_ERPBI2DV_01"
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
released channel: d1
RMAN-00571: ==============================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ======================================
RMAN-03002: failure of Duplicate Db command at 05/14/2008 12:39:14
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 100 found to restore
RMAN-06023: no backup or copy of datafile 99 found to restore
please help.
Message was edited by:
mits -
Error while duplicate database for standby
Hello Guys,
Both of my database are 10gR2 and Linux is the operating system.
I am trying to create a standby database for my production database.
I have matched the directory structure of primary and standby database and there is no conflict. Directory permissions are also set.
After taking the rman backup from production database when i connect auxiliary database from production. I run this command to duplicate database and create standby database.
rman
set until sequence XXXX;
duplicate target database for standby dorecover nofilenamecheck;
I get this error:
executing Memory Script
executing command: SET until clause
Starting restore at 04-JUN-11
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /tmp/backup_files/standby_control_1jme2far_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/04/2011 21:00:37
RMAN-03015: error occurred in stored script Memory Script
ORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
*/tmp/backup_files/standby_control_1jme2far_1_1 file exists*
* spfileORCL.ora* exists on both servers in same directory and same path.
Can you please suggest where is the problem?
Thank you so much.
ImranORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
ORA-27037: unable to obtain file statusLinux-x86_64 Error: 2: No such file or directory
Might the backup piece not exist or file is unae to read at this time. Can you check is this physically exist Or not?
And preferred to take new fresh backup and perform duplicate -
How do I move databases using RMAN with minimal downtime ?
How can I do the following using RMAN ?
DB version 10.2.0.4
Redhat 5.2
I am not using an rman catalogIn the past I have moved large databases from 1 server to another with 5 minutes downtime using backups done the old way by putting tablespaces in backup mode and making copies of the datafiles.
I used the following method :
========> Part 1
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE set DATABASE "VPMY" RESETLOGS ARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 3
....etc
LOGFILE
......... log file names
DATAFILE
... list of datafiles
CHARACTER SET US7ASCII;
========> Part 2
Up until the scheduled downtime, I would copy the archive logs from the production server to the new and run the following to apply the latest archive logs:
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
->AUTO<-
========> Part 3
After applying the last archive log while in restrict mode -
ALTER DATABASE OPEN resetlogs;
My question is, how do I do Part 2 in RMAN. I have managed to duplicate databases and restore databases using rman to a different server, but this obviously only covers the data upto the backup point. How can I do the above parts 1 -3 with downtime of about 5 minutes like I have done using old methods ?
Any help is much appreciated/you should be able to recover as you go with rman as well..
copy the archived logs from A to B and apply them as they come in.
run
set until sequence x thread 1;
recover database;
if you're not opening the database after recovery you can just increment the set until sequence as the logs come in and do a new recovery. -
Hi all,
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/17/2010 09:18:42
RMAN-03015: error occurred in stored script Memory Script
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
I have got stuck with this error, while iam trying to duplicate database using rman from active database clause, I have checked in backup location for target and the autobackups are still available.
thanks in advance.Handle: user12984527
Status Level: Newbie
Registered: Apr 15, 2010
Total Posts: 72
Total Questions: 28 (25 unresolved)
so many questions & so few answers,
when all else fails, Read The Fine Manuals
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmbackp.htm#BRADV143 -
Standby database using rman backup
I'm using oracle11g on my work place and now i wont to create duplicate database using rman backup.
at the time i installed only oracle 11g software.
Pls guide me to overcome the problem. i'm newcomer to oracle.
Pls give the steps.
Edited by: user10444101 on Apr 30, 2010 2:17 AMuser10444101 wrote:
I'm using oracle11g on my work place and now i wont to create duplicate database using rman backup.
at the time i installed only oracle 11g software.
Pls guide me to overcome the problem. i'm newcomer to oracle.
Pls give the steps.
Edited by: user10444101 on Apr 30, 2010 2:17 AMSee the following link
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmdupdb.htm#i1008564 -
Unable to recover database after rman recovery and database open resetlogs
I am running Oracle 10.2.0.5 on OpenSUSE 9. I have been trying to upgrade the database to 11g, through dbua. I was getting stuck at one point during the Oracle Server install and the upgrade failed and I was forced to restore the database to an earlier backup.
Below is the current place that I am stuck. As you can see I opened the database multiple times and reset the logs. Now I am afraid that my controlfile and redo log backups are out of sync and i can't get them back on track. Before when I actually got the database recovered RMAN would immediately throw:
RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT rows
OPA-00600: ORA-00600: internal error code, arguments: ...
The database would open with ALTER DATABASE RESETLOGS but any query on non-system tables would fail and throw:
ORA-04045: errors during recompilation/revalidation of LCRS_DEV1.FACILITY_REF
ORA-00600: internal error code, arguments: [17069], [0x1158ED180], [], [], [],
I hope I have not dug myself into too deep of a hole here.
Here is the trace from my most recent attempt.
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area 3070230528 bytes
Fixed Size 2099424 bytes
Variable Size 301991712 bytes
Database Buffers 2751463424 bytes
Redo Buffers 14675968 bytes
RMAN> list incarnation of database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of list command at 08/02/2011 15:49:04
ORA-01507: database not mounted
RMAN> restore controlfile from autobackup;
Starting restore at 02-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
recovery area destination: /opt/oracle/flash_recovery_area
database name (or database unique name) used for search: LCRSDEV
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758129928_73jr2s7p_.bkp
channel ORA_DISK_1: control file restore from autobackup complete
output filename=/opt/oracle/oradata/LCRSDEV/control01.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control02.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control03.ctl
Finished restore at 02-AUG-11
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> list incarnation of database;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 LCRSDEV 756543625 PARENT 1 22-OCT-05
2 2 LCRSDEV 756543625 PARENT 525876 20-JAN-11
3 3 LCRSDEV 756543625 PARENT 92348137 18-JUL-11
4 4 LCRSDEV 756543625 PARENT 95654931 01-AUG-11
5 5 LCRSDEV 756543625 PARENT 95675699 01-AUG-11
6 6 LCRSDEV 756543625 PARENT 95676699 02-AUG-11
7 7 LCRSDEV 756543625 PARENT 95676700 02-AUG-11
8 8 LCRSDEV 756543625 CURRENT 95676701 02-AUG-11
RMAN> restore database until scn 95676700;
Starting restore at 02-AUG-11
Starting implicit crosscheck backup at 02-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
Crosschecked 6 objects
Finished implicit crosscheck backup at 02-AUG-11
Starting implicit crosscheck copy at 02-AUG-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 02-AUG-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758129928_73jr2s7p_.bkp
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/02/2011 15:52:04
RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> restore database;
Starting restore at 02-AUG-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /opt/oracle/oradata/LCRSDEV/system01.dbf
restoring datafile 00002 to /opt/oracle/oradata/LCRSDEV/undotbs01.dbf
restoring datafile 00003 to /opt/oracle/oradata/LCRSDEV/sysaux01.dbf
restoring datafile 00004 to /opt/oracle/oradata/LCRSDEV/users01.dbf
restoring datafile 00005 to /opt/oracle/oradata/LCRSDEV/LCRS_TBS.dbf
channel ORA_DISK_1: reading from backup piece /opt/oracle/flash_recovery_area/LCRSDEV/backupset/2011_07_22/o1_mf_nnndf_TAG20110722T111922_72m8rc5x_.bkp
channel ORA_DISK_1: restored backup piece 1
piece handle=/opt/oracle/flash_recovery_area/LCRSDEV/backupset/2011_07_22/o1_mf_nnndf_TAG20110722T111922_72m8rc5x_.bkp tag=TAG20110722T111922
channel ORA_DISK_1: restore complete, elapsed time: 00:23:36
Finished restore at 02-AUG-11
RMAN> recover database until scn 95676700;
Starting recover at 02-AUG-11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/02/2011 16:16:28
RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> recover database;
Starting recover at 02-AUG-11
using channel ORA_DISK_1
starting media recovery
archive log thread 1 sequence 90 is already on disk as file /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_90_72ml85v3_.arc
archive log filename=/opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73jr20qc_.arc thread=1 sequence=1
unable to find archive log
archive log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/02/2011 16:25:04
RMAN-06054: media recovery requesting unknown log: thread 1 seq 1 lowscn 95676701Thanks for the reply Hemant. I have reset the database for the controlfile that I am using as backup and now I am not able to recover until the correct SCN. I am thinking that my recovery catalog is bad. If I mount with the current controlfile I have this list of incarnations:
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
*1 1 LCRSDEV 756543625 PARENT 1 22-OCT-05*
*2 2 LCRSDEV 756543625 PARENT 525876 20-JAN-11*
*3 3 LCRSDEV 756543625 PARENT 92348137 18-JUL-11*
*4 4 LCRSDEV 756543625 PARENT 95654931 01-AUG-11*
*5 5 LCRSDEV 756543625 PARENT 95675699 01-AUG-11*
*6 6 LCRSDEV 756543625 PARENT 95676699 02-AUG-11*
*7 7 LCRSDEV 756543625 PARENT 95676700 02-AUG-11*
*8 8 LCRSDEV 756543625 PARENT 95676701 02-AUG-11*
*9 9 LCRSDEV 756543625 CURRENT 95676702 02-AUG-11*
However if I restore the controlfile to the earlier version I am getting the following output from the process:
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area 3070230528 bytes
Fixed Size 2099424 bytes
Variable Size 301991712 bytes
Database Buffers 2751463424 bytes
Redo Buffers 14675968 bytes
RMAN> restore controlfile from '/opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_07_22/o1_mf_s_757164997_72m9rqw3_.bkp';
Starting restore at 03-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output filename=/opt/oracle/oradata/LCRSDEV/control01.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control02.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control03.ctl
Finished restore at 03-AUG-11
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> list incarnation of database;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 LCRSDEV 756543625 PARENT 1 22-OCT-05
2 2 LCRSDEV 756543625 PARENT 525876 20-JAN-11
3 3 LCRSDEV 756543625 CURRENT 92348137 18-JUL-11
RMAN> restore database until scn 92348137;
Starting restore at 03-AUG-11
Starting implicit crosscheck backup at 03-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 03-AUG-11
Starting implicit crosscheck copy at 03-AUG-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 03-AUG-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_01/o1_mf_1_1_73g3hn6o_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_01/o1_mf_1_2_73g3hnxq_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_01/o1_mf_1_1_73g0rts6_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_134_72v9gv4s_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_138_72v9p4b4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_120_72v8wwg0_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_121_72v8x5ty_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_131_72v9cnrv_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_139_72v9q5ok_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_137_72v9n4t5_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_136_72v9l88q_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_123_72v8ytm8_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_132_72v9dcxd_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_124_72v8zkg0_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_128_72v96qm1_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_135_72v9jqmx_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_129_72v98q3r_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_125_72v91g3b_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_118_72v8v8r4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_127_72v9626w_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_130_72v9bqtb_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_141_72vncy6g_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_122_72v8ycd4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_126_72v94cns_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_133_72v9fb17_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_140_72vn6wgo_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_119_72v8v9hf_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73j3wo01_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_2_73josgf1_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73jr20qc_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_2_73jh223h_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73josflf_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73jvqdqs_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_3_73josh91_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73j91rh9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_91_72mqlnx9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_111_72mrdr5m_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_96_72mqx958_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_114_72mrgsf9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_94_72mqs6gj_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_102_72mr3893_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_99_72mr2h6c_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_104_72mr5hfm_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_109_72mrc83z_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_98_72mr080w_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_93_72mqq36m_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_97_72mqz0mm_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_116_72mrk268_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_101_72mr31yv_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_110_72mrddhg_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_95_72mqv3hp_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_105_72mr5vq4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_115_72mrjd2s_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_106_72mr7hnt_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_100_72mr2qfc_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_112_72mrfc5j_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_107_72mr909t_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_103_72mr4pol_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_113_72mrfsb9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_117_72mrl5mf_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_108_72mrb13l_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_90_72ml85v3_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_92_72mqnxz1_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_143_72y6ww71_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_144_72ybybps_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_142_72xt10j7_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_145_72yccy5z_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_01/o1_mf_s_758043324_73g3jfxx_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_01/o1_mf_s_758035850_73fw6vrc_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758133684_73jvr5px_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758127608_73jot9x0_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758109276_73j3xfom_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758129928_73jr2s7p_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_07_22/o1_mf_s_757164997_72m9rqw3_.bkp
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/03/2011 12:53:19
RMAN-20208: UNTIL CHANGE is before RESETLOGS change
Edited by: K Doyle on Aug 3, 2011 10:22 AM -
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 -
RMAN duplicate database suddenly slow
Hi Everyone,
I posted at wrong forum last time, sorry about that.
I used RMAN to duplicate database to different box in the same local network area. Here are the scenario:
boxA: target database (PROD) -- 250G
database:Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
OS:Windows Server 2003 Enterprise x64 Edition
boxB: cloned database
database:Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
OS:Windows Server 2003 Enterprise x64 Edition
After prepared necessary steps,listener and tnsnames,etc, I run the following scripts:
C:\>rman target sys/[email protected] auxiliary sys/[email protected] catalog rman/rman
RMAN>RUN
SET NEWNAME FOR DATAFILE 1 TO 'D:\oracle\undb\system01.dbf';
.... (some set newname omitted here)
SET NEWNAME FOR DATAFILE 15 TO 'D:\oracle\undb\RMAN01.ORA';
SET NEWNAME FOR TEMPFILE 1 TO 'D:\oracle\undb\TEMP01.ORA';
# to manually allocate three auxiliary channels for disk issue
ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK;
DUPLICATE TARGET DATABASE TO undb
LOGFILE
GROUP 1 ('D:\oracle\undb\redo01.log') SIZE 100M REUSE,
GROUP 2 ('D:\oracle\undb\redo02.log') SIZE 100M REUSE,
GROUP 3 ('D:\oracle\undb\redo03.log') SIZE 100M REUSE;
database duplicated successfully last week.
Monday, I created another database in boxA (testdb) and used the similiar scripts (just made necessary changed, database name,file names,etc), and the duplication also successful.
Yesterday, I tried to duplicate PROD, did the exactly same thing as Monday,
everything was very slow,
RMAN>report schema; took over 30 minutes,
RMAN>list backup;took another 30 minutes,
then I delete testdb in boxA, nothing better.
I have tried from boxA, also tried from boxB, things were similiar.
(when test from boxB, I input: rman target sys/[email protected] auxiliary sys/[email protected] catalog rman/[email protected] )
when I input:
RMAN> report schema;
and checked from Enterprise Manager,
SELECT RECID , STAMP , THREAD# , SEQUENCE# , FIRST_CHANGE# LOW_SCN , FIRST_TIME LOW_TIME , NEXT_CHANGE# NEXT_SCN ,
RESETLOGS_CHANGE# , RESETLOGS_TIME FROM V$LOG_HISTORY WHERE RECID BETWEEN :1 AND :1 AND RESETLOGS_TIME IS NOT NULL
AND STAMP >= :1 ORDER BY RECID
the query is running for a long time, my V$LOG_HISTORY has 18688 rows, select count(*) from V$LOG_HISTORY took less than 1 second.
I am wondering what is the reason?
Can anybody give me a clue?
Thank you very much.Thanks Alan,
Hardware spec:
duplicate database server CPU: 2x1995 Mhz ,RAM:4G, hard disk 500G
production server CPU: 2x2993 Mhz ,RAM:5G,hard disk 900G
the production server is better than the duplicate server. the production only run Oracle 10g server, the duplicate server is brand new and nothing is runing except Windows and Oracle software only.
I noticed that when in peek hour, RMAN is really slow, no matter which box I run the RMAN, when in non peek hour, it's reasonable.
Is there anything I can do on the RMAN side?
Thanks again -
Rman Duplicate database synchronization problem
Hi
I have the Oracle database 9.2.0.1.0 .I've created Duplicate database on another computer with the same structure and Oracle 9.2.0.1.0 too.
Now, I want to synchronize my duplicate by primary database, and I copied backup of all datafiles & archive logs & and backup that was taken by RMAN, but in the middle of processing I got this error.
printing stored script: Memory Script
set until scn 443620578;
recover
clone database
delete archivelog
executing script: Memory Script
executing command: SET until clause
Starting recover at 31-MAR-03
starting media recovery
channel ch1: starting archive log restore to default destination
channel ch1: restoring archive log
archive log thread=1 sequence=106
channel ch1: restored backup piece 1
piece handle=C:\ORACLE\ORA9I\DATABASE\23EJCO3D_1_1 tag=TAG20030331T114405 params=NULL
channel ch1: restore complete
archive log filename=C:\ORACLE\ORADATA\DELLDUP\ARCHIVE\DELLDUPT001S00106.ARC thr
ead=1 sequence=106
channel clone_default: deleting archive log(s)
archive log filename=C:\ORACLE\ORADATA\DELLDUP\ARCHIVE\DELLDUPT001S00106.ARC rec
id=1 stamp=490112362
media recovery complete
Finished recover at 31-MAR-03
printing stored script: Memory Script
shutdown clone;
startup clone nomount ;
executing script: Memory Script
RMAN-00571:===============================================
RMAN-00569: ===============ERROR MESSAGE STACK FOLLOWS
RMAN-00571:===============================================
RMAN-03002: failure of Duplicate Db command at 03/31/2003 15:20:53
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested cancel of current operation
What should I Do?
txI beleive... and correct me if I'm wrong, but the duplicate command will open the db created with RESET LOGS. Thereby meaning you can't use the archive logs.
-
ORA:01013 with Duplicate Database - RMAN
Hi,
I havea demo database on server1 and am creating a clone database on server2 with RMAN duplicate command. I have the catalog on server1 itself. I created the backups of the database and executed RMAN command from server2 with
server1 in open status and server2 in nomount state.
the command i ran was:
duplicate target database to clonedb
until logseq 338 thread 1
pfile=/u01/app/oracle/product/9.2.0.1.0/dbs/initclonedb.ora
logfile
'/u01/app/oracle/oradata/clonedb/redo01.log' size 1m,
'/u01/app/oracle/oradata/clonedb/redo02.log' size 1m;
Please let me know how to overcome this error..
Thanks,
Raj
This is the error i got along with the log it created...
Starting Duplicate Db at 28-OCT-04
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=14 devtype=DISK
printing stored script: Memory Script
set until scn 130734;
set newname for datafile 1 to
"/u02/oradata/clonedb/system01.dbf";
set newname for datafile 2 to
"/u03/oradata/clonedb/undotbs01.dbf";
set newname for datafile 3 to
"/u02/oradata/clonedb/testtbs_01.dbf";
set newname for datafile 4 to
"/u02/oradata/clonedb/system02.dbf";
set newname for datafile 5 to
"/u02/oradata/clonedb/rmantbs_01.dbf";
restore
check readonly
clone database
executing script: Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 28-OCT-04
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00001 to /u02/oradata/clonedb/system01.dbf restoring datafile 00002 to /u03/oradata/clonedb/undotbs01.dbf
restoring datafile 00003 to /u02/oradata/clonedb/testtbs_01.dbf
restoring datafile 00004 to /u02/oradata/clonedb/system02.dbf restoring datafile 00005 to /u02/oradata/clonedb/rmantbs_01.dbf
channel ORA_AUX_DISK_1: restored backup piece 1 piece handle=/u05/backup/demodb/full/DEMODB_20041027_05g3jeeq_1_1 tag=FULL params=NULL channel ORA_AUX_DISK_1: restore complete Finished restore at 28-OCT-04 sql statement: CREATE CONTROLFILE REUSE SET DATABASE "clonedb" RESETLOGS ARCHIVELOG
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 680
LOGFILE
GROUP 1 '/u01/app/oracle/oradata/clonedb/redo01.log' SIZE 1048576 ,
GROUP 2 '/u01/app/oracle/oradata/clonedb/redo02.log' SIZE 1048576
DATAFILE
'/u02/oradata/clonedb/system01.dbf'
CHARACTER SET WE8ISO8859P1
printing stored script: Memory Script
switch clone datafile all;
executing script: Memory Script
datafile 2 switched to datafile copy
input datafilecopy recid=1 stamp=540710832 filename=/u03/oradata/clonedb/undotbs01.dbf
datafile 3 switched to datafile copy
input datafilecopy recid=2 stamp=540710832 filename=/u02/oradata/clonedb/testtbs_01.dbf
datafile 4 switched to datafile copy
input datafilecopy recid=3 stamp=540710832 filename=/u02/oradata/clonedb/system02.dbf
datafile 5 switched to datafile copy
input datafilecopy recid=4 stamp=540710832 filename=/u02/oradata/clonedb/rmantbs_01.dbf
printing stored script: Memory Script
set until scn 130734;
recover
clone database
delete archivelog
executing script: Memory Script
executing command: SET until clause
Starting recover at 28-OCT-04
using channel ORA_AUX_DISK_1
starting media recovery
channel ORA_AUX_DISK_1: starting archive log restore to default destination channel ORA_AUX_DISK_1: restoring archive log archive log thread=1 sequence=337 channel ORA_AUX_DISK_1: restored backup piece 1 piece handle=/u05/backup/demodb/arch/arc_DEMODB_20041027_06g3jef2_1_1 tag=TAG20041027T134050 params=NULL channel ORA_AUX_DISK_1: restore complete archive log filename=/u02/oradata/clonedb/arch/1_337.arc thread=1 sequence=337 channel clone_default: deleting archive log(s) archive log filename=/u02/oradata/clonedb/arch/1_337.arc recid=1 stamp=540710834 media recovery complete Finished recover at 28-OCT-04
printing stored script: Memory Script
shutdown clone;
startup clone nomount pfile= '/u01/app/oracle/product/9.2.0.1.0/dbs/initclonedb.ora';
executing script: Memory Script
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/28/2004 06:28:26
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested cancel of current operation
Recovery Manager complete.HI,
# STBY:
SQL> startup nomount
ORACLE instance started.
Total System Global Area 242208768 bytes
Fixed Size 2227176 bytes
Variable Size 184550424 bytes
Database Buffers 50331648 bytes
Redo Buffers 5099520 bytes
# PRIMARY:
RMAN> CONNECT TARGET sys/oracle@JOHN;
connected to target database: JOHN (DBID=1575580406)
RMAN> CONNECT AUXILIARY sys/oracle@JOHN_DB2;
Until this you did correct. now just in a run block, like
eg
run
allocate channel ....
allocate channel...
duplicate target database for standby from active database; -
Duplicate database command fails with RMAN-06023
Hello,
I am trying to test out the duplicate database command in RMAN and am running into some issues.
I did a backup of my test database, copied the backup files to a second server, and now I'm trying to run the duplicate command and I get RMAN-06023 errors for all of my datafiles.
I did crosschecks on my backupsets and they showed as available. They are in the same location on the new server, with the same permissions. There are no recent archived logs, as this is a very quiet environment.
My commands and output (edited slightly) were as follows:
RMAN> run {
2> allocate channel d1 device type disk;
3> allocate channel d2 device type disk;
4> backup database;
5> }
allocated channel: d1
channel d1: sid=32 devtype=DISK
allocated channel: d2
channel d2: sid=36 devtype=DISK
Starting backup at 03-JUL-07
channel d1: starting full datafile backupset
channel d1: specifying datafile(s) in backupset
channel d2: starting full datafile backupset
channel d2: specifying datafile(s) in backupset
input datafile fno=00012 name=/database/oradata/source/matrix_ts01.dbf
input datafile fno=00004 name=/database/oraindex/source/ind_ts01.dbf
input datafile fno=00006 name=/database/oradata/source/users_ts01.dbf
input datafile fno=00003 name=/database/oradata/source/drsys01.dbf
input datafile fno=00007 name=/database/oradata/source/ORACLEORADATATST2CWMLITE01.DBF
input datafile fno=00009 name=/database/oradata/source/ORACLEORADATATST2ODM01.DBF
input datafile fno=00005 name=/database/oradata/source/tools_ts01.dbf
channel d2: starting piece 1 at 03-JUL-07
including current SPFILE in backupset
including current controlfile in backupset
input datafile fno=00011 name=/database/oradata/source/ORACLEORADATADATA.DBF
input datafile fno=00001 name=/database/oradata/source/system_ts01.dbf
input datafile fno=00002 name=/database/oradata/source/undo_ts01.dbf
input datafile fno=00008 name=/database/oradata/source/ORACLEORADATATST2EXAMPLE01.DBF
input datafile fno=00010 name=/database/oradata/source/ORACLEORADATATST2XDB01.DBF
channel d1: starting piece 1 at 03-JUL-07
channel d2: finished piece 1 at 03-JUL-07
piece handle=/database/oracle/product/9.2.0/dbs/0ciltjgn_1_1 comment=NONE
channel d2: backup set complete, elapsed time: 00:08:17
channel d1: finished piece 1 at 03-JUL-07
piece handle=/database/oracle/product/9.2.0/dbs/0biltjgn_1_1 comment=NONE
channel d1: backup set complete, elapsed time: 00:09:22
Finished backup at 03-JUL-07
released channel: d1
released channel: d2
** at this point I copied the files listed above to same directory on destination server **
RMAN> connect auxiliary sys/[email protected]
connected to auxiliary database: destination (not mounted)
RMAN> run {
2> allocate auxiliary channel aux1 device type disk;
3> allocate auxiliary channel aux2 device type disk;
4> duplicate target database to destination nofilenamecheck;
5> }
llocated channel: aux1
channel aux1: sid=10 devtype=DISK
allocated channel: aux2
channel aux2: sid=13 devtype=DISK
Starting Duplicate Db at 03-JUL-07
printing stored script: Memory Script
set until scn 4873550;
set newname for datafile 1 to
"/database/oradata/destination/system_ts01.dbf";
set newname for datafile 2 to
"/database/oradata/destination/undo_ts01.dbf";
set newname for datafile 3 to
"/database/oradata/destination/drsys01.dbf";
set newname for datafile 4 to
"/database/oraindex/destination/ind_ts01.dbf";
set newname for datafile 5 to
"/database/oradata/destination/tools_ts01.dbf";
set newname for datafile 6 to
"/database/oradata/destination/users_ts01.dbf";
set newname for datafile 7 to
"/database/oradata/destination/ORACLEORADATATST2CWMLITE01.DBF";
set newname for datafile 8 to
"/database/oradata/destination/ORACLEORADATATST2EXAMPLE01.DBF";
set newname for datafile 9 to
"/database/oradata/destination/ORACLEORADATATST2ODM01.DBF";
set newname for datafile 10 to
"/database/oradata/destination/ORACLEORADATATST2XDB01.DBF";
set newname for datafile 11 to
"/database/oradata/destination/ORACLEORADATADATA.DBF";
set newname for datafile 12 to
"/database/oradata/destination/matrix_ts01.dbf";
restore
check readonly
clone database
executing script: Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 03-JUL-07
released channel: aux1
released channel: aux2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/03/2007 14:35:13
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Thanks for any help,Hi,
Where is you RMAN catalog? I think you forgot to connect to it.
To duplicate a database check that folowing applies:
1-the auxiliary instance is mounted
2-the listener for the auxiliary db is up
3-the backup pieces that RMAN is going to restore ARE AVAILABLE on the
secondary/auxilary server with SAME NAME the have on the primary server (you can use NFS to avoid the copy of the pieces from primary to auxuliary box)
Remember to be conected to both: target and auxiliary db.
I have extracted the folowing lines from an RMAN script I used to create an standby database with the DUPLICATE command (the RMAN catalog was in the primary db controlfile, and the command was run on the primary server:
$ rman target / nocatalog auxiliary sys/pwd@standbycard log=crCARD.log
RMAN> duplicate target database for standby nofilenamecheck dorecover;
I hope this helps
Gustavo Restuccia
Maybe you are looking for
-
Can you remove a date and time stamp off a photo that has already been taken?
Can you remove a date and time stamp off a photo that has already been taken?
-
Dear Sir, We use EP6 SP14, for the KM portal. May I know what is the date modifiaction of each folder defined?? because I found on my Portal server, the date in Modification of every folders are the same. When will update to the latest date? Please k
-
Unable to open TXT file in memory
Greetings, I would be very glad for any help. I am trying to import Text file in main memory of Nokia E60 with this: InputStream is = null; FileConnection fc = null; try { fc = (FileConnection)Connector.openInputStream("file:///c:/Data/Export.txt");
-
Auto text/Punctuation not working correctly?
Hi there, I've recently got a Curve 9320 model, and although the capitalization and auto grammar and punctuation work fine when I'm typing text messages, it will not work on apps, for example I use AIM a lot, and the words I type will be lower case,
-
Hi all I have an IDES EP 6.0 system along with BW 3.5 in the same system. Now when i logon to the sld home page through http://localhost:50000/sld, i need to see the technical description of the BW system Will i be able to see that? Pls help. Thanks