Cold Backup and Redolog vs. Note1026631.6

Dear Experts,
I never include the online redolog files in my cold backup but at the end of the note it is said "However, other Oracle documentation states that cold (offline) backups should include backing up online redo log files (see page 8 of Oracle Backup and Recovery Handbook from Oracle Press)..."
Let's imagine we take a coldbackup with online redolog:
- The SCN was 100 at the time of this backup.
- The DB crashes (lost datafiles). The SCN is 250.
- We copy the datafiles and the redolog online.
- The DB checks the Control file which has SCN=250, the Datafiles and the redolog have got 100. The DB doesn't know what to do isn't it ? I mean it can' recover.
- If we copy only the Datafiles from the backup, the DB sees 250 in both Control and online redolog and sees 100 in datafiles and knows it has to perform a recovery from 100 to 250.
To me copying the online redolog in a cold back up is more than useless , it can be quite dangerous.
Am I totally wrong and do I miss something fundamental ?
Thanks for your expertise.
Regards,
Guillaume

i totally disagree with you, 393781.
They are two reasons not to backup the redo logs.
reason 1)
it is consuming tapes and time...
reason 2)
if you restore it, you may overwrite existing redologs by mistake while running your os-restore, and the existing may be used (with little chance..) to recover the database, even if running in NOARCHIVELOG mode.
They are also a lot of oracle customers which are backing up the redo logs. It is an "easier" approach. You backup everything (the whole filesystem or so), then restore everything, so you are sure you have everything and it is really straightforward.
If you do not have your redologs, you must open your db with resetlogs, which seems to be the correct procedure (you have a new incarnation, have not you? ) but open resetlogs may be dangerous for a junior dba.
HTH
Laurent Schneider
OCM DBA

