Should we backup Archivelogs for ad-hoc Cold backups ?

B version: 11.2
OS version : Solaris 5.10
Below is the script we use for ad-hoc cold backups. Is there a need to take the backup of archivelogs when we do the cold backup ?
Sometimes archivelog backup piece's size is bigger than the backup piece containing the full backup of the DB itself ! So, too much disk space is wasted.
The script we use
run
allocate channel t1 type disk;
sql 'alter system archive log current';
shutdown immediate;
startup mount;
backup  full database format='/mypath/ORCL_full_%U_%T.bkp' tag='ORCL_full';
backup archivelog all tag='arch_bkp' format='/mypath/ORCL_BKP/arch_%U_%T.bkp' delete input;
release channel t1;
}

Hello;
A cold backup is a consistent state. So you don't have to back them up. No new archived logs generated during the backup either so you are still OK.
For other types of RMAN backup you ALWAYS want this. This guarantees that datafile backups taken during the command are recoverable to a consistent state.
Best Regards
mseberg

Similar Messages

  • How to backup only one tablespace in cold backup noarchivelog mode

    Hi,
    How to backup only one tablespace in cold backup noarchivelog mode
    Reagrds,
    Rushang

    We have to restore all 50 GB database if we fail in scripts meanwhile to start again the data load.
    Out scripts populater only two tablespaces.
    That's why if i take backup of those tabblespace then i have to restore only those tablespace not whole database.
    Regards,
    Rushang

  • Cold backup can use archivelog to recover database to point of failure?

    Hi,
    I have the small doubts. In any DB let us say we have following condtions:
    1) DB is running in ARCHIVELOG mode.
    2) Cold backup is performed every sunday.
    3) No hot backup or RMAN backup is taken.
    so if any failure happens during weekday say on friday. can we recover our database till the point of failure with the help of cold backup? If yes then pls specify the steps how to do it.
    could archive log be applied on cold backup?
    Thanks,
    Shailesh

    Shailesh.mishra wrote:
    Hi,
    I have the small doubts. In any DB let us say we have following condtions:
    1) DB is running in ARCHIVELOG mode.
    2) Cold backup is performed every sunday.
    3) No hot backup or RMAN backup is taken.
    so if any failure happens during weekday say on friday. can we recover our database till the point of failure with the help of cold backup? If yes then pls specify the steps how to do it.
    could archive log be applied on cold backup?
    Shaliesh,
    Cold or hot backup doesn't govern teh recovery. Whether the recovery is going to be a complete or incomplete recovery, I mean we can recover teh complete data or would be thrown back to the last good backup stage is governed by the availability of the archives. If you have teh archive log enabled , this means yiou have all teh transaction records already with you. So if you have taken your backup on Sunday, and faced a crash on Tuesday, all you have to do is to restore the last good bcakup from Sunday, give a recover command and oracle would start applying the archivelogs to the files. This would be a complete recovery providied anything else had not happen which can stop it, for example, loss of an archive log.
    So teh answer would be, yes archive logs are very well applicable on teh cold backup.
    HTH
    Aman....

  • Cold backup with online redo logs

    I am working on 10G in AIX for a single instance
    It is just a general db backup & restore question, but I have something confused.
    I am going to perform a cold backup with my ARCHIVELOG database.
    No wonder why I perform a cold backup because it is a testing database which can suffer from data lost and down time during backup.
    I read some guides. They all mentioned to backup all the datafiles and control files.
    During the restoration, I have to copy all the backed up datafiles and control files to the default location.
    Then Startup mount;
    The last step before open the database is recover database until cancel;
    For the acknowledgement, I have to do the command of recover database, because the online redo logs were not backed up, thus we have to recover it in order to reset the redo logs.
    For my question,Would I be able to skip the command of recover database, then directly startup the database if I have backed up the online redo logs and copy the default location during the restoration?
    However, I read many documents which mention that it is not suggested to backup the online redo logs. Is it just the case which ONLY applied in hot backup? Do you all think that for my case, cold backup for online redo logs is recommended?
    Thanks all

    jgarry wrote:
    Edit: And never forget, those test databases are some developers production.Absolutely true according to my experience. Loosing the work of a payed developer is just as bad as loosing the work of a production system and may even be worse because it may not be possible to re-enter missing data into the system.
    I think a cold backup is only suitable on special occasions, for instance, to relocate/copy the database to a different storage media, or if the database doesn't change or if loosing changes is absolutely irrelevant. Otherwise, put the database into archivelog mode and do a hot backup. After that you will also have alternative options which can make the restore and recovery of the database very easy and efficient, like flashback database, etc. but it will take substantial additional disk space.

  • 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

  • Cold backup restore on fail safe environment.

    Hi,
    The setup:
    Windows 2008 with 2 node MSCS cluster in active/passive configuration.
    Oracle Database 11.1.0.6 .
    Oracle Failsafe 3.4.2
    Database :test database; 2 in no. ,both Single instance. Both database are created with cold backup from production.
    The Requirement:
    To refresh both the test database with cold backup from the same production database as before. And then with the same cold backup create a physical standby database of the newly recreated testing database.
    The Plan:
    1.take all dbfile,controlfile,redologfiles,standbyredologfiles,tempfiles backup from production.
    2.after taking the testing database offline from failsafe and normaly starting on node1; restore dbfile,controlfiles,redologs,srl,tempfiles to testing server. spfile should be properly pointing the new controlfile.
    3.startup mount.
    4.directory structure for control,redo,srl,dbfiles,tempfiles are diffrent.so,rename file for all dbfiles,redologs,srl,tempfiles.
    5.creating a standby controlfile for creating physical standby db of this testing database.
    6.open the database.
    7.shutdown immediate.
    8.start with failsafe.
    The doubt:
    1. is this plan ok for refresh of the test databases?
    2. with the backup taken at step1 and standby ctl file created at step 5 can i create a physical standby database of the testing db?
    Please note, the production database is only in picture while taking backup.
    Please guys help me for clearing the said doubts.
    regards.
    g

    The doubt:
    1. is this plan ok for refresh of the test databases?
    2. with the backup taken at step1 and standby ctl file created at step 5 can i create a physical standby database of the testing db?
    Please note, the production database is only in picture while taking backup. You are taking cold backup, So the mentioned procedure you can follow. But ensure all the services/background processes related to database are not running.
    Once you prepare Primary database, even from that database you can create standby control file, so that it will be used for standby database.
    But i'm not aware of how fail safe it works, As per the core database part whatever the steps you mentioned, it looks fine.
    Thank You.

  • Database cold backup in oracle 10g

    Hi,
    oracle-10.2g
    solaris-10
    The oracle database i connected with the sun cluster 3.2(two node cluster), for taking the cold backup one of the resource(instance). When I shutdown the resource(instance) for taking the cold backup. The resource(instance) starts automatically again on the same node.
    Kindly provide me the solution for taking the cold backup by shutting down the instance.
    Regards
    Dravidan

    Here is the procedure for taking coldbackup:
    First shutdown the database then copy all the datafiles, tempfiles, control files and logfiles to a safe place using the select command. Then run the script as described here: http://tinyurl.com/bp85dmj

  • 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

  • AUTOMATING COLD BACKUP ON NT

    제품 : ORACLE SERVER
    작성날짜 : 2003-08-04
    Automating cold backup on NT
    ============================
    unix에서는 cron 이라는 것을 이용해서 주기적으로 데이타베이스를 원하는 시점에
    shutdown 시킨 후 cold backup 을 할수 있다.
    그렇다면 nt에서는 어떻게 이런 작업을 수행해 줄 수 있을까.
    여기서는 이렇게 주기적으로 database 를 cold backup받는 방법에 관해서 설명
    하고자 한다.
    데이타베이스 환경은 다음과 같이 가정한다.
    ORACLE_HOME = c:\ORANT
    ORACLE_SID = ORCL
    데이타화일들은 c:\ORANT\DATABASE 디렉토리에 존재한다.
    cold backup을 schedule하기 위해서는 windows NT의 AT scheduler utility 가
    필요하며
    이것의 GUI version은 windows NT의 Resource Kit에 포함되어 있다.
    우선은 NT scheduler service가 동작하고 있는지 확인해야 한다.
    확인 방법은 NT 제어판을 열고 Service icon을 더블 클릭하여 schedule service가
    동작하고 있으며 automatic인지 확인한다.
    그러면 schedule 방법을 다음과 같이 정리하였다.
    1. 만약 command line scheduler를 사용하고 있다면 다음과 같은 작업을 해준다.
    backup.bat라는 batch file 을 만들어서 다음과 같은 내용을 입력한다.
    call c:\orant\bin\svrmgr23.exe command="@c:\shutdown.sql"
    copy c:\orant\database\*orcl.ora c:\backup
    call c:\orant\bin\svrmgr23.exe command="@c:\startup.sql"
    backup을 schedule 한다.
    NT의 command prompt(Dos prompt)에서 다음과 같은 형식으로 입력한다.
    AT time "C:\backup.bat"
    eg. C:\> at 14:45 "c:\backup.bat"
    2. SHUTDOWN.SQL SCRIPT를 다음과 같이 만들어 준다.
    connect internal/password
    shutdown immediate
    exit
    3. STARTUP.SQL SCRIPT를 다음과 같이 만들어 준다.
    connect internal/password
    startup pfile=C:\ORANT\DATABASE\INITORCL.ORA
    exit
    이상과 같이 해주면 원하는 시간에 db를 cold backup 받을 수 있을 것이다.
    Reference Documents
    <Note:74981.1>

    You must cleanly shutdown database before proceeding with a cold consistent backup, otherwise you compromise database integrity, so recoverability.
    By clean shutdown I mean Normal, Transactional or Immediate, never abort. The point is that the last transaction must properly be recorded by the last checkpoint, and no recovery process is required. Additionally, a clean shutdown guarantees consistency acrorss all datafiles.
    ~ Madrid.

  • ARCHIVELOG mode needless for offline (cold) backups ?

    When I read some tutorials or comments about backup with rman or expdb I saw often the recommendation to put database in ARCHIVELOG mode.
    But this is from my point of view useless when I do such a backups in offline mode.
    I want to backup the current state of the database - full stop.
    Redo logs from ARCHIVELOG are not necessary. Only if I want to go further back from the current state back to the past they are of use.
    Am I right?
    Peter

    Data pump does not require or use archivelog mode for importing, or exporting.
    The archivelog mode is required, however, for RMAN backups, except for full database copy which it copies while the database is shutdown.
    The Data Pump utility uses a parameter called FLASHBACK_SCN (and FLASHBACK_TIME) which reads the undo data, but not to be confused with archivelogs.
    NOTE that if you set archivelog mode on, you may want to either turn off archivelog mode when importing, or set the tabelspaces to nologging (then back to logging when done). Otherwise, it may cause enough archive logs during import to fill up your file system.
    Re: http://www.oracle.com/technology/products/manageability/database/pdf/ow06/Motorola_datapump.pdf
    Hope this helps.
    ji li

  • Can cold backup be taken for ASM managed oracle 10g databases

    Can cold backup be taken for ASM managed oracle 10g databases
    Pls help

    do we still need to take cold backupYou need to take backup. Hot or cold depends on how your DB is running (archivelog or not).
    Will we have file permisions for copyng Use RMAN and don't worry about that.

  • 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

  • Recover database from cold backup and add ol archivelogs....

    Hello!
    Scenarion : I have create in 1 january cold backup of my database. I have from 1 to 4 January all archive logs generated by my database. My database gone in 4 January.
    Solution question : How can i restore database using cold backup a than add info from archivelogs to recovered database to do database consist from disaster day.
    Regards... Marcin

    1. Kill current instance with SHUTDOWN ABORT.
    2. Copy all control files and data files from your cold backup to original destination.
    3. Make sure all archived redo logs from 01-JAN to 04-JAN are available in the database archive destination (LOG_ARCHIVE_DEST or LOG_ARCHIVE_DEST_x).
    4. Run as SYSDBA:
    startup mount
    recover database using backup controlfile until cancel;When prompted for something like
    ORA-00279: change 864868 generated at 01/14/2010 09:30:10 needed for thread 1
    ORA-00289: suggestion :
    C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2010_01_15\O1_MF_1_22_%
    U_.ARC
    ORA-00280: change 864868 for thread 1 is in sequence #22enter:
    AUTOWhen you get something like:
    ORA-00308: cannot open archived log
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2010_01_15\O1_MF_1_29_
    %U_.ARC'
    ORA-27041: unable to open file
    OSD-04002: ouverture impossible du fichier
    O/S-Error: (OS 2) Le fichier spécifié est introuvable.run
    alter database open resetlogs;

  • Database hangs in shutdown immediate for cold backup

    Dear experts ,
    we have scheduled cold backup for our database.
    is there any solution to resolve below mentioned errors other than RMAN hot backup or shutdown abort ?
    Sat Jan 26 00:20:55 2013
    Active call for process 3939 user 'oracle' program '[email protected]'
    SHUTDOWN: waiting for active calls to complete.
    Sat Jan 26 01:15:59 2013
    SHUTDOWN: Active sessions prevent database close operation
    Instance shutdown aborted

    Hi,
    should we daily kill these processes with LOCAL=NO
    what is proposed solution in such cases ?
    is it not harmful for OS or database to kill these processes daily ?Yon can create shell script to find kill session only when you find active calls in your database alert log. You need not have to kill it on daily basis.
    Refer MOS tech notes for more details:
    *Alert Log: Shutdown Waiting for Active Calls to Complete [ID 1039389.6]*
    *What Is The Fastest Way To Cleanly Shutdown An Oracle Database? [ID 386408.1]*
    thanks,
    X A H E E R

  • Cold backup for dataguard dbs

    There is request to take cold backup of primary & standby db , i am New to dataguard backups, Should i take backup of only primary db or both?

    Yes apps owner is insisting to take cold backup of both db this weekend(they are patching apps), and here are the step i had in mind to do that to stop , primary & llogical standby dbs , take cold backups ( scripts, usermanaged backups, dont have rman there) & start the dbs.
    On standby db
    SQL > set numformat “999999999999999”
    SQL > select newest_scn,applied_scn from dba_logstdby_progress ; (both should match)
    SQL > select thread#,sequence#,applied from dba_logstdby_log;
    SQL> select sequence#, status from v$archived_log;( on primary) Both sequence# should match
    on primary db
    SQL > alter system switch logfile ;
    SQL > alter system archive log current ; ( to make sure current transactions come thru)
    check tail of alert log of standby to make sure these redologs shipped & mined
    standby db
    SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY; (stop SQL Apply)
    SQL> shutdown immediate;
    Lsnrctl stop listener_corp_remrpt-haprimary db
    SQL > shutdown immediate ;
    Lsnrctl stop listener_corp_remprd-ha
    Dont shutdown abort for any case, if both dbs are going down, first stop SQL apply on standby, take primary down and then take standby down)
    Startup
    primary
    SQL>startup;
    Lsnrctl start listener_corp_remprd-ha
    Standby
    SQL > startup
    SQL > alter database start logical standby apply immediate ;
    Lsnrctl start listener_corp_remrpt-ha

