RMAN  %N Format Backup

Hi Gurus,
I have rman script that backups up my 10g database. I'm trying to format the backup ser as databasename_tablespaceName_date_UniqueNo.dbf. This is my script:
backup incremental level 1
filesperset 1
format '%d_%N_%T'
keep until time "sysdate+1" logs
(database include current controlfile);
All datafiles complete but at the end I get this error:
ORA-19715: invalid format N for generated name
ORA-27302: failure occurred at: slgpn
continuing other job steps, job failed will not be re-run
channel ch2: starting incremental level 1 datafile backupset
channel ch2: specifying datafile(s) in backupset
including current SPFILE in backupset
channel ch2: starting piece 1 at 27-AUG-09
RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 07:45:01
ORA-19715: invalid format N for generated name
ORA-27302: failure occurred at: slgpn
continuing other job steps, job failed will not be re-run
channel ch1: finished piece 1 at 27-AUG-09
piece handle=MEDTEST_USERS_20090827 tag=TAG20090827T074351 comment=API Version 2.0,MMS Version 5.0.0.0
channel ch1: backup set complete, elapsed time: 00:00:30
released channel: ch1
released channel: ch2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 07:45:00
ORA-19715: invalid format N for generated name
ORA-27302: failure occurred at: slgpn
RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 07:45:01
ORA-19715: invalid format N for generated name
ORA-27302: failure occurred at: slgpn
RMAN>
RMAN> **end-of-file**
RMAN>
Please help.

I removed include current control file, I still get the same error for %N & %f:
backup
incremental level 1
filesperset 1
format '%d_%f_%N_%T_%U'
keep until time "sysdate+1" logs
(database);
RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 09:20:33
ORA-19715: invalid format N for generated name
ORA-27302: failure occurred at: slgpn
continuing other job steps, job failed will not be re-run
channel ch2: starting incremental level 1 datafile backupset
channel ch2: specifying datafile(s) in backupset
channel ch1: finished piece 1 at 27-AUG-09
piece handle=MEDTEST_8_USERS_20090827_3sknnpe8_1_1 tag=TAG20090827T091919 comment=API Version 2.0,MMS Version 5.0.0.
0
channel ch1: backup set complete, elapsed time: 00:00:26
including current SPFILE in backupset
channel ch2: starting piece 1 at 27-AUG-09
released channel: ch1
released channel: ch2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 09:20:34
ORA-19715: invalid format f for generated name
ORA-27302: failure occurred at: slgpn
RMAN>
RMAN> **end-of-file**

