About hot & cold backups in rman

Hi all,
I've found out that with rman 9i the following script:
- shutdown immediate;
- startup mount;
- backup database plus archivelog;
- alter database open;
is what I need for a cold backup; somewhere somehow I've caught a glimpse about
this script
- backup database plus archivelog;
which 'should' be able to produce a reliable hot backup, but actually Oracle docs
is not crystal clear on this point: I'd rather ask if:
a/ would "backup database plus archivelog" create an usable full backup on
a 9i archivelogged db?
b/ would the same statement work on a 8.1.7 archivelogged db? (yes, the syntax is different...)
hope somebody may shed some light
thanks for help,
daniele rizzi ([email protected])

backup database plus archivelog; is a 9i RMAN command so it cannot be used in 8i. Here is what it does as stated in the Oracle9i Recovery Manager User's Guide and Reference:
Backing Up Logs Using BACKUP ... PLUS ARCHIVELOG
When backing up objects other than archived logs, you can specify BACKUP ... PLUS ARCHIVELOG to include backups of archived logs. The command performs the following sequential actions:
- Runs the ALTER SYSTEM ARCHIVE LOG CURRENT command.
- Runs BACKUP ARCHIVELOG ALL. Note that if backup optimization is enabled (refer to "Backing Up Files Using Backup Optimization"), then RMAN skips logs that it has already backed up to the specified device.
- Backs up files specified in BACKUP command.
- Runs the ALTER SYSTEM ARCHIVE LOG CURRENT command.
- Backs up any remaining archived logs generated during the backup.
From what I read it backs up all current archivelogs, backs up the datafiles, and backs up any remaining archivelogs created during the datafile backup. It basically makes it easier to backup the archivelogs by not having to issue a archvielog backup before and after the datafiles to ensure all archivelogs are backed up.

