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

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

  • How to create standby controlfile from restored backup

    Hi Techies,
    I am re-building one of my DR server, Source and target DB is oracle 10g.
    I have taken the source backup which is going to be restored on target, But I forgot to take a standby controlfile from source DB at the time (Pre/Post) backup.
    Now the issue is I can create a standby controlfile on primary and copy the same to target, But so many datafiles are added after the backup which I have taken to restore and medias are already shipped.
    I can send the other set of backup to DR site, but it takes a week time and I don't want to do that If I can regenerate it.
    So any clue to create standby controlfile on target with restored datafiles?
    Regards,
    Nick Loy

    Hmm... sounds like you perform this in a rather manual fashion...
    Do you use RMAN for taking the backups?
    Or maybe the BR*TOOLS?
    With these tools you are usually safe from such mistakes - I can only recommend to use them!
    However, since you don't have a control file at all on the target side, the only thing left to do would be to
    ALTER DATABASE BACKUP CONTROLFILE TO TRACE NORESETLOGS;
    on the primary side and manually remove the files that have been added since you took the backup from the control file script,
    Afterwards you use the script on the standby side to create the control files.
    regards,
    Lars

  • 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

  • Error while creating physical standby database using Oracle Grid 10.2.0.5

    Hi All,
    I am setting up data guard using oracle grid.
    Primary database version: - 10.2.0.4
    Standby database version: - 10.2.0.4
    Primary OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    Standby OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    I am creating physical standby database using EM. But it is getting failed with error message in sqlnet.ora file
    Fatal NI connect error 12533, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=)(CONNECT_DATA=(SERVICE_NAME=INPRDSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=indb50.oii.com)(USER=oracle))))
      VERSION INFORMATION:
            TNS for Linux: Version 10.2.0.4.0 - Production
            TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.4.0 - Production
      Time: 17-AUG-2010 02:40:07
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12533
        TNS-12533: TNS:illegal ADDRESS parameters
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0As we can see, address_list is empty.
    Can anyone suggest what could be the reason behind this?

    Dear user13295317,
    Here is the error explanation;
    Oracle Error :: TNS-12533
    TNS:illegal ADDRESS parameters
    Cause
    An illegal set of protocol adapter parameters was specified.
    In some cases, this error is returned when a connection cannot be made to the protocol transport.
    Action
    Verify that the destination can be reached using the specified protocol.
    Check the parameters within the ADDRESS section of TNSNAMES.ORA.
    Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation for your platform.
    Protocols that resolve names at the transport layer (such as DECnet object names) are vulnerable to this error if not properly configured or names are misspelled.Hope That Helps.
    Ogan

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

  • 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

  • Create standby database using restore backup

    Hi,
    I am creating a standby database 11g using  manual process of restoring a backup , but to no avail. I can not even restore the backup successfully.
    This is the steps I followed (courtesy of ORACLE-BASE) ORACLE-BASE - Data Guard Physical Standby Setup in Oracle Database 11g Release 2
    I am confused about these steps:
    Copy the files from the primary to the standby server.
    Copy Standby controlfile to all locations.
    $ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl /u01/app/oracle/oradata/DB11G/control01.ctl
    $ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl
    My question is, for the 2nd copy, do I need to shutdown the primary db? since control01.ctl is being updated all the time?
    Can I not used the standby ctl (db11g_stbg.ctl) and copy it to /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl instead?
    Your assistance is highly appreciated.

    f55237a7-2c38-4db3-a7a3-1d77256f0730 wrote:
    Hi,
    I am creating a standby database 11g using  manual process of restoring a backup , but to no avail. I can not even restore the backup successfully.
    This is the steps I followed (courtesy of ORACLE-BASE) ORACLE-BASE - Data Guard Physical Standby Setup in Oracle Database 11g Release 2
    I am confused about these steps:
    Copy the files from the primary to the standby server.
    Copy Standby controlfile to all locations.
    $ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl /u01/app/oracle/oradata/DB11G/control01.ctl
    $ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl
    My question is, for the 2nd copy, do I need to shutdown the primary db? since control01.ctl is being updated all the time?
    Can I not used the standby ctl (db11g_stbg.ctl) and copy it to /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl instead?
    Your assistance is highly appreciated.
    Hi,
    You are created standby  control file on primary and copied to standby  side:
    $ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl /u01/app/oracle/oradata/DB11G/control01.ctl
    And now, in paramter files, you have CONTROL_FILES parameter as below :
    control_files='/u01/app/oracle/oradata/DB11G/control01.ctl', '/u01/app/oracle/fast_recovery_area/DB11G/control02.ctl'
    it means you must copy controlfile IN standby side to second control file. Control  files must be same.
    $ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl
    My question is, for the 2nd copy, do I need to shutdown the primary db? since control01.ctl is being updated all the time?
    You not need shutdown priamry database, becuase you  copied standby control file to standby side, and all operations goin in standby side.
    Can I not used the standby ctl (db11g_stbg.ctl) and copy it to /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl instead?
    Yes, you can use (db11g_stbg.ctl)  standby controlfile
    Regard
    Mahir M. Quluzade

  • After the test DB created using cold backup..things to do..

    Dear All,
    I had done Physical cold backup cloning to create the test DB using Production DB.
    After that ,Is anything need to do before give to the application team?
    For say,
    index recreation,
    index re-build,
    valid the invalid objects
    Please help me and input your suggestions.
    Thanks in Advance,
    Regards,
    DB.

    All objects should be fine – no need to rebuild/recompile anything.
    If tables in the production DB contain references to production HTMLs, production server names, production usernames/passwords, etc, they need to be changed or deleted. The DB password should be changed.
    If the production DB has DB links to other production DBs, those DB links have to be redefined.
    If any of the data in the production DB should not be visible to the developers, it should be masked.
    Iordan Iotzov

  • Creating logical standby from non primary backup

    We want to test creation for logical standby in our test enviroment.
    Here is the plan we are
    1. Backup Prod.
    2. Restore Test Primary (T1) and Restore test standby (T2) from Prod backup.
    3. Setup standby between T1 and T2.
    Plan is to save the time for backup and restore process. I have not doe it before. Will this process work or T2 restore needs to be done from backup of T1 as that would be primary.
    Manuj

    969257 wrote:
    Thanks Tobi.
    I will try this. The test system is very large about 16TB and the backup/restore process takes days. I just wanted to be sure if the same backup would work for creating the primary and standby at the same time.
    So in this case, I will just have to restore from backup and move forward with archivelogs. Will I have to use the control-file from Prod or from T1.
    Use the control file from T1(test primary)
    I would like to use the backup COPY.
    General steps to follow:
    1. restore T1 as the (test)primary DB.
    2. recover/apply the T1 using the redo log.
    3. restore T2 but do not apply redo to prevent it from divergence from T1. i mean, let T2 scn be behind T1 scn.
    4. following the general steps as it apply to you in preparing and creating primary and standby DB
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/create_ps.htm
    5. make sure T2 can receive and apply redo data from T1
    6.covert T2 to logical standby DB
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/create_ls.htm
    HTH
    Tobi

  • Oracle 9i. RMAN. How to restore standby controlfile using "from tag" clause

    -bash-3.00$ rman target / catalog rman/rman@emgc
    Recovery Manager: Release 9.2.0.8.0 - 64bit Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    connected to target database: crvs (not mounted)
    connected to recovery catalog database
    RMAN> list backup tag stby_ctrl;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    142851 Full 7M SBT_TAPE 00:01:44 02.02.11
    BP Key: 142852 Status: AVAILABLE Tag: STBY_CTRL
    Piece Name: CRVS_20110202.c7m3kbrd_1_1.stb
    Controlfile Included: Ckp SCN: 67168490043 Ckp time: 02.02.11
    RMAN> run
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=/oracle/apps/osb/lib/libobk.so';
    RESTORE standby CONTROLFILE from tag stby_ctrl;
    release channel ch1;
    2> 3> 4>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "from": expecting one of: "to"
    RMAN-01007: at line 4 column 29 file: standard input
    RMAN> run
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=/oracle/apps/osb/lib/libobk.so';
    RESTORE CONTROLFILE from tag stby_ctrl;
    release channel ch1;
    2> 3> 4> 5> 6>
    allocated channel: ch1
    channel ch1: sid=13 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    Starting restore at 04.02.11
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/04/2011 09:49:26
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the controlfile found to restore
    RMAN> run
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=/oracle/apps/osb/lib/libobk.so';
    RESTORE CONTROLFILE from 'CRVS_20110202.c7m3kbrd_1_1.stb';
    release channel ch1;
    2> 3> 4> 5> 6>
    allocated channel: ch1
    channel ch1: sid=13 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    Starting restore at 04.02.11
    channel ch1: restoring controlfile
    channel ch1: restore complete
    replicating controlfile
    input filename=/data02/crvs/ctrl/control01.ctl
    output filename=/data02/crvs/ctrl/control02.ctl
    Finished restore at 04.02.11
    released channel: ch1
    RMAN>

    The error message states:
    RMAN-01005: syntax error: found "from": expecting one of: "to"restore TO where?
    Personally I'd never use RMAN to restore a control file. Takes less time to job copy an existing one.

  • 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

  • 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

  • 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

Maybe you are looking for