Similar Messages

  • Need clarification for cold backup and recovery

    Hello Everyone ..
    I have much confusion on cold backup and recovery topic.
    Already i posted a scanario regarding this and i want to know some clarity points to understand.
    1. I had cold backup two days before
    2. I am creating an object *(EMP)* and inserting some records then issue log switch continiously.
    3. Manually i removed all physical files (datafiles , control files , log files , redolog files ...)
    4. then i issued STARTUP FORCE MOUNT;
    5. here i am getting error identifying control file.
    6. cold backup two days before all files restored
    6. then i issue recover database using backup controlfile until cancel;
    7. i am trying to issue select * from emp; i am getting error
    select * from emp
    *ERROR at line 1:
    ORA-00942: table or view does not existMy QUESTION IS
    After cold backup finished , i created emp table ..
    when restoring old back " There is no emp table"
    *- then , can i recover emp table ? - If so , please explain about this ..*
    Note : REF - LINK https://forums.oracle.com/forums/message.jspa?messageID=11056341#11056341
    - Above link says what i did ? . In this thread i am asking concept & logic ..
    please do NOT consider as "*DUPLICATE*"

    When you recover the database using backup controlfile until cancel, you have to apply archived logs. Did you apply all of them?
    If the create command was in the online redo, not yet archived, and you lost the online redo, then you won't have it. This is why you want to have redo multiplexed, it is a critical piece.
    In some recovery scenarios, if you haven't lost the online redo, you need to specify those files as if they were archives.
    It is normally easier to just be sure you have the latest controlfiles and let Oracle figure it out automatically (which is why you want to use online RMAN backups rather than cold backups). But yes, it is important to understand what is going on for different scenarios. I used to have manual standbys, and one of the disaster instruction sets explained to try to get online redo over to the standby to lose as few transactions as possible. That could still be useful for some snapshot hardware type scenarios, assuming the business is too cheap to do proper failovers.

  • Database refresh from cold backup and hotbackup.

    How can we perform Database refresh from cold backup and hotbackup?

    OracleM wrote:
    How can we perform Database refresh from cold backup and hotbackup?I understand that you have Cold/hot backup and you need recover(refresh) this backup?If yes then restore cold/hot backup and
    sqlplus "/as sysdba"
    startup mount;
    recover database using backup controlfile unil cancel;
    /*then apply all available archive logs*/
    alter database open resetlogs;

  • ORA-00314 -  Restoring from Cold Backup.  ( Redologs on Raw Disk startup)

    Greetings,
    We're running Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production ( Solaris Sparc )
    we've recently switched to redologs on raw disks to improve DB write performance. Have taken a cold backup of db , But db denies to open normally after restoration.
    Any ideas what could be wrong? and how to fix this?
    TIA,
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 1.0737E+10 bytes
    Fixed Size 1996520 bytes
    Variable Size 3640658200 bytes
    Database Buffers 7063207936 bytes
    Redo Buffers 31555584 bytes
    Database mounted.
    ORA-00314: log 1 of thread 1, expected sequence# doesn't match
    ORA-00312: online log 1 thread 1: '/dev/rdsk/c1t4d0s3'
    ORA-00312: online log 1 thread 1: '/dev/rdsk/c1t5d0s3'

    Try this ..
    First i create a backup of control file:
    SQL> alter database backup controlfile to trace;
    Database altered.
    Then i check udump directory. There are some trace files To find out which one contains control file, i simply make a text search :
    testdb oracle@aurora:/data06/app/oracle/admin/testdb/udump> grep 'CREATE CONTROLFILE REUSE DATABASE' *.*
    testdb_ora_181267.trc:CREATE CONTROLFILE REUSE DATABASE "testdb" NORESETLOGS NOARCHIVELOG
    testdb_ora_181267.trc:CREATE CONTROLFILE REUSE DATABASE "testdb" RESETLOGS NOARCHIVELOG
    I execute the commands which is included with CREATE CONTROLFILE REUSE DATABASE
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 314572800 bytes
    Fixed Size 1302944 bytes
    Variable Size 106700384 bytes
    Database Buffers 205520896 bytes
    Redo Buffers 1048576 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "testdb" RESETLOGS NOARCHIVELOG
    2 MAXLOGFILES 4
    3 MAXLOGMEMBERS 4
    4 MAXDATAFILES 1000
    5 MAXINSTANCES 1
    6 MAXLOGHISTORY 4544
    7 LOGFILE
    8 GROUP 1 '/data07/oradata/testdb/redo01.log' SIZE 50M,
    9 GROUP 2 '/data07/oradata/testdb/redo02.log' SIZE 50M,
    10 GROUP 3 '/data07/oradata/testdb/redo03.log' SIZE 50M
    11 DATAFILE
    12 '/data07/oradata/testdb/system01.dbf',
    13 '/data07/oradata/testdb/undo01.dbf',
    14 '/data07/oradata/testdb/sysaux01.dbf',
    15 '/data07/oradata/testdb/users01.dbf',
    16 '/data07/oradata/testdb/data01.dbf',
    17 '/data07/oradata/testdb/work01.dbf',
    18 '/data07/oradata/testdb/ascs01.dbf',
    19 '/data07/oradata/testdb/uccs_data01.dbf',
    20 '/data07/oradata/testdb/uccs_index01.dbf'
    21 CHARACTER SET WE8ISO8859P9
    22 ;
    Control file created.
    Then recover db.
    SQL> RECOVER DATABASE USING BACKUP CONTROLFILE

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

  • 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

  • BR0278E   - Access denied in oracle backup and redolog backup

    Hello All,
    I have been trying to take a redolog backup from DB13 and I am getting the below error
    BR0278E Command output of 'E: && cd E:\oracle\QAS\102\database && E:\usr\sap\QAS\SYS\exe\uc\NTAMD64\brtools.exe -f copyfile
    12.6.2.0\Backup\hostname\QAS initQAS.ora spfil
    Access is denied.
    BR0280I BRARCHIVE time stamp: 2009-06-24 11.36.34
    BR0279E Return code from 'E: && cd E:\oracle\QAS\102\database && E:\usr\sap\QAS\SYS\exe\uc\NTAMD64\brtools.exe -f copyfile
    12.6.2.0\Backup\hostname\QAS initQAS.ora spfile
    In my findings I understood that it may be a hardware inconsistency from the note 17163.
    BR0278E Command output of '%s': %s
    BR0278E Kommando-Ausgabe von '%s': %s
    Explanation: The error messages of this command are displayed. In most cases they are messages from the cpio or mt commands. The following are examples:
    Sample messages:
    Message/Explanation
    cpio:cannot read...
    cpio:read error...
    cpio:can't read input...
    cpio:I/O Error...
    cpio:read failed:I/O Error.
    The file to be backed up cannot be read. In most cases, this is due to hardware problems on the disk on which the file is stored.
    But if i take the archievlog backup using brtools in command prompt level and its working fine and also its getting completed succefully.
    I gave the full  rights of administrator, backup operators, saplocal and sapglobal admin . And also the drive was shared and the folder access is given with full authoriusation for the user SAPServiceSID.
    I am not sure about the root cause of this problem.Anyone have idea on this please do suggest me.
    Yesterday I posted the same thread and thought that it solved my problem and closed the thread as well, Sorry.
    Vijay

    Hello All,
    Sorry for the late update.
    I have followed the note 400241 but still not able to solve the issue. I am not able to take the backup from DB13  by using a local drive  and also in  the network drive. Both are getting failed due to the same reason
    BR0278E Command output of 'E: && cd E:\oracle\QAS\102\database && E:\usr\sap\QAS\SYS\exe\uc\NTAMD64\brtools.exe -f copyfile
    21.10.5.10\backup\Test_NEW\QAS initQAS.ora spfi
    Access is denied.
    I am sure I have created the service user in network drive with the same password but still no luck, even its getting failed if i try to take a local backup.
    Services are running under SAPSeriveSID user and this user is also not locked.
    For the past one month I am taking the backup using the BRTOOLS and dont know why this is getting failed in DB13.
    Any suggestion are highly appreciable.
    Regards
    Vijay

  • Partition Restore Cold Backup Different System and Different Version DB

    Is it possible, can we restore the cold backup at different database version and different operating system(but same ENDIAN_FORMAT) ????????
    My original system HP-UX (64-bit) and database version 10.2.0.3.0 i have cold backup and i want to partion restore on Linux Redhot 5.5 (64-bit), database version 10.1.0.4.0 .
    If it is possible. How can i do this.

    My original system HP-UX (64-bit) and database version 10.2.0.3.0 i have cold backup and i want to partion restore on Linux Redhot 5.5 (64-bit), database version 10.1.0.4.0 .1. AFAIK you can not do it i mean wiht cold backup move from HP to linux
    2. You can try to use exp-imp if you want to change db version.
    See below notes:
    Master Note For Oracle Database Upgrades and Migrations [ID 1152016.1]
    Different Upgrade Methods For Upgrading Your Database [ID 419550.1]
    Regard
    Helios

  • Hot and cold backups

    i am learning to take hot and cold backups and i am having doubts regarding restoring and recovering/
    1. When restoring the cold backup .. i am copying the control and datafiles from the backup and then starting the database with reset logs is this enough?
    2. When i am recovering a tablespace in hot backup .. i have replaced the file from backup. I need to do something with the archive log files. Where do i place them in the database? If i have done some transactions after taking the hotback.. will i loose those transactions?

    "1. When restoring the cold backup .. i am copying the control and datafiles from the backup and then starting the database with reset logs is this enough?"
    Yes, you are right.... also include password file in your backup file list...
    2. When i am recovering a tablespace in hot backup .. i have replaced the file from backup. I need to do something with the archive log files. Where do i place them in the database? If i have done some transactions after taking the hotback.. will i loose those transactions?
    You can place the old datafile at new location also. For hot backup, your DB must
    be running in archive log mode, so you will not loose any transaction.....

  • How to restore cold backup + archived log files

    Hi,
    Suppose I take a cold backup on 18th. After that I have four days of archived log files. if the database crashes on 5th day, I have to restore the 18th cold back + 4 days of archived log files. How do I restore since it is a cold backup and I cant do incomplete recovery.
    can I use
    Recover database ( with 18th cold backup) in mount state and apply archived logs.
    Prabhath

    The details of how you perform forward recovery using a cold backup depends on
    1- rman or manual backup
    2- using current or backup control file
    3- if rman, recovery catalog or no recovery catalog
    4- if full database recovered or only a few files
    Each of these conditions will affect what is known to Oracle and what needs to be done. For example if you restored the entire cold backup including the control file then Oracle would see a consistent database and not need to perform recovery so you would need to startup mount and tell the database to perform recovery using a backup control file. If using rman and no recovery catalog you might need to catalog some of the archived redo logs, etc....
    It is advisable to consult the Backup and Recovery manuals before attempting recovery for any new scenario.
    HTH -- Mark D Powell --

  • 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

  • Oracle R12 12.1.3, how to make cold backup

    Hello guys
    After a month long efforts, I was able to deploy the 12.1.3 templates successfully and the full vision instance is accessible without any technical hickups. I have setup VM Server 3.1.1 and VM Manager 3.1.1 using Oracle VirtualBox. The application is running on a two node structure now and I would like to take cold backups for both apps and database tier, later merge them to a single node and move to Oracle Linux 6.2/6.3 so that I could take it around in my laptop for demonstration purposes (We are on 12.0.4) right now and dwelling the possibilities of migrating to 12.1.3)
    regards,
    raj

    I already have two node application R12 (12.1.3) structure, now what I want is
    I want to take a cold backup of application tier, and database tier.
    Then move the backup to a new server and setup a single node, which will be on Oracle Enterprise Linux 6.2
    So, basically I want to know how to take a cold backup and then setup a new server with the backup.You can use any of the commands mentioned in this link -- http://www.oracle-base.com/articles/misc/os-backup-commands.php
    You might also use rcp/scp.
    http://linux.about.com/od/commands/l/blcmdl1_rcp.htm
    http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks
    Please note for cold backup you will need to shutdown the application/database properly (clean shutdown).
    Thanks,
    Hussein

  • Upgrade 10.2 to 11.2 manualy using cold backup copy on new server.

    Hi,
    I am going to manually upgrade my databases to 11.2 from 10.2. I will use cold backup of 10.2 and copy in to the new server Red Hat Linux 5.
    I got a Note (742108.1) done for upto 10.2.0.5 and it tells to set
    orapwd file=$oracle_HOME/dbs/orapw<SID>
    But my upgrade path is 10.2 to 11.2 and i would like to verify whether i need to do the same before startup in upgrade mode?? Nothing mention regarding this in Upgrade Guideline. Just telling only to copy password file to $oracle_HOME/dbs/
    if so how i set it ? i mean in $ prompt or SQL Prompt?

    I have 10 databases in one server and 2 seperate servers. I will do 3 changes mainly 32 bit to 64 bit, Suse Linux 9 to red Hat Linux 5 and 10.2.0.4 to 11.2.0.1
    So best path to do all at once is cold backup and i verified it from oracle Support as well. because 32 bit o 64 bit conversion will automatically happend when upgrade.
    My databses are nearly 300GB each and not much big . use for datawarehouse.

  • DB cloning using cold backup

    Hi,
    I have a database cold backup. Need to open the database in a new server with that cold backup by applying the production archives on it. How to force fully apply the archives on it.????
    Regards,
    007

    Hi;
    Yes you can apply archivelog to your system.Please see
    Cold backup and Archived Logs
    Cold backup and Archived Logs
    Also see:
    http://www.dbasupport.com/forums/showthread.php?t=57932
    Regard
    Helios

  • Cold backup script

    Hi,
    i want to make a cold backup and schedule it in CRON, but don't know why but it doesn't work. This is what i've in de "full.rman" file:
    connect target /
    shutdown immediate;
    startup mount;
    backup database as compressed backupset;
    crosscheck backup;
    delete expired backup;
    alter database open;
    exit
    i tried to run this script by rman @full.rman
    but when i do this i'm getting the following error:
    RMAN> backup database as
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "as": expecting one of: "archivelog, backup, backupset, channel, copy, controlfilecopy, current, database, datafile, datafilecopy, delete, diskratio, db_recovery_file_dest, filesperset, format, from, force, include, keep, (, maxsetsize, noexclude, nokeep, not, pool, plus, reuse, recovery, ;, skip, spfile, setsize, tablespace, tag, to"
    RMAN-01007: at line 1 column 17 file: full.rman
    In the past i had another error where it looked like it wasn't shutting down the database and starting it up in mount mode. So how can i make a script what wil do what i want :)
    Thanks in advance.
    regards,
    Osman

    Try:
    backup as compressed backupset database;

Maybe you are looking for

  • Is there a How to Use guide for iMovie10

    I have just updated from iMovie 11 and I'm bewildered. How to set up the Interface.  How to select a clip from an Event - move it to a Project etc, etc. iMovie Video Tutorials do not Include iMovie 10. Where to go from here?? I would appreciate  any

  • ITunes 8 will not launch

    I've installed iTunes 8 but whatever I try it just won't launch, can anyone help??

  • Does anyone know when the iphone 5 is coming out?

     

  • Dvd output

    My dvd project plays ok on my mac from simulater, emulator and burned dvd but won't play anywhere else.

  • Airport Extreme and ADSL?

    Sorry if this is a no-brainer, but I purchased an Airport Extreme 802.11n (with a MacBook Pro, so won't get the box til the laptop comes in) and am now worried I won't be able to use it. On my current setup, I use a Windows box with a USB ADSL modem