Similar Messages

  • RMAN-06023: no backup or copy of datafile 5 found to restore ??

    Hi,
    Am on
    Apps 12.0.4
    DB 10gR2
    Am trying to recover a datafile: got below error ?
    Hex dump of (file 5, block 11701) in trace file /u01/app/oracle/admin/ora10g/udump/ora10g_ora_6482.trc
    Corrupt block relative dba: 0x01402db5 (file 5, block 11701)
    Bad check value found during backing up datafile
    Data in bad block:
    type: 0 format: 2 rdba: 0x01402db5
    last change scn: 0×0000.00000000 seq: 0×1 flg: 0×05
    spare1: 0×0 spare2: 0×0 spare3: 0×0
    consistency value in tail: 0×00000001
    check value in block header: 0x8bf5
    computed block checksum: 0×2
    Reread of blocknum=11701, file=/u01/app/oracle/oradata/ora10g/example01.dbf. found same corrupt data
    RMAN> blockrecover datafile 5 block 11701;
    Starting blockrecover at 23-AUG-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=139 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
    RMAN-06026: some targets not found – aborting restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    i dont have a backup of this datafile
    Thanks
    Edited by: NewAppsDBA on Oct 24, 2011 6:23 AM

    RMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
    RMAN-06026: some targets not found – aborting restore
    RMAN-06023: no backup or copy of datafile 5 found to restoreSearch MOS for those errors and go through the docs.
    Thanks,
    Hussein

  • Problem about RMAN-06023: no backup or copy of datafile 5 found to restore

    here is the error info when i duplicate database use rman
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 08/19/2011 09:33:39
    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 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
    and following my operate steps
    ==================
    auxiliary instance configure
    1, create password file
    $ orapwd file=/opt/app/oracle/product/10.2.0/db_1/dbs/orapwslavedb password=Myss123456 entries=30
    2,edit tnsname.ora on auxilary so i can connect primary db and auxiliary
    $ vi tnsname.ora (tnsping test pass)
    PRIDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.40.214)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = pridb)
    3,create pfile for auxiliary instance
    $ vi initslavedb.ora
    *.DB_BLOCK_SIZE=8192
    *.DB_NAME=slavedb
    *.CONTROL_FILES='/opt/app/oracle/oradata/slavedb/control01.ctl','/opt/app/oracl
    e/oradata/slavedb/control02.ctl','/opt/app/oracle/oradata/slavedb/control03.ctl'
    *.DB_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
    *.LOG_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
    4,start auxiliary instance nomount and create spfile,then shutdown it,and startup to nomount status again
    5,backup target database
    RMAN> backup database;
    6, create directory on slavedb,and transforer target backupset and archlog to salvedb
    $ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/backupset/2011_08_19
    $ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/archivelog/2011_08_19
    7,run duplicate commandline on auxiliary
    [oracle@localhost admin]$ rman target sys/Myss123456@pridb auxiliary /
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 19 10:46:05 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: PRIDB (DBID=969477968, not open)
    connected to auxiliary database: SLAVEDB (not mounted)
    RMAN> duplicate target database to 'slavedb'
    2> nofilenamecheck;
    Starting Duplicate Db at 19-AUG-2011 10:46:15
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=35 devtype=DISK
    contents of Memory Script:
    set until scn 490864;
    set newname for datafile 1 to
    "/opt/app/oracle/oradata/slavedb/system01.dbf";
    set newname for datafile 2 to
    "/opt/app/oracle/oradata/slavedb/undotbs01.dbf";
    set newname for datafile 3 to
    "/opt/app/oracle/oradata/slavedb/sysaux01.dbf";
    set newname for datafile 4 to
    "/opt/app/oracle/oradata/slavedb/users01.dbf";
    set newname for datafile 5 to
    "/opt/app/oracle/oradata/slavedb/example01.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
    executing command: SET NEWNAME
    Starting restore at 19-AUG-2011 10:46:16
    using channel ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 08/19/2011 10:46:16
    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 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
    anyone can help?

    use format command with backup.
    eg:-
    backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T';
    if it is archivelog mode then
    backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T' plus archivelog format '/u01/db/backup/%d_%I_%s_%T';
    then copy the backup to the auxiliary instance server.
    then try again the duplicate command.

  • What to do if there is abrupt termination of RMAN during a backup session

    Hi All,
    I am trying to automate the Level 0 and Level 1 backups which we ought to take. Following the is the RMAN related part of it for L1 backup:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;"
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '${BKP_LOCATION}/${LType}_%F';"
    run {"
    allocate channel c1 type disk;"
    backup"
    incremental level 1 cumulative tag = $BTAG"
    format '${BKP_LOCATION}/${LType}_%d_set%s_piece%p_%T_%U.bkp'"
    (database include current controlfile tag $CTAG) ;"
    sql 'alter system archive log current';"
    sql 'alter system archive log current';"
    backup archivelog from sequence ${CSEQ} tag $ATAG"
    format '${BKP_LOCATION}/${LType}_Arch_%d_set%s_piece%p_%T_%U.bkp';"
    release channel c1;"
    exit;"
    In the above snippet, the variables are substituted for within a shell script and then put into a command file for RMAN. I am a novice in the backup and recovery. I got above piece of code from someone working on RMAN and built my automation logic around it.
    The script works fine and I am trying to build to script level recovery feature around it. My question is:
    -- What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db connection or receiving an interrupt signal or a kill signal or some other weird reason.
    -- What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup completed?
    Thanks in Advance.

    Hi user781131,
    What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db
    connection or receiving an interrupt signal or a kill signal or some other weird reason?The backup set which rman was creating is not commited due to the abnormal termination but all succesfull backup sets can be used.
    What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup
    completed?In your backup script you do not use the < NOT BACKED UP SINCE TIME > clause so it will again do a level 1 backup off all datafiles.
    See:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1017236
    This option is a convenient way to back up files that were not backed up during a previous failed backup. For example, you back up the database, but the instance fails halfway through. You can restart the backup with the NOT BACKED UP SINCE TIME clause and avoid backing up those files that you already backed up. If AS BACKUPSET is set, then this feature is only useful if RMAN generates multiple backup sets during the backup.
    Regards,
    Tycho
    Edited by: tychos on 28-jan-2010 15:21

  • RMAN not obsoleting backup

    Hi,
    In my 10gR2 database, level1 backup is taken every nigh except sunday, retention policy is set to redundancy 1.
    but rman not considering previous backup as obsolete.
    below is level1 backup script.
    {color:#0000ff}cp $ORACLE_HOME/dbs/orapworampls /backup/RMANBACKUP/orapworampls_backup
    # start the rman backup
    # only use the next line if this script needs run via root CRON
    #su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/rman 'target /'"&lt;&lt; EOF
    $ORACLE_HOME/bin/rman 'target /' catalog rman/rman@rman&lt;&lt; EOF
    configure retention policy to redundancy 1;
    resync catalog;
    configure backup optimization on;
    configure controlfile autobackup on;
    configure default device type to Disk;
    configure device type Disk parallelism 2;
    configure channel device type Disk format '/backup/RMANBACKUP/%d_LEVEL1_DATAFILE_%s_%p_%D_%M_%Y.bak';
    configure maxsetsize to unlimited;
    configure snapshot controlfile name to '/backup/RMANBACKUP/ORAMPLS_SNAPCF.f';
    set controlfile autobackup format for device type Disk to '/backup/RMANBACKUP/ORAMPLS_CONTROLFILE_%F';
    show all;
    run {
    allocate channel ch1 type Disk maxpiecesize = 1024M;
    allocate channel ch2 type Disk maxpiecesize = 1024M;
    backup
    format '/backup/RMANBACKUP/ORAMPLS_CONTROLFILE_%u_%p_%c' (current controlfile);
    backup
    incremental level 1
    tag 'ORAMPLS_DATAFILE_LEVEL_1'
    format '/backup/RMANBACKUP/%d_LEVEL1_DATAFILE_%s_%p_%D_%M_%Y.bak' (database);
    release channel ch1;
    release channel ch2;
    run {
    delete noprompt backup of archivelog all completed before 'sysdate - 1';
    run {
    allocate channel ch1 type Disk maxpiecesize = 1024M;
    allocate channel ch2 type Disk maxpiecesize = 1024M;
    backup archivelog all
    delete all input
    format '/backup/RMANBACKUP/%d_ARCHIVELOG_%s_%p_%D_%M_%Y.bak'
    tag 'ORAMPLS_ARCHIVELOG_FULL';
    release channel ch1;
    release channel ch2;
    delete noprompt obsolete;
    list backup of database;
    quit
    {color}{color:#000000}id i manually take backup of any datafile twice, its obsoleting older one.
    {color}

    Retention policy will not affect incremental level 1 backups directly ,it will become obsoleted when its full backups obsoleted ,backup retention policy directly affect only full,level 0 and controlfile backups,archivlelog as well level 1 backup retention policy will affect indirectly.
    For detail read that link i have created some sample cases over here within this threads debate
    Re: About RMAN backup !!!!
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Migrate Oracle 11g database from Windows To Linux using RMAN hot / cold  backup ?

    Hi Friends,
    Is it possible to Migrate Oracle 11g database from Windows To Linux using RMAN hot / cold  backup ? ( as i would like to perform Point In Time recovery)
    (or) The only way is to use RMAN convert as mentioned here  - Transporting Data Across Platforms
    (or) Is there any other method (except exp/imp and data pump)
    Regards,
    DB

    HI
    his post describes the procedure required to migrate a database from Windows to Linux using the RMAN Convert Database command.
    Both Windows and Linux platforms have the same endian format, which makes possible to transfer the whole database, making the migration process very straightforward and simple.
    To migrate between platforms that have a different endian format, Cross Platform Transportable Tablespaces (XTTS) needs to be used instead.
    List of Steps Needed to Complete the Migration
    The migration process is simple, but as it has several steps it is convenient to be familiar with them before running it.
    1. Check platform compatibility between source and target OS
    2. Start the database in read only mode
    3. Check database readiness for transport from Windows to Linux using DBMS_TDB.CHECK_DB
    4. Check if there are any external objects
    5. Execute the Rman Convert database command
    6. Copy converted datafiles, generated Transport Script and Parameter File to Linux
    7. Edit the init.ora for the new database
    8. Edit the Transport Script and Parameter File changing the windows paths to Linux Paths
    9. Execute the Transport Script
    10.Change the Database ID
    11.Check database integrity
    Thank you

  • If I need a full rman restore which backups will it use?

    Hello,
    I have a database 11.1.0.7 with 8TB. Block change tracking is enabled.
    At the weekend I take level 0 backup and during the week level 1 cumulative.
    For some weeks the level 0 backup is failing, so I only have level 1 cumulative backups taken every week day with a 4 weeks old level 0 backup.
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    I ask this because grid crontrol tells me that the recent level 1 backups input size is smaller than last week level 1 backups and in between I dont have any level 0 sucessfull backups. Shouldn't the input size of level 1 cumulative increase until the next level 0 backup ?
    The grid reports:
    Backup Name Status Start Time Time Taken Type Output Devices Input Size Output Size Output Rate (Per Sec)
    rman_df_lv1c COMPLETED 25/Jul/2011 21H00m WEST 02:33:29 DB INCR SBT_TAPE *1.32T* 289.02G 32.14M
    rman_df_lv0 FAILED 23/Jul/2011 02H01m WEST DB INCR SBT_TAPE 8.78T 8.06T
    rman_df_lv1c COMPLETED 21/Jul/2011 21H00m WEST 04:39:38 DB INCR SBT_TAPE *3.46T* 550.82G 33.62M
    rman_df_lv1c COMPLETED 20/Jul/2011 21H00m WEST 04:47:36 DB INCR SBT_TAPE *3.37T* 524.36G 31.12M
    rman_df_lv1c COMPLETED 19/Jul/2011 21H00m WEST 04:06:09 DB INCR SBT_TAPE *3.15T* 490.75G 34.03M
    rman_df_lv1c COMPLETED 18/Jul/2011 21H00m WEST 03:40:24 DB INCR SBT_TAPE *2.49T* 410.88G 31.82M
    rman_df_lv0 FAILED 16/Jul/2011 22H16m WEST DB INCR SBT_TAPE 6.27T 5.69T
    rman_df_lv1c FAILED 14/Jul/2011 21H00m WEST 06:13:40 DB INCR SBT_TAPE 4.38T 714.30G 32.62M
    rman_df_lv1c FAILED 13/Jul/2011 21H01m WEST 04:40:45 DB INCR SBT_TAPE 3.25T 542.98G 33.01M
    rman_df_lv1c COMPLETED 12/Jul/2011 21H00m WEST 07:15:54 DB INCR SBT_TAPE 4.74T 847.93G 33.20M
    rman_df_lv1c COMPLETED 11/Jul/2011 21H00m WEST 07:26:40 DB INCR SBT_TAPE 3.78T 766.40G 29.28M
    rman_df_lv0 FAILED 9/Jul/2011 02H32m WEST 04:30:44 DB INCR SBT_TAPE 749.89G 716.02G 45.14M
    rman_df_lv1c FAILED 7/Jul/2011 21H01m WEST 04:49:24 DB INCR SBT_TAPE 2.16T 515.90G 30.42M
    rman_df_lv1c FAILED 6/Jul/2011 21H00m WEST 01:26:06 DB INCR SBT_TAPE 745.83G 165.48G 32.80M
    rman_df_lv1c FAILED 5/Jul/2011 21H01m WEST 00:05:48 DB INCR SBT_TAPE 58.56G 7.56G 22.24M
    rman_df_lv1c FAILED 4/Jul/2011 21H00m WEST 01:55:03 DB INCR SBT_TAPE 422.40G 79.55G 11.80M
    rman_df_lv0 FAILED 3/Jul/2011 16H32m WEST 30:22:04 DB INCR SBT_TAPE 4.53T 4.21T 40.40M

    >
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    From http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm
    Validating Backups Before Restoring Them
    You can run RESTORE ... VALIDATE to test whether RMAN can restore a specific file or set of files from a backup. RMAN chooses which backups to use.
    The database must be mounted or open for this command. You do not have to take datafiles offline when validating the restore of datafiles, because validation of backups of the datafiles only reads the backups and does not affect the production datafiles.
    When validating files on disk or tape, RMAN reads all blocks in the backup piece or image copy. RMAN also validates offsite backups. The validation is identical to a real restore operation except that RMAN does not write output files.
    You can monitor what RESTORE VALIDATE does.
    Make precautions, so you do not damage the production DB!!!
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • Restore from OSB. RMAN-06024: no backup or copy of the control file found

    I backed up controlfile for standby on production server to OSB media:
    -bash-3.00$ rman target / catalog rman/rman@emgc
    Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:15:33 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: EMGC (DBID=1838014073)
    connected to recovery catalog database
    RMAN>
    RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    BACKUP CURRENT CONTROLFILE FOR STANDBY tag 'stb_ctl';
    RELEASE CHANNEL ch1;
    CONFIGURE DEVICE TYPE 'SBT_TAPE' CLEAR;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN> 2> 3> 4> 5> 6>
    allocated channel: ch1
    channel ch1: sid=1085 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    Starting backup at 25-JAN-11
    channel ch1: starting compressed full datafile backupset
    channel ch1: specifying datafile(s) in backupset
    including standby control file in backupset
    channel ch1: starting piece 1 at 25-JAN-11
    channel ch1: finished piece 1 at 25-JAN-11
    piece handle=1em30ngu_1_1 tag=STB_CTL comment=API Version 2.0,MMS Version 10.3.0.2
    channel ch1: backup set complete, elapsed time: 00:00:27
    Finished backup at 25-JAN-11
    released channel: ch1
    RMAN> list backup of controlfile;
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    RMAN configuration parameters are successfully reset to default value
    starting full resync of recovery catalog
    full resync complete
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
    BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
    Handle: 1em30ngu_1_1 Media: mf_rman-000003
    Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
    RMAN>
    On standby server I try to restore this control file but there is some trouble with restore... By the way I can delete that backup piece...
    -bash-3.00$ rman target / catalog rman/rman@emgc
    Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:34:32 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: emgc (not mounted)
    connected to recovery catalog database
    RMAN> set DBID=1838014073;
    executing command: SET DBID
    database name is "EMGC" and DBID is 1838014073
    RMAN> RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    crosscheck backup of controlfile;
    2> 3> 4> 5>
    allocated channel: ch1
    channel ch1: sid=1093 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
    Crosschecked 1 objects
    released channel: ch1
    RMAN> list backup of controlfile;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
    BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
    Handle: 1em30ngu_1_1 Media: mf_rman-000003
    Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
    RMAN> RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    RESTORE CONTROLFILE FROM TAG 'STB_CTL';
    2> 3> 4> 5>
    allocated channel: ch1
    channel ch1: sid=1093 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    Starting restore at 25-JAN-11
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 01/25/2011 15:35:20
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restore
    RMAN> RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    delete noprompt backup of controlfile;
    2> 3> 4> 5>
    allocated channel: ch1
    channel ch1: sid=1093 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    List of Backup Pieces
    BP Key BS Key Pc# Cp# Status Device Type Piece Name
    1480 1479 1 1 AVAILABLE SBT_TAPE 1em30ngu_1_1
    deleted backup piece
    backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
    Deleted 1 objects
    released channel: ch1
    RMAN>

    You cannot specify a tag for a standby control file.
    read here
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmstand.htm#1002594
    Edited by: Adigozalov Gurban on Jan 25, 2011 2:14 PM

  • RMAN report need backup

    We have an incremental level-1 backup Mon-Sat and cold full backup on Sundays with retention policy of 7 days. While troubleshooting some backup issues (space issue, expired backups) I ran the following commands and trying to understand the output.
    RMAN> report need backup database;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    RMAN> report need backup days = 7 database;
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report obsolete recovery window of 7 days;
    no obsolete backups found
    RMAN>
    I looks like I need 146 days worth of archive log files to recover the psindex05.dbf. If so, what I could do to bring that into the 7 days policy?
    The database is fine, I am not trying to recover the database.
    This was setup by someone and now I am taking over with minimum RMAN experience.
    I appreciate any help in this subject.

    The datafile was offline. I guess it was created my mistake and hanging in there. Once I do the cleanup it should go away.

  • RMAN-06023: no backup or copy of datafile 3 found to restore

    Hello,
    i have searched the whole forum, but i didnt get anything.
    i have rman backupset (x64), and i am trying to restore it to another machine, (same characteristic) but i got the error below.
    help please.... :(
    RMAN> run
    2> {
    3> ALLOCATE CHANNEL C1 DEVICE TYPE DISK;
    4> RESTORE DATABASE;
    5> }
    using target database control file instead of recovery catalog
    allocated channel: C1
    channel C1: SID=170 device type=DISK
    Starting restore at 03-MAY-10
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/03/2010 11:16:00
    RMAN-06026: some targets not found - aborting 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
    RMAN>

    Hello,
    i am using 10 g and my backup set, is that enough?
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    79 Full 12.85G DISK 00:26:51 12-JUN-09
    BP Key: 79 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_06
    1209042215
    Piece Name: F:\RMAN_BACKUP\2NKHDHB1_1_1
    List of Datafiles in backup set 79
    File LV Type Ckp SCN Ckp Time Name
    1 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSTEM01.DBF
    2 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\UNDOTBS01.DB
    F
    3 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSAUX01.DBF
    4 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\USERS01.DBF
    5 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\EXAMPLE01.DB
    F
    7 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_DIME
    NSIONS_01.DBF
    8 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_FACT
    S_01_REORG0_REORG0.DBF
    9 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_INDE
    XES_01.DBF
    10 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_01_REORG0.DBF
    11 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_DIME
    NSIONS_01.DBF
    12 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_FACT
    S_01_REORG0_REORG0.DBF
    13 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_INDE
    XES_01.DBF
    15 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_STAG
    ING_01_REORG0.DBF
    16 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_02_REORG0.DBF
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    80 Full 7.17M DISK 00:00:04 12-JUN-09
    BP Key: 80 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_06
    1209042215
    Piece Name: F:\RMAN_BACKUP\2OKHDITH_1_1
    SPFILE Included: Modification time: 12-JUN-09
    Control File Included: Ckp SCN: 4254271191 Ckp time: 12-JUN-09
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    81 Full 13.29G DISK 00:33:30 22-APR-10
    BP Key: 81 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_04
    2210052403
    Piece Name: F:\RMAN_BACKUP\2PLBPCV8_1_1
    List of Datafiles in backup set 81
    File LV Type Ckp SCN Ckp Time Name
    1 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSTEM01.DBF
    2 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\UNDOTBS01.DB
    F
    3 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSAUX01.DBF
    4 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\USERS01.DBF
    5 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\EXAMPLE01.DB
    F
    7 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_DIME
    NSIONS_01.DBF
    8 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_FACT
    S_01_REORG0_REORG0.DBF
    9 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_INDE
    XES_01.DBF
    10 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_01_REORG0.DBF
    11 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_DIME
    NSIONS_01.DBF
    12 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_FACT
    S_01_REORG0_REORG0.DBF
    13 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_INDE
    XES_01.DBF
    15 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_STAG
    ING_01_REORG0.DBF
    16 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_02_REORG0.DBF
    RMAN>

  • RMAN-06024: no backup or copy of the control file found to restore

    I am cloning a new database using a full backup from previous nightly rman backup using a standby database utilizing catalog. When I run the duplicate command, I get
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/27/2011 15:04:05
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restore
    But the backup of controlfile does exists in the right place. What am I missing?

    958210 wrote:
    i was trying to clone a database to a remote machine, but it is giving me the following error
    'RMAN-06024: no backup or copy of the control file found to restore
    ORA-19505: failed to identify file "/u01/app/oracle/product/11.2.0/dbs/c-1617115651-20120912-02"
    even though i can list the backup of the control file in the source machine.
    thank you
    'How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    Since we don't know what you did, so we can't know what you did wrong

  • NOLOGGING with CTAS and RMAN's Incremental backup

    DB Version: 10.2.0.4
    OS : AIX
    We use RMAN for our backup scheduled via cron.
    Retention Policy : REDUNDANCY 1
    Type             : Incremental On 31st of every month, in most of our schemas, we recreate lots of tables using CTAS.
    Because of the size , CREATE TABLE statements take a long time. Since we run on Standard edition, we can't use PARALLELISM.
    NOLOGGING is the only option to improve the performance. But we are worried about the redo not being generated for these tables and the potential loss of data in case of a crash.
    Currently we take a LEVEL0 backup every wednesday and Sunday nights and LEVEL1 backup on the rest of the days.
    I know that everything will be backed up on LEVEL0. But, what if 31st falls on a day where only LEVEL1 backup occurs. We'll only be safe until the next LEVEL0 comes along.
    Any workarounds for this?

    When you write "we need" you make an assumption not supported by the facts.
    The fact is that you need to refresh the data ... you do not need to recreate the table.
    This is just one better solution:
    http://www.morganslibrary.org/reference/materialized_views.html
    there are others too. But not knowing your version number, and you still have not really stated the business case, I can not advise which would be the best. But it is safe to say there is no way on earth I would do what you are doing based on what you've posted. For example why at the end of each day can't you copy that day's rows to a predefined table spreading the load out over all 30 days and then, at month's end truncate the current table and rename it then rename the already loaded staging table. The swap could be done in a few seconds with essentially no overhead.

  • Will RMAN remove invalid backup pieces from Backup tests?

    DB Version: 10.2.0.4.0
    Thinking that Level1 backups don't take much time, In production, I was testing a Level 1 bkp (I took a level 0 bkp of our 700gb only yesterday).
    But, the end users were complaining that system has become very slow. So, i've cancelled the LEVEL 1 backup.
    Now i can see 5 backup pieces wasting some space.
    I know that RMAN removes expired backup like
    delete expired backup;But, how do i script RMAN to remove files mentioned above ie.files from a backup that was aborted halfway through ?

    Hi Insignificant
    But, how do i script RMAN to remove files mentioned above ie.files from a backup that was aborted halfway through ?If you can locate them on the OS level you could remove them with OS commands.
    For backup pieces containg datafiles use <crosscheck backup;> followed by <delete expired backup;> with rman client.
    Tycho

  • RMAN REOPRT NEED BACKUP

    i do not really understand the 'INCREMENTAL' option of "RMAN REOPRT NEED BACKUP" command.
    like the one below:
    RMAN> REPORT NEED BACKUP INCREMENTAL 3 DATABASE;
    Whats the significance of the word 'INCREMENTAL' .
    I need help please.
    thank you

    Yes, of course.
    An incremental backup is a partial backup. It doesn't contain the entire database, just those bits of the database which have changed since the last appropriate backup.
    That's why you can't just restore an incremental backup and open your database: the backup you've just restored only has some of the database blocks in it.
    Imagine Monday's backup happens to capture blocks 5, 10, 15, 20, 25... and so on.
    Tuesday's backup captures blocks 2, 4, 6, 8, 10, 12.. and so on
    Wednesdays captures blocks 1, 3, 7, 9, 11 and so on.
    On Thursday, you lose File 1. To restore it, you need blocks 1, 2, 3, 4, 5, 6 and 7. Getting all those blocks means loading Monday's tape and restoring block 5; loading Tuesday's tape and restoring blocks 2, 4 and 6; and finally loading Wednesday's tape and restoring blocks 1, 3 and 7.
    You get everything back, but it takes you three goes and lots of tape loading.
    Alternatively, On Thursday morning I could do a new complete backup (that therefore includes blocks 1, 2, 3, 4, 5, 6, 7, 8, 9... and so on). When I lose File 1 on Thursday afternoon, I simply have to restore blocks 1, 2, 3, 4, 5, 6 and 7 from the one Thursday morning tape.
    The command you first asked about understands that the incremental restore process is a slow way of doing things and is suggesting to you that anything listed could do with a nice, new complete backup so that you would be able to restore from that new backup rather than the three old ones.

  • RMAN vs Online backup

    what would be the main advantages to use RMAN vs Online backup?
    On both backup/recovery stand point, RMAN is a lot more reliable and less user error/easy to recover/ faster backup and revocery time?
    I am using online backup but want to switch to RMAN..

    RMAN is the oracle suggested way of doing backups. RMAN automates a lot of the things that you need to handle if doing a backup the "old fashioned way". Things like the spfile, etc are automatically done w/ the backup.
    Another advantage is that RMAN only backs up blocks that are used, so if you have a datafile that is 2G, but only 100M of it is used it will only have to backup 100M, where with a manual backup you would need to backup the entire file.
    Is one way better than another? It is hard for me to say, once you become familiar with RMAN, you'll wonder why you didn't learn it earlier.
    My 2 cents anyway.

Maybe you are looking for

  • Errors when installing Oracle Client 10.2.0.2.0 on zLinux (Red Hat)

    I am receiving errors when installing Oracle Client 10.2.0.2.0 (Administrator) on zLinux. During the install I receive two notifications for File Not Found when the installer tries to create the link for lib32/libclntsh.so.10.1. I hit ignore on the p

  • Moving two motors together.

    Hi all, I'm using MID-7604 motion controller that is driving a set of motors. I wish to move 2 motors in tandem. Can anyone suggest links to how this is done in Labview? Does the hardware actually implement this in parallel, or does it internally ser

  • Is it safe to upgrade Quicktime?

    I only ask this because every time I see an upgrade for Quicktime it seems not a week goes by another program is offered to UNDO the upgrade. I am left wondering if this is standard practice....or if Quicktime updates are not the best thing for the h

  • Schedule in PWA cannot be viewed by Team Members

    Hi all Some of my team members cannot view the schedule in PWA using our Project Online service. I have checked the group setting for Team Members and in the My Task category they have access to view the Project Schedule in PWA but they receive a per

  • MacBook Pro not recognizing USBs on Dell monitor

    I have a 2013 MacBook Pro running Mavericks 10.9.1. I recently purchased a Dell UltraSharp U2312HM 23" IPS LED LCD Monitor to use for some graphics work. I am using a port to miniport cable to connect and have had no problems setting and calibrating