RAC & DataGuard (Physical Standby)

Hello all,
I'm trying to get a high level overview of how RAC & DataGuard would behave in the following configuration. I've written down my understanding of how things would work. Please correct me if I'm wrong.
1) 2 node RAC (Primary Database) with a single instance physical standby.
a) Same standby related init.ora parameters would have to configured on both primary rac nodes.
b) The redo apply service at the standby would merge the redo from the 2 threads from the primary and apply it to the standby to keep it in sync.
c) During switch over only one primary RAC instance should be up besides the standby instance.
d) During switch back again only one primary RAC instance should be up besides the standby instance.
e) During failover ofcourse both primary instances would be down which warrants the fail over.
2) 2 node RAC (Primary) with a 2 node physical standby
This where it gets complex and I'm not really sure how a,b,c,d,e would be in this scenario. Appreciate if you could shed some light on this and list what
a,b,c,d,e would look like in this scenario.
I'm assuming that only one instance in the standby RAC should be up when the standby is in RAC configuration for the redo apply to work.
Also, if there is a white paper that details step by step procedure for setting up the above 2 scenarios, please let me know. So far I was able to find only the MAA white paper but that was not very helpful. If you can prescribe a good book for RAC & DataGuard that would be great too..
Thanks for your help

>
1) 2 node RAC (Primary Database) with a single instance physical standby.
a) Same standby related init.ora parameters would have to configured on both primary rac nodes.Usually rac nodes share their spfile on a shared diskvolume or through ASM. So they have identical DG parameter anyway
b) The redo apply service at the standby would merge the redo from the 2 threads from the primary and apply it to the standby to keep it in sync.Correct
c) During switch over only one primary RAC instance should be up besides the standby instance.
Sounds logical to me
Edit: In fact during normal operation both RAC nodes are up, so during switchover they are both active too
It is the configuration that matters. As soon as the standby is becoming primary, it might be that it talks only to one RAC node for its log-apply files
d) During switch back again only one primary RAC instance should be up besides the standby instance.That single was the only one running in step c.
e) During failover ofcourse both primary instances would be down which warrants the fail over.Correct. Keep in mind that during a failover the RAC config would be deconfigured from the DG setup and has to be added back again as standby.
You might have to take a look at: http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10g_RACPrimarySingleInstancePhysicalStandby.pdf
>
2) 2 node RAC (Primary) with a 2 node physical standby
This where it gets complex and I'm not really sure how a,b,c,d,e would be in this scenario. Appreciate if you could shed some light on this and list what
a,b,c,d,e would look like in this scenario.
I'm assuming that only one instance in the standby RAC should be up when the standby is in RAC configuration for the redo apply to work.
No. RAC primary to RAC Standby would mean both nodes are up on both side. PrimNode1 send its redo logs to StandbyNode1 and the same for PrimNode2 and StandbyNode2
Have a look here: http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10g_RACPrimaryRACPhysicalStandby.pdf
HTH,
FJFranken
My Blog: http://managingoracle.blogspot.com
Edited by: fjfranken on 16-jul-2010 1:13

