RMAN duplicatye command failure

Hi blokes,
This is the error message I got when I was trying to duplicate my prod. database (Release 9.2.0.7.0) to another server..
Any clue to this would be highly welcome.....
ERROR MESSAGE
released channel: ch00
released channel: ch01
released channel: ch02
released channel: ch03
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 04/04/2007 06:57:49
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-19563: header validation failed for file
Recovery Manager complete.
Script ./duplicate_prod_qaupgrad_rman.sh
==== ended in error on Wed Apr 4 06:57:49 BST 2007 ==== echo
Below is the RMAN scripts I used ;
# view duplicate_prod_qaupgrad_rman.sh
"duplicate_prod_qaupgrad_rman.sh" [Read only] 150 lines, 5663 characters
#!/bin/sh
# $Header: hot_database_backup.sh,v 1.9 2002/02/06 16:48:56 lstrub Stab $
#bcpyrght
#* $VRTScprght: Copyright 1993 - 2002 VERITAS Software Corporation, All Rights Reserved $ *
#ecpyrght
# duplicate_prod_qaupgrad_rman.sh
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/THUSssh/bin:/opt/THUSssh/bin:/opt/THUSapache1/sbin:/opt/THUSaxiom-rad/sbin:/opt/THUSe
xim4/sbin:/opt/THUSssh/sbin:/opt/THUSsudo/sbin:/opt/THUSudsyslogd/sbin:/opt/THUSwrap/sbin:/opt/VRTSvxfs/sbin:/opt/SUNWexplo/b
in:/opt/SUNWppro/bin:/opt/SUNWrtvc/bin:/opt/SUNWsan/bin:/opt/THUSapache1/bin:/opt/THUSberkeleydb/bin:/opt/THUSexpat/bin:/opt/
THUSlibxml2/bin:/opt/THUSorca/bin:/opt/THUSperl5/bin:/opt/THUSrsync/bin:/opt/THUSssh/bin:/opt/THUSssl/bin:/opt/THUSsudo/bin:/
opt/THUStomcat/bin:/opt/VRTSlic/bin:/opt/VRTSvcs/bin:/opt/VRTSweb/bin
export PATH
echo $PATH >/tmp/qaaxiom_recover.path
# Determine the user which is executing this script.
CUSER=`id |cut -d"(" -f2 | cut -d ")" -f1`
# Put output in <this file name>.out. Change as desired.
# Note: output directory requires write permission.
RMAN_LOG_FILE=/usr/openv/netbackup/scripts/oracle/logs/duplicate_prod_qaupgrad_rman.log.`date '+%a'`
CMD_FILE=/usr/openv/netbackup/scripts/oracle/bin/duplicate_prod_qaupgrad_rman.rcv
# You may want to delete the output file so that backup information does
# not accumulate. If not, delete the following lines.
if [ -f "$RMAN_LOG_FILE" ]
then
rm -f "$RMAN_LOG_FILE"
fi
# Initialize the log file.
echo >> $RMAN_LOG_FILE
chmod 666 $RMAN_LOG_FILE
# Log the start of this script.
echo Script $0 >> $RMAN_LOG_FILE
echo ==== started on `date` ==== >> $RMAN_LOG_FILE echo >> $RMAN_LOG_FILE
# Replace /db/oracle/product/ora81, below, with the Oracle home path.
I got the following error messages

