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

Similar Messages

  • A script for oracle10g cold backup on linux

    Hi,
    I have a urgent need to do a cold backup using o/s command. Can anyone please send me a script for this.
    Thanks in advance
    PK

    I ended up writing the script
    define 3 = &backup_directory
    define 4 = &instance_name
    define 5 = &user_dump_directory
    Set Heading Off
    Set Verify Off
    Set FeedBack Off
    Set LineSize 132
    Set PageSize 1000
    set termout off
    Spool cold_back.sql
    select 'connect /as sysdba' from dual;
    Select 'Startup Force' || CHR(10) ||
    'Shutdown Normal' From Dual;
    select '! mkdir '||'&&3'||'/'||to_char(sysdate,'yyyyddmm') from dual
    /* Data Files */
    Select '!cp ' || File_Name || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') || CHR(10) ||'!gzip ' || '&&3' ||'/'||to_char(sysdate,'yyyyddmm')|| '/' || SubStr(File_Name, InStr(File_Name, '/', -1)+1) From Sys.DBA_Data_Files
    /* Redo Log Files */
    Select '!cp ' || Member || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') || CHR(10) || '!gzip ' || '&&3'||'/'||to_char(sysdate,'yyyyddmm') || '/' || SubStr(Member, InStr(Member, '/', -1)+1) From V$LogFile
    /* Control Files */
    Select '!cp ' || name || ' &&3'||'/'||to_char(sysdate,'yyyyddmm') From V$controlfile
    /* Init and Config Files */
    Select '!cp $ORACLE_HOME/dbs/init&&4' || '.ora &&3'||'/'||to_char(sysdate,'yyyyddmm') From Dual
    alter session set tracefile_identifier=coldbackup
    alter database backup controlfile to trace
    select '!mv '||'&&5/*COLDBACKUP*' ||' &&3'||'/'||to_char(sysdate,'yyyyddmm') FROM dual
    Select 'Startup' From Dual;
    Select 'Exit' from dual;
    set termout on
    PROMPT " Run the output cold_back.sql script [sqlplus -s '/as sysdba' @cold_back.sql ]"
    Spool Off
    -----------------------

  • 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

  • Why archivelog mode is mandatory for hot backups.

    Hi,
    Why the database should be put in archivelog mode when we take hot backups. What happens actually. Why can't we put in noarchivelog mode and take hot backups?

    Suppose you are not using RMAN then you must put your tablespaces in backup mode. Otherwise the backup you can take will be unrecoverable.
    In order to recover from a Hot Backup you have to do followings
    - Restore your Hot Backup
    - Recover the database - here, the archive log files are important
    How does Oracle know what has to be recovered from archivelogs?It looks at the SCN.
    If you never put your tablespaces in backup mode then SCN would not be frozen and Oracle wouldn't know what has to be recovered.
    Talip Hakan Ozturk
    http://taliphakanozturken.wordpress.com/

  • No archivelog mode backups

    I am curious if anyone knows of any software out there that can backup a database that is in no archivelog mode while it is running?
    I don't want to do this....but I am curious to see if there is any that I have not heard of for a writeup I am doing.
    Regards
    Tim Boles

    Hello,
    I've never heard about it.
    RMAN which is (on my point of view) the best tool to Backup Oracle database needs to set the database
    in mount state for Cold Backup.
    Else, about mirror or "business copy", they cannot manage dirty blocks in the buffer. They just manage
    the files on the disk but, while a database is open the datafiles have no reason to be consistent.
    We make clone with Business Copy (HP) for our Backup and we need to have the database in archivelog mode
    and the Tablespaces in Backup mode.
    Best regards,
    Jean-Valentin

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

  • Cold Backup

    Hi,
    I am doing the following steps for taking Cold Backup
    of my Oracle 9i Database (On Solaris).
    The Database is not enabled for Archive Mode.
    a)sqlplus /nolog
    b)conn / as sysdba
    c)start up
    d)alter database backup control file to '/backup/control.ctl'
    e)alter database backup control file to trace
    f)shutdown immediate
    g)exit
    h)Manually copy all the .dbf and init.ora files to a seperate directory.
    Are all the above steps correct.
    If yes,can anyone give me a script which i can run manually so as to take the cold Backup.
    Regards
    Deepak

    Here is a scrip which I wrote to take a cold backup.
    REM
    REM Script for backing up the I2ORADEV database running in NOARCHIVELOG mode.
    REM Created by Deepak Jaisingh on 24.11.2003.
    REM
    PROMPT
    PROMPT Backup started for I2ORADEV.
    PROMPT
    REM
    REM Stop the listener to restrict access.
    REM
    HOST LSNRCTL STOP;
    PROMPT Listerner stopped.
    PROMPT
    PROMPT
    PROMPT Shutting down I2ORADEV for backup.
    shutdown immediate;
    PROMPT
    PROMPT Backing up database, redolog and control files.
    HOST COPY G:\oracle\oradata\apildata\* D:\BACKUP\ORADATA\I2ORADEV\;
    HOST COPY G:\ORACLE\ORADATA\I2ORADEV\* D:\BACKUP\ORADATA\I2ORADEV\;
    PROMPT
    PROMPT Backup for database, redolog and control files complete.
    PROMPT
    PROMPT Starting I2ORADEV.
    startup;
    REM
    REM START the listener.
    REM
    HOST LSNRCTL START;
    PROMPT Listerner started.
    PROMPT
    PROMPT Backup for I2ORADEV complete.
    PROMPT

  • Restore database in no archivelog mode

    hello all,
    Our DB version is 10.2.2.0
    Os is Linux RHL4
    Our Database is in noarchive log mode.
    i am performing Recovery of DB from previous cold backup.
    so, apart from datafile and controlfile ,do i need to restore the online redolog file also from the backup to its original location?
    or do i keep the current redolog files intact?
    need help ..
    thanks

    Redologs should be flushed when you do a proper shutdown for the cold backup, so you do not need to restore them. In fact, it can be a bad habit, as you inevitably encounter a situation where you overwrite some that are needed because of an improper shutdown, (usually after you move to hot backups). And if you are restoring after a crash, you can't do media recovery with noarchivelogmode. Except, if you are doing [url http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmrecov.htm#CACGEAEE]incrementals, you can do limited recovery, then you definitely don't want to restore the redo, because you will lose activity after the last incremental backup.
    Do an alter database backup controlfile to trace; and look at the resultant trace file. See how there are both noresetlog and resetlog versions? You use the resetlog to create the new one if you are in some situation where you lost the controlfiles and redo. It's real handy to have that type of controlfile backup, you might consider keeping it every time you make a backup. Google for scripts that figure out the tracefile name so you can put it in some known file.

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

  • Cold Backup ERROR ORA-01113

    Hi Friends,
    Oracle 10g R2 DB
    I have taken a cold backup pf my database.
    I shutdown the db, and copy all the datafile,logfile,controlfile to /u01/BACKUP_DB.
    Then I tried to test my backup by pointing all the dbfs to /u01/BACKUP_DB.
    startup mount
    alter database rename file ... to ...;
    alter database open;
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1 '/u01/BACKUP_DB/system01.dbf'
    Where did I go wrong? :(
    I am sure I shutdown the database.
    Thanks a lot

    Why do I get ORA-01113 for the cold backup?
    To get some clue why ora-01113 error comes during backup and recovery review following link.
    I  recreated controlfile, but recover database failed!
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Cold backup shell scripts

    Could anyone please send me Shell script for taking Cold backups on solaris
    The script will be run and will start taking backup
    if possible Automatically it will Down and UP the Database
    Thanks
    Mark

    I'm sure that a short google search should find some example for you.
    Here some scripts :
    http://orafaq.com/scripts/
    http://www.dbasupport.com/oracle/scripts/Backup_Recovery/
    But, that would be better to google for more results :
    http://www.google.fr/search?q=oracle+script+backup&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:fr:official
    Nicolas.

  • Set Archivelog Mode

    How can I turn on/off the Archivelog Mode for a database by using the OEM, (say, I launched the OEM at http://My_Machine:1158/oem, after I log on where I go next)?
    Thanks to help.
    Scott

    Thanks for the response.
    Now I am on the Recovery Settings page:
    1) Under Media Recovery, I checked ARCHIVELOG Mode*
    2) For the Log Archive Filename Format*, it carries the entry of: ARC%S_%R.%T, what should I replace %S, %R, abd %T with? --Could you give an example?
    3)Under Number Archive Log Destination Quota (512B) Status Type, there are 10 lines for entries, so I filled with the following:
    1 C:\Oracle\product\archivelog1_dir
    2 C:\Oracle\product\archivelog2_dir
    3 C:\Oracle\product\archivelog3_dir
    9
    10 USE_DB_RECOVERY_FILE_DEST n/a VALID Local
    Quesion:
    3.1) Is the (format of ) the above entry :"C:\Oracle\product\archivelogx_dir" --Correct?   Note: archivelogx_dir is the sub-directory name, not the file name.
    3.2) It looks like the Quota for each destination is (512B) (byte?). If so, generally, how many such (512 Byte) do I need? I mean on average. And why does it restrict to 512 Byte for each destination?
    3.3) Assume I'll use up ALL the 10 (lines) of destinations above, if I understand it correctly, the total and maximum of the archivelog file is 10 x 512 Bytes -- Is this correct?
    3.4) What should I do about Line #10 above, which carries the entries of:
    USE_DB_RECOVERY_FILE_DEST under Archive Log Destination
    n/a under Quota
    VALID under Status
    Local under Type
    --I mean, should I replaced with a C:\Oracle\product\archivelogx_dir? or delete it? or else?  What is this Line's default entry for?
    4) If arvhice log file ARC%S_%R.%T is specified, will this same file be spread into multiple destination (directories)?
    Thanks to help.
    Scott

  • Set Archivelog Mode in OEM

    How can I turn on/off the Archivelog Mode for a database by using the OEM, (say, I launched the OEM at http://My_Machine:1158/oem, after I log on where I go next)?
    Thanks to help.
    Scott

    Thanks for the response.
    Now I am on the Recovery Settings page:
    1) Under Media Recovery, I checked ARCHIVELOG Mode*
    2) For the Log Archive Filename Format*, it says: ARC%S_%R.%T, what should I replace with? --Could you give an example?
    3)Under Number Archive Log Destination Quota (512B) Status Type, thre are 10 lines, i.e.: so I filled with
    1 C:\Oracle\product\archivelog1
    2 C:\Oracle\product\archivelog2
    3 C:\Oracle\product\archivelog3
    9
    10 USE_DB_RECOVERY_FILE_DEST n/a VALID Local
    Quesion:
    3.1) Is the (format of ) the above entry :"C:\Oracle\product\archivelog1" --Correct?
    3.2) It looks like the Quota for each destination is (512B) (byte?). If so, generally, how many such (512 Byte) do I need? I mean on average. And why does it restrict to 512 Byte for each destination?
    3.3) If use up ALL the 10 (lines) of destinations above, if I understand it correctly, the total and maximum of the archivelog file is 10 x 512 Bytes -- Is this correct?
    3.4) What should I do about Line #10 above, which carries:
    USE_DB_RECOVERY_FILE_DEST under Archive Log Destination
    n/a under Quota
    [b]VALID under Status
    Local under Type
    Thanks to help.
    Scott
    Message was edited by:
    scottjhn

  • Recover datafile using cold backup in archivelog mode

    Hi,
    I have lost one of my datafiles i.e New.dbf from the disk. I have full database cold backup of last sunday. Also I have the archives. Is it possible to restore and recover only the lost datafile? Please help.

    If you used RMAN to create the backup, then use RMAN again to restore that one datafile alone (RESTORE DATAFILE n) and then recover it (RECOVER DATAFILE n).
    If you didn't use RMAN but you are sure that the backup was a COLD Backup, manually restore the datafile and then issue a RECOVER DATAFILE n from the SQLPlus command.
    In either case you must ensure that the datafile is OFFLINE before you restore the file -- or take it OFFLINE with ALTER DATABASE DATAFILE n OFFLINE IMMEDIATE before doing the restore.
    After the RECOVER is completed, you must bring it ONLINE with an ALTER DATABASE DATAFILE n ONLINE
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • 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