Maybe you are looking for

  • Most Recent Timeline Doesn't Open

    Sometimes when I open FCP, the project opens, but often times an older version comes up. I have to go to "autosave vault" and find the latest version of my project. IKNOW I"M SAVING IT BEFORE I CLOSE FCP. I'm not doing a save as, or have any multiple

  • Modify column in an internal table

    Hi Friends, I have an internal table itab1 which has a column called zpo_number . I am getting the PO from a BAPI call storing in a field w_ponumber. I have the code below . THe table itab1 has rows all having the same matnr . How can I modify all th

  • System restarting by its self?????

    hi there , specs are psu hyena 350w , 3.3v-28a ,5v-35a ,12v-16a km4m-v mobo amd athlon xp 2800+ 80g samsung ata hdd btc 16x dvd burner cyberdrv 52-24-52 cd burner lcd temp display thermaltake hsf northbridge fan win 98se nortons internet security tem

  • PS 5.1 installation progress stops at 36%

    I am trying to install the PS 5.1 trial. It successfully downloads, extracts and the installation starts. It always stops at 36% and the "time remaining" just goes on adding minutes. I am on OSX Lion. Any hints/ideas on what to do?

  • How do you resize just one layer & how do I make this layer not blur when enlarged?

    I am trying to drop a video game sprite into a much larger image and I wish to make the sprite bigger.  Every time I use CTRL + T  just to size the layer by dragging the mouse, once I hit the check mark it blurs the image instead of keeping it lookin