Similar Messages

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

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

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

  • How to I find out if rman backup that was done is Rman Cold backup or Rman

    Hi,please help me I have backup set ,that is backupset that have rman data backup and autobackup that have control file,I want to restore this backup but I don't know how the backup was done .please advice me how to check if this was Rman cold backup or rman hot backup.I have pfile that is extracted from database before backup was taken.

    Hi Thanks for the update,I checked the v$backup_set on the other database ,but it does not tell me whether ithe backup was Rman cold backup in which database was mounted or Rman hot backup ,now I have to do the restore but I don't know what type of backup do I have please assist.
    Edited by: user1022397 on 2010/11/11 4:40 AM

  • Re: does the full cold backup of rman include onlinde redologs?

    Hi,
    does the full cold backup of rman include onlinde redologs?
    So that at the time of recovery when i restore the database the online redologs also restored to that point?
    Please kindly add your suggestions. I read in 10g database in mount state while taking RMAN Cold backup as the all the oracle processes are down we cant copy the online redologs.
    Am I Correct if not please any one answer me why the online redologs are not copied.
    Thanks in Advance
    Sai

    976630 wrote:
    Hi,
    does the full cold backup of rman include onlinde redologs?No.
    So that at the time of recovery when i restore the database the online redologs also restored to that point?No.
    >
    Please kindly add your suggestions. I read in 10g database in mount state while taking RMAN Cold backup as the all the oracle processes are down we cant copy the online redologs.
    Am I Correct if not please any one answer me why the online redologs are not copied.No. They are not needed because the only valid backup for a cold (or noarchivelog mode database) backup is a consistent backup. Since the backup is already consistent there are no changes to apply.
    The online redo logs are (re)created/reset by the "resetlogs" clause when the database is opened.
    >
    Thanks in Advance
    SaiEdited by: Mark Williams on Jan 7, 2013 10:32 PM - Looks like Hemant replied whilst I was typing in my response.

  • Cold backup using RMAN

    Dear All,
    db_version :10.2.0.4
    os_version:Window 2003 server
    Environment:Test
    I wish to perform cold backup using RMAN for the same i want to know following :
    1. What is the script / command ?
    2. How to restore cold backup completely ( ex:- if i lost all my data,redo and archives )
    3. Is it mandatory to open the database in RESETLOG mode after recovery ( since i have a cold backup ) ?
    Thanks in advance

    A "Cold" Backup is called a "Consistent" Backup.
    See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup003.htm#sthref297
    Backup :
    From the RMAN command line :
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    BACKUP DATABASE
    BACKUP CURRENT CONTROLFILE  -- to get the controlfile in a separate backupsetRestore :
    STARTUP MOUNT
    RESTORE DATABASE
    ALTER DATABASE OPENIf you use an SPFILE, you can have an SPFILE backup included automatically with the controlfile backupset with CONFIGURE CONTROLFILE AUTOBACKUP ON and CONFIGURE CONTROLFILE AUTOBACKUP FORMAT ...
    Read the documentation.
    Hemant K Chitale

  • Script for cold backup using RMAN

    Dear all,
    db_version:-10.2.0.4
    os_version:- Windows 2003 server
    I wish to schedule a script that will take cold backup of my database using RMAN.
    Any help is appreciated ..
    Edited by: user12000301 on May 18, 2011 5:02 AM

    Dear All,
    Thanks a lot for your valuable time :
    However i have managed to do it as follows :
    1. First i have configure the parameter of RMAN ( Since it is my UAT in Noarchive log mode), I have never tried RMAN cold backup on the same.
    Following is the out put of SHOW ALL;
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'D:\DB\RMAN_BKP\BACKUPS%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'D:\DB\RMAN_BKP\BACKUPS\DB_%U.%r';
    CONFIGURE MAXSETSIZE TO UNLIMITED;
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128';
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\DB\RMAN_BKP\BACKUPS\SNCFDB.ORA';
    2. I have created a rman_cold_bkp.bat file which has following entry :
    cd c:\oracle10g\bin
    set oracle_sid=DB
    rman target system/*** @D:\DB\RMAN_BKP\SCRIPT\rman_cold_bkp.rcv log=D:\DB\RMAN_BKP\SCRIPT\rman_cold_bkp.log
    exit
    3. Whereas rman_cold_bkp.rcv file contains following contents:
    run
    allocate channel C1 device type disk;
    shutdown immediate;
    startup mount;
    backup database;
    alter database open;
    release channel C1;
    exit
    I did checked it and it;s working fine for me :-)
    Regards,
    Girish

  • Restore cold backup and RMAN backup

    Hi,
    I have cold backup as well as RMAN backup. But i don't know how to restore the backup.
    Please anybody send, steps or links for restoring both backups.
    Regs,
    Brijesh

    The "script" would depend on how the backup was done.
    A cold backup should be a backup of controlfiles and datafiles.
    Was it done using RMAN ? Or done using an OS command (e.g. "cp" or "tar" or "cpio") ?
    A non-RMAN cold backup can be restored with the same command that was used to create the backup. If the backup did not include the Online Redo Log files, you need to simulate a dummy recovery from the SQL command line (RECOVER DATABASE UNTIL CANCEL ; then CANCEL) and ALTER DATABASE OPEN RESETLOGS.
    If the backup was done using RMAN, you need to
    1. RESTORE CONTROLFILE FROM '/location_of_backuppiece'
    2. ALTER DATABASE MOUNT
    3. RESTORE DATABASE
    4. ALTER DATABASE OPEN
    Hemant K Chitale

  • Hot / Cold Backup

    hi.
    Plz tell me what is hot and cold back up. their difference and usage.
    thx

    A database backup when database is shutdown state is reffered to as cold back up,while a database backup when database is up and in operational state reffred to hot backup.
    cold backup also refer to offline/consistent backup while hot backup refer to online/inconsistent backup.Their usage as above statment showing that ,if yours database does not go for 24 x 7 then go with cold/offline/consistent backup strategy.Cold backups are a reliable piece of any backup strategy cause as i mentioned consistent (consistent=clean not fuzzy),whenever you go to take cold backup first you will have to shutdown the database immediate which cause termination of any active transaction and make them rollback,oracle flush all dirty block from buffers to data file after rolling back any incomplete transaction,a full checkpoint occurence which cause to synchronize alls the CKPT SCN among the database file header as well to control file.Everything is consistent at the time of clean shutdown.
    if you cant afford any break within yours business domain and you have to go with 24 x 7 then you will have to go with online backup , for online backup you will have to turn on the archive mode of yours database which take care of any fuzzy block to be consistent.With online i would recommend you take atleast one time cold backup within a week if possible to make yours life easier.
    Khurram

  • RMAN cold backup taking more time than usual

    Hi everybody.. please help me resolving below issue..
    I have configured the RMAN in one of the production database with separate catalogue database six months earlier. I have sceduled weekly cold backup through RMAN on sunday 6pm. Normally it used to take one hour to complete the cold backup and database goes down soon as the job starts.
    But since from then every week the time taken to just initiate the database shutdown continuosly increasing and recently when i checked it is taking 1 hour to initiate the database shutdown. Once the initiation starts it hardly take 1 to 3 min to shutdown.
    Database is up and running during that one Hour. I was in the assumption that RMAN takes some time to execute its internal packages.
    Please help
    Regards,
    Arun Kumar

    Hi John and Tychos,
    Thank you very much for your valuable inputs.
    Yesterday there was cold backup and i have monitored the CPU usage. But there was no load on the CPU at that time and CPU usage was 0%
    I have tried connecting to RMAN manually and it connects within a second. And also noticed in prstat -a that rman connects as soon as the job starts.
    So i think that its taking time at the deleting obsolete backups.
    But I have observerd following observation.
    Before executing the delete obsolete command as mentioned before
    RMAN> REPORT OBSOLETE RECOVERY WINDOW OF 35 DAYS DEVICE TYPE 'SBT_TAPE';
    Report of obsolete backups and copies
    Type Key Completion Time Filename/Handle
    Backup Set 83409 25-JUL-09
    Backup Piece 83587 25-JUL-09 arc_SID_20090725_557_1
    Backup Set 83410 25-JUL-09
    Backup Piece 83588 25-JUL-09 arc_SID_20090725_558_1
    Backup Set 83411 25-JUL-09
    Backup Piece 83589 25-JUL-09 arc_SID_20090725_559_1
    After executing the delete obsolete command
    RMAN> REPORT OBSOLETE RECOVERY WINDOW OF 35 DAYS DEVICE TYPE 'SBT_TAPE';
    Report of obsolete backups and copies
    Type Key Completion Time Filename/Handle
    Backup Set 83409 25-JUL-09
    Backup Piece 83587 25-JUL-09 arc_SID_20090725_557_1
    Backup Set 83410 25-JUL-09
    Backup Piece 83588 25-JUL-09 arc_SID_20090725_558_1
    Backup Set 83411 25-JUL-09
    Backup Piece 83589 25-JUL-09 arc_SID_20090725_559_1
    Please advice me on the following.
    1. Why its not deleting the obsolete BACKUP SETS?
    2. Is it normal that RMAN takes this much deleting obsolete backup sets? How can i minimize the time taking for deleting obsolete files.
    Thanks and Regards,
    Arun Kumar

  • Cold backup registration on rman

    5) can we register manual cold backup in rman?

    If you take backup using RMAN, it will automatically register with controlfile,
    What else you are looking for?
    If those are new backup pieces, which are not registered, then you can catalog those backup pieces.
    copy all the backup pieces in folder and give
    catalog start with 'location'it will register all the pieces.
    Thanks

  • Restore from cold backup (rac server)

    Hi All,
    Oracle version : 10g
    OS : SunOS dixie1 5.10 Generic_118855-36 i86pc i386 i86pc
    I am having cold backup of RAC server (2 nodes), I want to restore from cold backup.
    The problem is that : when i performed the cold backup using rman at that time Oracle was having 3 ASM diskgroups.But unforunately that disk is no more in use due to some fault.
    Now my question is how can i restore from the cold backup as when i'll restore from the cold backup this will ask for the same ASM diskgroups.Even more if i creates the same diskgroup with the same name and same configuration then my doubt is that rman will allow me to restore the same from the cold backup as ASM disk header changed now ?
    Thanks,
    Vipin

    VipinK wrote:
    Hi All,
    Oracle version : 10g
    OS : SunOS dixie1 5.10 Generic_118855-36 i86pc i386 i86pc
    I am having cold backup of RAC server (2 nodes), I want to restore from cold backup.
    The problem is that : when i performed the cold backup using rman at that time Oracle was having 3 ASM diskgroups.But unforunately that disk is no more in use due to some fault.
    Now my question is how can i restore from the cold backup as when i'll restore from the cold backup this will ask for the same ASM diskgroups.Even more if i creates the same diskgroup with the same name and same configuration then my doubt is that rman will allow me to restore the same from the cold backup as ASM disk header changed now ?
    Yes.You can do these and restore/recover your database.First you need startup your ASM instance then create your ASM disk groups and do following:
    1.Edit pfile and change controlfile location to diskgroup(Consder that +dgr1)
    2.Restore controlfile to this disk group using backup of controlfiles(you say that is cold backup)
    rman target /
    /*Instance  need starting up from pfile*/
    startup nomount ;
    /*then restore controlfile,give full path of controlfile from coldbackup*/
    restore controlfile from 'coldbackup_location\coltrolfile';
    alter database mount;
    catalog start with 'coldbackup_location';
    backup as copy database format  '+dgr1';
    switch database to copy;
    alter database open;

  • RMAN cold backup vs hot

    To apply a patch it taking around 3 hours including backing up database.
    My question is why should i take cold backup, why not hot backup that can be taken online by placing tablespace into backup mode. Then we can reduce the downtime of backup.
    oracle 10.2.4

    If you are talking about Oracle Database patch set/interim patch/CPU patch, you don't need to do a cold backup of the database: if you are doing a hot backup with archived redo logs backups, you can restore database to a point in time just before applying patch (incomplete recovery). Of course, this hot backup must be run before patch installation and not during patch installation.
    Note that :
    - you must also backup ORACLE_HOME installation directories to be able to restore ORACLE_HOME in this case
    - you must also backup Oracle Inventory
    - if you using RMAN, you don't need to put tablespace in backup mode when doing a hot backup.
    Edited by: P. Forstmann on 6 janv. 2010 11:21

  • User managed coldbkp vs rman cold backup

    Hi,
    I confused about rman cold backup in no catalog mode while restore the backup.please anyone clarify it.
    1,I am not confused about user manged cold backup.I took the backup (spfile,control file,redo file,datafile,password file.)Is it right one?
    2,In rman cold backup in no catalog mod, we used backup sets for backup,control file is autobackup is enabled.
    The backup set format is not OS format.The backup stored at flash recovery area.
    Just assume,
    I lost all files(spfile,control file,redo file,datafile,password file.)How to recover that.
    I am not able to identity spfile & control file in backupset in flash recovery area.
    How to identity the spfile,control file during the restoration?
    3,Rman takes the copy of online redo file in cold backup?
    If it's not,How to recover the database & in user managed backup,copy of online redo log file is must?
    4,What is the difference between dbid & sid?when it is used?
    5,Can i specifty format for spfile when i take the backup? can i use trace file(control file ) for restoration?
    I read the oracle documents, but I am not understand the above things clearly.please anyone rectify it.

    user3266490 wrote:
    Hi,
    I confused about rman cold backup in no catalog mode while restore the backup.please anyone clarify it.
    1,I am not confused about user manged cold backup.I took the backup (spfile,control file,redo file,datafile,password file.)Is it right one?
    Yes,you are right,but first need SHUTDOWN IMMEDIATE;
    >
    2,In rman cold backup in no catalog mod, we used backup sets for backup,control file is autobackup is enabled.
    The backup set format is not OS format.The backup stored at flash recovery area.
    If you do not explicitly configured rman then yes it will backup to FRA.
    Just assume,
    I lost all files(spfile,control file,redo file,datafile,password file.)How to recover that.
    First need SET (EXPORT) ORACLE_SID and then
    rman target /
    startup force nomount;
    restore spfile from 'autobackuplocation';
    startup force nomount;
    restore controlfile  from 'autobackuplocation';
    catalog start with 'backupandarchiveloglocation';
    restore database;
    recover database;
    alter database open resetlogs;
    I am not able to identity spfile & control file in backupset in flash recovery area.
    From rman you can execute LIST BACKUP or LIST BACKUP OF CONTROLFILE;
    How to identity the spfile,control file during the restoration?
    3,Rman takes the copy of online redo file in cold backup?No,RMAN do not backup online logs,due to this do not need.
    If it's not,How to recover the database & in user managed backup,copy of online redo log file is must?
    If cold backup then you can open database with resetlogs option and online logs will create automatically(if you did not copy this logs)
    >
    4,What is the difference between dbid & sid?when it is used?
    DBID is unique identify database in recovery catalog and using this you can restore controlfile easily.But SID is ORACLE_SID and identify instance.This is environment variable like ORACLE_HOME
    5,Can i specifty format for spfile when i take the backup? can i use trace file(control file ) for restoration?
    Yes you can identify format manually for spfile. ALTER DATABASE BACKUP CONTROLFILE TO TRACE ... this statement use to getting script for recreating controlfile again.So this is not backup and you can notuse for restoring controlfile.If you do not have a backup of controlfile and all datafilesd available then you can use this statement.
    I read the oracle documents, but I am not understand the above things clearly.please anyone rectify it.All these and with all situation clearly explained below doc
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/toc.htm

  • RMAN Cold Backup FINAL

    We are upgrading our production database in 2 weeks. We will be using datapump to export the source and then import to the new target database. As a final backup before the source export I want an RMAN cold backup to get a consistent point-in-time backup. The database is in archivelog mode. After shutting down and using RMAN to perform the cold backup, I will have to open the database to do the export. So how would RMAN restore the production source database back to the time the database was down if additional archive logs are generated during the export? Would I have to specify a time or SCN or would I have SCN gap issues in the recovery of the source database? This is for the source database that will no longer be used once the import to the target and subsequent ERP upgrades are applied. However, I need to preserve the source for a month or so. I could also continue to take hot RMAN backups after the export is completed, but I need the point-in-time recovery to the exact time of the export. I currently only use online RMAN backups since this is a 24/7 database, but I have a short window to upgrade to the new production database.
    Thank you,
    Curt Swartzlander
    DBA

    >
    Would I have to specify a time or SCN or would I have SCN gap issues in the recovery of the source database? TTo do an incomplete recovery with RMAN requires to specify a date/time or SCN or log sequence because by default RMAN will try to do complete recovery: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta065.htm#RCMRF160
    Edited by: P. Forstmann on 25 janv. 2010 18:32
    Edited by: P. Forstmann on 25 janv. 2010 18:34

  • RMAN Cold backup script

    DB version :10.2.0.4
    Do you find anything wrong in the below mentioned RMAN cold backup script? Any enhancements, corrections required?
    shutdown immediate;
    startup mount;
    backup database including current controlfile tag='full_bkp';
    startup;
    crosscheck backup;
    delete noprompt obsolete device type disk;
    resync catalog;
    }

    Since you are doing a SHUTDOWN IMMEDIATE and STARTUP MOUNT before the BACKUP, there will be no ArchiveLogs generated while the backup is running --- as the database is not OPEN.
    However, the PLUS ARCHIVELOG can include ArchiveLogs that had been generated from the previous STARTUP or ALTER DATABASE OPEN.
    (In that case, I would suggest an SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT' before the SHUTDOWN IMMEDIATE).
    Is your database running in ARCHIVELOG mode ? If not, then this discussion is moot.
    If yes, the next question is, obviously : Why not take a Hot Backup while the database is running (in which case you MUST backup archivelogs !)
    Hemant K Chitale

Maybe you are looking for

  • Time Machine - including a external hard drive in time machine back up.

    I have recently updated to a 2014 15 inch Macbook Pro running OS X Yosemite. Previously on my 2006 Macbook I have used a 750GB hard drive with iMovie to store old files and subsequently back up this drive and my Macbook to a separate 3 TB external ha

  • Strange error when using Automatic Row Processing

    Hi All, I have a page with 2 regions - first is a form for data entry (4 fields - 2 hidden, 1 LOV, 1 text) --> 3 buttons - Cancel, Create, Create & Create Another --> Create branches to next page, Create Another branches back to same page - second is

  • Odd lines around text in dissolve

    Hi Folks, I have been experiencing some odd lines around text when I am dissolving and can't figure out why. The text is generated from FCP and these lines only appear after rendering. Prior to rendering I can step through the dissolve and all is wel

  • How to set posting block in BIlling Doc type configuration

    Hi All, Can anybody tell me, How to set posting block in BIlling Doc type configuration.I need to do this to seperate billing creation from from FI/CO posting in my company. We right now run have the batch jobs which run VF06 & VFX3. Appreciate any i

  • EXS24 sampler Instrument Editor Help, Logic pro X

    When i open the EXS24 sampler in Logic pro X, the instrument edit tab is completely missing and won't open or respond at all. Can anyone offer assistance?