Incremantal Backups with RMAN

Hello, I was wondering if RMAN incremental backups are cumulative? If I do incrementals every night, would each night consist of every thing since the last full backup? Here is the script that I am using to perform my nightly incremental backups:
Retention policy is 7 days.
run{
allocate channel c1 device type disk format 'F:\rman_backups\ incremental\rman_incr_%n_%T_%s_%p.bak';
backup level 1 database plus archivelog;
allocate channel for maintenance device type disk;
delete archivelog until time 'sysdate - 7' backed up 2 times to disk;
delete obsolete device type disk;
Thank you

Hi David
What do you mean with "different backup levels"? The differences between the cumulative and the differential backup or what "has been backed up" after a level 1 (cumulative/differential) backup?
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96565/rcmsynta9.htm#78484
INCREMENTAL LEVEL = integer
Copies only those data blocks that have changed since the last incremental integer backup, where integer is any integer from 0 to 4. For example, in a level 2 backup RMAN backs up all blocks used since the most recent level 2, level 1, or level 0 backup.
This type of incremental backup is also called a differential backup to distinguish it from a cumulative backup.
A level 0 backup must exist as the base backup for an incremental strategy. An incremental backup at level 0 is identical in content to a full backup, but unlike a full backup the level 0 backup is considered a part of the incremental strategy.
If no level 0 backup exists when you run a level 1 or higher backup, then RMAN makes a level 0 backup automatically.
Oracle performs checks when attempting to create an incremental backup at a level greater than 0.
These checks ensure that the incremental backup is usable by a subsequent RECOVER command. Among the checks performed are:
    * A level 0 backup set must exist, or level 0 datafile copies must exist for each datafile in the BACKUP command. These backup sets must not be marked UNAVAILABLE.
If no level 0 backup exists, then RMAN automatically generates one.
    * Sufficient incremental backups taken since the level 0 must exist and be available such that the incremental backup to be created is usable.
If you specify INCREMENTAL, then in the backupSpec clause you must set one of the following parameters: DATAFILE, DATAFILECOPY, TABLESPACE, or DATABASE.
RMAN does not support incremental backups of control files, archived redo logs, or backup sets.
Note: You cannot make inconsistent incremental backups when the database is in NOARCHIVELOG mode.
Hence, you cannot generate incremental backups when a NOARCHIVELOG database is open and in use.Here you can find the "top" description about "Incremental Backups";
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmconc1.htm#458838
Bye, Aron

Similar Messages

  • Restore incremental backup with rman

    Dear Friends
    can u tell me how to restore an incremental backup with rman? i backup my rman with statement below :
    1. backup full database format '/oracle/PRD/sapbackup/%U';
    the results was :
    -rw-r----- 1 oraprd dba 19006996480 Jun 10 12:08 0ojiit4n_1_1
    -rw-r----- 1 oraprd dba 12746752 Jun 10 12:08 0pjiiu6b_1_1
    2. after that i do incremental backup :
    backup incremental level 1 cumulative database format '/oracle/PRD/sapbackup/%U';
    the results was :
    -rw-r----- 1 oraprd dba 173400064 Jun 10 13:44 0ujij2k0_1_1
    -rw-r----- 1 oraprd dba 12746752 Jun 10 13:44 0vjij3qc_1_1
    what statement i need to run for restore the incremental backup?

    run{
    ALLOCATE CHANNEL c1 DEVICE TYPE DISK;
    RESTORE DATABASE;
    RECOVER DATABASE;
    The above command will restore your database from the last good RMAN backup. Your last backup is incremental level backup as you posted. The above command will fullfill your requirements

  • Can legato be compatible for taking backups with RMAN

    can legato software be compatible for taking backups with RMAN
    oracle 10g
    Message was edited by:
    user531314

    Rman is so feature rich and yiou can integrate your third party backup software with rman to take backups, there is nothing to worry in your case, this is very much in the reach.
    hare krishna
    Alok

  • Hot Backup with RMAN question.

    Hi all.
    We want to make a full backup with RMAN every night with the db up. Version 9i in archive log mode.
    My question is if with the command:
    backup database plus archivelog delete input format 'MY_FORMAT_STRING';
    will store all the files needed for the recovery in one file or I need to backup some other file or do more actions. The backup will be consistent?
    Regards.

    By using this command you are only taking the backup
    all the database files plus all the archived logs
    needed for point on recovery.
    But still you will have to take the backup of Control
    file and parameter files. Which you do by configuringi think its not
    RMAN> configure controlfile autobackup off
    2> ;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    RMAN> backup database
    2> ;
    Starting backup at 28-NOV-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\UNDOTBS01.DB
    F
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\USERS01.DBF
    input datafile fno=00005 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\DATA.DBF
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NNNDF_TAG20071128T151313_3NTHSTK9_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NCSNF_TAG20071128T151313_3NTHV8S5_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 28-NOV-07
    RMAN>backup database backup controlfile as well spfile but its better backup control file separately after backing up the database plus archivelog cause a backup set info within control file which will not be in control file which is just backed up by backup database .
    Khurram
    null

  • Error when I backup with rman plus archive log

    Hi All,
    I tried below command
    run {
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE PLUS ARCHIVELOG DELETE ALL INPUT;
    and that show below error
    archived log file name=+DATA/pimprd/archivelog/pimarch_2_95_698703544.arc RECID=128 STAMP=706186164
    archived log file name=+DATA/pimprd/archivelog/pimarch_2_96_698703544.arc RECID=130 STAMP=706186173
    Finished backup at 21-DEC-09
    ORACLE error from target database:
    ORA-03114: not connected to ORACLE
    Starting backup at 21-DEC-09
    current log archived
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=259 instance=pimdb1 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=153 RECID=113 STAMP=705896703
    input archived log thread=1 sequence=154 RECID=116 STAMP=705983105
    input archived log thread=1 sequence=155 RECID=119 STAMP=706069504
    archived log file name=+DATA/pimprd/archivelog/pimarch_2_95_698703544.arc RECID=128 STAMP=706186164
    archived log file name=+DATA/pimprd/archivelog/pimarch_2_96_698703544.arc RECID=130 STAMP=706186173
    Finished backup at 21-DEC-09
    ORACLE error from target database:
    ORA-03114: not connected to ORACLE
    Starting backup at 21-DEC-09
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-03114: not connected to ORACLE
    RMAN-03002: failure of backup plus archivelog command at 12/21/2009 11:00:18
    ORA-03114: not connected to ORACLE
    There are RAC 11.1.0.6.0 on AIX 5.3 with ASM.
    Please advise,
    Thank you,
    Hiko

    ็Hi All,
    I tried backup archivelog again and show same error,
    Line: -----
    rman target /
    Recovery Manager: Release 11.1.0.6.0 - Production on Mon Dec 21 14:48:29 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: PIMDB (DBID=3834713912)
    RMAN> run
    2> {
    3> backup archivelog all;
    4> }
    Starting backup at 21-DEC-09
    current log archived
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=275 instance=pimdb1 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=161 RECID=131 STAMP=706190624
    input archived log thread=1 sequence=162 RECID=133 STAMP=706200525
    input archived log thread=2 sequence=97 RECID=132 STAMP=706190625
    input archived log thread=2 sequence=98 RECID=134 STAMP=706200526
    channel ORA_DISK_1: starting piece 1 at 21-DEC-09
    channel ORA_DISK_1: finished piece 1 at 21-DEC-09
    piece handle=/oradata/backup/pimdb/rman/pimdb_Fulldata_20091221_97_1.bck tag=TAG20091221T144854 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 21-DEC-09
    Starting Control File and SPFILE Autobackup at 21-DEC-09
    piece handle=/oradata/backup/pimdb/rman/pimdb_Controlfile_c-3834713912-20091221-02 comment=NONE
    Finished Control File and SPFILE Autobackup at 21-DEC-09
    ORACLE error from target database:
    ORA-03114: not connected to ORACLE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-03114: not connected to ORACLE
    RMAN-03009: failure of REFAF command on default channel at 12/21/2009 14:59:33
    ORA-03114: not connected to ORACLE
    RMAN> exit
    Recovery Manager complete.
    Line: -----
    And I check in alert log file that show below error
    Line: -----
    Mon Dec 21 14:48:44 2009
    Thread 1 advanced to log sequence 163
    Current log# 1 seq# 163 mem# 0: +DATA/pimdb/onlinelog/group_1.282.698703549
    Mon Dec 21 14:49:17 2009
    Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x3E00000000] [PC:0x10180AA48, kxfpg1srv()+04e8]
    Errors in file /oracle/diag/rdbms/pimdb/pimdb1/trace/pimdb1_ora_5095646.trc (incident=64044):
    ORA-07445: exception encountered: core dump [kxfpg1srv()+04e8] [SIGSEGV] [ADDR:0x3E00000000] [PC:0x10180AA48] [Address not mapped to object] []
    Incident details in: /oracle/diag/rdbms/pimdb/pimdb1/incident/incdir_64044/pimdb1_ora_5095646_i64044.trc
    Mon Dec 21 14:49:31 2009
    Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x3E00000000] [PC:0x10180AA48, kxfpg1srv()+04e8]
    Errors in file /oracle/diag/rdbms/pimdb/pimdb1/trace/pimdb1_m000_1831050.trc (incident=64163):
    ORA-07445: exception encountered: core dump [kxfpg1srv()+04e8] [SIGSEGV] [ADDR:0x3E00000000] [PC:0x10180AA48] [Address not mapped to object] []
    Incident details in: /oracle/diag/rdbms/pimdb/pimdb1/incident/incdir_64163/pimdb1_m000_1831050_i64163.trc
    Mon Dec 21 14:49:33 2009
    Trace dumping is performing id=[cdmp_20091221144933]
    Mon Dec 21 14:49:34 2009
    Sweep Incident[64163]: completed
    Mon Dec 21 14:59:33 2009
    Process 0x70000020477df88 appears to be hung while dumping
    Current time = 1584185732, process death time = 1584124482 interval = 60000
    Attempting to kill process 0x70000020477df88 with OS pid = 5095646
    OSD kill succeeded for process 70000020477df88
    Line: -----
    Please advice,
    Thank you
    Hiko

  • Raw device backup with rman

    I would like to backup our Oracle9i db(raw device) with rman.
    Is such a thing possible?

    Yes, you can use RMAN to take the backup of database sitting on raw devices And you can use OSB to take the backup on tape.
    Daljit Singh

  • Backup with rman hang

    I tested this step of backup of rman on my newly installed 10g R2 SE on AIX box, but it seemed hung there (at least after 2 hours, nothing continue)
    RMAN> run {
    backup as compressed backupset incremental level 0 cumulative device type disk tag 'BAANBK$LEVEl_0' database;
    Starting backup at 10-JAN-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00006 name=/dbbaan/oradata/baanbk/baandbs02.dbf
    input datafile fno=00007 name=/dbbaan/oradata/baanbk/baandbs03.dbf
    input datafile fno=00008 name=/dbbaan/oradata/baanbk/baandbs04.dbf
    input datafile fno=00009 name=/dbbaan/oradata/baanbk/baandbs05.dbf
    input datafile fno=00010 name=/dbbaan/oradata/baanbk/baandbs06.dbf
    input datafile fno=00011 name=/dbbaan/oradata/baanbk/baanidx01.dbf
    input datafile fno=00012 name=/dbbaan/oradata/baanbk/baanidx02.dbf
    input datafile fno=00013 name=/dbbaan/oradata/baanbk/baanidx03.dbf
    input datafile fno=00014 name=/dbbaan/oradata/baanbk/baanidx04.dbf
    input datafile fno=00015 name=/dbbaan/oradata/baanbk/baanidx05.dbf
    input datafile fno=00016 name=/dbbaan/oradata/baanbk/baanidx06.dbf
    input datafile fno=00017 name=/dbbaan/oradata/baanbk/baanidx07.dbf
    input datafile fno=00001 name=/dbbaan/oradata/baanbk/system01.dbf
    input datafile fno=00002 name=/dbbaan/oradata/baanbk/undotbs01.dbf
    input datafile fno=00003 name=/dbbaan/oradata/baanbk/undotbs02.dbf
    input datafile fno=00004 name=/dbbaan/oradata/baanbk/sysaux01.dbf
    input datafile fno=00005 name=/dbbaan/oradata/baanbk/baandbs01.dbf
    input datafile fno=00018 name=/dbbaan/oradata/baanbk/users01.dbf
    channel ORA_DISK_1: starting piece 1 at 10-JAN-07
    That´s all i got on screen. Where is the rman log, so I can check what was going? The same script is running well on my 10gR2 EE at RHEL3. Tried without the "compressed" came out the same hung.

    $ rman target / nocatalog
    Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jan 10 13:20:24 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: BAANBK (DBID=905495458)
    using target database control file instead of recovery catalog
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    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 CHANNEL DEVICE TYPE DISK FORMAT '/dbrecovery/flash_recovery_area/%U';
    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 '/oracleapp/oracle/product/10.2.0/db_1/dbs/snapcf_baanbk.f'; # default
    This is the same configuration as that of RHEL3
    This is a dev box, so no other activity.
    Message was edited by:
    user508054
    Message was edited by:
    user508054

  • RAC backup with RMAN...put backup on diff file system

    hello all,
    I have not work a lot on SAN storages. One of my client has implementated 9i RAC. Now he wants to Add two more disk in SAN storage (Implemented RAID). So sun engineers will do this but before this i have to take full database backup(80GB database) throught RMAN. The problem or confussion from my side is that the database is on Sun SAN storage and i have to put the Full database backup taken by RMAN on local hard disk on the node (node 1 of rac). Is the possible since the SAN storage is RAW file system (as i guess) and i am putting the backup on local system.
    Please help me out ...i have do this in couple of days..
    Please tell me prosedure too to how to change the path of backup in RMAN if above is possible..
    Its urgent
    Thanks and Regards!!
    Pankaj Rawat

    Two things:
    1) You will not have any problems taking RMAN backup for RAC and raw devices. None of them make your backups any different.
    2) Based on your post, you are not very confident in your RMAN skills and this is your real problem. What is a must for you - take the backup, copy it on another machine and try to restore from it. Note, that you should NOT look at your original database during restore or take any files from there (even init.ora or spfile). If you don't have this done and don't have exact procedure - consider your backup as useless. This is a conservative approach but believe me - it's wort it when you SAN engineers screw up your storage. And they warned you. ;-)

  • ORA-19511 when backup with rman (using NetBackup Media Manager)

    Hello forum
    I added new database hosts to NetBackup, tried to test backup of the first instance on one host, below is what I get - Do you know cause and solution? Backup from NetBackup master server can be performed without problems. Below you will find the output from sbttest too.
    Thanks Casi
    ---------- rman log -----------
    Recovery Manager: Release 10.2.0.3.0 - Production on Fri Mar 7 10:26:28 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: IARTS (DBID=2414804385)
    connected to recovery catalog database
    RMAN> run
    2> {
    3> allocate channel c1 DEVICE TYPE sbt PARMS='ENV=(NB_ORA_SERV=sksta00500.ksta.zh.ch,NB_ORA_CLASS=LX_ORA_ONL)';
    4> backup current controlfile;
    5> }
    allocated channel: c1
    channel c1: sid=110 instance=IARTS1 devtype=SBT_TAPE
    channel c1: VERITAS NetBackup for Oracle - Release 5.1 (2004122520)
    Starting backup at 07-MAR-08
    channel c1: starting full datafile backupset
    channel c1: specifying datafile(s) in backupset
    including current control file in backupset
    channel c1: starting piece 1 at 07-MAR-08
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on c1 channel at 03/07/2008 10:27:11
    ORA-19506: failed to create sequential file, name="19jalk7t_1_1", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    VxBSAValidateFeatureId: Failed with error:
    Server Status: file open failed
    RMAN>
    ---- sbttest ---------------------------
    $ORACLE_HOME/bin/sbttest /tmp/x.lst
    The sbt function pointers are loaded from libobk.so library.
    -- sbtinit succeeded
    -- sbtinit (2nd time) succeeded
    sbtinit: Media manager supports SBT API version 2.0
    sbtinit: Media manager is version 5.0.0.0
    sbtinit: vendor description string=VERITAS NetBackup for Oracle - Release 5.1 (2004122520)
    sbtinit: allocated sbt context area of 8 bytes
    sbtinit: proxy copy is supported
    -- sbtinit2 succeeded
    -- regular_backup_restore starts ................................
    -- sbtbackup succeeded
    Segmentation fault

    Are you sure, you installed the proper media management software? Check it:
    (1) cd to your $ORACLE_HOME/bin directory
    (2) Type sbttest test
    The sbttest is a standalone program which test to see if the MML(Media
    Management Layer) software is installed and can accept a data stream and return
    an identical data stream.
    sbttest will return 0 which indicates success or 1 which indicates an error has
    occurred. An error means it's not an Oracle problem.

  • DB Backup with RMAN

    Hi experts;
    May be this question can be consider ingenuo, but I need to create a backup for a DB, but I'm learning RMAN, I know how to write a script in unix to create an export/import, but I don't know how to create a script to do a backup for the complete DB. The DB it's not in archive mode.
    So, I need ideas how to write the script to backup the complete DB.
    Can somebody help me with this?
    Thanks and regards
    ANG

    Well, I was executing the followings commands, and this is what I got:
    First in SQL;
    SQL> connect /as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 1610612736 bytes
    Fixed Size 2073192 bytes
    Variable Size 1023413656 bytes
    Database Buffers 570425344 bytes
    Redo Buffers 14700544 bytes
    Database mounted.
    SQL>
    Then, in RMAN after setting ORACLE_HOME and ORACLE_SID:
    RMAN> backup database;
    Starting backup at 06-MAY-10
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 05/06/2010 11:24:25
    RMAN-03014: implicit resync of recovery catalog failed
    RMAN-06171: not connected to target database
    What I'm doing wrong?
    Thanks for your help.
    ANG

  • Deleting standby old redologs when make a backup with rman

    Hello friends,
    I like to know how to use the commando delete noprompt obsolete with the standby database using rman, if I use rman says cant use that command with a standby db using dataguard, I switchover to a primary and then lauch the command but always is the same message on RMAN.
    How I can use rman to make a backup and then delete old´s log?, I have no problem with the primary DB, the hard disk is filling with old logs on the standby side and i dont know how to delete in the better place like rman does with the primary with the command delete noprompt obsolete.
    Thanks.

    Hi!
    In the primary database You must continue with Your backup routine, using rman ( backuping archives and then deleting it)
    On the standby database You may use this script to delete applied archived redo logs.
    #!/bin/ksh
    export ORACLE_SID=<SID OF STBY DATABASE>
    role=`
    echo "set echo off";
    echo "set feedback off ";
    echo "set pages 0";
    echo "set head off";
    echo 'select DATABASE_ROLE from v$database;'
    echo "exit";
    } | sqlplus -s '/ as sysdba'
    `
    if [ "$role" = 'PHYSICAL STANDBY' ]; then
    echo "set echo off";
    echo "set feedback off ";
    echo "set pages 0";
    echo "set head off";
    echo "select thread#,sequence# ";
    echo 'from v$archived_log';
    echo "where standby_dest = 'NO' and deleted = 'NO' and APPLIED = 'YES';";
    echo "exit";
    } | sqlplus -s '/ as sysdba' | while read line
    do
    thread=`echo "$line"|awk '{print $1}'`
    sequence=`echo "$line"|awk '{print $2}'`
    echo "crosscheck archivelog sequence $sequence thread $thread;"
    echo "delete noprompt archivelog sequence $sequence thread $thread;"
    done | rman target /
    else
    echo "database not a physcial standby"
    fi
    Regards,
    Cerreia
    Edited by: ecerreia on Sep 22, 2009 2:18 PM

  • Backup with RMAN without BRBackup

    Hello,
    Actually backups on my production servers are performed using brbackup without rman.
    I want to implement rman with a repository used by others oracle databases.
    I would like to know if SAP supports database backups without DB13 and br*tools ?
    Regards

    Hi,
    You can integrate RMAN into your Oracle database with the SAP System using one of the following:
    ○       SAP implementation
    You can use the SAP implementation of the Oracle interface SBT, using the SAP backup library. For more information on activating the SAP backup library, see SAP Note 142635.
    Hope this is useful.
    Regards,
    Deepak Kori

  • Privileges required for database backup with RMAN

    Hello,
    We have 10g R2 on Solaris box. We use RMAN for backup and use the SYS account on the database to connect and take the backup.
    Are there specific privileges that are required to take the database backup , so that I do not use the SYS account or the syspassword in the RMAN script.
    I want to create an account and give only the privileges required to take the database backup and recover .
    Thanks

    I think RMAN needs the SYSDBA privilege, so you won't gain much by switching from SYS to another user.
    You don't need to store sys/password in a script. You can just :-
    rman target / catalog xxx/yyy@catalog

  • Backup with RMAN

    Hello,
    I have a backup script that uses RMAN. During my backup, Oracle (or RMAN, I don't know...) ask if I really want to delete the above objects. Is there a way to tell to the script to respond YES for all the questions ? or can I write YES in my script to make my script to take it as response ?
    Thanks a lot...
    Delphine

    Use the NOPROMPT and may want to include the FORCE keyword.
    RMAN> DELETE NOPROMPT FORCE obsolete recovery window of 2 days;

  • Recovery with RMAN in case of complete lost of all files

    Hi,
    I am using RMAN in nocatalog mode to backup my databases to tape using the RMAN-Module for Legato.
    I4ve read that in case of loosing all my controlfiles i cannot easily restore the controlfiles.
    Lets assume the following scenario:
    I am performing a daily full backup with RMAN in nocatalog mode. Approx. 2 hours after the completed backup my machine crashes and all files (i.e. OS-Files, Database, Controlfiles) are lost.
    Now I have to reinstall the OS, reinstall Oracle and restore the backup.
    Due to backups made with RMAN in nocatalog mode i have the restore the controlfies prior to restore the database. Metalink says restoring the controlfile from RMAN in nocatalog mode is not that easy.
    Is there any way to restore the controlfile from RMAN in nocatalog mode in case of complete crash ??
    Thanks.
    Ronny.

    RESTORE CONTROLFILE FROM 'filename...' doesn't appear to be supported in 8i.
    What are the options for 8i?.
    I have the backup sets with me from my previous installation before crash which also contains Control files.
    However I am unclear as to how to proceed wit RMAN recovery with those files. There seems to be no way to point RMAN to those backupsets since RMAN apparently reads its information from catalog or the control file in case of nocatalog.
    I think if there is a way to atleast restore the control file from the backup set, RMAN can proceed since it will find all the other backup details there.
    Any help is greatly appreciated.
    thanks
    RP

Maybe you are looking for