Unable to crosscheck backupset

Dear all,
Database version is "9.2.0.3" and using RMAN to do online backup.
I got the following errors when I "crosscheck backupset", please see below:
>
crosscheck backupset;
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=207 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=179 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of crosscheck command on ORA_DISK_1 channel at 04/13/2011 17:03:51
ORA-19608: /backup/db/backup/RMAN/backup_PROD_748148824_40533_1_ilm9fm2o_1_1.bck is not a backup piece
>
Thanks.

ORA-19608: /backup/db/backup/RMAN/backup_PROD_748148824_40533_1_ilm9fm2o_1_1.bck is not a backup pieceDoes the file still exist on disk? If yes, rename it. CROSSCHECK will no longer find it and will change the status to 'EXPIRED' in the controlfile. Then you can remove the entry with 'delete expired'.

Similar Messages

  • RMAN unable to read backupset file during Cloning

    Hi,
    I'm performing cloning operation on windows to windows. On target I have taken backup through rman using recovery catalog. I've taken fresh backup of database along with archivelogs and delete the obsoleted one using rman recovery catalog repository.
    When I connect to Target,Recovery catalog and auxiliary instance after executing some commands RMAN gives error that it is unable to read backupset file. What could be the reason for this. I'm posting the Error Portion of RMAN listing please see it and tell me what could be the reasons as I have taken fresh backups and it seems that it is unable to read that particular backup.
    channel ORA_AUX_DISK_1: reading from backup piece C:\ORACLEBASE\PRODUCT\10.2.0\F
    LASH_RECOVERY_AREA\ORCL\BACKUPSET\2010_09_27\O1_MF_NNNDF_TAG20100927T125050_6B0M
    6YLD_.BKP
    ORA-19870: error reading backup piece C:\ORACLEBASE\PRODUCT\10.2.0\FLASH_RECOVER
    Y_AREA\ORCL\BACKUPSET\2010_09_27\O1_MF_NNNDF_TAG20100927T125050_6B0M6YLD_.BKP
    ORA-19505: failed to identify file "C:\ORACLEBASE\PRODUCT\10.2.0\FLASH_RECOVERY_
    AREA\ORCL\BACKUPSET\2010_09_27\O1_MF_NNNDF_TAG20100927T125050_6B0M6YLD_.BKP"
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified
    failover to previous backup
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/27/2010 13:17:22
    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 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
    RMAN>
    Please help me in this matter.
    Regards,
    Abbasi

    If your RMAN backup exist on target server path.
    Target Server: C:\Oracle\RMAN_BACKUP\
    Put it on the same location in the auxiliary server.
    Auxiliary Server: C:\Oracle\RMAN_BACKUP\
    During cloning also connect with your recovery catalog as you are using recover catalog for the target server.
    Regards
    Asif Kabir
    Edited by: asifkabirdba on Sep 27, 2010 2:51 PM

  • Difference Between Crosscheck Backup and Crosscheck Backupset

    I am using 10gR2 on Solaris 5.10
    I have a following RMAN script:
    run
    backup database;
    crosscheck backupset;
    crosscheck backup;
    }What is the difference between Crosscheck Backup and Crosscheck Backupset? Can we just specify crosscheck backup?
    regards

    CROSSCHECK BACKUP - this command check all backup set and image copies
    but CROSSCHECK BACKUPSET check only backupsets

  • Restore CTL file from AUTOBACKUP earlier than my backupset?

    Hi ALl,
    I'm new to RMAN and inheriting a backup procedure and have a question about an output when trying to do a restore.
    Oracle 11G 11.2.0.3 on WIndows 2008 R2
    This is the RMAN backup commands:
    CROSSCHECK ARCHIVELOG ALL;
    CROSSCHECK BACKUPSET;
    CROSSCHECK BACKUP;
    CROSSCHECK COPY;
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    DELETE NOPROMPT EXPIRED BACKUPSET;
    DELETE NOPROMPT OBSOLETE;
    BACKUP CURRENT CONTROLFILE;
    BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG DELETE INPUT;
    EXIT;THen i copy the ORAFRA to another server and run the following commands (after shutdown)
    rman TARGET / NOCATALOG
    SET DBID=XXXXX;
    STARTUP NOMOUNT;
    RESTORE CONTROLFILE FROM AUTOBACKUP;
    ALTER DATABASE MOUNT;The quirky thing is, the output of the last one says the control file was restored, say on May 26th.
    In my backupsets, i have daily backups all the way until today, June 3rd.
    In the ORAFRA, i dont have AUTOBACKUPS past May 26th though my backup job has been running fine since then.
    Then i run this:
    RUN
    RESTORE DATABASE;
    RECOVER DATABASE NOREDO;
    }Thinking that i want to restore to the last full daily backup which is last night at 7pm (June 2nd).
    With the control file being restored to May 26th, will this be possible or am i missing something?
    Thanks in advance.

    Hi mseberg,
    Yes i wouldhave thought that the AUTOBACKUP folder would have folders for each of the past days, but it only has it until May 26 - so it's missing almost a week of folders.
    The restore/recovery finished but when i tried to open the database, it threw an error:
    Finished restore at 03-JUN-13
    Starting recover at 03-JUN-13
    using channel ORA_DISK_1
    Finished recover at 03-JUN-13
    RMAN> ALTER DATABASE OPEN RESETLOGS;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 06/03/2013 13:56:35
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: 'D:\ORACLE\DATABASE\ORADATA\MMSPRD7\DBF\SYSTEM01.DBF'I then did a RESTORE DATABASE and it gave this error:
    archived log file name=F:\ORAFRA\MMSPRD7\ARCHIVELOG\2013_05_27\O1_MF_1_2280_8T5P
    M463_.ARC thread=1 sequence=2280
    archived log file name=F:\ORAFRA\MMSPRD7\ARCHIVELOG\2013_05_27\O1_MF_1_2281_8T5P
    MQ37_.ARC thread=1 sequence=2281
    archived log file name=F:\ORAFRA\MMSPRD7\ARCHIVELOG\2013_05_27\O1_MF_1_2282_8T6C
    R67B_.ARC thread=1 sequence=2282
    archived log file name=F:\ORAFRA\MMSPRD7\ARCHIVELOG\2013_05_27\O1_MF_1_2283_8T6X
    JGJM_.ARC thread=1 sequence=2283
    unable to find archived log
    archived log thread=1 sequence=2284
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 06/03/2013 13:59:06
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with seq
    uence 2284 and starting SCN of 28712555Without knowing what to do next, i tried to open the database using ALTER DATABASE OPEN RESETLOGS...and it opened!
    But now i dont know what state my db is in and when did i restore it to??

  • CROSSCHECK BACKUPPIECE TAG ?

    Hi,
    Can anyone tell me what should be the correct syntax of below command. I m basically searching for backup piece from a TAG taken during a specified period in oracle 11g
    [oratux@DMXCK5 PRTUXDB]$ rman target / nocatalog
    Recovery Manager: Release 11.2.0.3.0 - Production on Fri Jun 1 08:35:34 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: PRTUXDB (DBID=329945109)
    using target database control file instead of recovery catalog
    RMAN> ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt;
    allocated channel: ORA_MAINT_SBT_TAPE_1
    channel ORA_MAINT_SBT_TAPE_1: SID=14 device type=SBT_TAPE
    channel ORA_MAINT_SBT_TAPE_1: Veritas NetBackup for Oracle - Release 7.0 (2010010419)
    RMAN> sql "alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''";
    sql statement: alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''
    RMAN>  CROSSCHECK BACKUPPIECE TAG = 'PRIMARY_HOT_DB_BK_LEVEL0' DEVICE TYPE sbt completed between '30.05.2012 09:18:48' AND '30.05.2012 09:37:32';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "completed": expecting one of: "comma, ;"
    RMAN-01007: at line 1 column 74 file: standard input

    Hi,
    You cannot mix crosschecking with a range of dates and TAG.
    With RMAN you must use with TAG or use with a range of dates.
    But you can try create a RMAN command from Catalog.
    Try it:
    Connect on RMAN Catalog.
    alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss';
    SELECT 'CROSSCHECK BACKUPSET '
      || LISTAGG (BP_KEY,',') WITHIN GROUP (
    ORDER BY BP_KEY) BK_KEY
    FROM RC_BACKUP_PIECE
    WHERE DB_ID =
      (SELECT DBID FROM RC_DATABASE WHERE NAME ='PRTUXDB'
    AND TAG  = 'PRIMARY_HOT_DB_BK_LEVEL0'
    AND START_TIME BETWEEN '30.05.2012 09:18:48' AND '30.05.2012 09:37:32';PS. I used the column START_TIME instead COMPLETION_TIME because it's most common we know wich date backup was started, due scheduler (e.g crontab).
    Regards,
    Levi Pereira
    Edited by: Levi Pereira on Jun 1, 2012 11:46 AM

  • Create standby DB with RMAN backup in Oracle 9.2.0.6

    I am tring to create a standby DB in different host with different directory using RMAN. The commandv with which I tried to create the standby database is the follow:
    (in the primary server side)
    RUN
    ALLOCATE AUXILIARY CHANNEL DUP1 TYPE DISK;
    DUPLICATE TARGET DATABASE FOR STANDBY
    NOFILENAMECHECK
    DORECOVER;
    but RMAN give me this error:
    Starting restore at 18-FEB-08
    channel DUP1: starting datafile backupset restore
    channel DUP1: restoring controlfile
    output filename=/opferi/oradata/oradata01/data01/cntrl01.dbf
    released channel: DUP1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 02/18/2008 17:57:20
    RMAN-03015: error occurred in stored script Memory Script
    ORA-19505: failed to identify file "/opferi/oracle/product/9.2.0/dbs/l4j9127p_1_1"
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    The standby database is in a different host with the same directory structure. I started (with nomount option) with the same init file that the primary database.
    I read solution like the backupset must be copied manually to the standby host, but for me is not a solution.
    The RMAN backup script is the follow (like
    RUN {
    CROSSCHECK BACKUPSET;
    DELETE NOPROMPT OBSOLETE;
    DELETE NOPROMPT EXPIRED BACKUPSET;
    crosscheck archivelog all;
    ALLOCATE CHANNEL ch00 TYPE disk;
    BACKUP
    $BACKUP_TYPE
    FORMAT '/rman/opferi2/df_sipd_%d_%u_%s_%p'
    DATABASE INCLUDE CURRENT CONTROLFILE FOR STANDBY;
    sql 'alter system archive log current';
    backup format '/rman/opferi2/archive_log_%d_t%t_s%s_p%p' (archivelog all);
    RELEASE CHANNEL ch00;
    when $BACKUP_TYPE=0
    Can anyone help my with this problem?? Thaks
    Cristian.
    PS. Sorry my bad english because I am from Latin America

    Requirements are:
    1 the backup should be accessible to both target and auxiliary database in the same location.
    2 On Unix this can be arranged through NFS, provided you set the read and write buffer to 32k.
    Obviously the backup can not be located in $ORACLE_HOME/dbs, as you can not mount a NFS directory over $ORACLE_HOME/dbs without loosing functionality.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • RMAN-03009: failure of delete command on ... ORA-19606: Cannot copy or rest

    one server using 11.2.0.1.0 under Suse Linux
    configured catalog db, main db & jobs & ... almost everything with enterprise manager
    keep backups 14 days
    To make 14 full online dumps I had to aktive the archive mode and try to get rid of thoose unwanted additional files.
    Additional I make every night (less til no db activity) a dump and compress it myself.
    After some days the backupjob complain that it can not delete old files.
    EM / manage all backups / crosscheck all(
    CROSSCHECK BACKUPSET;
    CROSSCHECK COPY;
    sucessful
    EM / manage all backups / delete old backups
    DELETE NOPROMPT OBSOLETE;
    failed.
    script result
    Recovery Manager: Release 11.2.0.1.0 - Production on Tue Sep 7 17:20:55 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN>
    connected to target database: <SID> (DBID=773091283)
    RMAN>
    connected to recovery catalog database
    RMAN>
    echo set on
    RMAN> DELETE NOPROMPT OBSOLETE;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 14 days
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=196 device type=DISK
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Control File Copy 3831 03-AUG-10 /opt/oracle/base/product/11gR1/db/dbs/snapcf_<SID>.f
    Backup Set 18750 23-AUG-10
    Backup Piece 18754 23-AUG-10 /srv/ora/data/flash_recovery_area/<SID>/backupset/2010_08_23/o1_mf_nnndf_BACKUP_<SID>CH0_673c0hbp_.bkp
    Backup Set 18751 23-AUG-10
    Backup Piece 18755 23-AUG-10 /srv/ora/data/flash_recovery_area/<SID>/backupset/2010_08_23/o1_mf_nnndf_BACKUP_<SID>CH0_673c0hbo_.bkp
    Backup Set 19479 24-AUG-10
    Backup Piece 19482 24-AUG-10 /tmp/o0lm3qh9_1_1
    Backup Set 19490 24-AUG-10
    Backup Set 20087 24-AUG-10
    Backup Piece 20089 24-AUG-10 /srv/ora/data/flash_recovery_area/<SID>/autobackup/2010_08_24/o1_mf_s_727891232_677n40r3_.bkp
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of delete command on ORA_DISK_1 channel at 09/07/2010 17:20:57
    ORA-19606: Cannot copy or restore to snapshot control file
    exit;
    Recovery Manager complete.
    google found some questions, but not fittung answers.
    So far:
    - I checked the folder & users rights.
    - I found some /tmp/ files - yes I "backup" the backuped archivelogs to-delete files in /tmp - I only active archivelogmode so I can onlinebackup
    - I managed to login via rman and execute DELETE OBSOLETE manual - result above.
    - Actual I delete the set one by one to find the problem set. (delete backupset 12345 ) from the list manually.
    Some a good idea what went wrong?
    additional: Is there a way to let oracle delete the empy archvielog-directories after deleting the logs within?
    18:00- the command "RMAN> BACKUP CURRENT CONTROLFILE" also fails.
    Edited by: 793286 on 07.09.2010 09:00

    Meanwhile I managed to delete all backupsets one by one.
    The problem with $ORACLE_HOME/dbs/snapcf_<SID>.f persists.
    cd $ORACLE_HOME/dbs
    mv snapcf_<SID>.f snapcf_<SID>.f.bak
    # replaced actual dbsidname with <SID>
    RMAN> delete obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 14 days
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Control File Copy 3831 03-AUG-10 /opt/oracle/base/product/11gR1/db/dbs/snapcf_TARMED1P.f
    Do you really want to delete the above objects (enter YES or NO)? y
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of delete command on ORA_DISK_1 channel at 09/08/2010 09:44:07
    ORA-19606: Cannot copy or restore to snapshot control file
    mv snapcf_<SID>.f.bak snapcf_<SID>.fRMAN> backup current controlfile;
    Starting backup at 08-SEP-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting compressed full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 08-SEP-10
    channel ORA_DISK_1: finished piece 1 at 08-SEP-10
    piece handle=/srv/ora/data/flash_recovery_area/TARMED1P/backupset/2010_09_08/o1_mf_ncnnf_TAG20100908T095000_68gj1b2m_.bkp tag=TAG20100908T095000 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 08-SEP-10
    Starting Control File and SPFILE Autobackup at 08-SEP-10
    piece handle=/srv/ora/data/flash_recovery_area/TARMED1P/autobackup/2010_09_08/o1_mf_s_729165003_68gj1d1b_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 08-SEP-10
    RMAN> delete obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 14 days
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Control File Copy 3831 03-AUG-10 /opt/oracle/base/product/11gR1/db/dbs/snapcf_<SID>.f
    Do you really want to delete the above objects (enter YES or NO)? y
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of delete command on ORA_DISK_1 channel at 09/08/2010 09:52:37
    ORA-19606: Cannot copy or restore to snapshot control file
    No different effect, if I changed the filename via 2nd terminal to .bak or not.
    RMAN> delete controlfilecopy 3831;
    will fail, if the file exists or not.
    Any chance to reset/kill that file?
    Is there a need to restart the dbms after rename the file?

  • Error in creating Duplicate Database in same server..

    Hi,
    I am getting following error when creating duplicate database
    DB Version=10.2.0.4
    $ rman target sys/sys@test nocatalog auxiliary /
    Recovery Manager: Release 10.2.0.4.0 - Production on Mon Sep 28 15:13:32 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: TEST (DBID=1702666620, not open)
    using target database control file instead of recovery catalog
    connected to auxiliary database: CLNTEST (not mounted)
    RMAN> DUPLICATE TARGET DATABASE TO "CLNTEST";
    Starting Duplicate Db at 28-SEP-09
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=156 devtype=DISK
    contents of Memory Script:
    set until scn 597629461;
    set newname for datafile 1 to
    "/u01/data_new/clonetest/system01.dbf";
    set newname for datafile 2 to
    "/u01/data_new/clonetest/undotbs01.dbf";
    set newname for datafile 3 to
    "/u01/data_new/clonetest/sysaux01.dbf";
    set newname for datafile 4 to
    "/u01/data_new/clonetest/users01.dbf";
    set newname for datafile 5 to
    "/u01/data_new/clonetest/example01.dbf";
    set newname for datafile 6 to
    "/u01/data_new/clonetest/undotbs02.dbf";
    set newname for datafile 7 to
    "/u01/data_new/clonetest/alweb1.dbf";
    set newname for datafile 8 to
    "/u01/data_new/clonetest/indx1.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
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 28-SEP-09
    using channel ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/28/2009 15:13:40
    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 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
    RMAN> crosscheck backupset of datafile 1;
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=154 devtype=DISK
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
    Crosschecked 2 objects
    RMAN> crosscheck backupset of datafile 2;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
    Crosschecked 2 objects
    RMAN> crosscheck backupset of datafile 3;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
    Crosschecked 2 objects
    RMAN> crosscheck backupset of datafile 4;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
    Crosschecked 2 objects
    RMAN> crosscheck backupset of datafile 5;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
    Crosschecked 2 objects
    RMAN> crosscheck backupset of datafile 6;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
    Crosschecked 2 objects
    RMAN> crosscheck backupset of datafile 7;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/rmanbkp/db_prd0akqcnoh_1_1 recid=10 stamp=698769169
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid=17 stamp=698771444
    Crosschecked 2 objects
    Thanks,

    Hi,
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/ora10g/product/10.2.0/db_1/dbs/snapcf_TEST.f'; # default
    Thanks,

  • Recovery window retention policy deletes archive logs before a backup?

    Hi All,
    Oracle 11G on Windows 2008 R2
    This afternoon, I changed my RMAN retention policy from 'RETENTION POLICY REDUNDANCY 3' to RETENTION POLICY RECOVERY WINDOW OF 3 DAYS'
    However, i checked tonight and after my daily backup ran, all the archive logs prior to the backup had been deleted! Thus meaning i dont think i can restore to any point in time, prior to my daily backup. All the .arc logs were there after the backup. So i tried another test and kicked off the daily backup again. During the backup process, the archive logs got deleted again! Now i don't have any archive logs..
    Is this proper behaviour of RETENTION POLICY RECOVERY WINDOW?? I thought it would keep all the files needed for me to restore to any point in time for the previous 3 days. When i used REDUNDANCY, with my daily backups, it kept 3 days worth of backups+ archive logs so i could restore point-in-time to any point. How can i use RECOVERY WINDOW so that i can actually restore to any point-in-time for the 3 days??
    I wanted to change to RECOVERY WINDOW since i read that by using REDUNDANCY it only keeps X copies of a backup (so if i ran the backup 3 times in a day, i would only have those 3).
    Thanks in advance.

    Hi All,
    Here is the SHOW ALL output:
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name MMSPRD7 are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOA
    D TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\DATABASE\ORA11G\DATABASE\SNCFM
    MSPRD7.ORA'; # default
    Here is the RMAN script:
    Recovery Manager: Release 11.2.0.3.0 - Production on Mon Jan 20 23:03:12 2014
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: XXX (DBID=)
    RMAN> CROSSCHECK ARCHIVELOG ALL;
    2> CROSSCHECK BACKUPSET;
    3> CROSSCHECK BACKUP;
    4> CROSSCHECK COPY;
    5> DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    6> DELETE NOPROMPT EXPIRED BACKUPSET;
    7> DELETE NOPROMPT OBSOLETE;
    8> BACKUP CURRENT CONTROLFILE;
    9> BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG DELETE INPUT;
    Also, not sure if you needed the whole RMAN output, but here is the deletion part:
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 3 days
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           1392   15-JAN-14        
      Backup Piece       1392   15-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_NNNDF_TAG20140115T190054_9FG89R8N_.BKP
    Backup Set           1393   15-JAN-14        
      Backup Piece       1393   15-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_ANNNN_TAG20140115T192204_9FG9KDHX_.BKP
    Backup Set           1397   16-JAN-14        
      Backup Piece       1397   16-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_16\O1_MF_ANNNN_TAG20140116T190027_9FJWNW6L_.BKP
    Backup Set           1400   17-JAN-14        
      Backup Piece       1400   17-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_17\O1_MF_ANNNN_TAG20140117T190138_9FMK349M_.BKP
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_NNNDF_TAG20140115T190054_9FG89R8N_.BKP RECID=1392 STAMP=836938856
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_ANNNN_TAG20140115T192204_9FG9KDHX_.BKP RECID=1393 STAMP=836940124
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_16\O1_MF_ANNNN_TAG20140116T190027_9FJWNW6L_.BKP RECID=1397 STAMP=837025228
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_17\O1_MF_ANNNN_TAG20140117T190138_9FMK349M_.BKP RECID=1400 STAMP=837111700
    Deleted 4 objects

  • Backup file getting generated on FRA insted of format path

    Hi,
    I have below script to generate RMAN full backup on given path in FORMAT directory, still RMAN genarate one .bkp file on FRA.
    We require to generate all backup files on given format path only.
    below file was generated on FRA
    o1_mf_nnndf_TAG20100804T043926_65l9t06h_.bkpBelow is the code for generating full backup.
    backup database plus archivelog FORMAT '/export/home/nfs_bak/lims/backup/ndb/backup_%d_DB_%D%M%Y_%U_%s'  delete all input;
    resync catalog;
    report schema;
    list backup;
    CROSSCHECK BACKUP;
    CROSSCHECK BACKUPSET;
    DELETE NOPROMPT EXPIRED BACKUP;
    DELETE NOPROMPT OBSOLETE DEVICE TYPE DISK;
    CROSSCHECK  ARCHIVELOG ALL;
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;Oracle : 11gR2
    OS:Solaris

    Output for old command:
    RMAN> backup database plus archivelog FORMAT '/export/home/nfs_bak/lims/backup/ndb/backup_%d_DB_%D%M%Y_%U_%s'  delete all input;
    Starting backup at 05-AUG-10
    current log archived
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=194 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=225 device type=DISK
    channel ORA_DISK_1: starting archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=26 RECID=24 STAMP=726199910
    channel ORA_DISK_1: starting piece 1 at 05-AUG-10
    channel ORA_DISK_1: finished piece 1 at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/backup_NDB_DB_05082010_16lkhrj8_1_1_38 tag=TAG20100805T021152 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    channel ORA_DISK_1: deleting archived log(s)
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_05/o1_mf_1_26_65nok6fb_.arc RECID=24 STAMP=726199910
    Finished backup at 05-AUG-10
    Starting backup at 05-AUG-10
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00001 name=+DATA/lims/ndb/system01.dbf
    input datafile file number=00002 name=+DATA/lims/ndb/sysaux01.dbf
    input datafile file number=00006 name=+DATA/lims/ndb/datafile/ndb_cellmap_idx_tbs_01.dbf
    input datafile file number=00008 name=+DATA/lims/ndb/datafile/ndb_fingerprint_tbs_idx_01.dbf
    input datafile file number=00010 name=+DATA/lims/ndb/datafile/ndb_sys_idx_tbs_01.dbf
    channel ORA_DISK_1: starting piece 1 at 05-AUG-10
    channel ORA_DISK_2: starting full datafile backup set
    channel ORA_DISK_2: specifying datafile(s) in backup set
    input datafile file number=00005 name=+DATA/lims/ndb/datafile/ndb_cellmap_tbs_01.dbf
    input datafile file number=00007 name=+DATA/lims/ndb/datafile/ndb_fingerprint_tbs_01.dbf
    input datafile file number=00009 name=+DATA/lims/ndb/datafile/ndb_sys_tbs_01.dbf
    input datafile file number=00003 name=+DATA/lims/ndb/undotbs01.dbf
    input datafile file number=00004 name=+DATA/lims/ndb/users01.dbf
    channel ORA_DISK_2: starting piece 1 at 05-AUG-10
    channel ORA_DISK_1: finished piece 1 at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/backup_NDB_DB_05082010_17lkhrj9_1_1_39 tag=TAG20100805T021153 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:06:46
    channel ORA_DISK_2: finished piece 1 at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/NDB/backupset/2010_08_05/o1_mf_nnndf_TAG20100805T021153_65nokdyo_.bkp tag=TAG20100805T021153 comment=NONE
    channel ORA_DISK_2: backup set complete, elapsed time: 00:06:56
    Finished backup at 05-AUG-10
    Starting backup at 05-AUG-10
    current log archived
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    channel ORA_DISK_1: starting archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=27 RECID=25 STAMP=726200330
    channel ORA_DISK_1: starting piece 1 at 05-AUG-10
    channel ORA_DISK_1: finished piece 1 at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/backup_NDB_DB_05082010_19lkhs0b_1_1_41 tag=TAG20100805T021851 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    channel ORA_DISK_1: deleting archived log(s)
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_05/o1_mf_1_27_65noyb7m_.arc RECID=25 STAMP=726200330
    Finished backup at 05-AUG-10
    Starting Control File and SPFILE Autobackup at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/db11g_c-1074407344-20100805-01 comment=NONE
    Finished Control File and SPFILE Autobackup at 05-AUG-10output for updated command:
    RMAN> RUN
    2> {
    3>  allocate channel channel1 device type disk format '/export/home/nfs_bak/lims/backup/ndb/backup_%d_DB_%D%M%Y_%U_%s';
    4>  backup database plus archivelog delete all input;
    5> release channel channel1;
    6> }
    7> resync catalog;
    8> report schema;
    9> list backup;
    10> crosscheck backup;
    11> crosscheck backupset;
    12> delete noprompt expired backup;
    13> delete noprompt obsolete;
    14> crosscheck archivelog all;
    15> DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    16>
    starting full resync of recovery catalog
    full resync complete
    allocated channel: channel1
    channel channel1: SID=98 device type=DISK
    Starting backup at 05-AUG-10
    current log archived
    channel channel1: starting archived log backup set
    channel channel1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=20 RECID=18 STAMP=726148869
    input archived log thread=1 sequence=21 RECID=19 STAMP=726175480
    input archived log thread=1 sequence=22 RECID=20 STAMP=726185922
    input archived log thread=1 sequence=23 RECID=21 STAMP=726195156
    input archived log thread=1 sequence=24 RECID=22 STAMP=726197409
    channel channel1: starting piece 1 at 05-AUG-10
    channel channel1: finished piece 1 at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/backup_NDB_DB_05082010_12lkhp52_1_1_34 tag=TAG20100805T013010 comment=NONE
    channel channel1: backup set complete, elapsed time: 00:00:07
    channel channel1: deleting archived log(s)
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_04/o1_mf_1_20_65m3p0rz_.arc RECID=18 STAMP=726148869
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_04/o1_mf_1_21_65mxonbz_.arc RECID=19 STAMP=726175480
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_04/o1_mf_1_22_65n7vtog_.arc RECID=20 STAMP=726185922
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_05/o1_mf_1_23_65njwhld_.arc RECID=21 STAMP=726195156
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_05/o1_mf_1_24_65nm31ko_.arc RECID=22 STAMP=726197409
    Finished backup at 05-AUG-10
    Starting backup at 05-AUG-10
    channel channel1: starting full datafile backup set
    channel channel1: specifying datafile(s) in backup set
    input datafile file number=00005 name=+DATA/lims/ndb/datafile/ndb_cellmap_tbs_01.dbf
    input datafile file number=00001 name=+DATA/lims/ndb/system01.dbf
    input datafile file number=00002 name=+DATA/lims/ndb/sysaux01.dbf
    input datafile file number=00007 name=+DATA/lims/ndb/datafile/ndb_fingerprint_tbs_01.dbf
    input datafile file number=00006 name=+DATA/lims/ndb/datafile/ndb_cellmap_idx_tbs_01.dbf
    input datafile file number=00008 name=+DATA/lims/ndb/datafile/ndb_fingerprint_tbs_idx_01.dbf
    input datafile file number=00009 name=+DATA/lims/ndb/datafile/ndb_sys_tbs_01.dbf
    input datafile file number=00003 name=+DATA/lims/ndb/undotbs01.dbf
    input datafile file number=00010 name=+DATA/lims/ndb/datafile/ndb_sys_idx_tbs_01.dbf
    input datafile file number=00004 name=+DATA/lims/ndb/users01.dbf
    channel channel1: starting piece 1 at 05-AUG-10
    channel channel1: finished piece 1 at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/backup_NDB_DB_05082010_13lkhp5a_1_1_35 tag=TAG20100805T013018 comment=NONE
    channel channel1: backup set complete, elapsed time: 00:06:55
    Finished backup at 05-AUG-10
    Starting backup at 05-AUG-10
    current log archived
    channel channel1: starting archived log backup set
    channel channel1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=25 RECID=23 STAMP=726197834
    channel channel1: starting piece 1 at 05-AUG-10
    channel channel1: finished piece 1 at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/backup_NDB_DB_05082010_14lkhpia_1_1_36 tag=TAG20100805T013714 comment=NONE
    channel channel1: backup set complete, elapsed time: 00:00:01
    channel channel1: deleting archived log(s)
    archived log file name=/export/home/nfs_bak/lims/backup/ndb/NDB/archivelog/2010_08_05/o1_mf_1_25_65nmj9y9_.arc RECID=23 STAMP=726197834
    Finished backup at 05-AUG-10
    Starting Control File and SPFILE Autobackup at 05-AUG-10
    piece handle=/export/home/nfs_bak/lims/backup/ndb/db11g_c-1074407344-20100805-00 comment=NONE
    Finished Control File and SPFILE Autobackup at 05-AUG-10
    released channel: channel1

  • Oracle 9i Data Guard on Solaris 9

    I've set up a database on two separate servers and am creating a physical standby database using Oracle's documentation. Since there are few folks I can talk to who have run dataguard for a failover operation, I need some experienced advice.
    Thus far, I have:
    1) enabled force logging on the Primary Database and ensured the primary is also in archivelog mode and have defined a local archiving destination.
    2) Copied the datafiles on the primary DB to a temporary location, and created a control file for the standby database.
    3) Created a pfile from the spfile for future editing.
    4) The next step is what I'm unsure of - copying the files from the primary system to the standby system (datafiles, standby control file, and initialization parameter file). Where exactly should each of these files being copied over be placed...in the same directories traditionally used, or should I create a "standby" directory as a subdirectory. If I drop for example the standby control file in the traditional directory (i.e., $ORACLE_BASE/oradata/(sid)), should the other controlfile be left there?
    Any help would be most appreciated.

    Here is another way of setting up standby
    take a backup using following script and restore it as duplicate. Before restoring, make sure you have all the necessary configuraion set for standby and primary communiction. All the backedup archivelogs are available.
    run {
    sql 'alter session set optimizer_mode=rule';
    # Clean up the repository - prior to the backup
    crosscheck backupset;
    crosscheck copy;
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/your path/%%F';
    # Allocate Channels.
    allocate channel c1 type disk format '/your path/logs_%T_%U';
    #crosscheck copy of archivelog all;
    sql 'alter system archive log current';
    BACKUP CURRENT CONTROLFILE FOR STANDBY;
    backup as compressed backupset
    archivelog all
    tag archive_logs
    delete all input;
    # Release Channels.
    release channel c1;
    allocate channel c1 type disk format '/your path/dbf_%T_%U';
    allocate channel c2 type disk format '/your path/dbf_%T_%U';
    allocate channel c3 type disk format '/your path/dbf_%T_%U';
    allocate channel c4 type disk format '/your path/dbf_%T_%U';
    backup incremental level 0 cumulative
    as compressed backupset
    database
    plus archivelog
    tag database_inc0;
    backup as copy current controlfile
    format '/your path/bacracp11_control.ctl' reuse
    tag control_file;
    # Release Channels.
    release channel c1;
    release channel c2;
    release channel c3;
    release channel c4;
    for restore use following configurtion; please make changes to this according to rman setup
    run {
    allocate auxiliary channel c1 type disk;
    allocate auxiliary channel c2 type disk;
    allocate auxiliary channel c3 type disk;
    allocate auxiliary channel c4 type disk;
    Make sure set all the files from your primary database use following example
    set newname for datafile 1 to '/your path/system01.dbf';
    set newname for tempfile '/your path/temp01.dbf' to '/your standby path/temp01.dbf';
    duplicate target database for standby;
    switch datafile all;
    switch tempfile all;
    release channel c1;
    release channel c2;
    release channel c3;
    release channel c4;
    }

  • Need help in the RMAN backup

    Hi everybody
    What are the steps needed if move the RMAN backup to other location in the OS level
    (ie) every week i have to move the backup to other location

    There are not problem for example:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\comp>set ORACLE_SID=W
    C:\Documents and Settings\comp>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon Apr 26 14:53:08 2010
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    ERROR:
    ORA-01031: insufficient privileges
    Enter user-name:
    C:\Documents and Settings\comp>sqlplus "sys/sm as sysdba"
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon Apr 26 14:53:15 2010
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> archive log list;
    Database log mode No Archive Mode
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 12
    Current log sequence 14
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 125829120 bytes
    Fixed Size 1288100 bytes
    Variable Size 71305308 bytes
    Database Buffers 46137344 bytes
    Redo Buffers 7098368 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter databaseop;
    alter databaseop
    ERROR at line 1:
    ORA-00940: invalid ALTER command
    SQL> alter database open;
    Database altered.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings\comp>rman target sys/sm
    Recovery Manager: Release 10.2.0.2.0 - Production on Mon Apr 26 14:55:58 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: W (DBID=754336873)
    RMAN> backup database;
    Starting backup at 26-APR-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=144 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\SYSTEM01.DBF
    input datafile fno=00003 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\SYSAUX01.DBF
    input datafile fno=00005 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\EXAMPLE01.DBF
    input datafile fno=00002 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\UNDOTBS01.DBF
    input datafile fno=00004 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 26-APR-10
    channel ORA_DISK_1: finished piece 1 at 26-APR-10
    piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\2010_04_26
    \O1_MF_NNNDF_TAG20100426T145611_5XBRSX1M_.BKP tag=TAG20100426T145611 comment=NON
    E
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:34
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 26-APR-10
    channel ORA_DISK_1: finished piece 1 at 26-APR-10
    piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\2010_04_26
    \O1_MF_NCSNF_TAG20100426T145611_5XBRWXG2_.BKP tag=TAG20100426T145611 comment=NON
    E
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
    Finished backup at 26-APR-10
    RMAN> crossckeck backupset;
    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: "allocate, alter
    , backup, beginline, blockrecover, catalog, change, connect, copy, convert, crea
    te, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flas
    hback, host, {, library, list, mount, open, print, quit, recover, register, rele
    ase, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, s
    et, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport
    , upgrade, unregister, validate"
    RMAN-01008: the bad identifier was: crossckeck
    RMAN-01007: at line 1 column 1 file: standard input
    RMAN> crosscheck backupset;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\201
    0_04_26\O1_MF_NNNDF_TAG20100426T145611_5XBRSX1M_.BKP recid=1 stamp=717346573
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\201
    0_04_26\O1_MF_NCSNF_TAG20100426T145611_5XBRWXG2_.BKP recid=2 stamp=717346669
    Crosschecked 2 objects
    RMAN> delete expired backupset
    2> ;
    using channel ORA_DISK_1
    List of Backup Pieces
    BP Key BS Key Pc# Cp# Status Device Type Piece Name
    1 1 1 1 EXPIRED DISK D:\ORACLE\PRODUCT\10.2.0\FLASH_R
    ECOVERY_AREA\W\BACKUPSET\2010_04_26\O1_MF_NNNDF_TAG20100426T145611_5XBRSX1M_.BKP
    2 2 1 1 EXPIRED DISK D:\ORACLE\PRODUCT\10.2.0\FLASH_R
    ECOVERY_AREA\W\BACKUPSET\2010_04_26\O1_MF_NCSNF_TAG20100426T145611_5XBRWXG2_.BKP
    Do you really want to delete the above objects (enter YES or NO)? y
    deleted backup piece
    backup piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\201
    0_04_26\O1_MF_NNNDF_TAG20100426T145611_5XBRSX1M_.BKP recid=1 stamp=717346573
    deleted backup piece
    backup piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\201
    0_04_26\O1_MF_NCSNF_TAG20100426T145611_5XBRWXG2_.BKP recid=2 stamp=717346669
    Deleted 2 EXPIRED objects
    now i copy all backup to c:\db
    then
    RMAN> catalog start with 'c:\db';
    searching for all files that match the pattern c:\db
    List of Files Unknown to the Database
    =====================================
    File Name: C:\db\O1_MF_NCSNF_TAG20100426T145611_5XBRWXG2_.BKP
    File Name: C:\db\O1_MF_NNNDF_TAG20100426T145611_5XBRSX1M_.BKP
    Do you really want to catalog the above files (enter YES or NO)? y
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: C:\db\O1_MF_NCSNF_TAG20100426T145611_5XBRWXG2_.BKP
    File Name: C:\db\O1_MF_NNNDF_TAG20100426T145611_5XBRSX1M_.BKP
    RMAN> list backupset;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    1 Full 592.76M DISK 00:01:26 26-APR-10
    BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20100426T145611
    Piece Name: C:\DB\O1_MF_NNNDF_TAG20100426T145611_5XBRSX1M_.BKP
    List of Datafiles in backup set 1
    File LV Type Ckp SCN Ckp Time Name
    1 Full 947689 26-APR-10 D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\SYSTEM01.
    DBF
    2 Full 947689 26-APR-10 D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\UNDOTBS01
    .DBF
    3 Full 947689 26-APR-10 D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\SYSAUX01.
    DBF
    4 Full 947689 26-APR-10 D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\USERS01.D
    BF
    5 Full 947689 26-APR-10 D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\EXAMPLE01
    .DBF
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2 Full 6.80M DISK 00:00:04 26-APR-10
    BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20100426T145611
    Piece Name: C:\DB\O1_MF_NCSNF_TAG20100426T145611_5XBRWXG2_.BKP
    Control File Included: Ckp SCN: 947720 Ckp time: 26-APR-10
    SPFILE Included: Modification time: 26-APR-10
    RMAN>

  • Problem about backup use rman

    i find when i use script to run rman ,the date of rman is not the date when script run,why?
        =============*Thu Nov 29 09:15:01 CST 2012 begin backup* ============
        RUN
                backup incremental level 1 cumulative tag 'olel_121129' skip inaccessible database;
                sql 'alter system archive log current';
                backup archivelog all delete input tag 'arch_121129';
        crosscheck backupset;
        delete noprompt expired backupset;
        report obsolete;
        delete noprompt obsolete;
        exit;
        *Recovery Manager: Release 11.2.0.1.0 - Production on Mon Nov 26 10:22:47 2012*
        Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
        RMAN>

    time zone
    # date +%z
    +0800
    and content of script
    #!/bin/bash
    RMAN_LOG=/home/oracle/scripts/rman.log
    BAK_LOG=/home/oracle/scripts/bak.log
    DAY=`date +%u`;
    if [ $DAY != 7 ];then
    LEV=1;
    else
    LEV=0;
    fi
    if [ $LEV = 1 ];then
    TAG='olel_'`date +%y%m%d`;
    else
    TAG='zlel_'`date +%y%m%d`;
    fi
    ARCHTAG='arch_'`date +%y%m%d`;
    echo "=============`date` begin backup ============" >> ${BAK_LOG}
    cat > /tmp/rmanrt.$$<<!
    RUN
            backup incremental level $LEV cumulative tag '$TAG' skip inaccessible da                                                                                                 tabase;
            sql 'alter system archive log current';
            backup archivelog all delete input tag '$ARCHTAG';
    crosscheck backupset;
    delete noprompt expired backupset;
    report obsolete;
    delete noprompt obsolete;
    exit;
    $ORACLE_HOME/bin/rman target / cmdfile=/tmp/rmanrt.$$ log=${RMAN_LOG}
    cat /tmp/rmanrt.$$ >> ${BAK_LOG}
    \rm /tmp/rmanrt.$$
    cat ${RMAN_LOG} >> ${BAK_LOG}
    echo "=============`date` end backup ============" >> ${BAK_LOG}execute from cmdline
    [oracle@DBtest scripts]$ ./bak.rmn
    RMAN> RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> [oracle@DBtest scripts]$
    =============Thu Nov 29 16:46:12 CST 2012 begin backup ============
    RUN
            backup incremental level 1 cumulative tag 'olel_121129' skip inaccessible database;
            sql 'alter system archive log current';
            backup archivelog all delete input tag 'arch_121129';
    crosscheck backupset;
    delete noprompt expired backupset;
    report obsolete;
    delete noprompt obsolete;
    exit;
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Nov 29 16:46:12 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: TESTDB (DBID=2581033720)
    RMAN>
    RMAN> RUN
    2> {
    3>      backup incremental level 1 cumulative tag 'olel_121129' skip inaccessible database;
    4>      sql 'alter system archive log current';
    5>      backup archivelog all delete input tag 'arch_121129';
    6> }
    7> crosscheck backupset;
    8> delete noprompt expired backupset;
    9> report obsolete;
    10> delete noprompt obsolete;
    11> exit;
    Starting backup at 29-NOV-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=152 device type=DISK
    channel ORA_DISK_1: starting incremental level 1 datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00002 name=+BMDATA/testdb/datafile/sysaux.257.797705505
    input datafile file number=00001 name=+BMDATA/testdb/datafile/system.256.797705505
    input datafile file number=00003 name=+BMDATA/testdb/datafile/undotbs1.258.797705505
    input datafile file number=00004 name=+BMDATA/testdb/datafile/users.259.797705505
    channel ORA_DISK_1: starting piece 1 at 29-NOV-12
    channel ORA_DISK_1: finished piece 1 at 29-NOV-12
    piece handle=+BMFRA/testdb/backupset/2012_11_29/nnndn1_olel_121129_0.315.800642775 tag=OLEL_121129 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting incremental level 1 datafile backup setEdited by: 859340 on 2012-11-29 上午12:45

  • Backup through RMAN

    Hi guys.
    I am new in oracle database.my database is in no archive mode
    i want to take backup through RMAN .
    rman target sys/oracle
    backup database;
    but fail to backup. please see error
    ORA -19602: cannot backup or copy active file in noarchivelog mode

    Enable archiving in 10g
    1. shutdown immediate;
    2. edit init.ora set log_archive_start=TRUE /*Set this if your database is 9i. If 10g DB then ignore this step*/
    3. startup mount;
    4. alter database archivelog;
    5. alter database flashback on; /*Not required to enable archiving. Just extra info to enable flashback logs*/
    6. alter database open;
    7. archive log list;
    Now take backup
    run
    allocate channel ch1 type disk format '%D_%d_%t_%T_%s.bak';
    backup database plus archivelog;
    report obsolete;
    delete noprompt obsolete;
    crosscheck backupset;
    crosscheck archivelog all;
    resync catalog;
    Sami Malik
    [email protected]

  • Dbms_scheduler job on windows

    Hi
    Oracle 11gR2 on windows.
    I am trying to schedule a rman backup job through dbms_scheduler however backup doesnt happen. Note that backup works if I initiate manually (by double clicking hotbackup.bat)
    Same scripts work in 10g database, not sure why it doesnt work in 11g.
    1-) Create schedule
    BEGIN sys.dbms_scheduler.create_schedule( 
    repeat_interval => 'FREQ=DAILY;BYHOUR=20;BYMINUTE=0;BYSECOND=0', 
    start_date => systimestamp, 
    comments => 'schedule for the backup job', 
    schedule_name => 'my_backup_job_schedule');
    END;
    /2-) Create job
    BEGIN sys.dbms_scheduler.create_job(  
    job_name => 'daily_backup_job', 
    job_type => 'EXECUTABLE', 
    job_action => 'E:\rman\script\hotbackup.bat',
    schedule_name => 'my_backup_job_schedule', 
    job_class => 'DEFAULT_JOB_CLASS', 
    comments => 'Job which backup the db', 
    auto_drop => FALSE, 
    enabled => TRUE);
    END;
    /3-)hotbackup.bat
    c:\windows\system32\cmd.exe /c rman target sys/sys @E:\rman\script\backup.rman LOG=E:\rman\log\rman.log 
    exit /B 0 4-)backup.rman
    run {
    set command id to 'rman_backup';
    crosscheck archivelog all;
    crosscheck backupset;
    delete noprompt obsolete;
    delete noprompt expired backupset;
    BACKUP AS COMPRESSED BACKUPSET DATABASE FORMAT 'E:/rman/backupset/database_%d_%u_%s_%T' PLUS ARCHIVELOG FORMAT 'E:/rman/backupset/archivelog_%d_%u_%s_%T';
    backup current controlfile format 'E:/rman/backupset/control_%d_%u_%s_%T';
    crosscheck backupset;
    crosscheck archivelog all;
    delete noprompt obsolete;
    delete noprompt expired backupset;
    delete noprompt expired archivelog all;
    }

    When running a Windows shell script, your job_action needs to be the command interpreter, with arguments that name the script it should run.exec dbms_scheduler.create_job(-
    job_name=>'batchfile',-
    job_type=>'executable',-
    job_action=>'c:\windows\system32\cmd.exe',-
    number_of_arguments => 2,-
    enabled=>false,-
    auto_drop=>false)
    exec dbms_scheduler.set_job_argument_value('batchfile',1,'/c');
    exec dbms_scheduler.set_job_argument_value('batchfile',2,'c:\tmp\batchfile.bat');
    exec dbms_scheduler.enable('batchfile')
    select job_name, status, error#, actual_start_date, additional_info
    from user_scheduler_job_run_details where job_name='BATCHFILE' order by actual_start_date; You might want to start with a very simple batch file.

Maybe you are looking for

  • View for maxlogmembers????

    Is there a view or table that shows the current values for database settings such as MAXLOGMEMBERS, MAXLOGFILES, etc.???

  • Time Remapping

    I must be looking in all the wrong places but I can not seem to get keyframes working, for effects such as time remapping is there a tutorial for timeremapping I can not get it to work I am so confused.

  • Apple Pro Speakers Dual Query

    Hi Everyone, Wondering if you could help me with the following: I have a set of apple pro speakers connected to my Powermac G4 and would like to connect a second set up that I have at the same time and just wanted to know whetehr this is possible. Al

  • Unable to Personalize at SITE level.

    I was customization "Customer" pages in R12. Code is ready, problem is that, When i goto personalize page, I can't personalize at SITE level, i'm getting only for ORGANIZATION level. Screenshot LINK -> http://i.imgur.com/7lPt9yM.png NOTE Same  issue

  • Upload photo to photo library problem

    Hi, i have problem with uploading photo from PC via browser to photo library. Photo was taken by iphone and has in EXIF information taht was taken at 10:21 am but after uploading it show on web gallery that it was taken at 19:21. In settings i found