Hi blokes,
This is the error message I got when I was trying to duplicate my prod. database (Release 9.2.0.7.0) to another server..
Any clue to this would be highly welcome.....
ERROR MESSAGE
released channel: ch00
released channel: ch01
released channel: ch02
released channel: ch03
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 04/04/2007 06:57:49
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-19563: header validation failed for file
Recovery Manager complete.
Script ./duplicate_prod_qaupgrad_rman.sh
==== ended in error on Wed Apr 4 06:57:49 BST 2007 ==== echo
Below is the RMAN scripts I used ;
# view duplicate_prod_qaupgrad_rman.sh
"duplicate_prod_qaupgrad_rman.sh" [Read only] 150 lines, 5663 characters
#!/bin/sh
# $Header: hot_database_backup.sh,v 1.9 2002/02/06 16:48:56 lstrub Stab $
#bcpyrght
#* $VRTScprght: Copyright 1993 - 2002 VERITAS Software Corporation, All Rights Reserved $ *
#ecpyrght
# duplicate_prod_qaupgrad_rman.sh
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/THUSssh/bin:/opt/THUSssh/bin:/opt/THUSapache1/sbin:/opt/THUSaxiom-rad/sbin:/opt/THUSe
xim4/sbin:/opt/THUSssh/sbin:/opt/THUSsudo/sbin:/opt/THUSudsyslogd/sbin:/opt/THUSwrap/sbin:/opt/VRTSvxfs/sbin:/opt/SUNWexplo/b
in:/opt/SUNWppro/bin:/opt/SUNWrtvc/bin:/opt/SUNWsan/bin:/opt/THUSapache1/bin:/opt/THUSberkeleydb/bin:/opt/THUSexpat/bin:/opt/
THUSlibxml2/bin:/opt/THUSorca/bin:/opt/THUSperl5/bin:/opt/THUSrsync/bin:/opt/THUSssh/bin:/opt/THUSssl/bin:/opt/THUSsudo/bin:/
opt/THUStomcat/bin:/opt/VRTSlic/bin:/opt/VRTSvcs/bin:/opt/VRTSweb/bin
export PATH
echo $PATH >/tmp/qaaxiom_recover.path
# Determine the user which is executing this script.
CUSER=`id |cut -d"(" -f2 | cut -d ")" -f1`
# Put output in <this file name>.out. Change as desired.
# Note: output directory requires write permission.
RMAN_LOG_FILE=/usr/openv/netbackup/scripts/oracle/logs/duplicate_prod_qaupgrad_rman.log.`date '+%a'`
CMD_FILE=/usr/openv/netbackup/scripts/oracle/bin/duplicate_prod_qaupgrad_rman.rcv
# You may want to delete the output file so that backup information does
# not accumulate. If not, delete the following lines.
if [ -f "$RMAN_LOG_FILE" ]
then
rm -f "$RMAN_LOG_FILE"
fi
# Initialize the log file.
echo >> $RMAN_LOG_FILE
chmod 666 $RMAN_LOG_FILE
# Log the start of this script.
echo Script $0 >> $RMAN_LOG_FILE
echo ==== started on `date` ==== >> $RMAN_LOG_FILE echo >> $RMAN_LOG_FILE
# Replace /db/oracle/product/ora81, below, with the Oracle home path.
I got the following error messages

