Database in backup mode

Hi Guys,
If I put my database in backup mode and perform the backup (hotbackup/online) of the database.
When I need to do restoration, do I need any archive logs at all? (not necessary to recover up to point in time) Can i just restore the datafiles and do a alter database open resetlogs?
Will the database be inconsistent and can't startup without applying any archive logs at all? as the datatabase is not shutdown when doing the backup.
thanks

dbaing wrote:
Hi Guys,
If I put my database in backup mode and perform the backup (hotbackup/online) of the database.
When I need to do restoration, do I need any archive logs at all? (not necessary to recover up to point in time) Can i just restore the datafiles and do a alter database open resetlogs?Yes, even if you won't be required to do an point in time recovery, you need the archive logs to make the database consistent which it won't be in a hot backup mode.
Will the database be inconsistent and can't startup without applying any archive logs at all? as the datatabase is not shutdown when doing the backup.Yep.
That said, use RMAN to do the same thing. It would be much better to use it than using the backup mode .
HTH
Aman....

Similar Messages

  • What happen when Database in Backup Mode?

    Hi,
    What happen when we kept database in backup mode, Means using command 'Alter database Begin Backup';
    Thanks...
    Asit

    jgarry wrote:
    EdStevens wrote:
    jgarry wrote:
    What do you think of the snapshot backup on page 22 of [url http://en.community.dell.com/techcenter/storage/w/wiki/2638.oracle-11g-backup-and-recovery-using-rman-and-equallogic-snapshots-by-sis.aspx]this paper? (No sarcasm, I'm curious about these snap solutions in general. Though I am really down on Dell for what turned out to be a brain-damaged laptop I got for my wife.)
    Well, you can't really make a judgement about a company's enterprise products based on an experience with their consumer products.What if it came from what they call a business products catalog? They intermingle laptops with servers.
    Don't know, in general. I do know that for Dell there is a distinct difference between their decidedly consumer laptops (Inspiron) and their "business" Lattitude series. I know that at my last job we had a lot of rock solid HP equipment (servers and SAN) - vs. an HP laptop I had that was trouble from Day One. I'm sure there is a point in desktops and laptops the line can get blurred, but in the case of the OP, he was no where near that fuzzy line.
    >
    >>
    Perhaps I can find time to read the white paper over the weekend ....

  • PIT recovery until time when database was in backup mode

    Hello,
    Is it possible to recover database until some point/time which is within "time window" when database tablespaces were still in online backup mode?
    I was basicaly replicatying database from source to target DB by putting DB to online backup mode, then copy all datafiles, after copy of datafiles was finished I started applying redologs generated on source DB afterwards. After I applied tens of redologs with "recover database until cancel using backup controlfile" and then typed "CANCEL" after 10-20 redologs applied I still got an error that opening DB would get an error due to inconsistent datafile. When I ended backup mode on source DB and applied few of redologs after ending backup mode on source DB datafiles were consistent.....
    Thx a lot for answer in advance.

    Hello Hemant K Chitale ,
    thats clear. I probably did not express it clearly, so I will describe it once again:
    Teoreticall scenario 1:
    I put 'source" database to backup mode and start copy datafiles to "target" db. When copy of all datafiles is succesfully finished (lets say it 5:00AM), I don't issue "end backup" on source DB but I keep tablespaces in backup mode until 7:00AM. On target DB I will start recovery and apply redologs from source system.
    Question 1:Is it possible to recover database until time 6:00AM? At this time all datafiles were already succesfully copied, BUT source db was still in backup mode. Or will I be able to get target DB to consistent state only after 7:00AM (end backup issuied on source DB) and not in window 5:00AM-7:00AM?
    Teoreticall scenario 2 (small correction comparing to scenario1):
    I will put source DB to begin backup mode at 5:00AM on 20.february and let it in this state until 7:00AM on 20.february. On target DB I will restore backup from source DB performed day before (or few days before does not matter) that means on 19.february and start to apply redologs generated after this backup.
    Question 2: Will I be able to recover DB until 6:00AM on 20.february and open database after recovery until this time? Or wont I be able to recover and open DB witin window 20.february 5:00AM-7:00AM (source db in backup mode)
    Bear in mind this is just teoreticly (don't ask me why would you do it and why you don't do it this way etc...). I just want to understand how it really works ;)
    Thx a lot!

  • Alter database begin backup; missing keyword error

    Hi all,
    I am trying to put my database in backup mode using the command "alter database begin backup", but it is giving error shown below:
    $ sqlplus '/as sysdba'
    SQL*Plus: Release 9.2.0.5.0 - Production on Wed Nov 25 16:52:58 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.5.0 - Production
    SQL> select name,open_mode from v$database;
    NAME OPEN_MODE
    N05PCS07 READ WRITE
    SQL> alter database begin backup;
    alter database begin backup
    ERROR at line 1:
    ORA-00905: missing keyword
    NE one can tell why the command is failing??
    pls...
    Thanks in advance.
    SHAILESH

    Hello,
    All the former posts are right, alter database begin backup; doesn't exists in 9.2 althought
    you already have in this release the alter database end backup;.
    So as to put all the tablespaces in backup mode in one command I suggest you to create a
    stored procedure as follows:
    CREATE OR REPLACE PROCEDURE begin_backup IS
    TYPE RefCurTyp IS REF CURSOR;
    cv RefCurTyp;
    sql_cv VARCHAR2(400);
    tbs VARCHAR2(128);
    sql_stmt VARCHAR2(200);
    BEGIN
    -- Mise en BEGIN BACKUP des TABLESPACES
    sql_cv := 'SELECT distinct (A.name) FROM sys.v_$tablespace A, sys.v_$datafile B, sys.v_$backup C where A.TS# = B.TS# and B.FILE# = C.FILE# and C.STATUS = ''NOT ACTIVE''';
    OPEN cv FOR sql_cv;
    LOOP
    FETCH cv INTO tbs;
    EXIT WHEN cv%NOTFOUND;
    sql_stmt := 'ALTER TABLESPACE '||tbs||' BEGIN BACKUP';
    EXECUTE IMMEDIATE sql_stmt;
    END LOOP;
    CLOSE cv;
    END;
    Then, I just have to call the Procedure like that:
    execute <schema>.begin_backup; and all the tablespaces are in backup mode.
    This procedure must be created on a User/Schema with the following privileges:
    alter tablespace
    select on sys.v_$tablespace
    select on sys.v_$datafile
    select on sys.v_$backupHope it can help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Nov 25, 2009 9:44 PM

  • Backup Mode and Error Checking

    If I use RMAN why would I want to set the database to backup mode? Is there a way to monitor if RMAN fails or has errors? Can RMAN do compression?

    RMAN does not require the database to be in "backup mode". That's one of the benefits of RMAN.
    RMAN offers a LOG option that can be used to log RMAN's actions during it's operations. In addition to this log, several views exist that maintain corruption information (V$BACKUP_CORRUPTION, V$DATABASE_BLOCK_CORRUPTION and V$COPY_CORRUPTION). If you are using a recovery catalog, these views correspond to RC_BACKUP_CORRUPTION, RC_DATABASE_BLOCK_CORRUPTION and RC_COPY_CORRUPTION.
    10g has RC_RMAN_STATUS & V$RMAN_STATUS and some additional views if you are using RMAN with OEM.

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

  • Can I take a backup of a database in standby mode?

    Can I run backup on a database that is in standby mode because it is the DR box receiving log shipping?
    Does that work in SQL 2005?  How about SQL 2000?
    Thanks.
    Josh
    ps - I know I should just try it, I've already Googled it - with mixed results.

    https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=466121
    Please allow backup of database in standby mode!
    This comes up as a very common requirement in HA/DR planning. Logs are shipped over a (relatively) small pipe to a DR site, for days or weeks or months. As part of a (partial) failover plan, we need a full backup of a current version of the database to restore on another server on the DR side - but we cannot take the main DR (secondary) copy out of standby without breaking the log chain. Yes, we might have to pause the application of logs - or possibly not - in order to take the backup of a large-ish database. But the alternative is shipping a large backup all the way from production over that small pipe, which can be prohibitive.
    Thanks for the reminder, Tibor.
    Josh

  • Do I need to use standby database in begin backup mode to take the backup?

    Hi All,
    I have a 10g(10.2.0.4) primary database with standby on a solaris platform. I need to create another standby database for the same primary.
    I have stopped the recovery on existing standby database and started copying(os copy) the files from existing standby to 2nd standby server. However I haven't kept the existing standby database(mounted) in begin backup mode. Is it okay?
    Thanks,
    Arun

    Backup mode for a mounted database?
    orclz>
    orclz> startup mount
    ORACLE instance started.
    Total System Global Area  788529152 bytes
    Fixed Size                  3050600 bytes
    Variable Size            373293976 bytes
    Database Buffers          406847488 bytes
    Redo Buffers                5337088 bytes
    Database mounted.
    orclz>
    orclz> alter database begin backup;
    alter database begin backup
    ERROR at line 1:
    ORA-01109: database not open
    orclz>

  • Database stuck in backup mode after unplanned restart.

    Hi All,
    Maybe someone can help i am looking to see if there is a Oracle paramater that will kill a backup if the system is restarted or stopped during a baclup.
    John

    There is no such parameter.
    If you are still using user managed backups (which
    you shouldn't)
    you'll need to recover your database when you abort a
    backup, or shutdown the database during backup.That is not correct.
    See documentation on the END BACKUP Clause:
    After a system failure, instance failure, or SHUTDOWN ABORT operation, Oracle Database does not know whether the files in online backup mode match the files at the time the system crashed. If you know the files are consistent, you can take either individual datafiles or all datafiles out of online backup mode. Doing so avoids media recovery of the files upon startup.
    * To take an individual datafile out of online backup mode, use the ALTER DATABASE DATAFILE ... END BACKUP statement. See database_file_clauses .
    * To take all datafiles in a tablespace out of online backup mode, use an ALTER TABLESPACE ... END BACKUP statement.

  • Database in noarchivelog mode, truncate command issued

    Database in noarchivelog mode, truncate command has been issued how to restore the table?
    FACTS:-
    1. DB In noarchivelog Mode
    2. Cannot enable flash back mode because of 1. above
    3. No exports available
    4. No backup's Available.
    Any thoughts ?

    Oracle Support/ Professional Services has a Data Unloader (DUL) and ORA-00600 has DUDE, both of which may be able to extract information from data files that are corrupted, where the control files are lost, etc.
    These are not, however, cheap utilities. Unless the data itself is really valuable, it is generally not a viable option.
    Justin

  • How to set the database in NOARCHIVELOG mode

    hellow world,
    I knewly joined this organization.
    Our database is very small < 4GB data.
    Database is running in ARCHIVELOG MODE.
    since we are not keeping any physical backup, so I opted to run the datbase in NOARCHIVELOG mode.
    For bringing the database in NOARCHIVE MODE, I simply changed the init.ora parameter LOG_ARCHIVE_START = FALSE and restart the database.
    offcourse the archiving stopped, but to my strange after 30 to 40 minutes my all log files filled an error message is being displayed to the server, saying
    log files are filled, waiting for the archiving, Oh my God, What has happened, All users came to my head, DATABASE HANGED, NOT RESPONSING.
    SIR, MY QUESTION IS
    WHAT FOR ALL LOG FILES WAITING?
    when i am saying NOARCHIEVE than
    please explain me, where i committed mistake. I am new to ADMINISTRATION.

    1. Not keeping any physical backup is all the more reason to stay in archivelog mode.
    2. You need to shutdown the database, startup mount, and issue 'alter database noarchivelog', the alter database open.

  • Database in Suspect Mode in SQL Server 2000 Log Shipping Environment

    Hi All
    We have movement of SQL Server 2000 at physical level. We have disable jobs and stop Agent and SQL Server services.
    After moved the server we have started the server and then start SQL Server 2000 services.
    All of databases in SUSPECT mode. Files are in correct folders as were before shutdown the server
    What shall I do e.g. why databases come up in SUSPECT mode? what to check and how to get database live?
    Pls help it is critical...
    Thanks in Advance

    All of databases in SUSPECT mode. Files are in correct folders as were before shutdown the server
    What shall I do e.g. why databases come up in SUSPECT mode? what to check and how to get database live?
    Pls help it is critical...
    Thanks in Advance
    Hello,
    Did you made sure no transactions like restore logs  were running when you stopped SQL server service or agent .I have seen in SQL 2000 an abrupt stop of SQL Server agent when its doing a process can sometimes force database in suspect mode.
    I would like you to get your disk analyzed by vendor ASAP for any fault in disk at first go it seems to me an underlying hardware issue.
    Please can you check errorlog and event viewer to find out any possible cause for database going into suspect mode
    I always suggest to use Backup and restore method of recovery to get out from suspect database problem.If you dont have then you can move with DBCC Checkdb and various repair options but be sure
    DATA LOSS might be possible when you use repair allow data loss and repair_rebuild removes constraints.
    hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Database in suspect mode

    i was going through this article about recovering a database in suspect mode :
    http://www.mytechmantra.com/LearnSQLServer/Repair_Suspect_Database_P2.html
    in the article the error seems to indicate corruption in the log :
    Error: 9003, Severity: 20, State: 9. The log scan number (189624:16:2) passed to log scan in database
    'BPO' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf
    if the corruption is in the log, then is not the logical solution to bypass the recovery process and then truncate the log with no_log option and then bring the database online?
    and dbcc checkdb (<db>,repair_allow_data_loss) repairs the data pages or the log pages?
    and any other options/ways/articles about bringing a suspect database online?
    appreciate the insights.

    datafile corruption : put db in emergency mode / put db in single user mode / dbcc checkdb with REPAIR_ALLOW_DATA_LOSS/ dbcc checkdb on database
    again/put db back in multi user mode.
    There is no need to do this. This is totally not required.
    You can
    Switching the database to the Simple recovery model
    Performing a checkpoint (which should clear the active log as long as nothing else requires the log to be kept active)
    Switching back to the Full recovery model
    Reestablishing the log backup chain by performing a full or differential backup
    Or you can rebuild log as already pointed in my reply.
    Or you can restore from known valid backup.
    There is no need to move data as well because actually its not related to data.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Starting Physically Standby Database in Mount Mode

    Hi All
    I have configured Data Guard using Oracle 10g 10.2.0.4.0 (64 bits) on Windows 2008 Server (64 bits) Release 2 Enterprise.
    Data guard configuration was OK as the message from "Enable Configuration DG1" was "SUCCESS" for both
    Primary and Standby Database. I have also set both Databases and TNS to start Automatically whenever Windows Starts.
    The Problem is as long as the Standby Server is running, there is No issue.
    But when we Restarts the Backup Server, Physically Standby Database is Started and TNS is also Started,
    but Archives  are not received until I physically do the following steps so that it can received the Archives.
    SQL> startup nomount;                                                                                                                
    SQL> alter database mount standby database;                                                                 
    SQL> alter database recover managed standby database disconnect from session;
    Is there a way to start Physically Standby Database in Mount mode when windows started.
    Regards
    Thunder2777

    Hi Mihael
    I have created 2 files. 1 Bat file 2nd sql file which contains all commands as written above.
    When I execute start.bat file
    1. set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
    2. set ORACLE_SID=UMISBK
    3. sqlplus / [email protected]
    1 & 2 executed properly. At 3 it just display SQL help for login as shown below.
    SQL*Plus: Release 10.2.0.4.0 - Production
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [<logon>] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
    It Did Not execute start.sql file to excute sql commands.
    Regards
    Thunder2777

  • Recover database in NOarchivelog mode :)

    Hi all. How to recover a database wich is in noarchivelog mode? B-)
    Suppose,
    I have 3 redolog groups (with two members in each, the second members are located on another drive ). When first redo log group was 1/2 full I took a full backup. Then there were 2 switches from first to second and from second to third. Now the currnet redolog group - 3 (just started). At this point we faced media failer. How to roll forward changes using backup + online redologs?
    Edited by: Junior Oracle DBA on Oct 16, 2008 1:53 PM

    Restore your database cold backup (excluding redo logs).
    Then issue this command :
    RECOVER DATABASE USING BACKUP CONTROLFILE
    provide the names of the last ACTIVE / CURRENT Redo Logs in the database when Oracle prompts for an ArchiveLog.
    When Oracle has finished recovery to a consistent point in time, it will return to the command prompt without any error.
    Now issue this command :
    ALTER DATABASE OPEN RESETLOGS
    You would have a Complete Recovery.
    This is provided that Oracle had NOT cycled through all the Online Redo Logs since the time when the Cold Backup was taken. (If Oracle had cycled through all the Online Redo Logs, it would have overwrriten the oldest log because it wasn't in ArchiveLog mode).
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

Maybe you are looking for