Similar Messages

  • Rolling Upgrade of Oracle 10gR2 RAC with Physical Standby (DG)

    Hi DBAs,
    I want to do a rolling upgrade of Oracle 10.2.0.3 (2 node RAC+ASM) with Physical Standy Dataguard to Oracle 10.2.0.4 also applying CPU (April2009).
    Please suggest the best way to perform this upgrade and patching with no downtime.
    Thanks
    -Samar-

    Unfortunately rolling upgrade is only possible with a logical standby in place:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/upgrades.htm#CHDBJAGG
    That doesn't help you at this time, but 11g has a way to do it with a physical standby. Even here you need an intermediate logical standby:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rollup.htm#CHDHCBGA
    Werner

  • Dataguard physical standby archive log question

    Hi all,
    I will try to keep this simple..
    I have a 4 node RAC primary shipping logs to a 2 node physical standby.
    On the primary when I run 'alter system archive log current' on an instance I only see 1 log being applied on the standby, that is by querying v$archived_log.
    If I run the following on the standby:
    select thread#,sequence#,substr(name,43,70)"NAME",registrar,applied,status,first_time from v$archived_log where first_time
    in
    (select max(first_time) from v$archived_log group by thread#)
    order by thread#
    I get:
    THREAD# SEQUENCE# NAME REGISTR APPLIED S FIRST_TIME
    1 602 thread_1_seq_602.2603.721918617 RFS YES A 17-jun-2010 12:56:58
    2 314 thread_2_seq_314.2609.721918627 RFS NO A 17-jun-2010 12:56:59
    3 311 thread_3_seq_311.2604.721918621 RFS NO A 17-jun-2010 12:57:00
    4 319 thread_4_seq_319.2606.721918625 RFS NO A 17-jun-2010 12:57:00
    Why do we only see the max(sequence#) having been applied and not all of them?
    This is the same no matter how many times I archive the current log files on any of the instances on the primary and also the standby does not have any gaps.
    Hope this is clear..
    any ideas?
    jd

    ok output from gv$archived_log on standby BEFORE 'alter system archive log current' on primary
    THREAD# SEQUENCE# NAME REGISTR APPLIED S FIRST_TIME
    1 679 thread_1_seq_679.1267.722001505 RFS NO A 18-jun-2010 11:58:22
    1 679 thread_1_seq_679.1267.722001505 RFS NO A 18-jun-2010 11:58:22
    2 390 thread_2_seq_390.1314.722001507 RFS NO A 18-jun-2010 11:58:23
    2 390 thread_2_seq_390.1314.722001507 RFS NO A 18-jun-2010 11:58:23
    3 386 thread_3_seq_386.1266.722001505 RFS YES A 18-jun-2010 11:58:22
    3 386 thread_3_seq_386.1266.722001505 RFS YES A 18-jun-2010 11:58:22
    4 393 thread_4_seq_393.1269.722001507 RFS NO A 18-jun-2010 11:58:23
    4 393 thread_4_seq_393.1269.722001507 RFS NO A 18-jun-2010 11:58:23
    Output from v$archived_log on standby AFTER 'alter system archive log current' on primary
    THREAD# SEQUENCE# NAME REGISTR APPLIED S FIRST_TIME
    1 680 thread_1_seq_680.1333.722004227 RFS NO A 18-jun-2010 11:58:29
    1 680 thread_1_seq_680.1333.722004227 RFS NO A 18-jun-2010 11:58:29
    2 391 thread_2_seq_391.1332.722004227 RFS NO A 18-jun-2010 11:58:30
    2 391 thread_2_seq_391.1332.722004227 RFS NO A 18-jun-2010 11:58:30
    3 387 thread_3_seq_387.1271.722004225 RFS NO A 18-jun-2010 11:58:28
    3 387 thread_3_seq_387.1271.722004225 RFS NO A 18-jun-2010 11:58:28
    4 394 thread_4_seq_394.1270.722004225 RFS YES A 18-jun-2010 11:58:29
    4 394 thread_4_seq_394.1270.722004225 RFS YES A 18-jun-2010 11:58:29
    as a reminder we have a 4 node RAC system shipping logs to a 2 node RAC standby. There are no gaps but only one log is ever registered as being applied.
    Why is that? Why arnt all logs registered as being applied?

  • Oracle 10g Dataguard Physical Standby Database

    When I set my dataguard group to "MAXIMIZE AVAILABILITY" the protection level is always RESYNCHRONIZATION.
    It's normal ?
    SQL> SELECT PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE FROM V$DATABASE;
    PROTECTION_MODE PROTECTION_LEVEL DATABASE_ROLE
    MAXIMUM AVAILABILITY RESYNCHRONIZATION PHYSICAL STANDBY
    SQL> show parameter log_archive_dest_2
    NAME TYPE VALUE
    log_archive_dest_2 string SERVICE=PIJ10G2 LGWR SYNC AFFIRM
    SQL> show parameter log_archive_dest_state_2;
    NAME TYPE VALUE
    log_archive_dest_state_2 string ENABLE

    this is my log on primary db :
    Thread 1 advanced to log sequence 422
    Current log# 1 seq# 422 mem# 0: /oradata/orapij10g/redologs/PIJ10G/redo01.log
    Wed Oct 1Thread 1 cannot allocate new log, sequence 423
    Private strand flush not complete
    Current log# 1 seq# 422 mem# 0: /oradata/orapij10g/redologs/PIJ10G/redo01.log
    Wed Oct 17 16:24:51 2007
    Destination LOG_ARCHIVE_DEST_3 is SYNCHRONIZED
    LNSc started with pid=34, OS id=21052
    Wed Oct 17 16:24:56 2007
    Destination LOG_ARCHIVE_DEST_3 is UNSYNCHRONIZED
    Wed Oct 17 16:24:56 2007
    Errors in file /oracle/ora10g/admin/PIJ10G/bdump/pij10g_lgwr_26248.trc:
    ORA-16086: Message 16086 not found; No message file for product=RDBMS, facility=ORA
    LGWR: Failed to archive log 2 thread 1 sequence 423 (16086)
    Thread 1 advanced to log sequence 423
    Current log# 2 seq# 423 mem# 0: /oradata/orapij10g/redologs/PIJ10G/redo02.log
    I don't understand this error message. How can solve my probleme ?

  • Primary database is RAC and Physical standby is single instance

    Hello All,
    I am using Oracle RAC 11.2.0.3 as primary database, we are going to start using Oracle data guard.
    So I am designing my infrastructure and planing to use Oracle 11.2.0.3 Single instance as my physical stand by database.
    My question is it feasible to have my standby database as single instance while the primary is RAC?
    is it feasible to build my Oracle single instance standby database from the RMAN backup of the RAC primary database?
    Is there any restrictions (or any points to be taken into consideration) since my primary database is RAC while the physical standby is Oracle single instance?
    in the below link
    [http://docs.oracle.com/cd/B28359_01/server.111/b28294/concepts.htm#i1039416]
    it was mentioned that primary can be RAC or single and same for standby, but my question is it feasible to have primary as RAC while standby as single instance? or it should be like each others?
    The primary database can be either a single-instance Oracle database or an Oracle Real Application Clusters (RAC) database.
    Similar to a primary database, a standby database can be either a single-instance Oracle database or an Oracle RAC database.Regards,

    My question is it feasible to have my standby database as single instance while the primary is RAC?Yes...quite a common setup.
    is it feasible to build my Oracle single instance standby database from the RMAN backup of the RAC primary database?Yes.
    Is there any restrictions (or any points to be taken into consideration) since my primary database is RAC while the physical standby is Oracle single instance?No show stoppers.

  • Active dataguard physical standby

    Hi,
    Is it possible to create additional tables and do DML operations on them ( these tables will not be present on primary db) in physical standby database created by active data guard.
    Regards,
    prasad.

    Is it possible to create additional tables and do DML operations on them ( these tables will not be present on primary db) in physical standby database created by active data guard.Prasad,
    Here Active datagaurd feature is only for READ ONLY or reporting purpose, where you can perform only Select queries which is from 11gRx at the same time recovery also will be active.
    If you want to open database in Read & Write , There there would be no consistent with Primary database, These behaves as different databases.
    So Either you have to use flashback option after completing your REad & Write options,
    Again you will lost all of the data, whatever you performed DML operations. So this is no use again.
    You can use this note for that procedure *How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]*
    But i can say conclusion to make your standby high available your DML operations are not supported, ofcourse supported but its not High availability.
    Hope this clears.
    You seems to be new user to OTN , consider closing the thread as answered, Keep the forum clean. https://forums.oracle.com/forums/ann.jspa?annID=718
    Edited by: CKPT on Mar 19, 2012 11:38 AM

  • Step by step 10g Dataguard , physical standby database setup metalink notes

    On metalink i saw this note, but unable to find now if someone can help....

    Note:248382.1 Creating a 10g Data Guard Physical Standby on Linux

  • Primary RAC with physical standby

    Hi all,
    i have production setup as below
    2 node 10gR2 RAC on win2K3 datafiles on ASM
    Oracle Standard edition
    On the standby site it will be a manual standby (since SE) .
    Biz doesnt want the archives to be on local NTFS partition, hence the archives are on ASM. To resfresh the standby i need to transfer the archives through RMAN (catalog database is used) but facing issues when i take archive backup and put it on standby (error says that the files are already on storage) . So i am unable to refresh .
    i guess it should be done through some scripts .... but how to register archives on the standby site.
    Xml interface through catxdb was also tried(where we can ftp files from asm) but it takes only one file at a time so there will be manual intervention and not effective strategy
    one more question: can i mount a shared drive (archives on this location) on primary RAC and same to be mounted on standby. If this is possible then i just need to shutdown the standby and give path of archives in asm and recovery can be done ?
    pls share your feedback.....
    thanks
    [email protected]

    So what I would do is this :
    On the Primary :
    alter system set log_archive_dest_state_2=defer;
    Then stop recovery on the Standby and shutdown the database.
    Startup mount and start recovery again and run you query again on that sequence.
    If it finally clears enable the primary again.
    alter system set log_archive_dest_state_2=enable;
    If not try to register it yourself.
    By chance does this show its waiting for a gap
    select process, status, sequence#, block# from v$managed_standby;Best Regards
    mseberg
    Edited by: mseberg on Aug 23, 2011 8:38 AM

  • Rman duplicate on Active dataguard physical standby

    In DR site. i have to clone the database from pshysical standby database and clone db will be normal db not standby. Is it possible to do rman duplicate from active dataguard? will it support the duplicate database from active database or i have to take the rman backup of standby database and duplicate from backup piece. please advise

    Please check below link
    http://odenysenko.wordpress.com/2012/03/26/rman-duplicate-from-active-database-from-standby-ends-with-ora-01671/
    Hope this answers all your questions,
    Regards,
    http://www.oracleracexpert.com
    ORA-01031: insufficient privileges
    http://www.oracleracexpert.com/2013/02/ora-01031-insufficient-privileges.html
    Error while loading shared libraries: libdb.so.2 - After Migrating REHL4 to REHL5
    http://www.oracleracexpert.com/2013/01/error-while-loading-shared-libraries.html

  • Large import on dataguard (Physical Standby 11.2 )

    Hi experts,
    I have to import a great database (50 Gigabytes) (with impdp) which should be configured with a standby database.
    My Question:
    Should  I make the import before or after the configuration of the standby database?Thanks & regards
    hqt200475
    Edited by: hqt200475 on Sep 7, 2011 8:55 AM

    Do the IMPORT first.
    If you don't you risk messing up the FRA on both the Primary and the Standby side. The redo will stop applying the second the FRA hits the limit on the Standby or worse yet a day or two later when you think you are in the clear. Even if for some reason you don't use FRA shipping all that redo isn't a good idea on a new Data Guard system. You might have another issue and you just compound it by doing an import of this size. On most systems you would be adding an additional 500 plus redo logs to the mix.
    Also you can duplicate the Standby database using RMAN after the import very easily.
    I probably wait a least a few days after I imported on the future Primary before I built the Standby.
    I have a solid duplicate document and will share if you decided to go that route.
    Best Regards
    mseberg

  • 10g dataguard - physical standby database

    Hi Guys,
    DB1 <Primary> - Production
    DB2 <Physial Standby> - DR
    I will need to startup my DB2 in DR segment for testing.
    If i perform the below, will it affect my Production DB? I need it to be up and running as well.
    DR:
    recover managed standby database cancel;
    shutdown immediate;
    startup nomount;
    alter database mount standby database;
    recover standby database until cancel;
    alter database activate standby database;
    thanks

    Hi,
    In 10g version, you can open database database with READ ONLY mode. In that case standby database
    recieve primary generated changes but not apply .
    I see you steps you using ALTER DATABASE ACTIVATE STANDBY DATABASE statement for activating database
    Activate the standby database using the SQL ALTER DATABASE ACTIVATE STANDBY DATABASE statement. This converts the standby database to a primary database, creates a new reset logs branch, and opens the database.*
    If you are not need convert standby database to primary database then , you must use only
    ALTER DATABASE OPEN READ ONLY;
    Regards
    Mahir M. Quluzade
    www.mahir-quluzade.com

  • DataGuard Physical standby

    Hi all,
    11.2.0.1
    Aix 6.1
    My boss instructed me to change every month the SYS and SYSTEM database passwords at PRIMARY database and STANDBY database.
    Is my DG standby db archivelog updates affected by these password change?
    Thanks a lot,
    zxy

    Hi all,
    According to Tsh,
    Conclusion: As long as you specify REDO_TRANSPORT_USER to a user who has SYSOPER privileges on both the primary and the standby databases, then you don't need to copy the password file from the primary database to the standby database whenever you change the sys password on the primary database.
    SQL>GRANT SYSOPER to &USER;
    SQL>ALTER SYSTEM SET REDO_TRANSPORT_USER = <user_name> SID='*';
    So if i grant
    SQL> GRANT SYSOPER TO SYS;
    SQL>ALTER SYSTEM SET REDO_TRANSPORT_USER ='SYS' SID='*';
    Will this work or is this a valid command?
    Thanks a lot,

  • Steps to sync RAC -dataguard

    Hi folks,
    I m having setup with 2 node RAC primary and 2 node RAC Dataguard on 10.2.0.4.0. Dataguard setup is working fine. Dataguard is setup with Standby Redo log group with managed recovery. Due to network issue network issue the transferring archives & applying on standby couldnot take place.The network issue is sorted but now the primary and standby are not in sync.
    I am new with RAC and dataguard combined.Can you proivde suitable document or steps how i can manually sync both.

    Hi;
    Pelase see below which could be helpful for your issue:
    RAC & DataGuard (Physical Standby)
    RAC & DataGuard (Physical Standby)
    Also see:
    http://www.bestremotedba.com/oracle-10g-dataguard-sync-standby-database/
    If those are not help you can move your issue to Forum Home » Grid Computing » Real Application Clusters which you can get more quick response
    Regard
    Helios

  • Physical standby database in RAC system

    Hi EXperts,
    We have a 4 nodes 11.2 cluster system. i will set a data guard as a disaster recovery mothods.
    As a physical standby database set, does we need to configure same nodes (4 nodes) in other city as primary database cluster system?
    Can we set physical standby database is in 2 nodes cluster system and primary database is in 4 nodes cluster system?
    Thanks explaining!
    Jin

    Can we set physical standby database is in 2 nodes cluster system and primary database is in 4 nodes cluster system?Yes. You can setup 2 node RAC as physical standby and also with different memory parameters. But, the only issue is when DB failover from primary to standby, the applications connect to 2 node RAC in place of 4 node RAC and may be overloaded.

  • Related to recovery in Physical standby database in RAC

    In Physical Standby database all instance involved in recovery processes or any one instance will be their in in recovery mode
    If is like this another instance will be for high availabily can any one in forum explain me it will be help full

    With your Primary database being RAC, the Physical Standby does not have to be RAC, although, obviously it would be preferred to have scalability as required at a DR site.
    Whether your Standby is RAC or non-RAC, the automatic Recovery that is done at the Standby is done by one instance only. It would be applying the ArchiveLogs from all the threads (i.e. instances) of the Primary.
    Database Recovery is always done by a single instance.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

Maybe you are looking for