Restore database from a cold backup

Hi all

We use Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 on SunOS 5.11.

We have a database of primary and physical standby.

We used to catch a cold backup of database pending. Now we want to restore the cold backup and as primary (scénarion of building our database main and backup have been planted and we have cold backup standby?.)

We have done following the steps.

1 copy the cold backup on server

2. Mount the backup database

3. perform the pint in time recover by issuing the fllowing command

to recover a database on hold until cancel;

4. apply some archived files and then CANCEL

5 issue command to change the mode as "THE PRIMARY", as a result

ALTER database recover managed standby database finish; and received followig error (alert log file)

" Sun Aug 18 14:39:42 2013

Logmerger died, by closing parallel recovery slaves

Sun Aug 18 14:40:16 2013

Death of recovery slave PR00

Sun Aug 18 14:40:24 2013

Interruption recovery! »

We successfully restore the database and swithover the primary status after completing the steps:

  1. Cold backup on server
  2. Mount the database on hold
  3. Perform the recovery point in time by issuing the fllowing command
    1. recover database until cancel; pending
    2. Applied some files and then CANCEL
  4. Delete the log files waiting for redo
    1. change the Group of clear database logfile
  5. Recovery of eve of finishing
    1. ALTER database recover managed standby database finish;
  6. Issue following command to change the mode of "PRIMARY."
    1. change the database for validation to the passage at the elementary level with the end of the session;
  7. Open database
    1. ALTER database open;
  8. The redo log files
    1. Alter system switch logfile;
  9. Restart the database

Earlier, we had missed step # 4.

Kind regards

Hassan

Tags: Database

