Active Dataguard with FSFO

We have an 11gR2 database with physical standby (Dataguard with Fast start Fail over) implementation and considering the options for including Active Dataguard configuration on the above setup for using standby database for reporting.
Has anyone configured 'Active dataguard' with combination of FSFO, any pointers on lessons learnt or limitations on this combinations would be greatly appreciated.
Thank you very much for your time.

An issue with Active Data Guard is the design of service level agreements. In the event of failover, service will degrade - perhaps dramatically. Clients are often very keen to bring the standby into use because it appears to be a way of saving money, but what will you do if it is activated? Your SLA will have to state either that the query service will be disabled, or that both the r/w and the r/o services will continue to be available, but at greatly reduced performance (which you must quantify). You need to get the client's agreement and document this.

Similar Messages

  • TAF On 11g DataGuard with FSFO

    Hi All,
    Today, i have created TAF for my 11.1.0.7 Oracle database running on RHEL 5.4 64 bit.
    I have configured my databases with FSFO enabled. (MaxAvailibility with LGWR SYNC AFFIRM transport)
    I created TAF with following entries:
    1) Created and enabled a dedicated service in primary :
    I have local_listener parameter set in my primary and standby databases.
    begin
    dbms_service.create_service('taf_test','taf_test');
    end;
    begin
    DBMS_SERVICE.START_SERVICE('taf_test');
    end;
    begin
    dbms_service.modify_service
    ('taf_test',
    FAILOVER_METHOD => 'BASIC',
    FAILOVER_TYPE => 'SELECT',
    FAILOVER_RETRIES => 200,
    FAILOVER_DELAY => 1);
    end;
    /2) Made sure that listener is listening to above created service:
    lsnrctl services l_payee1fe_dg_001
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 21-JAN-2010 09:52:27
    Copyright (c) 1991, 2008, Oracle.  All rights reserved.
    Services Summary...
    Service "taf_test.us" has 1 instance(s).
      Instance "payee1fe", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:13 refused:0 state:ready
             LOCAL SERVER3) TNS Entry :
    taf_test.us=
    (DESCRIPTION=
            (SDU= 32767)
            (ENABLE=BROKEN)
            (ADDRESS_LIST=
                    (FAILOVER=ON)
                    (LOAD_BALANCE=YES)
                    (ADDRESS=(PROTOCOL=TCP)(HOST=payee1fe-orasvr.db.us.com)(PORT=58003))
                    (ADDRESS=(PROTOCOL=TCP)(HOST=payee1fe-orasvr.db.us.com)(PORT=58003))
            (CONNECT_DATA=
                    (SERVICE_NAME = taf_test.us)
      )4)Trigger for setting service on appropriate primary database :
    create trigger taf_test after startup on database
    declare
    v_role varchar(30);
    begin
    select database_role into v_role from v$database;
    if v_role = 'PRIMARY' then
    DBMS_SERVICE.START_SERVICE('taf_test');
    else
    DBMS_SERVICE.STOP_SERVICE('taf_test');
    end if;
    end;
    /5) Ran a big SELECT on primary and after 5 sec, kill primary's pmon to do fail-over.
    6) After sometime, i saw that SELECT was hanged for some time and once, DGMGRL has open new primary (org standby), startup trigger got fired and SELECT started fetching rows from the point where it hanged.
    In that way, my TAF was working properly as expected.
    My question is :
    How come new Primary got the session state of SELECT which originated on old primary and then failed-over to new primary ? I confimed that,SELECT was NOT re-executed on new primary and started fetching rows from the row where it hanged at the time of fail-over.
    Since both the databases have different cache and controlfiles, i want to understand how TAF works on dataguard.
    In RAC,there is always a GRD through which session state can be co-ordinated between different instances. But this is not the case in DG.
    I did not find anything in PRIMARY's alert log. Though STANDBY alert log was containing below statement:
    ALTER SYSTEM SET service_names='taf_test' SCOPE=MEMORY SID='payee1fe';Can anyone shed light on internal working of TAF in DG.
    Regards,
    Bhavik Desai

    Hi,
    Just now i tested,SELECT FAIL-OVER for SELECT with PARALLEL (4) hint. I got below msg and SELECT did not executed on new primary:
    ERROR:
    ORA-25401: can not continue fetches
    4350 rows selected.However, i observed that the session is failed-over to new primary. After getting above msg in SQLPLUS window, when i saw number of slaves given to my new sessions, i got :
    SQL> select *From v$pq_tqstat;
    DFO_NUMBER      TQ_ID SERVER_TYP   NUM_ROWS      BYTES  OPEN_TIME AVG_LATENCY      WAITS   TIMEOUTS PROCES   INSTANCE
             1          0 Producer        19800      65296          0           0          3          0 P002            1
             1          0 Producer        19800      65296          0           0          4          1 P001            1
             1          0 Producer        19800      65294          0           0          3          0 P000            1
             1          0 Producer        19800      65296          0           0          3          0 P003            1
             1          0 Consumer         4351      65296          0           0          8          0 QC              1Does it mean that, SELECT fail-over is only supported for serialized SELECTs ? Or there is other alternative to achive PARALLEL SELECT fail-over ?
    Regards,
    Bhavik Desai
    Edited by: BhavikDe on Jan 24, 2010 11:30 PM

  • Active dataguard with 11i EBS

    We have client presentation for Active data guard with 11i EBS, is this certified with 11i EBS...?
    Please let me know some more information.

    Hi,
    Yes its certificated, please check below thread for notes-steps etc.
    Data Guard setup with 11i apps
    Dataguard for EBS db
    Dataguard for EBS db
    Implement Standby Instance for EBS
    Implement Standby Instance for EBS
    Also see:
    Business Continuity for Oracle E-Business Release 11i Using Oracle 11g Physical Standby Database - Single Instance and Oracle RAC [ID 1068913.1]
    Regard
    Helios

  • My Active dataguard is not applying archives.

    Dears,
    Following is my setup
    =====================
    Primary:
    prod on RAC with 2 nodes
    Database : Oracle 11.2.0.3
    OS OEL 5.7
    storage : ASM
    +DATADG
    +FLASHDG
    Standby:
    sync on single node
    Database : Oracle 11.2.0.3
    storage : ASM
    +DATADG
    +FLASHDG
    I've configured Active dataguard successfully and was able to apply archivelogs successfully instantly.
    Archive log locations are +FLASHDG/prod/ARCHIVELOG/ AND /u02/arch  --- on primary
    Archive log locations are +FLASHDG/stby/ARCHIVELOG/ AND /u02/arch  --- on standby
    On Standby
    ===========
    SQL> select 'Using Active Data Guard' ADG from v$managed_standby m,v$database d where m.process like 'MRP%' ;
    ADG
    Using Active Data Guard
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE
    SQL>
    Upto now everything is ok, means same data is sync on primary and standby. As my archive location was getting full, i've used this SQL query to clean them
    SELECT 'alter diskgroup '||dg.name||' drop file
    ''+'||dg.name||''||SYS_CONNECT_BY_PATH(al.name,'/')||''';'
    FROM v$asm_alias al, v$asm_file fi, v$asm_diskgroup dg
    WHERE al.file_number = fi.file_number(+)
    AND al.group_number = dg.group_number
    AND fi.type = 'ARCHIVELOG'
    START WITH alias_index = 0
    CONNECT BY PRIOR al.reference_index = al.parent_index;
    SELECT 'alter diskgroup '||dg.name||' drop file
    ''+'||dg.name||''||SYS_CONNECT_BY_PATH(al.name,'/')||''';'
    FROM v$asm_alias al, v$asm_file fi, v$asm_diskgroup dg
    WHERE al.file_number = fi.file_number(+)
    AND al.group_number = dg.group_number
    AND fi.type = 'BACKUPSET'
    START WITH alias_index = 0
    CONNECT BY PRIOR al.reference_index = al.parent_index;
    In order to delete ARCHIVE logs which are stored in ASM FLASHDG, which will have a type of "ARCHIVELOG" and "BACKUPSET" i've used this above two queries.
    After performing this steps , my Active dataguard is not applying archives.
    On the primary server, check the latest archived redo log
    SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY sequence#;
    2809 16-APR-13 16-APR-13
    2809 16-APR-13 16-APR-13
    2809 16-APR-13 16-APR-13
    2810 16-APR-13 16-APR-13
    2810 16-APR-13 16-APR-13
    2810 16-APR-13 16-APR-13
    2811 16-APR-13 16-APR-13
    2811 16-APR-13 16-APR-13
    2811 16-APR-13 16-APR-13
    2812 16-APR-13 16-APR-13
    2812 16-APR-13 16-APR-13
    2812 16-APR-13 16-APR-13
    2813 16-APR-13 16-APR-13
    2813 16-APR-13 16-APR-13
    2814 16-APR-13 16-APR-13
    2814 16-APR-13 16-APR-13
    2815 16-APR-13 16-APR-13
    2815 16-APR-13 16-APR-13
    2816 16-APR-13 16-APR-13
    2816 16-APR-13 16-APR-13
    2817 16-APR-13 16-APR-13
    2817 16-APR-13 16-APR-13
    2818 16-APR-13 16-APR-13
    2818 16-APR-13 16-APR-13
    2819 16-APR-13 16-APR-13
    2819 16-APR-13 16-APR-13
    2820 16-APR-13 16-APR-13
    2820 16-APR-13 16-APR-13
    2821 16-APR-13 16-APR-13
    2821 16-APR-13 16-APR-13
    2822 16-APR-13 16-APR-13
    2822 16-APR-13 16-APR-13
    2823 16-APR-13 16-APR-13
    2823 16-APR-13 16-APR-13
    2824 16-APR-13 16-APR-13
    2824 16-APR-13 16-APR-13
    2825 16-APR-13 16-APR-13
    2825 16-APR-13 16-APR-13
    2826 16-APR-13 16-APR-13
    2826 16-APR-13 16-APR-13
    2827 16-APR-13 16-APR-13
    2827 16-APR-13 16-APR-13
    2828 16-APR-13 16-APR-13
    2828 16-APR-13 16-APR-13
    2829 16-APR-13 16-APR-13
    2829 16-APR-13 16-APR-13
    2830 16-APR-13 16-APR-13
    2830 16-APR-13 16-APR-13
    2831 16-APR-13 16-APR-13
    2831 16-APR-13 16-APR-13
    2832 16-APR-13 16-APR-13
    2832 16-APR-13 16-APR-13
    2833 16-APR-13 16-APR-13
    2833 16-APR-13 16-APR-13
    2834 16-APR-13 16-APR-13
    2834 16-APR-13 16-APR-13
    2835 16-APR-13 16-APR-13
    2835 16-APR-13 16-APR-13
    2836 16-APR-13 16-APR-13
    2836 16-APR-13 16-APR-13
    2837 16-APR-13 16-APR-13
    2837 16-APR-13 16-APR-13
    2838 16-APR-13 16-APR-13
    2838 16-APR-13 16-APR-13
    2839 16-APR-13 16-APR-13
    2839 16-APR-13 16-APR-13
    2840 16-APR-13 16-APR-13
    2840 16-APR-13 16-APR-13
    2841 16-APR-13 16-APR-13
    2841 16-APR-13 16-APR-13
    2842 16-APR-13 16-APR-13
    2842 16-APR-13 16-APR-13
    2843 16-APR-13 16-APR-13
    2843 16-APR-13 16-APR-13
    2844 16-APR-13 16-APR-13
    2844 16-APR-13 16-APR-13
    2845 16-APR-13 16-APR-13
    2845 16-APR-13 16-APR-13
    2846 16-APR-13 16-APR-13
    2846 16-APR-13 16-APR-13
    Check the new archived redo log has arrived at the standby server and been applied.
    SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY sequence#;
    2801 15-APR-13 15-APR-13 YES
    2801 15-APR-13 15-APR-13 YES
    2802 15-APR-13 15-APR-13 YES
    2802 15-APR-13 15-APR-13 YES
    2803 15-APR-13 15-APR-13 YES
    2803 15-APR-13 15-APR-13 YES
    2804 15-APR-13 15-APR-13 YES
    2804 15-APR-13 15-APR-13 YES
    2805 15-APR-13 15-APR-13 YES
    2805 15-APR-13 15-APR-13 YES
    2806 15-APR-13 15-APR-13 YES
    2806 15-APR-13 15-APR-13 YES
    2807 15-APR-13 15-APR-13 YES
    2807 15-APR-13 15-APR-13 YES
    2808 15-APR-13 16-APR-13 YES
    2808 15-APR-13 16-APR-13 YES
    2809 16-APR-13 16-APR-13 YES
    2809 16-APR-13 16-APR-13 YES
    2810 16-APR-13 16-APR-13 YES
    2810 16-APR-13 16-APR-13 YES
    2811 16-APR-13 16-APR-13 YES
    2811 16-APR-13 16-APR-13 YES
    2812 16-APR-13 16-APR-13 IN-MEMORY
    2812 16-APR-13 16-APR-13 YES
    So could anyone help me to resolve this issue. Anticipating your response at the earliest.
    Regards,
    VIKHAR
    Edited by: VIKHARAHMED on Apr 16, 2013 9:38 AM

    Here is the alert log file
    Media Recovery Log +FLASHDG/stby/archivelog/2013_04_16/thread_2_seq_1476.1987.812900733
    Tue Apr 16 18:56:42 2013
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[1]: Assigned to RFS process 16803
    RFS[1]: Selected log 12 for thread 2 sequence 1485 dbid 220323208 branch 808484882
    Tue Apr 16 18:56:42 2013
    RFS[2]: Assigned to RFS process 16807
    RFS[2]: Opened log for thread 2 sequence 1484 dbid 220323208 branch 808484882
    Archived Log entry 6324 added for thread 2 sequence 1484 rlc 808484882 ID 0xd21a288 dest 10:
    Tue Apr 16 19:09:02 2013
    RFS[1]: Selected log 11 for thread 2 sequence 1486 dbid 220323208 branch 808484882
    Tue Apr 16 19:09:02 2013
    Archived Log entry 6325 added for thread 2 sequence 1485 ID 0xd21a288 dest 1:
    Archived Log entry 6326 added for thread 2 sequence 1485 ID 0xd21a288 dest 2:
    Tue Apr 16 19:12:23 2013
    RFS[1]: Selected log 12 for thread 2 sequence 1487 dbid 220323208 branch 808484882
    Tue Apr 16 19:12:23 2013
    Archived Log entry 6327 added for thread 2 sequence 1486 ID 0xd21a288 dest 1:
    Archived Log entry 6328 added for thread 2 sequence 1486 ID 0xd21a288 dest 2:
    Tue Apr 16 19:14:41 2013
    "alert_stby.log" 845L, 33990C 782,1 94%
    Tue Apr 16 19:17:27 2013
    Archived Log entry 6331 added for thread 2 sequence 1488 ID 0xd21a288 dest 1:
    Archived Log entry 6332 added for thread 2 sequence 1488 ID 0xd21a288 dest 2:
    Tue Apr 16 19:25:51 2013
    RFS[1]: Selected log 11 for thread 2 sequence 1490 dbid 220323208 branch 808484882
    Tue Apr 16 19:25:51 2013
    Archived Log entry 6333 added for thread 2 sequence 1489 ID 0xd21a288 dest 1:
    Archived Log entry 6334 added for thread 2 sequence 1489 ID 0xd21a288 dest 2:
    Tue Apr 16 19:51:02 2013
    RFS[1]: Selected log 12 for thread 2 sequence 1491 dbid 220323208 branch 808484882
    Tue Apr 16 19:51:02 2013
    Archived Log entry 6335 added for thread 2 sequence 1490 ID 0xd21a288 dest 1:
    Archived Log entry 6336 added for thread 2 sequence 1490 ID 0xd21a288 dest 2:
    Tue Apr 16 20:37:12 2013
    RFS[1]: Selected log 11 for thread 2 sequence 1492 dbid 220323208 branch 808484882
    Tue Apr 16 20:37:12 2013
    Archived Log entry 6337 added for thread 2 sequence 1491 ID 0xd21a288 dest 1:
    Archived Log entry 6338 added for thread 2 sequence 1491 ID 0xd21a288 dest 2:
    Tue Apr 16 21:08:23 2013
    RFS[1]: Selected log 12 for thread 2 sequence 1493 dbid 220323208 branch 808484882
    Tue Apr 16 21:08:23 2013
    Archived Log entry 6339 added for thread 2 sequence 1492 ID 0xd21a288 dest 1:
    Archived Log entry 6340 added for thread 2 sequence 1492 ID 0xd21a288 dest 2:
    Tue Apr 16 22:16:06 2013
    RFS[1]: Selected log 11 for thread 2 sequence 1494 dbid 220323208 branch 808484882
    Tue Apr 16 22:16:06 2013
    Archived Log entry 6341 added for thread 2 sequence 1493 ID 0xd21a288 dest 1:
    Archived Log entry 6342 added for thread 2 sequence 1493 ID 0xd21a288 dest 2:
    Tue Apr 16 22:31:46 2013
    RFS[1]: Selected log 12 for thread 2 sequence 1495 dbid 220323208 branch 808484882
    Tue Apr 16 22:31:46 2013
    Archived Log entry 6343 added for thread 2 sequence 1494 ID 0xd21a288 dest 1:
    Archived Log entry 6344 added for thread 2 sequence 1494 ID 0xd21a288 dest 2:
    Wed Apr 17 09:31:59 2013
    RFS[1]: Selected log 11 for thread 2 sequence 1496 dbid 220323208 branch 808484882
    Wed Apr 17 09:32:00 2013
    Archived Log entry 6345 added for thread 2 sequence 1495 ID 0xd21a288 dest 1:
    Archived Log entry 6346 added for thread 2 sequence 1495 ID 0xd21a288 dest 2:

  • Oracle Active Dataguard 11g - Passwords

    Hi all
    Environment description: Production database, 11.2.0.3 version, standalone running on Solaris and an Oracle Active Dataguard database in read only mode, same version and operating system.
    Question: The users passwords and sys/system passwrod (orapw ) could be different in the ADG environment? I mean, could the orapwd file and user password be changed in the Dataguard database ?
    Thanks a lot.

    user1687821 wrote:
    Hi All,
    Please suggest a good step by step guide to implement Oracle Active Dataguard on Oracle 11g, OS : RHEL 5.4
    Have searched a couple of documents, but ending up with physical or logical dataguard setup guides...
    Please suggest end to end steps guide for Active Dataguard Implementation
    DB : Oracle 11g Release 2
    OS : RHEL 5.4
    ThanksHi,
    Active dataguard is option after configuring dataguard.
    You can put standby database in Open(read only) mode also you can enable Recover(MRP) while open so this can be used for reporting purpose too.
    Please refer below links for configuring them.
    http://www.oracle-class.com/wp-content/uploads/2011/01/dataguard/11gR2%20Physical%20Data%20Guard%20Setup%20%20project,%20with%20Active%20Data%20Guard%20option.pdf
    http://www.databasejournal.com/features/oracle/article.php/3834931/Using-Oracle-11gs-Active-Data-Guard-and-Snapshot-Standby-Features.htm
    http://www.oracle-base.com/articles/11g/DataGuardSetup_11gR2.php
    http://www.oracle.com/technology/deploy/availability/pdf/maa_wp_11gr1_activedataguard.pdf
    HTH.

  • Enabling the Active Dataguard and Real Time Apply

    11.2.0.2 on AIX
    I gather that , to enable Active Dataguard, you need to execute
    STARTUP ; ----not startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;The above commands will enable both Active Dataguard (Real Time QUERY) and Real Time Apply. Right?
    To enable just 'Real Time Apply' , I need to
    startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;Am I right ?
    Question on 'WITH SESSION SHUTDOWN' clause
    While googling I've come across the following variant with an additonal 'WITH SESSION SHUTDOWN' clause
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE WITH SESSION SHUTDOWN;What difference does this clause bring ?
    Is this claused used to enable Active Dataguard feature or 'Real Time Apply' or both ?

    I gather that , to enable Active Dataguard, you need to execute
    STARTUP ; ----not startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    The above commands will enable both Active Dataguard (Real Time QUERY) and Real Time Apply. Right? Yes, It will be in both recovery / realtime + Read only mode, Also you can use
    To enable just 'Real Time Apply' , I need to
    startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;Am I right ?Yes. It will be in just recovery/real time mode.
    Question on 'WITH SESSION SHUTDOWN' clause
    While googling I've come across the following variant with an additonal 'WITH SESSION SHUTDOWN' clause
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE WITH SESSION SHUTDOWN;What difference does this clause bring ?
    Is this claused used to enable Active Dataguard feature or 'Real Time Apply' or both ?It has multiple options based on startup type
    For this example check link of Julian Dyke.
    http://juliandyke.wordpress.com/2010/10/14/oracle-11gr2-active-data-guard/

  • Active dataguard internals

    Hi All,
    Can any one provide me a link or tell me, which is the underlying technology on which the active dataguard works?
    I mean the details functioning of how active dataguard lets us put the database in read only mode and also keeps the standby database in sync with the Prod.
    I know this is a kind of doc question but I did look for it in the docs but I couldnt get what I was looking for.
    Regards,
    Sphinx

    Hi Sphinx,
    In 11g the standby database is also called active standby database, coz you can read the database(ie, you can query using select statement) and at same time log shipping also will occur. Flashback database feature is must and should be enabled at both primary and standby databases, So that you can open the standby database in read/write mode which is called snapshot standby database. The reason is , when you open the standby database in read/write mode, it will create a snapshot(restore point) at that state using the flashback  what you have enabled. when the snapshot is again converted to active standby (read/log apply), the standby database will be restored using the restore point what its create at the time snapshot standby. So both Active standby and flashback database feature tightly coupled to give us a great option to work with.
    Hope this helps.
    Regards,
    Pradeep. V

  • DataGuard with RMAN

    Dataguard and RMAN.
    Got Active DataGuard on a primary database, quite nicely sending its archive logs to its secondary.
    I can quite happily use the Broker and switchover between them.
    Now if I take RMAN backups of the primary database, if I have to failover to the secondary, I'm gonna loose all those backups.
    Well, I can restore the whole database to the backup, cos I can restore the control file, from the backuip and therefore I can restore the whole db.
    But if I want to restore to a tablespace, I wont be able to , cos the db_unique_names names are different, and the DB ID's will be different.
    Same goes if I use a recovery catalog....
    so how do I failover/switchover without loosing my previous rman backups ??

    If I were backup up to Disk than I would come later and back up the back ups to Tape.
    Since a Standby and Primary are the same database with the same DBID you can backup from either server.

  • Choosing protection mode for Active dataguard

    Hi Gurus,
    I'm confused with Active dataguard configuration-What mode do i need to configure physical standby to make use of actice dataguard.I know i can even use maximum performance with standby redolog for real time query.But what is the minimum protection mode to run active dataguard.
    How can i setup a delay of 1 hour for active dataguard in 11gr2?
    Thanks

    You said:
    >
    By default Dataguard is in Maximum performance mode..we can set delay of 1 hour by setting the
    log_archive_dest_2="service=to_standby lgwr async affirm reopen=60"
    or
    log_archive_dest_2="service=to_standby lgwr async delay=60"
    >
    I am sorry, but your first log_archive_dest_2 value is not correct:
    The combination of ASYNC & AFFIRM is not supported and not sensible; REOPEN=60 will not delay the Redo Apply
    See here for a proper explanation of log_archive_dest_n:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/initparams121.htm
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Starup of active dataguard in RAC

    Hi,
    i have a setup of active dataguard in RAC. This is my first time implementing dataguard in RAC.
    Primary - RAC
    Standby - RAC with active dataguard
    when ever standby server(anyone of the RAC instance) reboots it is getting till mount state. And after that how can i get the database be opened and put in recovery mode to do redo apply.
    I tried to push manual script as a startup script . Intially i kept sleep command for 15-20min and then connect to db instance and try to recovery from mounted database. But my mounted database is taking 15-30min to comeup once the server is rebooted.
    please help me how we configure startup statements once the RAC is in mount state(cluster is getting till this point) after server reboot.

    Hello;
    If you are not using Data Guard Broker you need to open the standby database and set it in read only mode and then start the managed recovery as shown below.
    SQL> shutdown immediate;
    SQL> startup
    SQL> recover managed standby database using current logfile disconnect;
    With broker its like this :
    Stop redo apply with the following command from Data Guard Broker
    DGMGRL> EDIT DATABASE '?' SET STATE='APPLY-OFF';
    Open standby read-only via SQL*Plus
    SQL> alter database open read only;
    Restart redo apply via broker
    DGMGRL> EDIT DATABASE '?' SET STATE='APPLY-ON';
    Best Regards
    mseberg

  • Active Dataguard

    If i have to audit selects on the Active dataguard which is now being used for real time reporting ,can this be done with audit_trail=XML?
    Thanks

    Create user on the Primary :
    CREATE USER TIGER
      IDENTIFIED BY SCOTT
      DEFAULT TABLESPACE USERS
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
      GRANT CREATE SESSION TO TIGER; Make sure audit session is on and switch the log :
    audit create session;
    alter system switch logfile;On both the Primary and Standby databases set audit_trail :
    alter system set audit_trail='XML' scope=spfile;Stutdown the primary :
    shutdown immediate;On the standby cancel recovery and shutdown :
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> shutdownStartup the primary :
    startup;On the standby startup active data guard
    startup
    recover managed standby database using current logfile disconnect;
    Media recovery complete.In a separate terminal connect as the tiger user.
    As SYS check the session audit on the standby
    SELECT A.USERNAME,
        OS_USERNAME,
        A.TIMESTAMP,
        A.RETURNCODE,
        TERMINAL,
        USERHOST
        FROM DBA_AUDIT_SESSION A
    WHERE USERNAME = 'TIGER' ;
    no rows selected
    SQL> Expected, database is still READ_ONLY
    Check XML file on Standby :
    File : standby_ora_12472_1.xml
    Shows
    DB_User TIGER DB_UserFormat changed for OTN.
    So there's hope!
    The File showed my Desktop name and IP address too.
    Additional items in the XML audit file
    DB_User ( TIGER )
    OS_User
    Userhost
    DBID
    Audit_Type ( SESSION ID)Best Regards
    mseberg
    Edited by: mseberg on Sep 27, 2011 2:22 PM

  • SAN based restoration or RMAN restoration for Active Dataguard

    Hi ,
    We have oracle 11gr2 on aix OS ,I am planning to configure active dataguard for DB size 250 GB.
    FOr DB restoration on standby side  if i go for SAN based OS block level  Relication between primary and standby  how to link DB LUn on standby which are  mounted with diffrent LUN name on standby DB.
    OR RMAN restoartion is only method to go  for standby DB restoartion ..
    My conncerns is if i go for RMAN than it will take more than 8 hours and it will affect my DB performance ..
    Please help me suggest which approch is better ? If it SAN based than how to link LUn to DB file .
    Thanks in Advance.

    Duplicate THREAD: Please continue with your original thread
    SAN based restoration or RMAN restoration for Dataguard configuration

  • How to open a active dataguard?

    Hello,
    I have an Active DataGuard, Oracle version 11.2.0.3 and Solaris 10.
    I have to do a test on the Active DataGuard environment, I want to open this database to run multiple scripts DML. At the end I must return to the DataGuard active as it was before the opening to continue with normal operation.
    I appreciate the document indicate commands or procedure I should run to do this activity.
    regards,
    Milton

    Hello;
    SQL> SELECT database_role, open_mode FROM v$database;
    SQL> alter database recover managed standby database cancel;
    SQL> alter database open;
    SQL> alter database recover managed standby database disconnect from session;
    SQL> select process,status,sequence# from v$managed_standby;
    If you have Data Guard Broker setup then
    DGMGRL > edit database physt set state=apply-off;
    SYS@physt > alter database open read only;
    DGMGRL > edit database physt set state=apply-on;Best Regards
    mseberg
    Edited by: mseberg on Oct 3, 2012 3:12 PM

  • Question on Active Dataguard

    Version : 11.2
    OS Platform : Solaris 10
    I have only worked with 10GR2 physical standby databases. Now we are going to install 11.2 on solaris.
    Read about 11g's Active Dataguard feature by which applications can connect to the standby DB for read only operations.
    Once Active Dataguard feature is enabled (yet to learn ) , If the primary DB is heavily loaded and a session fires a resource intensive SELECT query, Which process will re-direct this SELECT to the less loaded Standby DB ? Is it the listener like it does in RAC ?

    Hello;
    Active Data Guard is a "Reader" database. I don't believe there's a process which will auto off load to it.
    So its great for reporting etc.
    Another Active Data Guard option is that it enables RMAN fast incremental backups on the Active Data Guard physical standby.
    This is another potential way of offloading some processing from the production database to the standby database.
    Active Data Guard is an extra License option and other than a few alter database commands its pretty simple.
    alter database recover managed standby database cancel;
    alter database open; http://oracle.techdata.ch/src/data/pdf/Active_Data_Guard.pdf
    Also worth a look :
    Bug 7633734 : DG ADMIN PAGE REAL TIME QUERY SHOWS DISABLED WHEN ENABLED FOR 11.2 DATABASES
    Best Regards
    mseberg

  • Dataguard with EBSR12.1.1

    Hi,
    We are planning to implement Dataguard with EBS R12.1.1 .
    what is the procedure.
    Regards,
    Muthu

    806099 wrote:
    Hi,
    We are planning to implement Dataguard with EBS R12.1.1 .
    what is the procedure.Business Continuity for Oracle E-Business Release 12 Using Oracle 11g Physical Standby Database [ID 1070033.1]
    Using Active Data Guard Reporting with Oracle E-Business Suite Release 12.1 and Oracle Database 11g [ID 1070491.1]
    Business Continuity for Oracle Applications Release 12 on Database Release 10gR2 - Single Instance and RAC [ID 452056.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Authorization Object is not working when report is modified.

    Hi BW Guru's We have Company Code as Authorization Object .and we have 3 company Codes (xxxx,yyyy,zzzz).where the users under Company code xxxx are not supposed to view company code yyyy,zzzz data etc. I modified an existing Report and transported to

  • Unit of measure in availability overview

    Hi The question is about the possibility to change the unit of measure displayed in the availability overview during a sales order creation as you can do in transaction MD04. The problem is that if you set a quantity in the sales order in a alternati

  • Files with pipe lines

    I have written a package which imports data into my database from a file whose information is delimited by pipes. I use a function that separates the data delimited by the pipes and treats it like different information as Name, Surname, Age, Location

  • Batch Rename Multiple files with different names

    Hi, Is there any way to batch rename multiple files with individual names? I.e IMG_123 changed to  RSP45AS IMG_124 changed to MOL157A IMG_125 changed to AGKH135 IMG_126 changed to MNOLH13 IMG_127 changed to ASFBLUG Etc. Are they any programs or scrip

  • Using iPod Touch with Bluray Player

    I have an LG Bluray player with a built in iPod dock. I recently loaded some movies on my iPod and would love to watch them on my tv. I can bring them up when docked, and the sound works just not the video. Does anyone know the appropriate way to con