Rebuild RAC standby

Hi all,
Can anyone give any insight into the steps to rebuild a RAC standby?
My guess is as follows:
The following is all on standby side
1. activate standby r/w
2. Test failover
3. use dbca to delete the database (dbca unregisters instances and services from OCR)
4. use RMAN to recreate the duplicate standby
--creation of logs needs to be done..
5. re-register the instances and services with the OCR
Does seem about right?
Can anyone recommend a document detailing the instructions for re-building a RAC standby after activation?
Thanks in advance.
john

I need a high level view... like task list..
Its a rebuild of an 11gR2 physical RAC standby on Linux RH4.
My guess is I can use dbca to delete the activated standby and then use RMAN to recreate the standby and then manually register the instances and services to the OCR.
My query is the steps with the RMAN creation of the new standby, do I do it in single instance mode and then add standby logs then modify the spfile to reflect cluster_database = true and then register the services and instances and put it in managed standby mode etc..
The bottom line is I need to some offical documentation for the steps involved in recreating an activated RAC standby.
I will contact oracle support.
Edited by: user9179270 on 25-May-2010 04:33
Edited by: user9179270 on 25-May-2010 04:36

Similar Messages

  • RAC Standby Database rebuild

    Hi
    Current 10.2.0.4 Setup is with Dataguard Broker (Unix/No OEM Setup):
    Rac Primary 2node cluster
    Rac Standby 2node cluster
    The rac Standby Database are going to be opened read/write.
    Then will require a rebuild of standby ie delete db files and duplicate db using rman
    1) My questions is how do I rebuild of a rac standby database with an existing enabled dg broker?
    2) Are there any documentation on the steps to follow.
    3) Should the dg broker config be dropped or just disabled and if so at which stage?
    Config on Rac primary should be kept to a minimum as its being used so no outage expected here.
    Regards
    Me

    Have you given any thought to using flashback (depending on how long your standby will be open for read/write)? You could (before you open read/write) copy your dr*.dat files (broker config files), stop the broker and create a guarenteed restore point. After you have finished and ready to convert back to standby you would flashback your database to the restore point, convert back to a physical standby, restart the broker and shutdown. Restore the dr*.dat files to their location and then startup the standby. From there it should fetch the logs from the time the broker was down and catch back up.
    If you would rather rebuild, again you would need to take the broker out of the equation and use RMAN to create a clone for standby and then once in place you would reconfigure the broker (may be able to just restore the dr*.dat files from before the open operation but unsure.

  • Is the only way to import large amount of data and database objects into a primary database is to shutdown the standby, turn off archive log mode, do the import, then rebuild the standby?

    I have a primary database that need to import large amount of data and database objects. 1.) Do I shutdown the standby? 2.) Turn off archive log mode? 3.) Perform the import? 4.) Rebuild the standby? or is there a better way or best practice?

    Instead of rebuilding the (whole) standby, you take an incremental (from SCN) backup from the Primary and restore it on the Standby.  That way, if, for example
    a. Only two out of 12 tablespaces are affected by the import, the incremental backup would effectively be only the blocks changed in those two tablespaces (and some other changes in system and undo) {provided that there are no other changes in the other ten tablespaces}
    b. if the size of the import is only 15% of the database, the incremental backup to restore to the standby is small
    Hemant K Chitale

  • 2 Node RAC standby database

    Hi,
    I am planning to create a 2-node RAC physical standby database which uses ASM from 2-node RAC production database. I am familiar with RMAN duplicate (11g) network based backup to create the physical standby database, but not sure how this will work to create 2-node RAC standby with ASM.
    Could any help me with the document ID which describes how to create a RAC standby database using ASM as storage.
    Source:
    OS: Linux 64 bit
    Oracle: 11.2.0.1
    RAC/ASM: yes/yes
    Target:
    OS: Linux 64 bit
    Oracle: 11.2.0.1
    RAC/ASM: yes/yes
    Thanks in advance!!
    Regards,

    Hi
    You can follow following...
    1.Install crs.
    2.Create ASM instance at standby site...
    3.Prepare parameter file for standby database.
    4.start database instance in one node at nomount state..
    5.create standby control file at primary database...
    6.Copy and paste created control file at primary to standby site..
    7.Copy control file at file system and modify location of control file at init<SID>.ora.
    8.start standby database mount state..
    9.create backup text backup controlfile at primary site...
    10.shutdown standby database,change location of controfile inside ASM.. and place nomount state...
    11.Create controfile through text backup controfile...
    12.backup primary db and paste it in standby site..
    13.Use RMAN to place datafile inside ASM..if you not using RMAN for backup and restoration purpose..
    14.start standby database in mount state and recover through MRP or foreground process..
    15.use SRVCTL to register ASM instances..database and database instances.
    For standby database of RAC..there can only be one node up...So..remember you can start instance of one node only...
    Hope this will help U.
    Tinku

  • Creating a RAC standby database for a single instance database

    Dear All,
    I have a task of migrating a 500GB single instance database to a two-node RAC database with a little downtime at hand. My migration strategy is to:
    1) Create a RAC physical standby for the Single Instance database
    2) Switchover to RAC standby.
    Primary and Standby OS and DB configurations:
    OS: Windows Server EE 2003 (64-bit)
    DB: Oracle 10g Database Release 2 (10.2.0.4)
    Oracle 10g Clusterware Release 2 (10.2.0.4)
    To create a RAC standby, I will:
    a) Install Clusterware (10.2.0.1)
    b) Install Database (10.2.0.1)
    c) Patch both Clusterware and Database (10.2.0.4)
    d) Create ASM instance for both the nodes (+ASM1 & +ASM2)
    e) create standby controlfile on primary
    f) Move standby controlfile, RMAN backup of primary, pfile, listener.ora, tnsnames.ora, password file to standby host-1
    g) make necessary changes to the pfile on standby host-1 like cluster_database, instance_name, thread, ...
    h) mount standby database and restore backup
    Kindly validate my steps and if there already exists such a document then please do provide me with a link.
    Regards

    Please refer to MAA whitet paper :
    [http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10g_RACPrimaryRACPhysicalStandby.pdf]
    [MAA website|http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm]

  • RAC/Standby enviornment configuration---database wise

    Hi, Our final migration is getting very close. I have implemented/configured everything according to oracle MAA, and hopefully after migration, the system will be more stable than previous enviornment.
    However, I have some questions here regarding memory parameter, and others.
    Our OS is redhat linux 5. DB are 11.2.0.3
    Primary are 2 nodes RAC, standby are 2 nodes RAC, plus one standalone standby.
    /proc/meminfo shows below:
    nfo
    MemTotal: 98989076 kB
    MemFree: 369244 kB
    Buffers: 881572 kB
    Cached: 94279628 kB
    SwapCached: 2436 kB
    Active: 14723460 kB
    Inactive: 82602444 kB
    HighTotal: 0 kB
    HighFree: 0 kB
    LowTotal: 98989076 kB
    LowFree: 369244 kB
    SwapTotal: 101032776 kB
    SwapFree: 100839952 kB
    Dirty: 2640 kB
    Writeback: 0 kB
    AnonPages: 2161964 kB
    Mapped: 6253148 kB
    Slab: 733628 kB
    PageTables: 216548 kB
    NFS_Unstable: 0 kB
    Bounce: 0 kB
    CommitLimit: 150527312 kB
    Committed_AS: 25108780 kB
    VmallocTotal: 34359738367 kB
    VmallocUsed: 476800 kB
    VmallocChunk: 34359261519 kB
    HugePages_Total: 0
    HugePages_Free: 0
    HugePages_Rsvd: 0
    Hugepagesize: 2048 kB
    /proc/cpuinfo shows 15 processors.
    I have setup the memory target=43904M, hugepage not configured (SA not sure how and I am not sure if it will benefit). Our application is a busy ticketing enviornment. I want to be sure the parameters I setup can handle the load, no node evicitons , etc.
    Here are some of my parameters:
    lock_sga boolean FALSEbuffer_pool_keep string
    buffer_pool_recycle string
    global_context_pool_size string
    java_pool_size big integer 0
    large_pool_size big integer 0
    olap_page_pool_size big integer 0
    shared_pool_reserved_size big integer 192M
    shared_pool_size big integer 0
    streams_pool_size big integer 0
    pre_page_sga boolean FALSE
    sga_max_size big integer 43904M
    sga_target big integer 0
    memory_max_target big integer 43904M
    memory_target big integer 43904M
    shared_memory_address integer 0
    I would your guys good opinion are those good enough? OUr previous environments are AIX db 11gr1. Our two node Primary RAC kept having node evicitons every other month seems like(previous DBA configured it). and I want to avoid that in my new environment.
    Thank you in advance.

    Hi,
    Most evictions happen due to lost of network connectivity between nodes , resource consumption on the nodes which prevents processes like ocssd , oprocd and cssdmonitor.
    or unable to read voting disk, unexpected failures or hangs...
    Also if there is any inconsistency of patches across nodes also can cause node eviction. so ensure whatever patches should apply on all the nodes and try to apply latest security patches also. Node eviction is not the only reason for improper SGA settings.
    I have setup the memory target=43904M, hugepage not configured (SA not sure how and I am not sure if it will benefit). Our application is a busy ticketing enviornment. I want to be sure the parameters I setup can handle the load, no node evicitons , etc.There are some benefits with hugepages, the page size value can be set 2MB instead of 4kb also whatever memory used by hugepages will be dedicated.
    I suggest you to go through with below links.
    Very Large Memory and HugePages - http://docs.oracle.com/cd/B28359_01/server.111/b32009/appi_vlm.htm+
    Tuning SGA With HugePages - http://docs.oracle.com/cd/B28359_01/server.111/b32009/appi_vlm.htm#CACIBJBB+
    *HugePages on Oracle Linux 64-bit [ID 361468.1]*+
    And coming to SGA size settings. This should be analyzed once it goes Live , We cannot predict now.
    It purely depends on how much buffer hit ratio, physical reads and so on... Once its live then you can use advisors or AWR reports to see for any changes in SGA/memory..
    Sorry may be provided information not much helpful. These days am not in touch with RAC. :)

  • # of threads required between RAC Primary and RAC Standby

    Oracle 11.1.0.7
    Primary 3 Node RAC
    Standby 2 Node RAC
    Our primary (3 nodes) has 4 groups on each node, with the thread# relating to the instance number. For example, we have thread 1, 2, 3 each with 4 multiplexed groups.
    Our standby was created with RMAN Duplicate and it also has 3 threads, but there are only 2 nodes.
    The purpose of this Data Guard implementation is to migrate our development and acceptance environments to another data center with different hardware.
    The new site has been running well and we started migrating development, where we did a switchover to the new environment; our standby databases are now our primary databases. We are going to keep the Data Guard implementation for awhile just to be sure all of the developers and applications are good.
    I was going to drop the 3rd thread from the new primary (old standby) because there are only 2 nodes. I can take it down to 2 groups and then receive the error:
    ORA-01567: dropping log 9 would leave less than 2 log files for instance play3 (thread 3)
    ORA-00312: online log 9 thread 3: '+ASM_FRA_DA/dgplay/onlinelog/group_9.28331.811864225'
    This group’s status is:
    THREAD# GROUP# MEMBER SEQ STATUS
    3 5 +ASM_FRA_DA/dgplay/onlinelog/group_5.8108.813676681             0 UNUSED
    6 +ASM_FRA_DA/dgplay/onlinelog/group_6.8109.813676687             0 UNUSED
    9 +ASM_FRA_DA/dgplay/onlinelog/group_9.28331.811864225            0 UNUSED
    22 +ASM_FRA_DA/dgplay/onlinelog/group_22.18321.811184283           0 UNUSED
    Plans are to un-Data Guard these environments to decommission the hardware. At that time I’m sure I can remove thread# because it’s not needed.
    My question has to do with the logs needed between primary and standby. What I’m seeing is that the greatest number of threads are needed on each side, but not quite sure why if they are UNUSED. Can anyone elaborate on this? I can find no documentation that talks about this.
    Sherrie

    Hi,
    You could do:
    ALTER DATABASE DISABLE THREAD 3;
    check status of the groups in the thread, if any of them <> UNUSED, then archive them:
    ALTER SYSTEM ARCHIVE LOG GROUP x;
    Then drop the groups.
    My question has to do with the logs needed between primary and standby. What I’m seeing is that the greatest number of threads are needed on each side, but not quite sure why if they are UNUSED. Can anyone elaborate on this? I can find no documentation that talks about this. Actually a RAC standby can work with just 1 instance started, because the MRP process runs only on 1 instance. Opening the standby is another story.
    But of course you should have enough standby redo logs on the standby site to receive redo from the primary site.

  • How to create a physical RAC standby from a RAC primary on Std Edition 11g

    Hi All,
    I need to create a physical RAC standby with ASM (2 nodes - Linux) from a RAC primary(2 nodes - linux) with Standard Edition 11g. But I don´t want to use dataguard.
    I know that to use dataguard is possible only Enterprise Edition.
    Does anybody knows about any documents ID on metalink or any article about this ?
    I appreciate if may help me.
    Thanks.
    Wander(Brazil)

    Wander(Brazil) wrote:
    Ok, but i need to RAC physical standby with 2 nodes.Yes you can create standby RAC as well and you also can look option of dbvisit which provides high availability even in standard edition with low licensing prices
    in detail you can go through with this link http://www.dbvisit.com/products/dbvisit_standby_database_for_oracle_disaster_recovery
    >
    Wander(Brazil)      
         Newbie
    Handle:      Wander(Brazil)
    Status Level:      Newbie
    Registered:      Sep 23, 2005
    Total Posts:      116
    Total Questions:      21 (20 unresolved)
    Name      Wander(BH-Brazil)
    Location      BH (Brazil)
    Occupation      Database Administrator
    >
    Please consider closing your old thread as answered.
    Edited by: CKPT on May 21, 2013 10:11 AM

  • Data guard setup for 2 node RAC primary to 2 node RAC standby

    Hi All,
    I am going to setup data guard for 2 node RAC primary to 2 node RAC standby on Oracle 10.2.0.4. in AIX5L.
    Can you please provide the document on the above setup which is having all the steps (details).
    Also, the documents on different scenarios like
    1) If one node of standby goes down, how the redo logs will be applied. IS there any problem?
    2) If both nodes of standby are failed, how to reciver them?
    3) If one node of primary fails, is there any issue?
    4) If two nodes of primary fails, is there any issue?
    Thanks in advance,
    Mahi

    Have a look at the following location, you may find some similar documents:
    http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm
    By
    http://www.oraxperts.com

  • Rebuild RAC phsical standby with RMAN

    Hi all,
    Can anyone give any advice as to rebuilding an ACTIVATED RAC physical standby using RMAN? We have been able to revert the db with flashback but I need to know the rebuild method.
    Is there any extra steps with the OCR?
    I am guessing the steps might be:
    1. Use DBCA to delete the newly activated standby.
    (The DBCA will clean up the OCR components)
    2. Use RMAN to duplicate a physical standby database.
    3. Register the instances and services with the OCR.
    Can any comment on this and suggest a decent task list from oracle as to the method.
    Thanks in advance,
    jd
    Edited by: jonnyd on 30-May-2010 13:42

    ...anyone...?

  • Can I use data guard to create a RAC standby database for a non RAC primary

    Hi,
    we need to RAC our production database but the normal methods will mean a long outage. It is possible to create a standby as a single node RAC database and when ready do a graceful failover to the standby database and open it for business. The next step would be to create another RAC node from this on the original server.
    servers are already cluster aware, using ASM etc
    Oracle 10.2

    Yes, you will be able to setup RAC stnadby for a non-RAC Primary. For primary it just needs a available destination for redo shipping it doesn't matter whether it's RAC enabled or not. And ofcourse you are using 10.2 anyway only one node will be running MRP and that is too in standby mount mode.
    However since you have are using You may follow below sequence.
    1. Setup a new standby as RAC enabled.
    2. Perform a switchover.
    3. Shutdown the Old primary (which is standby now).
    4. Install CRS and RDBMS on the old primary and it's new node.
    5. Modify the cluster_database=TRUE and cluster_database_instances=<required number of instances>.
        With above modification mount the standby database in standby mode and start MRP.
    6. Introduce the database and instances to the OCR using SRVCTL add command.
    7. Once you your database is synchronized with Primary do a switchover.
    9. Now you can repeat step 3 to 6 on the other site too.   <- if you need your secondary site to be RAC enabled too
    10. Finally both the sites should be RAC enabled.
    Hope this is helpful!!!
    Thanks,
    Asif Haliyal

  • Rac to non rac standby file name convert option

    Hi,
    Rac to non rac with ASM both, please find the below details.
    Primary Setup.
    diskgroup NAME for all files for both primary and standby +DATA
    pmon,unique and service name at standby-rac1, rac2
    db version -11.2.0.1
    platform - HP -UX
    $ ps -ef | grep pmon
    oracle11 22329 1 0 22:33:55 ? 0:28 ora_pmon_rac1
    oragrid 23522 1 0 Jan 2 ? 1:30 asm_pmon_+ASM1
    $ ps -ef | grep pmon
    oracle11 22329 1 0 22:33:55 ? 0:28 ora_pmon_rac2
    oragrid 23522 1 0 Jan 2 ? 1:30 asm_pmon_+ASM2
    database and Unique name - RAC, so all files on ASM created under +DATA/RAC
    Stanby setup
    diskgroup NAME for all files for both primary and standby +DATA
    pmon,unique and service name at standby- racdr
    $ ps -ef | grep pmon
    oracle11 22329 1 0 22:33:55 ? 0:28 ora_pmon_racdr
    oragrid 23522 1 0 Jan 2 ? 1:30 asm_pmon_+ASM
    database name and unique name is racdr, so all files on ASM created under DATA/racdr when cloned with RMAN from primary backup. (by settling log_file and db_file covert from DATA/RAC to +DATA/racdr )
    so now everything ok... but how do we create a new datafiles at primary for the above setting success, ??? and reflect on standby ???.
    1.create tablespace tbs size 10g;
    2.create tablespace tbs datafile '+/DATA/RAC/test.dbf size 10g; ??
    3.create tablespace tbs datafile '+/DATA size 10g;???
    4. directories name on asm and specifying on the convert options is case sensitive ???
    Thanks in advance...

    thats fine john,
    log_file and db_file covert from '+DATA/RAC', '+DATA/racdr'
    my primary is rac
    my standby us racdr
    so i mentioned above folders on convert option, so if i created datafile with or without specifying a diskgroup like mentione below, with or without specifying the directory like below
    will all create on under '+DATA/racdr' diskgroup ??
    create tablespace test DATA size10m; --> not specidying a full path as DATA/RAC' so will it go to DATA/racdr' ?? or creating under DATA ?diskgroup on standby????
    Thanks,

  • Steps for data guard RAC primary RAC standby

    Hi,
    I have some doubt in configuring data guard for rac DR to rac primary.
    1) In RAC DR, physical standby will be in RAC before starting data guard for RAC Primary , right?.
    2) While configuring RAC DR , should one node be down in standby?.
    3) After creating the auxiliary database in standby, i mean restoring the rman backup from staging directory in DR,
    Shall we have to register the services(database,instance,asm,etc..) to CRS(OCR)?. If yes ,Why?.
    4) After DR configure over , Shall i shut/down one node?. Should all the nodes in DR be in up , while applying logs to
    standby ?.
    If anybody have made the setup and have the prepared document , requesting you to share with me.
    Thank you very much,
    Sunand

    Hi Sunand,
    Please follow the following My Oracle Support (MOS) Document ID:
    MAA - Creating a RAC Physical Standby for a RAC Primary [ID 380449.1]
    For further details, see the referred documents in previous post. Try practicing on VMWare because it will give you the flexibility for creating snapshots to save your work. Please see the answers for your question below:
    Q1. In RAC DR, physical standby will be in RAC before starting data guard for RAC Primary , right?.
    Answer: Yes, this is recommend but not mandatory. You can add a second node later on.
    Q2. While configuring RAC DR , should one node be down in standby?
    Answer: Yes, there are some database configuration commands that should be run in exclusive mode. You can start the remaining instance(s) after DB creation. Do not forget to set CLUSTER_DATABASE parameter to TRUE. Also, all instances except one should be close while performing switchover/failover.
    Q3. After creating the auxiliary database in standby, i mean restoring the rman backup from staging directory in DR, Shall we have to register the services(database,instance,asm,etc..) to CRS(OCR)?. If yes ,Why?
    Answer: Yes, this is recommended for RAC configuration to take advantage of high availability services.
    Q4. After DR configure over , Shall i shut/down one node?. Should all the nodes in DR be in up , while applying logs to
    standby ?
    Answer: You can start up all the instances after DR creation. In this case if your one node goes down log apply services will continue to apply changes in DR.
    Hope, this helps to clear your questions.
    Regards,
    Shahid

  • ORACLE 10G RAC+STANDBY server

    We have a ORACLE RAC 10G based on 2 nodes with 1 disk array for test purposes.
    Now, we want to connect a standby server to RAC with its own disk array. Standby server with array will be located in another city.
    How can we realize it?

    Hi friend,
    We have tested with the following : we have 1og RAC (10.2.0.3.0) with Single Physical Standby database :
    RAC Database :
    bash-3.00$ export ORACLE_SID=racdb
    bash-3.00$ rman target sys/sysracdb@racdb
    RMAN> connect catalog rman/rman@racdb
    RMAN> backup device type disk format '/backup/rman/%U' database plus archivelog;
    RMAN> backup device type disk format '/backup/rman/%U' current controlfile for standby;
    Note : Transfer the backup to the standby database location.
    Single Instance Database
    SQL> create spfile from pfile='/oracle/admin/stdby/pfile/initstdby.ora';
    SQL> shutdown immediate;
    SQL> startup nomount;
    [oracle@linux7 pfile]$ rman target sys/sysracdb@racdb auxiliary=sys/sysracdb
    RMAN> duplicate target database for standby;
    Note : It will restore....
    bash-3.00$ export ORACLE_SID=stdby
    bash-3.00$ export ORACLE_HOME=/oracle/product/10.2.0/db_1
    SQL> alter system set control_files='+DATA_GRP1/stdby/CONTROLFILE/current.256.665416399' scope=spfile;
    SQL> shutdown immediate;
    SQL> startup nomount;
    SQL> alter database mount standby database;
    SQL> alter database recover managed standby database disconnect from session;
    Thanks
    LaserSoft

  • RAC Standby database sync

    Hi all,
    I have 2 node rac database and also it is having standby database on another standalone server with asm.
    Now how can i check the sync between these two databases. Both the instances having different sequence numbers.
    Please let me know.
    thanks

    you can check current_scn of database from v$database in standby and prod....

Maybe you are looking for