Similar Messages

  • RMAN-06002: command

    Our dataabse is Oracle 11g2/Redhat 5.2. I am creating a RAMN script for scheduling a cron job :MAN> CREATE SCRIPT level_0_backup
    backup incremental level 0 cumulative device type disk tag 'level0' database;
    backup device type disk tag 'level0' archivelog all not backed up delete all input;
    2> 3> 4> 5>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of create script command at 08/27/2010 13:43:37
    RMAN-06002: command not allowed when not connected to a recovery catalogCan I create a script without using recovery catalog?
    Or is there a way to create a rman backup job scheduled with the oS without using recovery catalog?

    Can I create a script without using recovery catalog?No
    Or is there a way to create a rman backup job scheduled with the oS without using recovery catalog?yes using cronjob
    refer the links and threads:
    http://www.oracle-base.com/articles/misc/OracleShellScripting.php
    http://jhdba.wordpress.com/2008/03/20/rman-backup-script-example/
    Re: schedule rman using cron job
    Re: rman automatic batch script (windows)

  • A possible bug in RMAN CATALOG command in 10g on Linux (SLES9 SP3)

    Hi,
    I ran into this issue while using RMAN command "CATALOG DATAFILECOPY <filename> TAG <tagname>". In this instance, RMAN is actually trying to write 8K data at block 1. Since a copy is being cataloged, it doen't make any sense to modify it. Please note that this modification doesn't happen without TAG option. This behavious doesn't seem to be present on Oracle 9 on Solaris 8. For more details, please check the following thread:
    help with RMAN CATALOG command
    Thanks,
    Raghu.

    Hi Steve,
    Unfortunately this is a bug, bug 3612370 in fact. I've published the bug so that it can be tracked via metalink if you have a support contract.
    The bug is as you suspected with JDev's parse of the modules. We don't have a workaround at the moment but I'll post here again if we make any progress.
    Thanks for reporting this,
    Geoff
    JDev Test Team

  • RMAN's commands to check the datafiles for any sort of corruptions

    what are RMAN's commands to check the datafiles for any sort of corruptions

    RMAN is check database or backups here? i think its checking backups? and
    You mean to say that its not checking the datafiles but the backup of them for corruption is it?If this is what you meant than I guess you haven't read teh link that I referred.From there,
    When performing a BACKUP... VALIDATE, RMAN reads the files to be backed up in their entirety, as it would during a real backup. It does not, however, actually produce any backup sets or image copies.This command wont check the backups and neither its taking a backup.Its checking it for corruptions.
    [i]
    RMAN>backup validate database ;
    not working when db is in no-archivelog mode
    Are you trying to run it in the open stage ? If you are in Noarchive mode, you can't run backup related commands in open stage.Run it in the mount stage.
    Aman....

  • N97 Voice Command Failure

    Haven't found in search.
    Brand new n97 getting Voice system Error when I try to use this feature. Have did a soft/factory reset on the phone and am hoping I don't have to do a hard reset as I've already loaded heaps on the phone.
    Any suggestions as to how to get this working?

    I think I may have found a workaround for the Voice Command failure.
    During my several reset attempts at fixing this, I realized that the problem occurred right after I moved my Contacts from PC Suite to the phone.
    It seems like even though the phone contacts is set to phone memory, the N97 still cares what's on the SIM card. I'm not sure if it's the fact that there were duplicate names or that there were anything at all on the SIM card.
    I deleted all directory entries from the SIM card, restarted with *#7370#, restored the contacts again from PC Suite and that fixed the problem.  It also fixed my message and caller ID issues.
    Thanks,
    -Alain

  • NEED TO RECOVER A DATABASE USING RMAN with CONTROL FILE AND NO RMAN CATALOG, DISK FAILURE..

    Hello All,
    The disk failure caused our production data on the disk to be resotred with the backup data available and recovered through RMAN with cotrolfile , and no catalog DB is configured.
    I had the restored the spfile and control file then recovered the database,
    startup nomount;
    RESTORE SPFILE FROM ' path '  ;
    Shutdown immediate;
    startup nomount
    Restore controfile from autobackup;
    restore database;
    [AT POINT , A MESSAGE PROMPTED LIKE " failur of restored command - some targets not found"  (thinking may be few archives are not found, i proceeded to incomeplete recovery of DB) ]
    recover database;
    Finished reocvery .
    Now in the Grid control i see that 60 blocks of a particular datafile are corrupted and needs recovery. Do i need to get the data file resotred again and recover it or any simple way to recover this data file
    When i perform the block recovery , it says recovery failed and when i run the data file recovery it succeeds. Please provide you inputs to recover the database as it is production BI database and pretty critical to our client.
    Thanks for your valuable time in advance.
    Regards,
    Ran G.

    These is a common problem if the object are created due to NOLOGGIN option. If you check most of the object which are facing block corruption is indexes .
    Use the below query to check the objects :
    It will map each block from v$database_block_corruption to either a segment or if the block is free.
    $ sqlplus / as sysdba
    set pagesize 2000
    set linesize 250
    SELECT e.owner, e.segment_type, e.segment_name, e.partition_name, c.file#
    , greatest(e.block_id, c.block#) corr_start_block#
    , least(e.block_id+e.blocks-1, c.block#+c.blocks-1) corr_end_block#
    , least(e.block_id+e.blocks-1, c.block#+c.blocks-1)
    - greatest(e.block_id, c.block#) + 1 blocks_corrupted
    , null description
    FROM dba_extents e, v$database_block_corruption c
    WHERE e.file_id = c.file#
    AND e.block_id <= c.block# + c.blocks - 1
    AND e.block_id + e.blocks - 1 >= c.block#
    UNION
    SELECT s.owner, s.segment_type, s.segment_name, s.partition_name, c.file#
    , header_block corr_start_block#
    , header_block corr_end_block#
    , 1 blocks_corrupted
    , 'Segment Header' description
    FROM dba_segments s, v$database_block_corruption c
    WHERE s.header_file = c.file#
    AND s.header_block between c.block# and c.block# + c.blocks - 1
    UNION
    SELECT null owner, null segment_type, null segment_name, null partition_name, c.file#
    , greatest(f.block_id, c.block#) corr_start_block#
    , least(f.block_id+f.blocks-1, c.block#+c.blocks-1) corr_end_block#
    , least(f.block_id+f.blocks-1, c.block#+c.blocks-1)
    - greatest(f.block_id, c.block#) + 1 blocks_corrupted
    , 'Free Block' description
    FROM dba_free_space f, v$database_block_corruption c
    WHERE f.file_id = c.file#
    AND f.block_id <= c.block# + c.blocks - 1
    AND f.block_id + f.blocks - 1 >= c.block#
    order by file#, corr_start_block#;
    Below oracle support note will help you :
    ORA-1578 / ORA-26040 Corrupt blocks by NOLOGGING - Error explanation and solution (Doc ID 794505.1)
    The Gains and Pains of Nologging Operations (Doc ID 290161.1)
    SQL> select d.NAME as DBF_NAME, t.NAME as TS_NAME, d.UNRECOVERABLE_CHANGE# as NOLOG_CHNG#, to_char(d.UNRECOVERABLE_TIME, 'Dy DD-Mon-YYYY HH24:MI:SS') as NOLOG_TIME from V$DATAFILE d join V$TABLESPACE t on d.TS# = t.TS# order by t.NAME;
    Thanks,
    gssdba.wordpress.com

  • The RMAN Duplicate Command Fails During The Recover.

    This exact script works fine in our lab. We are using Oracle 10.2.0.4.0.
    The hot backup for standby is also a script which runs without error in both the lab and
    the production machine.
    I am obviously missing something.
    Any help would be greatly appreciated.
    Thanks,
    Jeff
    =================
    RMAN BACKUP SCRIPT
    =================
    RMAN> run
    2> {
    3> allocate channel c1 device type disk format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_%U';
    4> backup current controlfile for standby format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_%U';
    5> backup as compressed backupset check logical tag='1NETCMN1_3261_BK4STDBY' database include current controlfile for standby;
    6> backup archivelog from sequence 463 format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_%U';
    7> release channel c1;
    8> }
    released channel: ORA_DISK_1
    allocated channel: c1
    channel c1: sid=578 devtype=DISK
    Starting backup at 22-JAN-13
    channel c1: starting full datafile backupset
    channel c1: specifying datafile(s) in backupset
    including standby control file in backupset
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_05o02f01_1_1 tag=TAG20130122T144104 comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:02
    Finished backup at 22-JAN-13
    Starting backup at 22-JAN-13
    channel c1: starting compressed full datafile backupset
    channel c1: specifying datafile(s) in backupset
    input datafile fno=00004 name=/u01/oradata/apoint/users01.dbf
    input datafile fno=00001 name=/u01/oradata/apoint/system01.dbf
    input datafile fno=00002 name=/u01/oradata/apoint/undotbs01.dbf
    input datafile fno=00003 name=/u01/oradata/apoint/sysaux01.dbf
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_06o02f05_1_1 tag=1NETCMN1_3261_BK4STDBY comment=NONE
    channel c1: backup set complete, elapsed time: 00:22:35
    channel c1: starting compressed full datafile backupset
    channel c1: specifying datafile(s) in backupset
    including standby control file in backupset
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_07o02gah_1_1 tag=1NETCMN1_3261_BK4STDBY comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:07
    Finished backup at 22-JAN-13
    Starting backup at 22-JAN-13
    current log archived
    channel c1: starting archive log backupset
    channel c1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=463 recid=5 stamp=805323439
    input archive log thread=1 sequence=464 recid=6 stamp=805331764
    input archive log thread=1 sequence=465 recid=7 stamp=805387242
    input archive log thread=1 sequence=466 recid=8 stamp=805387245
    input archive log thread=1 sequence=467 recid=9 stamp=805388633
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_08o02gaq_1_1 tag=TAG20130122T150354 comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:36
    Finished backup at 22-JAN-13
    released channel: c1
    RMAN> exit
    Recovery Manager complete.
    =====================
    RMAN DUPLICATE SCRIPT
    =====================
    RMAN> run
    2> {
    3> allocate auxiliary channel c1 device type disk;
    4>
    5> duplicate target database for standby dorecover nofilenamecheck;
    6> release channel c1;
    7> }
    allocated channel: c1
    channel c1: sid=299 devtype=DISK
    Starting Duplicate Db at 21-JAN-13
    contents of Memory Script:
    set until scn 143395851;
    restore clone standby controlfile;
    sql clone 'alter database mount standby database';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 21-JAN-13
    channel c1: starting datafile backupset restore
    channel c1: restoring control file
    channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_03o008gn_1_1
    channel c1: restored backup piece 1
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_03o008gn_1_1 tag=1NETCMN1_6874_BK4STDBY
    channel c1: restore complete, elapsed time: 00:00:04
    output filename=/u01/oradata/apoint/control01.ctl
    output filename=/u02/oradata/apoint/control02.ctl
    output filename=/u03/oradata/apoint/control03.ctl
    Finished restore at 21-JAN-13
    sql statement: alter database mount standby database
    contents of Memory Script:
    set until scn 143395851;
    set newname for tempfile 1 to
    "/u01/oradata/apoint/temp01.dbf";
    switch clone tempfile all;
    set newname for datafile 1 to
    "/u01/oradata/apoint/system01.dbf";
    set newname for datafile 2 to
    "/u01/oradata/apoint/undotbs01.dbf";
    set newname for datafile 3 to
    "/u01/oradata/apoint/sysaux01.dbf";
    set newname for datafile 4 to
    "/u01/oradata/apoint/users01.dbf";
    restore
    check readonly
    clone database
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    renamed temporary file 1 to /u01/oradata/apoint/temp01.dbf in control file
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 21-JAN-13
    channel c1: starting datafile backupset restore
    channel c1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oradata/apoint/system01.dbf
    restoring datafile 00002 to /u01/oradata/apoint/undotbs01.dbf
    restoring datafile 00003 to /u01/oradata/apoint/sysaux01.dbf
    restoring datafile 00004 to /u01/oradata/apoint/users01.dbf
    channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_02o0076b_1_1
    channel c1: restored backup piece 1
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_02o0076b_1_1 tag=1NETCMN1_6874_BK4STDBY
    channel c1: restore complete, elapsed time: 00:21:32
    Finished restore at 21-JAN-13
    contents of Memory Script:
    switch clone datafile all;
    executing Memory Script
    datafile 1 switched to datafile copy
    input datafile copy recid=5 stamp=805323205 filename=/u01/oradata/apoint/system01.dbf
    datafile 2 switched to datafile copy
    input datafile copy recid=6 stamp=805323205 filename=/u01/oradata/apoint/undotbs01.dbf
    datafile 3 switched to datafile copy
    input datafile copy recid=7 stamp=805323206 filename=/u01/oradata/apoint/sysaux01.dbf
    datafile 4 switched to datafile copy
    input datafile copy recid=8 stamp=805323206 filename=/u01/oradata/apoint/users01.dbf
    contents of Memory Script:
    set until scn 143395851;
    recover
    standby
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 21-JAN-13
    starting media recovery
    channel c1: starting archive log restore to default destination
    channel c1: restoring archive log
    archive log thread=1 sequence=462
    channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_LOGS4STDBY_04o008gu_1_1
    channel c1: restored backup piece 1
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_LOGS4STDBY_04o008gu_1_1 tag=TAG20130121T183822
    channel c1: restore complete, elapsed time: 00:00:03
    archive log filename=/u03/oradata/apoint/DB_ARCHIVE_LOGS/apoint_1_688761648_462.arch thread=1 sequence=462
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/oradata/apoint/system01.dbf'
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/21/2013 20:53:44
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/u03/oradata/apoint/DB_ARCHIVE_LOGS/apoint_1_688761648_462.arch'
    ORA-16145: archival for thread# 1 sequence# 462 in progress
    RMAN> exit

    Jeff;
    I think the issue is in your backup. If you compare your command with mine, you may or may not see the issue, but this is how I got this to work.
    Yours
    RMAN run
    allocate channel c1 device type disk format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_%U';
    backup current controlfile for standby format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_%U';
    backup as compressed backupset check logical tag='1NETCMN1_3261_BK4STDBY' database include current controlfile for standby;
    backup archivelog from sequence 463 format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_%U';
    release channel c1;
    Mine
    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    }Your duplicate is very close to what I use :
    Yours
    RMAN> run
    allocate auxiliary channel c1 device type disk;
    duplicate target database for standby dorecover nofilenamecheck;
    release channel c1;
    Mine
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }Short notes :
    http://www.visi.com/~mseberg/duprman.html
    Best Regards
    mseberg

  • Rman backup command hangs for datafile ,works with archivelogs backup.

    Issue is archivelogs backup is going fine ,But when we go for datafile backup its hanging there from oracle side as not able to give file handle.
    RMAN session started with debug it gives only
    DBGRPC: ENTERED krmqgns [expect.cpp/673]
    16:00:40.19 DBGRPC: krmqgns: looking for work for channel default (krmqgns) [expect.cpp/673]
    16:00:40.19 DBGRPC: krmqgns: commands remaining to be executed: (krmqgns) [expect.cpp/673]
    16:00:40.19 DBGRPC: CMD type=backup cmdid=1 status=STARTED [expect.cpp/673]
    16:00:40.19 DBGRPC: 1 STEPstepid=1 cmdid=1 status=STARTED [expect.cpp/673]
    16:00:40.19 DBGRPC: krmqgns: no work found for channel default (krmqgns) [expect.cpp/673]
    16:00:40.19 DBGRPC: (krmqgns) [expect.cpp/673]
    16:00:40.19 DBGRPC: EXITED krmqgns with status 1 [expect.cpp/673]
    16:00:40.19 DBGRPC: krmxpoq - returning rpc_number: 17 with status: STARTED16 for channel sqlbt_ch1 [expect.cpp/673]
    16:00:40.19 DBGRPC: krmxr - sleeping for 10 seconds [expect.cpp/673]
    Is any body seen this type of message from rman.
    Thanks
    Shirish

    OK. Did you miss the second Oracle document?
    RMAN Debug For Backup Shows "krmxr: sleeping for x seconds" [ID 458259.1]
    Also a ton of information here :
    RMAN backup database as copy from file system to ASM diskgroup very slow
    and here :
    RMAN Error > Please assist!
    and here :
    RMAN and Amazon Web Services
    http://oravdba.blogspot.com/2011_01_01_archive.html
    Best Regards
    mseberg

  • PARMS parameter in RMAN BACKUP Command

    Hi,
    I am planning to use Backup application “OMNIBACK”.
    This application uses RMAN internally to manage the backups.
    The backups will goes to tape.
    I am concerned about the PARMS parameter, which can be used in RMAN Command Syntax to associate the tape drive.
    What Value I provide to PARMS parameter (Omniback)?
    For Example:
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=
    Thanks
    Benazir

    Thanks ,
    Could you please inform me about the "OB2APPNAME=RMAN81T", which we can find in following command.
    Should it mandatory to give the db name to this parameter?
    As well as the following variables. Are these variable work?
    s:%t:%p>.
    Thanks
    Benazir
    run {allocate channel 'dev_0' type 'sbt_tape' parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=RMAN81T,OB2BARLIST=test_full)'; backup incremental level <incr_level> filesperset 1 format 'test_full<RMAN81T_%s:%t:%p>.dbf' database include current controlfile ; }

  • RMAN Crosscheck Command

    I trying to run very simple command and for the life of me and I can't seem to get it correct. I want to run a .cmd file that will log into rman and do a crosscheck arhivelog all; command. Here's what I have which does not work:
    rman target=/ nocatalog
    RMAN CROSSCHECK ARCHIVELOG ALL;
    It logs into rman ok, but the CROSSCHECK is done at the OS level not in rman when I run it in a .cmd file. What do I need to change on the file? Thanks so much for your input.

    First create a bat that call the command file like that:
    --Create the .bat file
    rman target sys/ambraprdmanager cmdfile=c:\hot_rman.rcv log="F:\RM\bkpfisico\log_hot_rman.log" append
    --Create the command file that is called by .bat file
    run
    crosscheck archivelog all;
    exit;
    Regards,
    Paulo.

  • RMAN's success/failure status

    Version: 10gR2
    For tracking/documentation purposes, we would like to know if our daily RMAN backup job was a success or failure.
    I've searched Oracle documentation for views like
    RC_BACKUP_CORRUPTION
    RC_BACKUP_SET_DETAILS
    .etc for this. But this doesn't seem to provide an accurate answer.
    How do you guys track the status of your daily RMAN backups?

    If you are using a FULL a query like this might be enough.
    (I always check the RMAN Log daily)
    SELECT OPERATION, STATUS, OBJECT_TYPE, TO_CHAR(START_TIME,'MM/DD/YYYY:hh:mi:ss') as START_TIME,
    TO_CHAR(END_TIME,'MM/DD/YYYY:hh:mi:ss') as END_TIME
    FROM sys.V_\$RMAN_STATUS WHERE START_TIME > SYSDATE -1 AND OPERATION = 'BACKUP'
    and object_type = 'DB FULL'
    order by start_time desc

  • Formating RMAN "LIST" command output

    I am running following command at rman prompt which has a output over 10 pages which I cant scroll back to see the entire output.
    RMAN> LIST BACKUP OF ARCHIVELOG ALL;
    Is there any way where in I can use something similar to "set pause on" of sqllpus within rman.
    One way I am achieveing this is by using cmdfile and logfile option in whicle connecting. But its not that feasible to write command file for each and every command.
    Pls advise...

    You can try this to run the rman command and also you can have the options what you are looking for.
    $ echo 'list backup of archivelog all;' |
    rman rcvcat rman/rman target backup_admin/backup_admin@sri
    Recovery Manager: Release 10.2.0.1.0 - Production on Mon Mar 6 15:18:30 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: SRI (DBID=1762478285)
    connected to recovery catalog database
    RMAN>
    List of Backup Sets
    ===================
    BS Key Size Device Type Elapsed Time Completion Time
    9936 374.63M DISK 00:00:32 06-MAR-06
    BP Key: 9941 Status: AVAILABLE Compressed: NO Tag: TAG20060306T115312
    Piece Name: E:\ORADATA\SRI\FLASH_RECOVERY_AREA\SRI\BACKUPSET\2006_03_06\O1_MF_ANNNN_TAG20060306T115312_20S4SD4B_.BKP
    List of Archived Logs in backup set 9936
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 81 12350590 02-MAR-06 12405197 02-MAR-06
    1 82 12405197 02-MAR-06 12474206 03-MAR-06
    1 83 12474206 03-MAR-06 12580631 06-MAR-06
    1 84 12580631 06-MAR-06 12609253 06-MAR-06
    1 85 12609253 06-MAR-06 12614028 06-MAR-06
    RMAN>
    Recovery Manager complete.
    But I have no idea what exactly you want to track in the output. Meaning which part of the output you want to grep and perform sort etc.,
    well you can try..
    $ echo 'list backup of archivelog all;' |
    rman rcvcat rman/rman target backup_admin/backup_admin@sri |
    grep < required string> | awk... bla bla... -Sri

  • RMAN SWITCH command

    I am executing this command at the MOUNT mode and it is giving me an error. Can anyone specify the correct procedure for SWITCHING files
    RMAN> SWITCH DATAFILE 'f:\oracle\oradata\ora1\user01.dbf' TO DATAFILECOPY 'f:\or
    acle\oradata\user01.dbf';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "switch": expecting one of: "allocate, alter, ba
    ckup, beginline, blockrecover, catalog, change, connect, copy, create, crosschec
    k, configure, duplicate, debug, delete, drop, exit, endinline, host, {, library,
    list, mount, open, print, quit, recover, register, release, replace, report, re
    normalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, spool
    , startup, shutdown, send, show, test, upgrade, validate"
    RMAN-01007: at line 1 column 1 file: standard input

    Assuming 10.2: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta061.htm#sthref967

  • ARD 3.6.1 remote log in Unix command failure

    Hello, I am using 10.7.5 and ARD 3.6.1 and cannot figure out how to remotely log in to another computer
    I wish to remotely log in using ARD to multiple computers in my network, up to 30 at a time for elementary students.  I can observe, control and send Unix commands to the machines when they are at startup log in screen or in use. This is the Unix command I am trying to use to log into the comptuer using ARD and Unix command function.
    osascript -e 'tell application "System Events" to keystroke "login"'; \
    osascript -e 'tell application "System Events" to keystroke tab'; \
    osascript -e 'tell application "System Events" to delay 0.5'; \
    osascript -e 'tell application "System Events" to keystroke "password"'; \
    osascript -e 'tell application "System Events" to delay 0.5'; \
    osascript -e 'tell application "System Events" to keystroke return'
    **and yes I am changing the login and password keystroke**
    I have tried the above Unix command and several others but I get a message saying "A console user is not logged in on “studnetmacbook""  so I click the button to run command as user admin but then get the message below. 
    36:50: execution error: An error of type -10810 has occurred. (-10810)
    36:49: execution error: An error of type -10810 has occurred. (-10810)
    36:54: execution error: An error of type -10810 has occurred. (-10810)
    36:52: execution error: An error of type -10810 has occurred. (-10810)
    36:52: execution error: An error of type -10810 has occurred. (-10810)
    Could someone explain these errors.  Is ARD not compatible with remote log in with the versions I have?  I have seen on sites this is posted and other sites that this needs to be run as the root user...Should I know how to run this as a root user and if so could someone help me with how to do this? 
    Or if anyone else has a working command could you share it with me for remotely logging in using ARD.
    Thanks!

    Hi
    Don't quite recognise what it is you're using. Maybe try:
    osascript <<EOF
    tell application "System Events"
    keystroke "whateverusernameyou'reusing"
    keystroke tab
    delay 0.5
    keystroke "whateverthepasswordis"
    delay 0.5
    keystroke return
    end tell
    EOF
    Instead. Works every time for me.
    The above are all on separate lines.
    HTH?
    Tony

  • Rman restore command for tablespace...

    Hi All,
    I required your help to restore RMAN backup. I have not used RMAN any time before so no idea how to restore it.
    Below is the syntax of backup which I get it from one of our DBA at remote side:
    ====================================================================================================
    BACKUP AS COMPRESSED BACKUPSET incremental level = 0 tablespace SYSTEM,SYSAUX,UNDOTBS2,SYS_AUDIT_1_D1,TOOLS,JISP_BIL1,JISP_BILL1_INDX plus archivelog
    ====================================================================================================
    on the target database where I want to restore this database is running in no archive mode.
    Can anyone guide me how to start /steps to restore tablespace backup into my environment.
    thanks in advance.

    user12115 wrote:
    I want to restore my data from the given backup only.
    pls let me know how to do that.rman does not restore data, it restores database files. Of course the files contain data, but it is an important distinction. You cannot simply restore a tablespace (files that constitute a TS) from one database into another (unless you are dealing with transportable TS).

Maybe you are looking for

  • Formatted HTML output with Spry regions - is it possible?

    I have recently begun using the XML export extension in conjunction with an Access database to output dynamic data into a page with a Spry master/detail setup. So far, my simple example is going great, but I've run into a snag that I need some help w

  • Is the OBPM Workspace application section 508 Compliant

    Our customers need the application to be section 508 compliant. Is the out of the box ...OBPM workspace application compliant or would we have to build our own user interface and use papi to interact with BPM?

  • Po requisitions with oracel xml gateway

    hi all, i was given a requirement to use oracle xml gateway in importing data from an external source... client gave me 2 files to play with. XML <?xml version = "1.0"?> <MSG_IP_MAT_ISSUE ID = "WMIS-616002" SRC_SYSTEM_CODE = "WMIS" SRC_SYSTEM_INSTANC

  • Bill plan of a Sales Order/Contract

    Hi, Where do we create/update the bill plan for a sales order/contract. I tried VA41 where a bill plan button is provided. But need to understand the bill plan from a functional perspective. Any short summary on the same will be helpful. Also please

  • Adding a  Page to section causes TOC error

    I have the following document with the section and page setup: Front Cover - pg A  - Section : letters, start at 1 (A) Inside Page - pg B About Page - pg i - Section: roman numerals, start at 1 (i) TOC page - pg ii Desc Page - pg 1 - Section: arabic