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

Similar Messages

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

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

  • 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

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

  • 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

  • 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

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

  • 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

  • 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

  • Stop and start database for cold backup

    Hi,
    Database :Oracle 10g R1
    OS : Red hat 3
    I have a RAC database with 2 nodes.
    I build this script to make a cold backup of the database. (I will put it in the cron tab).
    My question is the SRVCTL will work in this scripts??
    # ***** COLDBACKUP ORACLE DATABASE ON LINUX *****
    DIRECTORY=/u02/backup/script/; export DIRECTORY
    cd ${DIRECTORY}
    # ***** SHUTDOWN THE DATABASE *******
    export oracle_sid=RCDB
    srvctl stop database -d RCDB
    # *****cold backup for "RCDB" database on 13-FEB-07 ... *****
    # ***** COPY FILES *****
    # Redo logs
    cp /u02/oradata/RCDB/redo01.log ${DIRECTORY}
    cp /u02/oradata/RCDB/redo07.log ${DIRECTORY}
    cp /u02/oradata/RCDB/redo03.log ${DIRECTORY}
    cp /u02/oradata/RCDB/redo08.log ${DIRECTORY}
    # Datafiles
    #*********START UP DATABASE AND SERVICES********
    srvctl start database -d RCDB
    exit
    Message was edited by:
    ASkika
    Message was edited by:
    ASkika

    I need to put a quick policy backup ... and cold
    backup it's what I use and it works.And reduces the availability of your cluster.
    The problem about RMAN is that we never use it. I
    have to learn about it to make scripts to test....
    and this will tack me 2 or 3 days...I'd assume that installing RAC didn't go overnight, so why underfund the crucial part of any database system, the backup?
    There's even a step by step guide for backup on the Getting Started: DBAs page.
    Samples (and changes) on the latest version of RMAN can be found for example in RMAN Enhancements.
    Or take a look at this Oracle Magazine article:Faster Backup, Faster Recovery
    Backup and Recovery Basics in the user documentation may also be a good starting point.
    C.

  • NEED TO RECOVER A DATABASE USING RMAN with CONTROL FILE AND NO RMAN CATALOG, DISK FAILURE..

    Hello All,
    The disk failure caused our production data on the disk to be resotred with the backup data available and recovered through RMAN with cotrolfile , and no catalog DB is configured.
    I had the restored the spfile and control file then recovered the database,
    startup nomount;
    RESTORE SPFILE FROM ' path '  ;
    Shutdown immediate;
    startup nomount
    Restore controfile from autobackup;
    restore database;
    [AT POINT , A MESSAGE PROMPTED LIKE " failur of restored command - some targets not found"  (thinking may be few archives are not found, i proceeded to incomeplete recovery of DB) ]
    recover database;
    Finished reocvery .
    Now in the Grid control i see that 60 blocks of a particular datafile are corrupted and needs recovery. Do i need to get the data file resotred again and recover it or any simple way to recover this data file
    When i perform the block recovery , it says recovery failed and when i run the data file recovery it succeeds. Please provide you inputs to recover the database as it is production BI database and pretty critical to our client.
    Thanks for your valuable time in advance.
    Regards,
    Ran G.

    These is a common problem if the object are created due to NOLOGGIN option. If you check most of the object which are facing block corruption is indexes .
    Use the below query to check the objects :
    It will map each block from v$database_block_corruption to either a segment or if the block is free.
    $ sqlplus / as sysdba
    set pagesize 2000
    set linesize 250
    SELECT e.owner, e.segment_type, e.segment_name, e.partition_name, c.file#
    , greatest(e.block_id, c.block#) corr_start_block#
    , least(e.block_id+e.blocks-1, c.block#+c.blocks-1) corr_end_block#
    , least(e.block_id+e.blocks-1, c.block#+c.blocks-1)
    - greatest(e.block_id, c.block#) + 1 blocks_corrupted
    , null description
    FROM dba_extents e, v$database_block_corruption c
    WHERE e.file_id = c.file#
    AND e.block_id <= c.block# + c.blocks - 1
    AND e.block_id + e.blocks - 1 >= c.block#
    UNION
    SELECT s.owner, s.segment_type, s.segment_name, s.partition_name, c.file#
    , header_block corr_start_block#
    , header_block corr_end_block#
    , 1 blocks_corrupted
    , 'Segment Header' description
    FROM dba_segments s, v$database_block_corruption c
    WHERE s.header_file = c.file#
    AND s.header_block between c.block# and c.block# + c.blocks - 1
    UNION
    SELECT null owner, null segment_type, null segment_name, null partition_name, c.file#
    , greatest(f.block_id, c.block#) corr_start_block#
    , least(f.block_id+f.blocks-1, c.block#+c.blocks-1) corr_end_block#
    , least(f.block_id+f.blocks-1, c.block#+c.blocks-1)
    - greatest(f.block_id, c.block#) + 1 blocks_corrupted
    , 'Free Block' description
    FROM dba_free_space f, v$database_block_corruption c
    WHERE f.file_id = c.file#
    AND f.block_id <= c.block# + c.blocks - 1
    AND f.block_id + f.blocks - 1 >= c.block#
    order by file#, corr_start_block#;
    Below oracle support note will help you :
    ORA-1578 / ORA-26040 Corrupt blocks by NOLOGGING - Error explanation and solution (Doc ID 794505.1)
    The Gains and Pains of Nologging Operations (Doc ID 290161.1)
    SQL> select d.NAME as DBF_NAME, t.NAME as TS_NAME, d.UNRECOVERABLE_CHANGE# as NOLOG_CHNG#, to_char(d.UNRECOVERABLE_TIME, 'Dy DD-Mon-YYYY HH24:MI:SS') as NOLOG_TIME from V$DATAFILE d join V$TABLESPACE t on d.TS# = t.TS# order by t.NAME;
    Thanks,
    gssdba.wordpress.com

Maybe you are looking for

  • PO and FI invoice Bex report

    Hi all , I need a BEx report which shows following 1)     PO with FI Invoice number 2)     Only PO (without invoice) 3)     Only Invoice (without PO) Well I have PO line item ODS and GL ODS. Anyone suggest how should I approach this report??

  • Regarding XI Book

    Hi Friends, I am an ABAPer. I am new to SAP-XI. I am thinking to buy a book on XI which should concern on integration of various business processes. I found one book named 'SAP Exchange Infrastructure: The Official Guide To Integrating Business Proce

  • Captivate to video

    My client just asked me to convert a complete Captivate document into video. Before I tell him that it is going to loose all the interactivity. Can you please confirm that it is the case. Thanx

  • Calendar page unresponsive, kill pages or wait?

    After a few minutes of accessing my iCloud calendar I get an error that says "page unresponsive" kill pages or wait?  This just started happening 3 days ago

  • Apple external optical drive not working on macbookpro

    I removed my optical drive from my 2011 2.3, macbookpro 13" and added a 2nd hard drive. I have an apple external optical drive(cd/dvd) which I hooked up via usb and it would not work. I connected the apple external optical drive to my two other mac m