Recover database using cold backup

Hi All,
One of the table is delete by one of our DBA from PROD accidentally. We have a cold backup on one day before.
Now we are trying to restore it from the cold backup. PROD DB is in archivelog and all the archive is in tact.
The table got truncated today at 8 PM. Can we apply the database till 8 PM so that we can restore the truncated table using cold backup.
Please find the below steps which we are using to restore.
creating controlfile
starting the db in mount state
recover database;
Will it ask for latest archive log when we try to recover it.
ENV details -
DB - 11.2.0.1
Please suggest.
Thanks

Hi,
If you have doubts about the procedure to use to restore a backup to a point in time, then please take a look at the documentation first: Performing Flashback and Database Point-in-Time Recovery - 11g Release 2 (11.2)
After you specify the time when the recovery must end (UNTIL clause in rman), then the RECOVER command will try to use the archivelogs needed.
Before starting with this PITR operation, you should check if your database has flashback active, because it will be much easier to recover using it.
This is also explained on the same document linked above.
Regards.
Nelson

Similar Messages

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

  • Build standby database using cold backup on a different file system & host

    Hi gurus,
    The database version is 11.2.0.3. OS is HP UX Itanium 11.31
    I am building a standby database using cold backup of primary. The primary mount points are (/p003/oracle, /p004/oracle) on HOST1 and the standby file system on HOST2 are (/s003/oracle,/s004/oracle). I am not using Data Guard to apply logs as we have a script that mounts the log location periodically to standby server and apply the logs to make it current. I am using cold backup as the database is small like 200G and can be taken down. Could someone help me with the steps to build standby using cold backup for a different file location in standby ?? My concern is I can copy the data files from /p003 to /s003. How will I build the controlfile ?
    If it was same File system on both HOST 1 and HOST2 I can copy the cold backup to the standby server, build a standby control file on primary and copy and replace the standby control file and everything was set.
    Thanks
    Cherrish Vaidiyan

    Hello;
    I have a note on this using a cold copy of the current files instead of a copy backup :
    http://www.visi.com/~mseberg/data_guard_on_oracle_10_step_by_step.html
    I will post SCP SQL in a moment.
    Best Regards
    mseberg
    set heading off
    set feedback off
    set pagesize 100
    set linesize 400
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$datafile a;
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$controlfile a;
    select 'scp '||a.member ||' server_name:' || a.member as newname from v$logfile a;Edited by: mseberg on May 25, 2013 10:35 AM

  • Plz provide me some documents on how to clone a database using cold backup

    Dear All,
    Please provide me some documents on how to clone a database using cold backup which is in archive log.
    Also, please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Thanks,
    Mahipal

    Please provide me some documents on how to clone a database using cold >backup which is in archive loghttp://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Oracle9i Installation Guide
    Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris -
    http://download.oracle.com/docs/html/A96167_01/toc.htm

  • Recover a database using cold backup

    Hi,
    I am working in oracle 9i and solaris 5.8. I am taking coldbackup and its stored in another solaris server. I need to create a new database in the backup server using the cold backup files.
    Please explain me in detail how to create a database using the files.
    SQL QUERY needed.
    Gobi.

    Hi,
    go through below link
    Re: Help! How to migrant my whole DBXE to another computer???!!!!!
    hope this helps
    Taj

  • Recover datafile using cold backup in archivelog mode

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

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

  • Database cloning using cold backup

    Hello Guys,
    I am doing cloning of a database from cold backup for testing, actully one datafile has been croupted, so my issue is that, can i exclude tht datafile from controlfile when creating the controlfile and is that poosible that controlfile will created sucessfully and database will open sucessfully.
    Please reply.
    Thanks

    @asif, @ckpt
    With humble, how all you know that corrupted datafile is not belonging to system and undo tablespace? If this case, then do you think we can restore that corrupted cold-backup ? Sorry, but this is not the way to just start providing help without asking OP :
    1.Current Oracle Version ?
    2.Where he want to restore i.e. restoring platform info Oracle version OS ?
    3.After cold backup how he came to know that one datafile is corrupted ?
    4.When and how datafile became corrupted ?
    5.How he taken cold backup ? Was db running fine just before shut immediate for cold backing ?
    6.What he has done so far to restore the cold backup ?
    7.What error he is getting right now ?
    Here problem is corrupted datafile. So, first let come problem clear from OP, ask all missing question in one go, and then start helping is the right way... (my personal opinion, may be wrong!).
    Regards
    Girish Sharma

  • How to Create new database from cold backup files.

    Dear Experts,
    I have an oracle 10g databae on windows 2003 server.
    The database is in Archive log mode and backup strategy is Taking cold backup ever night.
    Backup steps:
    shut down database.
    copy data files, control files, redo logs, archive logs and parameter files to safe location.
    Startup.
    I have taken a backup at Tuesdaay 1AM and I have archive logs also.
    On Wednesday, I want to Create a new database on another server with the available cold backup files and archive logs. I want to recover the database upto 4PM Wednesday. How can I do this.
    I am not using control file auto backup or control file backup to trace.
    Please help me how can I do this. I am new to oracle database Administration.
    --Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The steps :
    shut down database.
    copy data files, control files, redo logs, archive logs and parameter files to safe location -- you mean the alternate location for the new databaseare correct (except that I would say "alternate location for the new database").
    If you do not have controlfile backups, you cannot either OPEN the database or RECOVER the database until and unless you CREATE the Controlfiles. You have to generate a CREATE CONTROLFILE script using a BACKUP CONTROLFILE TO TRACE from the Production serer and create the controlfile on the new server.
    BEFORE the Startup, I would use
    RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;The "using backup controlfile" tells Oracle to continue attempting Recovery -- ie doing a RollForward -- till the last archivelog made available to it.
    For the Recover command, you then keep applying the ArchiveLogs from the Tuesday 1am ColdBackup upto Wednesday 4pm.
    Once you have applied the last ArchiveLog, you do an
    ALTER DATABASE OPEN RESETLOGS;Here are my notes of doing a RollForward "Recovery" from a Cold Backup :
    http://hemantoracledba.blogspot.com/2007/05/rollforward-from-cold-backup.html
    If you are attempting all these steps on a different server from your current Production database, you should be safe.
    Once you OPEN the database, you can use CREATE CONTROLFILE or the NID utility to rename the database.
    If you are attempting to create the new database on the same server there are many other precautions you have to take and unless you have experience with cloning databases, I would advice you against doing so (only the RMAN DUPLICATE DATABASE command has a safer method of cloning a database).
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

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

  • How to Recover database from old backup and full archive log file

    Hi Oracle expert!
    I met problem when restore my oracle database.
    In my case:
    - My database version: 10.2.0.2
    - I have a database full backup (01-Nov)
    - I have all Archived log file from (01-Nov -> 05-Nov)
    - My database drop in 05-Nov with disk error (no datafile, no redo..).
    - I have no any RMAN backup from (01-Nov -> 05-Nov)
    How can i restore my database to 05-Nov?
    Thanks

    user10280724 wrote:
    Hi Chinar.
    When i used RMAN flow as your step, but i met the problem!
    - After recover database i select sequence#, applied from v$archived_log;
    --> it apply newest archived log that i had.
    - but when I select Data from table created between 01-Nov to 05-Nov, it not found!
    Not the same way the step:
    SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL?
    It apply newest the same archived log i had table created between 01-Nov to 05-Nov.
    How can i do with RMAN to recover my table?That is not possible,if your all available archive logs applied using rman or through sqlplus(recover database using backup controlfile until cancel) and one of these logs contain your table then there are not any problems.So there are not any difference between recovery using rman and user managed(using sqlplus),but there main matter is applying all archive logs.So first check through rman list copy of archivelog all or list backup of archivelog all and identify there in rman repository is any information or not about these logs.

  • Recover a wrong cold backup

    Hi, I had a 9i database in NO ARCHIVELOG mode in a W2003 enviromente. OS hard disk was broken with Oracle instalatión and instance was fallen.
    After, I can recover all datafiles, redo, controlfiles and parameter file. I´m trying recover database in another server using RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL; command but when Oracle needs the redo file that contain SCN 573 I put the path but nothing ocurr. Then if I put SELECT * FROM V$LOGFILE; I can see that this log file is in INVALIDATED status.
    Another way to recover this database?
    But first... Is possible recover this database with a no consistent shutdown of the database?
    Thanks...

    Hi,
    NO ARCHIVELOG mode  Never go for "NO ARCHIVELOG mode " ..
    After, I can recover all datafiles, redo, controlfiles and parameter file. I´m trying recover database in another server using RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL; command but when Oracle needs the redo file that contain SCN 573 I put the path but nothing ocurr. Then if I put SELECT * FROM V$LOGFILE; I can see that this log file is in INVALIDATED status.As you database is not consistent - with respect to crash happened you need to cancel and go for resetlogs.
    Since, Archive logs are not there as you DB is not supported. So Until the correct and valid online redo logs the recovery happens as per my knowledge.
    - Pavan Kumar N

  • Standby database using rman backup

    I'm using oracle11g on my work place and now i wont to create duplicate database using rman backup.
    at the time i installed only oracle 11g software.
    Pls guide me to overcome the problem. i'm newcomer to oracle.
    Pls give the steps.
    Edited by: user10444101 on Apr 30, 2010 2:17 AM

    user10444101 wrote:
    I'm using oracle11g on my work place and now i wont to create duplicate database using rman backup.
    at the time i installed only oracle 11g software.
    Pls guide me to overcome the problem. i'm newcomer to oracle.
    Pls give the steps.
    Edited by: user10444101 on Apr 30, 2010 2:17 AMSee the following link
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmdupdb.htm#i1008564

  • Using Cold Backup for a 42GB database

    I plan to have a Cold backup for a 42GB db (v 8.1.6). Since it's size is quite large, i am not sure how to back it up quicker.
    I did a trial copy for a 3GB file, it took almost 9 hours to finish.
    Please help!!!
    Thanks a lot :)
    Tracey

    I did a trial copy for a 3GB file, it took almost 9 hours to finish.Wouaw, what is your network ?
    You can copy the files in local, restart db, and move files on an other drive trough network, like this, the service is not down for a long time.
    Nicolas.

  • RMAN not opening database after cold backup

    OS: RHES4
    10g R2
    I am having a problem using RMAN to run a cold backup. The error from the log tell me that the database is already open. However when I check the database, the status is that it is in MOUNT. I can then open it but am not sure why RMAN cannot. The log is below:
    Output Log
    SQL*Plus: Release 10.1.0.3.0 - Production on Thu May 11 02:00:13 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected.
    SQL> Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL*Plus: Release 10.1.0.3.0 - Production on Thu May 11 02:00:32 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 687865856 bytes
    Fixed Size          780700 bytes
    Variable Size          149165668 bytes
    Database Buffers     536870912 bytes
    Redo Buffers          1048576 bytes
    Database mounted.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Recovery Manager: Release 10.1.0.3.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN>
    connected to target database: TEST10G (DBID=3717786770)
    using target database controlfile instead of recovery catalog
    RMAN> 2> 3> 4> 5>
    allocated channel: oem_disk_backup
    channel oem_disk_backup: sid=160 devtype=DISK
    Starting recover at 11-MAY-06
    no copy of datafile 1 found to recover
    no copy of datafile 2 found to recover
    no copy of datafile 3 found to recover
    no copy of datafile 4 found to recover
    no copy of datafile 5 found to recover
    no copy of datafile 6 found to recover
    no copy of datafile 7 found to recover
    no copy of datafile 8 found to recover
    no copy of datafile 9 found to recover
    no copy of datafile 10 found to recover
    no copy of datafile 11 found to recover
    no copy of datafile 12 found to recover
    no copy of datafile 13 found to recover
    no copy of datafile 14 found to recover
    no copy of datafile 15 found to recover
    no copy of datafile 16 found to recover
    no copy of datafile 17 found to recover
    no copy of datafile 18 found to recover
    Finished recover at 11-MAY-06
    Starting backup at 11-MAY-06
    no parent backup or copy of datafile 18 found
    no parent backup or copy of datafile 1 found
    no parent backup or copy of datafile 8 found
    no parent backup or copy of datafile 9 found
    no parent backup or copy of datafile 10 found
    no parent backup or copy of datafile 11 found
    no parent backup or copy of datafile 13 found
    no parent backup or copy of datafile 14 found
    no parent backup or copy of datafile 15 found
    no parent backup or copy of datafile 17 found
    no parent backup or copy of datafile 4 found
    channel oem_disk_backup: starting compressed incremental level 1 datafile backupset
    channel oem_disk_backup: specifying datafile(s) in backupset
    input datafile fno=00003 name=/home/oracle/oradata/dev10g/sysaux01.dbf
    input datafile fno=00002 name=/home/oracle/oradata/dev10g/undotbs01.dbf
    input datafile fno=00005 name=/home/oracle/oradata/dev10g/example01.dbf
    input datafile fno=00012 name=/home/oracle/oradata/dev10g/FLOW_7.dbf
    input datafile fno=00016 name=/home/oracle/oradata/dev10g/FLOW_11.dbf
    input datafile fno=00006 name=/home/oracle/oradata/dev10g/FLOW_1.dbf
    input datafile fno=00007 name=/home/oracle/oradata/dev10g/FLOW_2.dbf
    channel oem_disk_backup: starting piece 1 at 11-MAY-06
    channel oem_disk_backup: finished piece 1 at 11-MAY-06
    piece handle=/home/oracle/flash_recovery_area/DEV10G/backupset/2006_05_11/o1_mf_nnnd1_TAG20060511T020039_265nr8h8_.bkp comment=NONE
    channel oem_disk_backup: backup set complete, elapsed time: 00:01:15
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00018 name=/home/oracle/oradata/dev10g/designer1.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_designer_265ntmow_.dbf tag=ORA$OEM_LEVEL_0 recid=9 stamp=590119379
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:01:05
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00001 name=/home/oracle/oradata/dev10g/system01.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_system_265nwnw0_.dbf tag=ORA$OEM_LEVEL_0 recid=10 stamp=590119436
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:01:05
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00008 name=/home/oracle/oradata/dev10g/FLOW_3.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_3_265nyp5w_.dbf tag=ORA$OEM_LEVEL_0 recid=11 stamp=590119448
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:03
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00009 name=/home/oracle/oradata/dev10g/FLOW_4.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_4_265nysc5_.dbf tag=ORA$OEM_LEVEL_0 recid=12 stamp=590119452
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00010 name=/home/oracle/oradata/dev10g/FLOW_5.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_5_265nz0jc_.dbf tag=ORA$OEM_LEVEL_0 recid=13 stamp=590119458
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:03
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00011 name=/home/oracle/oradata/dev10g/FLOW_6.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_6_265nz3oo_.dbf tag=ORA$OEM_LEVEL_0 recid=14 stamp=590119463
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00013 name=/home/oracle/oradata/dev10g/FLOW_8.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_8_265nzbvj_.dbf tag=ORA$OEM_LEVEL_0 recid=15 stamp=590119469
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:03
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00014 name=/home/oracle/oradata/dev10g/FLOW_9.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_9_265nzg1k_.dbf tag=ORA$OEM_LEVEL_0 recid=16 stamp=590119473
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00015 name=/home/oracle/oradata/dev10g/FLOW_10.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_10_265nzo6x_.dbf tag=ORA$OEM_LEVEL_0 recid=17 stamp=590119480
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00017 name=/home/oracle/oradata/dev10g/FLOW_12.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_flow_12_265nzwdb_.dbf tag=ORA$OEM_LEVEL_0 recid=18 stamp=590119487
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:03
    channel oem_disk_backup: starting datafile copy
    input datafile fno=00004 name=/home/oracle/oradata/dev10g/users01.dbf
    output filename=/home/oracle/flash_recovery_area/DEV10G/datafile/o1_mf_users_265nzzo0_.dbf tag=ORA$OEM_LEVEL_0 recid=19 stamp=590119489
    channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:03
    channel oem_disk_backup: starting compressed incremental level 1 datafile backupset
    channel oem_disk_backup: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel oem_disk_backup: starting piece 1 at 11-MAY-06
    channel oem_disk_backup: finished piece 1 at 11-MAY-06
    piece handle=/home/oracle/flash_recovery_area/DEV10G/backupset/2006_05_11/o1_mf_ncsn1_TAG20060511T020039_265o04n1_.bkp comment=NONE
    channel oem_disk_backup: backup set complete, elapsed time: 00:00:03
    Finished backup at 11-MAY-06
    released channel: oem_disk_backup
    RMAN>
    Recovery Manager complete.
    SQL*Plus: Release 10.1.0.3.0 - Production on Thu May 11 08:03:38 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected.
    SQL> alter database open
    ERROR at line 1:
    ORA-01531: a database already open by the instance
    Unable to open the database.

    Do you have an OMS configured for OEM? You'll need to connect to an OMS to perform backups thru OEM. The process is explained here Managing Backup and Recovery.
    Here is a SAMPLE configuration script:
    configure device type disk parallelism 1;
    configure channel device type disk format 'd:\oracle_backup\%d_%U.%p';
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to 'd:\oracle_backup\cf_auto_%F.bkp';
    configure retention policy to recovery window of 2 days;
    configure backup optimization on;and a SAMPLE backup script:
    rem
    rem  rman_backup.cmd
    rem
    rem  Full database backup plus archivelogs.
    for /f "tokens=2-4" %%i in ('echo %date:/= %') do set vdate=%%i_%%j_%%k
    echo backup database plus archivelog;
    echo sql "alter database backup controlfile to trace as ''d:\oracle_backup\controlORCL9%vdate%.txt''";
    echo sql "create pfile=''d:\oracle_backup\initORCL9%vdate%.ora'' from spfile";
    echo crosscheck backup;
    echo crosscheck archivelog all;
    echo delete noprompt obsolete recovery window of 2 days;
    echo delete noprompt archivelog all completed before 'sysdate-7';
    ) | rman target / log=backup.logYou could scheduled the rman_backup.cmd script to run every night at 10pm thru the Windows task scheduler.

  • Create a standby controlfile using cold backup

    Hi All,
    We have to setup a DR for a production database.
    Here we have the coldbackup which backups all the datafiles and the control file from the production database.
    For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
    I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
    OS version solaris 10 , database version 11.2.0.1
    Regards
    KK
    Edited by: Kk on Feb 16, 2012 8:51 AM

    Kk wrote:
    Hi All,
    We have to setup a DR for a production database.
    Here we have the coldbackup which backups all the datafiles and the control file from the production database.
    For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
    I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
    OS version solaris 10 , database version 11.2.0.1
    Regards
    KK
    Edited by: Kk on Feb 16, 2012 8:51 AMTry as below
    My version:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>1) Taken backup of current controlfile
    2) Deleted Current controlfiles
    3) Restored using standby clause from current controlfile
    4) Mounted & now controlfile type is Standby
    Try in this way when you have cold backup. :)
    SQL> select controlfile_type from v$database;
    CONTROL
    CURRENT
    RMAN> run
    2> {
    3> allocate channel ch1 device type disk format 'c:\oracle\control%U.bkp';
    4> backup current controlfile;
    5> release channel ch1;
    6> }
    using target database control file instead of recovery catalog
    allocated channel: ch1
    channel ch1: SID=63 device type=DISK
    Starting backup at 16-FEB-12
    channel ch1: starting full datafile backup set
    channel ch1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ch1: starting piece 1 at 16-FEB-12
    channel ch1: finished piece 1 at 16-FEB-12
    piece handle=C:\ORACLE\CONTROL08N3GEA6_1_1.BKP tag=TAG20120216T230334 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:00:01
    Finished backup at 16-FEB-12
    released channel: ch1
    RMAN> exit
    RMAN> restore standby controlfile from 'C:\ORACLE\CONTROL08N3GEA6_1_1.BKP';
    Starting restore at 16-FEB-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=66 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    output file name=C:\ORACLE\ORADATA\ORCL\CONTROL01.CTL
    output file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL
    Finished restore at 16-FEB-12
    SQL> alter database mount;
    Database altered.
    SQL> select controlfile_type from v$database;
    CONTROL
    STANDBY
    SQL>
    Some More information:-
    Even if your database backup is old, still you can create a new standby controlfile and restore new controlfile and restore database. Later after starting MRP all will be synchronized. No issues
    SQL> select controlfile_type from v$database;
    CONTROL
    CURRENT
    SQL> alter database create standby controlfile as 'c:\oracle\control_stby.ctl';
    Database altered.
    SQL> $dir c:\oracle\con*
    Volume in drive C is System
    Volume Serial Number is 1853-3E21
    Directory of c:\oracle
    02/16/2012  11:41 PM         9,748,480 CONTROL_STBY.CTL
                   1 File(s)     19,546,112 bytes
                   0 Dir(s)  177,185,570,816 bytes free
    SQL>Now Just restore database. You already have backup.
    Or
    If you have opportunity you can go ahead for Duplicate/Duplicate from active database
    Edited by: CKPT on Feb 16, 2012 11:41 PM

Maybe you are looking for

  • Newegg AM10 - Do not buy - JUNK. Shame on Cisco

    Date: June 7,2012 Rating: 1 Pros: Small, all-in-one package {with installer / driver}. Inexpensive. Cons: Simply not dependable, poor reception {no physical barriers between this and the wireless router}, very poor performance. I can not recommend th

  • Text reflow after opening IDCS2 file in CS3?

    Has anyone experienced text reflow when opening a legacy InDesign CS2 file in CS3? This is a serious problem if it happens in book documents. I want to make a case (or not) for keeping the old version on our computers for opening legacy files.

  • Mailbox move question

    Hi all, I want to move user's mailboxes from one post office to another but I don't want them to try and log in while doing this either. I want to check "disable logins" in the Groupwise properties of the user as this will not allow them to log into

  • Please answer. how to search for files

    Hi, We need an integration with SAP. They send us files in the format: yyyymmddhhmiss.atv For example we receive following files: 20050503101115.atv 20050504101115.atv 20050505101115.atv So, we dont know how to search for all files with extensions ".

  • Is there any way to delete an ichat account?

    I would like to change my Apple ID and am told I can't because it is also my iChat account.