Similar Questions

  • Recover the database by using cold backup

    Hi all

    One of the table is deleted accidentally by one of our DBA of PROD. We have a backup to cold on a day before.

    Now, we try to restore from the backup to cold. DB PROD is in archivelog and all the archives are in tact.

    The resulting table truncated today at 20:00. We can apply the database until 20:00 so that we can restore the table truncated using cold backup.

    Please find the steps we use to restore below.

    create controlfile

    from the db in State of Mt.

    recover the database;

    It will ask for last log archive when we try to get it back.

    ENV details-

    DB - 11.2.0.1

    Please suggest.

    Thank you

    create controlfile

    from the db in State of Mt.

    recover the database;

    This method is not correct. Here are the four steps for incomplete recovery (which is what you need):

    Mount the database

    restore all data files

    recover the database up to the...

    ALTER database open resetlogs

    Your DBA (who say you was responsible for the error) will be familiar with the routine. Or it should be.

  • system tools - try to restore files from a disk backup ext hard

    try to restore from a disk backup files hard ext... went on all programs, accessories, System Tools... the backup file isn't in the menu.

    Hi WayneDavis777,

    ·         You are not able to see the backup option in the start menu?

    ·         What version of Windows XP you have?

    ·         How you back up the files on the external hard drive?

    Windows XP Home Edition doesn't have a default backup option, you must install it manually.

    If you have Windows XP Home Edition, you can follow this article.

    How to install backup from the CD-ROM in Windows XP Home Edition

    How to use the backup utility to back up files and folders in Windows XP Home Edition

    See also:

    Microsoft Windows XP - Set backup options

  • How Controlfile SNA remain synchronized after moving the database with the cold backup

    Hello DBAs,

    I doubt that:

    Every time you pass a cold backup database. We create a new controlfile with new locations of data/redologs etc.

    And then we execute "create controlfile reuse...". noresetlogs...; "to create the controlfile.

    After that, we will open the database as > > alter database open;

    Now the question is:

    We are able to open the database without clause "resetlogs.

    Here, we create a new controlfile so SNA to controlfile will not be synchronized with the SCN of the datafile and redo the file.

    Please let me know how the new controlfiles' SNA is synchronized with the data file and redofile and wea are able to open the database without resetlogs clause.

    Oracle: 11.2.0.4

    OS: Linux

    If your cold backup also includes online redo logs, a RESETLOGS is not necessary.

    The controlfile is created if it does not have a SNA, it reads the data file headers the YVERT database. For a cold backup, all the headers of data file are consistent.  (This is also the reason why a RECOVERY is not required).

    Hemant K Collette

  • Restore database from a specific location

    Hello

    I'm on 11.2.0.3 on Windows 2008.

    I have a backup of my database of production on the network drive and I need to use this backup to construct my test database. To build the database of test, I copied the backup to network drive on my local drive on the test server and then restored the controlfile. After that, I catalogued the backup to local drive.

    Now, RMAN can recognize the backup on the network location (as controlfile has all the information of all backups) and also local backup. If I try to restore, it goes on the network to get to restore backupset. Is there a way I can ask RMAN to use my local backup rather than go on the network for the elements of the network drive backup?

    I know there is a "uncatalog" option available, that should be used for each backup piece and so tedious.

    (1) can I force RMAN to use my local backup only without going to the network drive for the archives?

    (2) at - it order to complete wipe all backups in a swoop of the repository so that I can catalog only local backups before I run the restore command?

    SAQ

    Yes, that's what I did.

    I should end this question by concluding that there is not available for the following commands

    (1) cannot specify backup location in the RESTORE command to mention a specific return, if there are several backups available.

    (2) there is no single command to remove all items from backup to a single backup set, from the RMAN Repository

    SAQ

  • Creating a database from backups of the production test

    Hello Experts,

    I'm a newbie with a lot new in Oracle. I got the backup inc0 (which includes even backup controlfile) (PROD) production base taken by RMAN and asked to create a new test database (TEST) by using the backup. Can someone please give me the steps on how to restore and create the new database?

    The 10.2.0.4 basic version
    I am aware of the concept of duplicated with RMAN database, but I was asked to do not connect to the target (PROD) database while duplicating. So, I need to create the test database using the prod database backup without being connected to the PROD database. Please guide me.

    Refer
    http://arjudba.blogspot.in/2008/05/restore-and-recover-database-to-new.html
    RMAN restore database from another backup of the different database name

    When you perform a restore using backup of the production database, the db_name would be same on the auxiliary database. Once you restore and recover the database in your test server, you can change the prod db_name to test by recreating the controlfile

  • Recovery of control files. I need to restore database?

    I am using below command procedure files recovery: restore the backup controlfile. I'm not restore database in this procedure with RESTORE DATABASE

    ==================================================================================
    QUESTION: Do I need to restore a full database to be consistent?
    =====================================================

    SQL > select name from v$ controlfile;

    NAME
    --------------------------------------------------------------------------------
    / QA/Data/OBT/QA112QA/Data/control01. CTL
    / QA/Data/OBT/QA112QA/Data/control02. CTL
    / QA/Data/OBT/QA112QA/Data/control03. CTL

    [oracle@rh56b64-1 rmanbackup] $ rm /qa/data/obt/QA112QA/data/control01.ctl /qa/data/obt/QA112QA/data/control02.ctl /qa/data/obt/QA112QA/data/control03.ctl

    SQL > stop the demolition
    ORACLE instance stops.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 275615744 bytes
    Bytes of size 2212496 fixed
    184552816 variable size bytes
    Buffers data 83886080 bytes
    Redo buffers 4964352 bytes
    ORA-00205: error in the identification of control files, see log alerts for more information


    [oracle@rh56b64-1 rmanbackup] $ pwd
    / QA/Data/OBT/rmanbackup

    [oracle@rh56b64-1 rmanbackup] $ ls - ltr
    Total 591368
    -rw - r - 1 oracle oinstall 586711040 24 Dec 19:25 1antmgo6_1_1
    -rw - r - 1 oracle oinstall 1435648 24 Dec 19:25 1dntmgov_1_1
    -rw - r - 1 oracle oinstall 16809984 24 Dec 19:25 d to cfc-1266678734-20121224-0

    -set DBID - get the name of the controlfile autobackup.
    -For example, if the name of auto backup is
    -CTL_SP_BAK_C-1507972899-20050124-00 the the DBID is
    -1266678734. This step is not necessary if the instance is
    -Start RMAN

    RMAN > set dbid 1266678734

    executing command: SET DBID

    RMAN > restore controlfile to ' / qa/data/obt/rmanbackup/EFA-1266678734-20121224-0;

    From restoration to December 24, 12
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 135 type device = DISK

    channel ORA_DISK_1: restore the control file
    channel ORA_DISK_1: restore complete, duration: 00:00:03
    output file name=/qa/data/obt/QA112QA/data/control01.ctl
    output file name=/qa/data/obt/QA112QA/data/control02.ctl
    output file name=/qa/data/obt/QA112QA/data/control03.ctl
    Finished restore at December 24, 12

    RMAN > change the editing of the database;

    mounted database
    output channel: ORA_DISK_1

    RMAN > restore database;

    From back to December 24, 12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 135 type device = DISK

    starting media recovery

    Journal archived for thread 1 sequence 2 is already on the disc in the file /qa/data/obt/QA112QA/data/redo02.log
    Journal archived for thread 1 with sequence 3 is already on the disc in the file /qa/data/obt/QA112QA/data/redo03.log
    Journal archived for thread 1 with sequence 4 is already on the disc in the file /qa/data/obt/QA112QA/data/redo01.log
    Archive log file name=/qa/data/obt/QA112QA/data/redo02.log thread = 1 sequence = 2
    Archive log file name=/qa/data/obt/QA112QA/data/redo03.log thread = 1 = 3 sequence
    Archive log file name=/qa/data/obt/QA112QA/data/redo01.log thread = 1 sequence = 4
    media recovery complete, duration: 00:00:01
    Finished recover at December 24, 12

    RMAN > alter database open resetlogs;

    open database

    Hello

    ==================================================================================
    QUESTION: Do I need to restore a full database to be consistent?
    =====================================================

    You don't have to restore the full database. You just need to restore the backup controlfile and restore the database.
    The steps you mentioned are good restore the controlfile. After recovery, you must open the database in resetlogs.

    Also, you can take a look at this http://neeraj-dba.blogspot.com/2011/04/loss-of-control-file-in-various.html

    Kind regards
    Shivananda

  • restore database backup cold no redo file

    Hi all

    I use oracle 10 g 2 Sun 10. I have a cold backup (control files and data files), any redo files.
    I will restore the database from this backup? control to recreate... file is possible.

    Thanks in advance

    See below the example;

    C:\Documents and Settings\Administrator>dir D:\oracle\product\10.2.0\oradata\TES
    T
     Volume in drive D has no label.
     Volume Serial Number is 04E5-FDAC
    
     Directory of D:\oracle\product\10.2.0\oradata\TEST
    
    07/30/2010  07:03 PM              .
    07/30/2010  07:03 PM              ..
    07/30/2010  07:02 PM         7,389,184 CONTROL01.CTL
    07/30/2010  07:02 PM         7,389,184 CONTROL02.CTL
    07/30/2010  07:02 PM         7,389,184 CONTROL03.CTL
    07/30/2010  07:02 PM       104,865,792 EXAMPLE01.DBF
    07/30/2010  07:02 PM       272,637,952 SYSAUX01.DBF
    07/30/2010  07:02 PM       513,810,432 SYSTEM01.DBF
    07/07/2010  10:01 PM        20,979,712 TEMP01.DBF
    07/13/2010  08:50 PM        52,436,992 TEMP1.DBF
    07/30/2010  07:02 PM        31,465,472 UNDOTBS01.DBF
    07/30/2010  07:02 PM        10,493,952 USER02.DBF
    07/30/2010  07:02 PM         5,251,072 USERS01.DBF
                  11 File(s)  1,034,108,928 bytes
                   2 Dir(s)  24,985,423,872 bytes free
    
    C:\Documents and Settings\Administrator>sqlplus "/as sysdba"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 30 19:04:18 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to an idle instance.
    SQL> startup nomount;
    ORACLE instance started.
    
    Total System Global Area  125829120 bytes
    Fixed Size                  1247660 bytes
    Variable Size              71304788 bytes
    Database Buffers           50331648 bytes
    Redo Buffers                2945024 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "TEST" RESETLOGS  NOARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO_01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO_02.LOG'  SIZE 50M,
     10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO_03.LOG'  SIZE 50M
     11  DATAFILE
     12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF',
     13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF',
     14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF',
     15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF',
     16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\EXAMPLE01.DBF',
     17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USER02.DBF'
     18  CHARACTER SET WE8MSWIN1252;
    
    Control file created.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL>
    
  • Need for clarification for cold backup and restore

    Hi all...

    I have a lot of confusion about the cold backup and restore section.

    Already I posted a scanario this topic and I would like to know a few points of clarity to understand.


    1. I had cold backup two days before
    2. I create an object * (EMP) * and inserting some records can deliver log switch continiously.
    3. manually I deleted all the physical files (data files, files of control, files, papers, redolog files)
    4. then I published STARTING FORCE MOUNT;
    5. in this case, I get error identification control file.
    6. cold two days before all of the restored files backup
    6 then I run database recovery using backup controlfile until cancel;
    7. I'm issuing select * from emp; I get error
    select * from EMP
    * ERROR at line 1:
    ORA-00942: table or view does not exist
    my QUESTION IS

    After that cold backup is complete, I created the table emp...
    during the restoration of old back "there is no emp table"

    * - Then I can retrieve table emp? -If Yes, please explain about this... *.


    Note: REF - LINK https://forums.oracle.com/forums/message.jspa?messageID=11056341#11056341

    -Link above says what I did? In this thread, I ask you to concept and logic...

    Please, consider NOT like ' * DOUBLE. "

    Not sure why you're confusing this issue? In your other thread, you applied a backup who had two days and there is no evidence that you apply to this log file to archive that had the table create in it. So if you have not restored this log file to archive who had your create table command, it will not be recovered. The most important for you to understand, it's that you have to have the newspaper the point for which you want to retrieve other archiving your recovery will not be able to move forward.

    Aman...

  • Restore the cold backup

    Hello
    I made a cold backup of the database, and now I need to restore it.
    The problem is, when I did the back upward, it was in the C drive.
    Now I want to restore in the F drive.
    I get the error:
    ORA-01157: cannot identify/lock data file 11 - see DBWR trace file
    as it appears in the c drive.

    What else should I saved the backup, with the exception of the data files?
    How to solve?

    Windows Server 2003.
    Oracle 9iR2

    Published by: ethanasi on October 21, 2009 08:15

    You do not have to re - create the controlfile.

    Just rename the data files

    Make sure that the database is in condition to ride .

     select ' alter database rename file '''||name||''' to '||name|| ';' from v$datafile;
    alter database rename file 'c:\appl\oracle\test\ystem01.dbf' to 'f:\appl\oracle\test\system01.dbf;
    

    The above will display your information data file of the controlfile. Change the drive/directory after to accordingly pointing to where you have these files and run the script.

    Now, try to open the database.

    -André

  • A question about the restoration of cold backup (backup of control file is not clear)

    Hello

    I had another question about restoring from backup to cold. My database is in noarchivelog mode and after that take a consistent backup of cold, all I have to do is restore the backup right? -Why I got this question is because: when I save my control to trace file, I see statements like this: -.
    -Orders to recreate the table of the incarnation
    -Under journal names MUST be replaced by names of existing files
    -disc. The log files from each branch can be used for
    -re - create the folders of the incarnation.
    -LOGFILE of REGISTRY ALTER DATABASE ' / uo1/app1/arch1_1_647102958.dbf';
    -Recovery is required if any of the data files are restored backups.
    - or if the last shutdown was not normal or immediate.
    RECOVER THE DATABASE
    -Database can now be opened normally.
    ALTER DATABASE OPEN;
    -----
    My database is in noarchivelog mode now so don't know why these statements (of the registry the logfile) is there in the backup of the control file? so when I restore the cold backup of this database, it will still work OK? (there is no log file I only have the CRD files in cold don't backup - no log file archive.)

    Thank you
    Cedric

    It is a generic message in trace control file. It's not affect you.

  • restore database using old piece of backup

    Hello
    I want to restore my database through 2 days piece.her backup details and error


    RMAN > restore database of ' C:\Oracle\recovery_area\orcl\BACKUPSET\2012_09_04\O
    1_MF_NNND0_TAG20120904T133454_84CFKB4D_. BKP';

    From catering to 12-SEP-06
    using channel ORA_DISK_1

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 06/09/2012 14:45:16
    RMAN-06509: single file SPFILE or control can be restored from AUTOMATIC backup

    Thanks in advance

    This error is because you use the command wring to rman. First you must catalog the backup and then you use only 'restore database' command only.

    1 rman target /.

    2 catalogue backuppiece ' C:\Oracle\recovery_area\orcl\BACKUPSET\2012_09_04\O
    1_MF_NNND0_TAG20120904T133454_84CFKB4D_. BKP'

    3. restore the database.

    Published by: Slim on 6 Sep 2012 15:03

  • Backup and restore database, tablespace

    My oracle's 10g.
    I'm new to rman utility. When I tested the backup of database and a tablespace before making certain changes made to the data (e.g. Add folders to other tables or change or delete some records) and did surgery recovery and the restoration of the database and a tablespace after these changes. But I found that these changes have remained there.

    My directions of test:
    SQL > shutdown immediate;
    SQL > bootable media.
    RMAN > backup database;
    RMAN > backup all archivelog entry delete;
    SQL > alter database open;
    SQL > alter tablespace ABC offline immediate.
    RMAN > backup tablespace ABC include current controlfile;
    SQL > alter tablespace ABC Online.
    = SOME CHANGES TO THE DATABASE BY INSERTING/UPDATING / DELETING =.
    SQL > shutdown immediate;
    SQL > bootable media.
    RMAN > restore database;
    RMAN > restore database;
    SQL > alter database open;
    SQL > alter tablespace ABC offline immediate.
    RMAN > restore tablespace ABC;
    RMAN > recover tablespace ABC;
    SQL > alter tablespace ABC Online.
    = CHANGES OF DATA SHOULD BE LOST. BUT NOW THAT ILS IS REST. WHY? ====

    Also, what is the difference between the database backup/restore/recovery and backup/restore/recovery tablespace? Or when is the time to use them?

    More practical is if I made a backup of database, at 10.00 and 3 backups tablespace ABC at 10:00 12:00, 14:00.
    Today at 20:00, I have 2 tasks:
    1. restore tablespace ABC 12:00 the status and create a new tablespace DEF, which is the same in ABC 14:00;
    2 put all the data of the ABC from 10:00 tablespace to another oracle newly installed in a newly installed machine.

    Can someone tell me how I can finish these tasks? Thank you very much!

    Hello

    Sorry for not being clear enough.

    This means that I can only recover data to the tablespace recovery state?

    Restore/recovery tablespace controls may lead to a full recovery.

    but I want only to restore a space at the beginning everything while keeping others more recent. What do you suggest me?

    If you want to make a point in time recovery for a subset of tablespaces, you must run a TSPITR.
    To do this, follow the link in my previous post.

    What you said really works. These changes losts. But I encounter another problem when retried the delivery and received a msg "RMAN-20207: until THE MOMENT or.
    RECOVERY WINDOW is before the RESETLOGS time' to the command "restore." What should I do now?

    By the , you have created a new incarnation of the database.
    If you want to restore to a point in time of the resetlogs before you change the incarnation (check first with: INCARNATION of the rman LIST).
    To restore an incarnation previous use:
    < reset="" database="" to="" incarnation...;="">
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14194/rcmsynta050.htm#i85086

    Kind regards

    Tycho

  • can application not available I restore the data from an encrypted backup?

    I had to get my iPhone repaired, so I did a full backup to iTunes and reset Once it was fixed, I have restored the backup, but a few apps "could not be restored. In the case of the one that interests me, the app no longer seems to exist on the App Store - I found a link for it from a review of old, but the link is dead: the app no longer exists. Since it is an application that stores data on the heights of our children, and I had used it for a few years, I would like to be able to recover at least the RAW files of my support, even if the app no longer exists. It is not a large amount of data. The backup is encrypted, so none of the files have names that are meaningful, it is impossible to guess what file is associated with that particular application. Any suggestions?

    If you have the app in the iTunes library on your computer you can restore it from there.

  • Updated the MacBook Pro to ElCapita to Apple's Service. Now cannot restore last July 7 from Time Machine backup. Help, please.

    Updated the MacBook Pro to ElCapita to Apple's Service. Now cannot restore last July 7 from Time Machine backup. Help, please.

    Visit Time Machine FAQ of Pondini helps with Time Machine. It is a vast site with almost everything that you need for using Time Machine. You will not find a better resource for Time Machine in one place. Due to the disappearance of James Pondini is the site is no longer updated. Therefore, some information may be somewhat outdated.

Maybe you are looking for