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

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

  • Full Hot Backup using RMAN?

    Dear all,
    I want to take a full hot backup every week on sunday and the followings are the commands.
    run
    allocate channel ch1 type disk format '/db/BACKUP/RMAN/backup_%d_%t_%s_%p_%U.bck';
    backup
    incremental level 0
    database
    plus archivelog delete input;
    backup current controlfile;
    backup spfile;
    release channel ch1;
    I have the following questions:
    1) Am I need to define a directory named as "'/db/BACKUP/RMAN/backup_%d_%t_%s_%p_%U.bck", so that the backup copies will put it here,right?
    2) What format needs to be save in where and how to run it on weekly schedule basis?
    3) I saw above script with "channel ch1", can I change it to "channel ch2"?
    I am a beginner using RMAN, please let me know.
    Best Regards,
    amy

    Which database version on which OS (looks like Unix/Linux)?
    You have to create the directory '/db/BACKUP/RMAN', 'backup_%d...' is the filename created by RMAN.
    %d Specifies the name of the database;
    %t Specifies the backup set time stamp, which is a 4-byte value derived as the number of seconds elapsed since a fixed reference time. The combination of %s and %t can be used to form a unique name for the backup set;
    %s Specifies the backup set number. This number is a counter in the control file that is incremented for each backup set. The counter value starts at 1 and is unique for the lifetime of the control file. If you restore a backup control file, then duplicate values can result. Also, CREATE CONTROLFILE initializes the counter back to 1;
    %p Specifies the piece number within the backup set. This value starts at 1 for each backup set and is incremented by 1 as each backup piece is created;
    %U Specifies a system-generated unique filename (default).
    For scheduling a cron job could be defined or you use Enterprise Manager (10g and higher)
    Channel name doesn't matter.
    Werner

  • Frequency of Hot backups using RMAN

    Hello.
    After years of running various inhouse utilities to backup our Oracle databases we are now going to implement RMAN in our shop. We are running Oracle 10.2.0.4 EE databases on Solaris servers in Archivelog mode, so we'd like to perform "hot" backups. A caveat to this is that we also have "standby" databases that we manually manage via a series of scripts that works rather well and helps our CIO sleep at night.
    So what we're trying to do is tackle one obstacle at a time. We'd like to implement RMAN hot backups (including archivelogs) without having RMAN remove the archivelog backups that are out there. We simply want RMAN to backup the archivelog files, we'll manage their movement and removal ourselves for the time being.
    The script I have put together simply issues: Backup database plus archivelog format='/dumps/rman/F_Database_%d_set%s_%T_%U';
    The configuration settngs (we want at least a 2 day recovery period) are:
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 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 '/dumps/rman/controlfiles/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    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 '/dumps/rman/W_Database_%d_set%s_%T_%U';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/xora01/app/oracle/product/10g/dbs/snapcf_glprd.f'; # default
    We are using an RMAN catalog.
    So my question is, if I perform the backup of the database (using the above command) once or twice a week and back-up only the archivelogs on a daily basis, would I be covered and save space at the same time? I think this might cover me as far as the archivelogs are concerned as well until my management is more comfortable with RMAN and allows us to install/use Data Guard.
    Thanks for you opinions/suggestions...

    Hi,
    So my question is, if I perform the backup of the database (using the above command) once or twice a week and back-up only the archivelogs on a daily basis, would I be covered and save space at the same time? I think this might cover me as far as the archivelogs are concerned as well until my management is more comfortable with RMAN and allows us to install/use Data Guard.Your idea also not bad to save disk space. it is also depends on database size and space availability on your server.
    or else you can go for weekly once fulll backup, remaining days incremental backups & archivelog backups.
    rman incremental backups take only chanegd blocks so it wont occupy much space
    1) sunday - full backup - level 0
    2) monday - inc1 & arch
    3) tuesday - inc2 & arch
    4) wednesday - inc1 & arch
    5) thursday - inc2 & arch
    6) friday - inc1 & arch
    7) saturday - inc2 & arch... & so on...
    Thanks

  • 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

  • Restoring a Hot backup using RMAN on a different server.

    Hi
    we are using oracle 10.2.0.4.0 on solaris 10 and using a separate catalog for RMAN backups.
    we have taken a production db Hot backup as follows
    level 0 backup on 28 th dec.
    level 1 on 29,
    level 1 on 30 and
    level 1 on 31 st.
    now today in the month of feb .
    we would like to create a dev. DB on a diffent server which has diffent directory structure, i have to create a db using the above backups to setup the db like on 31 st Jan.
    could you please provide the steps and advice how do i proceed.
    Thansk fot the help.

    Make level 0 and level 1 backups + control files backups + archived redo logs backup available on new host and use RMAN DUPLICATE.
    See examples in http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1008564
    Edited by: P. Forstmann on 2 févr. 2010 22:39
    Edited by: P. Forstmann on 3 févr. 2010 07:57

  • 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

  • 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

  • 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. ;-)

  • 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

  • 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.

  • 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

  • Restore hot backup using RMAN?

    Hi,
    We are taking hotbackup using rman level0,leve1,level2. Now i want to restore level 0 first then level 1 and level 2.. how to restore like this
    Thanks in advance

    You don't have to explicitly restore each L0, L1 etc backup.
    When you specify a SET UNTIL, RMAN identifies the backups (starting with the latest L0 before the SET UNTIL) that are to be restored and attempts to restore them.
    If the backups were to disk and are no longer on disk (i.e. you have moved them to tape), you have to ensure that the backups are made available (by copying them back from tape to disk).
    You can use RESTORE DATABASE VALIDATE and RESTORE ARCHIVELOG VALIDATE to identify the backups that are required.
    See http://hemantoracledba.blogspot.com/2010/03/misinterpreting-restore-database.html
    Hemant K Chitale

Maybe you are looking for