Hot backup on NOARCHIVELOG mode?

DB version:10gR2, 11G
Why is it not possible to do a Hot Backup in NOARCHIVELOG mode? What role does archived redo log files have in a Hot backup?

Because it takes more than zero seconds to backup a database.
Say your database consists of 1 single datafile of 10MB. This datafile, at the OS filesystem level, consists of 2,560 blocks of 4KB each.
If you start a backup of the datafile, the OS utility (tar, cp, cpio, whatever command) reads the first 4KB block and copies it out. It then, after a certain time, reads the next block. And so on till it gets to the last block of the file.
However, since the database is "open" transactions may have updated blocks in the datafile.
Therefore, at time t0, block 1 may have been copied out. At time t5, block 128 may have been copied out. At time t32, block 400 may have been copied out. Unfortunately, some user may have updated block 1 at time t3 and block 128 at time t8.
What would happen if these blocks, having been copied out at different times were restored ? They would be inconsistent !!
It is the ArchiveLog mechanism that allows Oracle to know that a datafile was "active" when it was being backed up. Oracle has to "re-play" all changes that occurred on the datafile from the time the datafile backup began (at t0) till it ended (at the 2,560th block).

Similar Messages

  • What files can be excluded from user-managed backup in noarchivelog mode?

    what files can be excluded from user-managed backup in noarchivelog mode?
    control files,
    sqlnet.ora file,
    tnsnames.ora,
    datafiles associated with read-only tablespaces,
    datafiles associated with read/write tablespaces,
    of these, what can be excluded and what have to be included?
    Thanks.

    ... and don't forget pfile or spfile... it can help too.
    Re: What are generally backed up during the backup?
    Nicolas.

  • Rman backup in noarchivelog mode

    hi all,
    My database(ORCL) is in noarchivelog mode
    I am taking RMAN backup using recovery catalog(backupdb)
    target database(ORCL) is in mount mode
    I am getting following errors:
    RMAN> backup database;
    Starting backup at 01-AUG-08
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00601: fatal error in recovery manager
    RMAN-03004: fatal error during execution of command
    RMAN-10039: error encountered while polling for RPC completion on channel defaul
    t
    RMAN-10006: error running SQL statement: select act from x$ksusex where sid=:1 a
    nd serial=:2
    RMAN-10002: ORACLE error: ORA-12571: TNS:packet writer failure
    RMAN-03002: failure of backup command at 08/01/2008 15:52:03
    ORA-03114: not connected to ORACLE
    I again tried and then i got these errors:
    C:\Documents and Settings\Administrator>set oracle_sid=backupdb
    C:\Documents and Settings\Administrator>rman catalog rman1/rman
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    connected to recovery catalog database
    RMAN> connect target sys/sys@orcl
    connected to target database (not started)
    RMAN> backup database;
    Starting backup at 01-AUG-08
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/01/2008 16:12:40
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    RMAN>
    please explain
    Message was edited by:
    ArchanaTewatia

    Hi,
    Try to study the errors Correctly ..
    RMAN> connect target sys/aqtechmvardi@orcl
    connected to target database (not started)
    RMAN> backup database;
    Starting backup at 01-AUG-08
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/01/2008 16:12:40
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Try to mount the Target DataBase it will work.
    Thanks
    Pavan Kumar N

  • Restore using incremental backup with noarchivelog mode

    Hello experts,
    We are running SAP on Oracle databse(IN NOARCHIVELOG MODE) for which we are having full offline backup on every sunday and post which incremental backups on rest of the days. We have scenario to do restore db to the state till last friday's incremental backup.
    Please let us know the procedure for restoring till that point. If possible using brtools utility(which is SAP specific).
    Thank You
    Regards,
    Venkateshwar

    If you do not want to read the whole doc This is the snippet for you.
    Recovering a NOARCHIVELOG Database with Incremental Backups
    Restoring a database running in NOARCHIVELOG mode is similar to restoring a database in ARCHIVELOG mode. The main differences are:
    Only consistent backups can be used in restoring a database in NOARCHIVELOG mode.
    Media recovery is not possible because no archived redo logs exist.
    You can perform limited recovery of changes to a database running in NOARCHIVELOG mode by applying incremental backups. The incremental backups must be consistent, like all backups of a database run in NOARCHIVELOG mode, so you cannot make backups of the database when it is open.
    When you are recovering a NOARCHIVELOG database, specify the NOREDO option on the RECOVER command to indicate that RMAN should not attempt to apply archived redo logs. Otherwise, RMAN returns an error.
    To recover a NOARCHIVELOG database with incremental backups:
    After connecting to the target database and the recovery catalog, place the database in a mounted state:
    STARTUP FORCE MOUNT
    Restore and recover the database.
    For example, you can perform incomplete recovery with the following commands:
    RESTORE DATABASE
    FROM TAG "consistent_whole_backup";
    RECOVER DATABASE NOREDO;
    Open the database with the RESETLOGS option.
    For example, enter the following command:
    ALTER DATABASE OPEN RESETLOGS;

  • Backup in NOARCHIVELOG mode using RMAN

    I'm trying to do a cold backup of a database as outlined in the 'Backup and Recovery Guide':
    - shutdown database using SVRMGRL
    - run the backup from RMAN:
    However I get the following error messages:
    RMAN> run {
    2> allocate channel dev1 type disk;
    3> backup (database format '/oracle/backup/bp_%s_%p');}
    RMAN-03022: compiling command: allocate
    RMAN-03026: error recovery releasing channel resources
    RMAN-00569: ================error message stack follows================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: allocate
    RMAN-06003: ORACLE error from target database: ORA-01012: not logged on
    It looks like RMAN wants to connect to the database I want to backup...
    What am I doing wrong????
    null

    You've probably already figured this out, but you need to connect to the target database before doing backup/restore operations, using a command like
    RMAN> connect target user/pw ...

  • RMAN backup with NOARCHIVELOG mode

    Hi,
    Is it possible to EXCULDE TABLESPACE with rman using NOARCHIVELOG database ?
    Thanks

    Use following persistent setting:
    RMAN> CONFIGURE EXCLUDE for tablespace <Tablespace Name>;
    N.B. You will not be able to do this for system tablespace.
    Regards,
    S.K.

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

  • Can't backup database in NOarchivelog mode

    Hi there,
    I get this error when I run this command from rman:
    backup database
    Starting backup at 19-JAN-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/19/2011 17:18:10
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    please help.
    Thanks in advance!

    user13286861 wrote:
    ok it finally shutdown cleanly.
    I altered it in archivelog mode.
    Now I can run a backup database command from rman?What does it cost to try it and see? What would be the worst thing that could possibly happen? An error message saying you can't do that?
    And please note, this forum is not a chat line. Operators are NOT standing by. Posting a new message every two minutes to give an update on the fact that the database hasn't shut down yet is not necessary and not productive.
    If there are a lot of pending transactions when you issue SHUTDOWN IMMEDIATE, they will all have to be rolled back as part of the shutdown. That can take some time. And if you bypass that with SHUTDOWN ABORT, they will have to be rolled back as part of instance crash recovery on the next startup, which will also take some time. Five minutes may feel like an eternity when you are sitting there waiting for your command to complete, but is no reason to panic.

  • ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode

    Hi All
    Its my first time to use RMAN in our ERP EBSR12
    our database version is 11g
    Please help how to resolv and make successfully backup
    RMAN> backup database;
    Starting backup at 24-JAN-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/24/2011 11:18: 25
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 24-JAN-11
    channel ORA_DISK_1: finished piece 1 at 24-JAN-11
    piece handle=/oracle/mybackup_db/PROD2/backupset/2011_01_24/o1_mf_ncnnf_TAG20110 124T111824_6msvw4cv_.bkp tag=TAG20110124T111824 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/24/2011 11:18: 25
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    RMAN>
    Thanks

    ORA-19602: cannot backup or copy active file in NOARCHIVELOG modeIs your database in archivelog or noarchivelog mode?
    How to Turn Archiving ON and OFF [ID 69739.1]
    Please also see these docs/links.
    ORA-19602 Using RMAN to Backup Database [ID 246183.1]
    COLD RMAN backup fails: Ora-19602 even after SHUTDOWN IMMEDIATE and STARTUP MOUNT [ID 373828.1]
    Backup & Recovery
    http://www.oracle.com/pls/db112/portal.portal_db?selected=14&frame=#backup_and_recovery
    Thanks,
    Hussein

  • Backup/restore tablespaces in noarchivelog mode

    In our office there is a oracle 10g box that's used for testing purposes.
    It's only got 1 database, but each user has their own tablespace.
    As it's not a 'live' box, archivelog and flashrecovery have been disabled by the dba probably in favour of speed.
    I have a NUnit test suit that runs across a tablespace, and I am trying to restore the tablespace before each run.
    In noarchivelog mode, RMAN allows me to take the tablespace offline, and create a backup - so far so good.
    Later on, I am able to take the tablespace offline again, and issue a "RESTORE TABLESPACE" command.
    But then I cannot bring the tablespace online without issuing a "RECOVER" command.
    I have tried the NOREDO option but it still says that the file needs a media recovery before it can be brought online.
    Is there a way to bring the tablespace online without applying the REDO logs ?
    Or is tablespace backup/restore not possible because of noarchivelog ?
    Thanks.

    I tried the TTS method, and it was only marginally quicker than a data_only impdp.
    I suspect this is due to the nature of a fresh nunit test database, where the metadata (huge tables structure, stored proc, etc) is often larger than the table contents itself.
    In the grand scheme of things it might even end up slower, as i need to drop the tablespace including contents if i want to use TTS to load up the backed up dbf.
    From the comments I'm guessing that there's no way of just updating the timestamp of the tablespace without applying the REDO logs then ?
    I've tested other methods as well.
    Flash recovery could only work on a table or db level, I can't take the db offline as there are other users on it with their own tablespace/schemas. (it was an old dev's box, we're reusing what we can)
    impdb with the truncate and data_only flag seems to be the only viable option so far, with TTS up for consideration.

  • Restoring backup taken in NOARCHIVELOG mode

    Hi I have a test database in noarchivelog mode. The backup I am implementing involves:
    Shutting down the database in immedtiate mode. Taking a complete backup of the
    a) Datafiles
    b) Controlfiles
    c) Redo log files
    d) Parameter file
    e) Password file
    Now, when I want to restore in case of any media failure, I will copy all the above file to their respective locations.
    Here my question is that, do I require to open the database after restoring all the datafiles,controlfile and redo files(in particular) in the RESETLOG mode or as I will be overwriting the current useless redo log files with the backup redo log files, I can just open the database normally?
    What I am thinking is to open the database with alter database open
    Please comment with full explanation.

    >
    Hi I have a test database in noarchivelog mode. The backup I am implementing involves:
    Shutting down the database in immedtiate mode. Taking a complete backup of the
    a) Datafiles
    b) Controlfiles
    c) Redo log files
    d) Parameter file
    e) Password file
    Now, when I want to restore in case of any media failure, I will copy all the above file to their respective locations.
    Here my question is that, do I require to open the database after restoring all the datafiles,controlfile and redo files(in particular) in the RESETLOG mode or as I will be overwriting the current useless redo log files with the backup redo log files, I can just open the database normally?
    What I am thinking is to open the database with alter database open
    >
    Your thinking is right :-) You have chosen the simplest but not necessarily most efficient or reliable backup method. You simply get the whole database back from backup, so there is no resetlogs necessary. But keep in mind that you lose all modifications since your backup.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • System datafile block corruption - no backups and database in NOARCHIVELOG mode

    Dear All,
    Database version - oracle 11.1 Enterprise
    OS - RHELinux 5.8
    What are the options of recovering from physical block corruption when there are no backup available to perform block media recovery?
    V$DATABASE_BLOCK_CORRUPTION reports two segments corrupted (please see attached image for details).
    1 table in system datafile - sys_fba_barrierscn
    1 index - (applicaiton index)
    What are my options?
    I know there is a possibility that the database will not restart after a shutdown due to corruption in system tablespace.
    Database is in noarchivelog mode. So online backups are not possible and there aren't any full backups either.
    I am thinking of below,
    1. Run dbms_repair with fix_block_corruption. - Still database startup might fail?
    2. Shutdown the database and take offline full backup with RMAN MAXCorrupt option.
    Appreciate your suggestions and advises.
    Thanks
    Stefan

    Thanks Sybrand,
    Agree with your first two suggestions .
    Also scheduled a expdp job tonight. (Only backup like thing they had was a expdp cron, but until today all the large tables were failing due to small undo_retention).
    Yes. Flashback is not used. So hopefully it will not affect the a database restart i guess?
    Related to dbms_repair, I was referring to - http://askdba.org/weblog/2010/08/physical-corruption-ora-1578-part-3/.
    Where DBMS_REPAIR.FIX_CORRUPT_BLOCKS and DBMS_REPAIR.SKIP_CORRUPT_BLOCKS used.
    Which i think will not use any redo.
    Thanks
    Stefan

  • Backup of one tablespace in noarchivelog mode

    Hi,
    I am running 10g.
    Is it possibe to backup a specific tablespace in noarchive mode?
    Thanks

    Hi
    I am able to backup the tablespace,
    but after the recovery loosing the table data.
    The database is in noarchivelog mode!
    here is what I am doing:
    my_table TABLE has 100 rows, and is saved under my_tablespace TABLESPACE.
    RMAN> sql 'alter tablespace my_tablespace offline';
    RMAN> backup tablespace my_tablespace;
    RMAN> sql 'alter tablespace my_tablespace online';
    Now I truncate the table
    TRUNCATE TABLE my_table;
    RMAN> sql 'alter tablespace my_tablespace offline';
    RMAN> restore tablespace my_tablespace;
    RMAN> recover tablespace my_tablespace;
    RMAN> sql 'alter tablespace my_tablespace online';
    Now the my_table TABLE is after the rcovery empty :-(
    What I am doing wrong

  • 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

  • Blocking session in hot backup mode?

    In 8.1.7.4 Some time While in hot backup mode, blocking session occuring by checkpoint session background process. Can we issue the alter system checkpoint command in this
    Situation ? how to handle this?

    best way is to try and see but checkpointing frequently wont help in my opinion, a better workaround may be ensuring you only place one tablepspace at a time in backup mode and bring the tablespace out of backup mode as soon as you have backed it up.

Maybe you are looking for

  • Another dead CD/DVD drive

    Hi all, My G4 PowerBook has decided that it won't play CDs or DVDs anymore. Actually, I can't even get THAT far because it won't grab discs either! In the System Profiler, it says that there is no DVD drive in the laptop. So it's knackered. Probably

  • Add photo grid to a page?

    I am trying to add a photo grid to one of my blog entries and I can't seem to get it to work properly. I have cut and pasted an empty album onto the page and set up the height to allow for everything on the page. The problem I am having is that when

  • Ongoing problems with Flash in Firefox 8

    I am still having problems with Flash player since upgrading to Firfox 8 - see previous posts. Symptoms: When I try to access any flash containing page, the flash content does not load or play - the area it should be is blank or shrunk out - not even

  • Newest safari download

    I just downloaded the latest update to Safari and now I cannot open Safari from the doc or from the HD applications folder. I have never had ths problem with automatic updates before. Any suggestions?

  • LabVIEW 11.0 Development System has stopped working (happens every time I close manually)

    Perhaps this issue is related to my computer only? Does anyone else experience this when the manually close labview's "getting started" window? All I have to do is open labview then close the window... everytime. Here is the data dump from the crash