Maybe you are looking for

  • Daylight saving & Clock App

    In Australia we have just switched to daylight savings time and my 3G iPhone running version 4.1 change the internal clock perfectly. The odd thing is that the alarm function in the standard clock App supplied with the phone, is going off an hour ear

  • My sister has been charged $400 for an app games she never accepted how does this matter get Investigated further as apple always requires a password on Purchases ?

    Can some one please tell me where do I complain or start an Investigation on an app that has be wrongly charging a credit card for gems and coins with. Authorization or password ? iTunes is giving me the run around and won't Rectify this problem this

  • Group by and internal table

    Hi everyone, Please help me. Is it possible to select data from database table into an internal table with group by? For example: select carrid connid SUM(seatsocc) from sflight into(internal-table-carrid, internal-table-connid, sum) group by carrid

  • Reg. CIN details in vendor master

    Dear All For one user the CIN details is not come when create vendor in vendor master XK01. what is the problem. I used Tc OMT3E,this code is directly access the configuration,but I think there is another one way to bring the CIN Detials in vendor ma

  • N95 transfer to pc suite

    every time i try to connect to pc suite on my computer i select pc suite on phone but pc suite on computer comes up with "your phone is in file transfer mode and cannot be used with pc suite. quit file transfer mode from the phone if you want to use