Refresh the MV of standby Active Data Guard

Is it possible to refresh a materialized view (quick or full) come from a standby database Active Data Guard open in read mode only w/apply?  Or can I just do the update of the primary?

Hello mseberg,

You made a very good point about the definition of a database of the READER.

After you have answered, I found in MOS: create a distributed materialized view based on a master table on a database in read-only (Doc ID 276023.1)

This explains that it is NOT possible to make a fast refresh of a database shall RO.  However, it *peut* be possible to do a complete refresh of a standby Number.  It depends on the query used to define the MV.  If the RDBMS Analyzer determines the MV is *able* to fast refresh (even if there may not need it right now), so you can't do a full refresh since the eve of the RO.  If the parser determines that the request is NOT able to fast refresh, then you can do a full refresh since the eve of the RO.  I tested this script on 11.2.0.3.8 and found to be true:

CREATE THE MIMI MATERIALIZED VIEW. MV_TEST

TABLESPACE USERS

IMMEDIATE CONSTRUCTION

COMPLETE REFRESH

AS (SELECT * FROM TEST@MIMI_ROSTBY);

ORA-16000: database opened for read-only access

ORA-06512: at "SYS." DBMS_SNAPSHOT_UTL', line 364

ORA-06512: at "SYS." DBMS_SNAPSHOT_UTL', line 446

ORA-06512: at line 1

Now, I've changed the MV query to use a 'one time' feature (ROWNUM), which causes the query become complex (not able to fast refresh).  I can now create a MV on the day before RO, because the query is no longer able to fast refresh and requires no registration on the eve of the RO:

CREATE THE MIMI MATERIALIZED VIEW. MV_TEST

TABLESPACE USERS

IMMEDIATE CONSTRUCTION

COMPLETE REFRESH

AS (SELECT * FROM TEST@MIMI_ROSTBY WHERE ROWNUM > 0);

Created.

Tags: Database

Similar Questions

  • Insert into a primary database of Eve Active Data Guard

    I use Oracle EE 11.2.0.3.8 on Solaris 10.

    I read that it is possible to do an insert in my database for the standby Active Data Guard by redirecting the insert to get on the primary via DB link.  I GLOBAL_NAMES set to TRUE and he needs to stay that way.  This means that I can't create a DB link pointing to my first as such:

    CREATE DATABASE LINK PROD. WORLD WITH THE HELP OF "PROD_PRIM";

    How can I get around this in order to insert data in my standby ADG primary?

    Hello;

    There is an article about it here by Uwe Hesse:

    http://uhesse.files.WordPress.com/2012/03/realtimequery.PDF

    I understand that if GLOBAL_NAMES is true, then, the database link must have the same name as the database in which it connects.

    Best regards

    mseberg

  • Enable and disable Active Data Guard

    We are to build a simple primary (no CARS) to the physical environment pending (no CARS) Data Guard.
    Build us local and then shipment to the customer.
    During our generation we load data and the physical database in Active Data Guard 'mode '.
    To make it easier to check that the data is "protected".

    How to get back to "regular" managed recovery Active Data Guard "mode"?
    We were closing the physical Standby and then reopen in managed recovery "ordinary."
    Is it possible to do WITHOUT closing the physical Standby?

    Published by: user10159866 on April 22, 2010 12:15

    N ° the only way is at the stop of the physics of the day before and then do a START-UP SUPPORT and restart the application. What version do you use?

    Larry

    PS I guess you have Active Data Guard licensed? :^)

  • Active data guard lost synchronization

    Hi guys,.

    I hope you can give me some advice.

    I have a BD PRIMARY in a server and a STANDBY in another server.

    I do not configure these databases and I don't have too much experience with data protection.

    The problem is that the STAND BY lost the sincronization. I just watched a few views on the database and I found that the media database is READ only, so I think that is an Active Data Guard.

    -PRIMARY:

    SQL > SELECT name, State, database_role, open_mode connections, log_mode FROM v$ instance, v$ database;

    STATUS DATABASE_ROLE LOG_MODE CONNECTIONS

    --------- ---------------- -------------------- ------------

    BD PRIMARY READ WRITE ARCHIVELOG

    -STANDBY TIME:

    SQL > SELECT name, State, database_role, open_mode connections, log_mode FROM v$ instance, v$ database;

    STATUS DATABASE_ROLE LOG_MODE CONNECTIONS

    --------- ---------------- -------------------- ------------

    PHYSICAL STANDBY BD READ ONLY WITH APPLY ARCHIVELOG


    -PRIMARY:

    "SQL > select SEQUENCE #, FIRST_TIME NEXT_TIME, APPLIED, ARCHIVES of V$ ARCHIVED_LOG, whose name = ' STANDBY' FIRST_TIME agenda;


    SEQUENCE # FIRST_TI ARC APPLIED NEXT_TIM

    ---------- -------- -------- --------- ---

    56 18/03/15-18/03/15 NO YES

    57 18/03/15-18/03/15 NO YES

    58 18/03/15-18/03/15 NO YES

    59 18/03/15 03/19/15 NO YES

    60 19/03/15 03/19/15 NO YES

    61 19/03/15 03/20/15 NO YES

    ...

    426 13/05/15 13/05/15 NO YES

    427 13/05/15 13/05/15 NO YES

    428 13/05/15 13/05/15 NO YES

    429 13/05/15 05/14/15 NO YES

    430 14/05/15 05/15/15 NO YES

    I saw the newspaper archive all copy them correctly on the standby server, but they apply. I don't know why.

    How can I get the two database will be synchronized? What option I have?

    Best regards...

    Hello, you should check if Fal_server and Fal_client settings are configured in the main bodies and relief.

    In the standby instance fal_server must point to name PRIMARY, as it appears in tnsnames.ora

    fal_client must point in standby mode, as it appears in tnsnames.ora

    In the first instance, fal_server must point to the name of Eve, as it appears in tnsnames.ora, fal_client pointing to primary name, as it appears in tnsnames.ora

    on the other hand, you must restore the automatic sequence 33-55 on the backend and fal then transport and then primary eve because of the resolution of the gap.

    http://docs.Oracle.com/CD/B19306_01/server.102/b14239/log_transport.htm#i1268281

  • Grid d? infrastructure is needed for Active Data Guard fast failover?

    Hello

    I'm currently deploying an Active Data Guard of 11 GR 2 configuration with a captain and two slaves physical standby and failover accelerated for a Java JDBC application. Each instance has a read-only service that is always active and a service of reading / writing that is activated only on the master:

    srvctl add service -d smsgsig1 -s smsgro -l PRIMARY,PHYSICAL_STANDBY -e NONE -m NONE
    srvctl add service -d smsgsig1 -s smsgrw -l PRIMARY -e SELECT -m BASIC -w 10 -z 150
    

    Initially, I had planned to use the Service of Notification of Oracle (ONS) to notify the application in case of change of master, that works, however, after a few tests, it seems that simply leave the retry request enough times in the case of a connection failure is sufficient to re-connect to the new master afterwards, in order to complete any pending transaction.

    So my question is: since I plan not to use ADD-ONS, do I have the grid infrastructure and Oracle Restart at all to deploy Active Data Guard? The documentation does not explicitly require it, and all the necessary tools, including srvctl, exist in the plain 11 GR 2 home. However the mechanism of activation/deactivation of the service will work without restart? To be honest, I don't think it would be, but that this would simplify the deployment, a little, I thought it would be good to ask :-)

    Thank you for your understanding,

    Chris

    Hello;

    The simple answer is no, I could consider changing my order srvctl.

    EI SESSION (type switching must be set to both)

    m BASIC (set on both)

    l PHYSICAL_STANDBY (isn't one of yours in this service role?)
    z - 15 (150 retrys seems too high)

    q (the value TRUE or FALSE)

    w (set on both)

    srvctl add service d smsgsig1 s smsgro-l PRIMARY - SESSION - q TRUE m BASE w 10 EZ 15

    srvctl add service d smsgsig1 s smsgrw-l PHYSICAL_STANDBY - q REAL - m BASE w 10 EZ 15 SESSION

    Best regards

    mseberg

  • Digital switchover and Active Data Guard

    I spin a quarter-Exadata V2 support systems (two instances CARS) and am changing my sleep Physics (an Exadata V1 rack with four RAC instances) in an Active Data Guard configuration (i.e. bearer Real - Time Query). The RDBMS runs 11.2.0.2 with BP7.

    My question is if I need to disable RTQ/Active Data Guard before a planned failover? If this is not the case, the transition process will automatically start QTR on the 'new' standby (i.e. my 'old' primary)? We'll test this on next month, but he was curious to know what to expect in advance.

    I use DGMGRL (Data Guard Broker) to manage the transition to digital.

    Any thoughts?

    Mark

    If you use the broker, as you must do with RAC, the broker must manage everything seamlessly. If it's not, and you need to test this, open an SR with Oracle's Support.

  • Problem link DB between active Data Guard and reports application database

    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Fazlul Kabir Mahfuz wrote:
    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Check this statement that applies to your environment

    * ORA-01555 on Active Data Guard Standby Database [1273808.1 ID] *.

    also

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:8908307196113

  • Fast-Start Failover & Active Data Guard

    Hi experts,

    I set up a 2-nodes with fast failover-Dataguard!

    While tesing the system I have seen that the backup database is to read only State (no editing).

    It means I have a watch guard of active data!

    Active data guard standby is a necessary condition to run the accelerated shift (the license is required?)

    Thanks and greetings

    hqt200475

    To be more precise: READING ONLY one OPEN does not mean that you use queries in real-time, who need the option Active Data Guard. Only if you redo apply while being read-only that is open has Active Data Guard. You can determine by the column OPEN_MODE from v$ database with11.2.

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

    Published by: Uwe Hesse on 25.10.2011 16:26
    Corrected an actress-> Active

  • Active Data Guard and Undo and ora-01555

    Hello

    We have a 11.1.0.7 two nodes primary CARS with a physical standby single instance Active Data Guard. When you run an export datapump since the day before, we get an ORA-01555 while the undo_retention is well beyond the duration of watering for export.

    I'm looking to better understand the cancellation as part of Active Data Guard. Is there any dependency for cancellation between the primary (s) and the day before? Are the settings Cancel (undo_retention, tablespace... undo size) on the primary and independent intelligence on the other?

    Thank you.

    The wait is a physical expectation. An exact copy of the primary. The cancellation to sleep is controlled by it again come from the primary. When the cancellation is replaced in the primary, he gets crushed to the standby regardless of what it executes. You cannot cancel maintained around more on the eve, it is a replica of the primary.

    Increasing the undo tablespace and the primary undo_retention allows more Cancel to keep both primary and standby, but Eve is always controlled by the direction of the primary to cancel it. Of course, you must change the setting to sleep too so that everything is the same when you made the day before to a primary database.

    I hope this helps.

    Larry

  • RMAN 11g Active Data Guard

    I just built my first Active Data Guard 11g... Well, the next thing to do is the RMAN part.
    At this point, I want to know:
    (A) Comment / what you ask that a newspaper has been applied on the side of the eve
    (B) how RMAN knows what has been applied
    (C) if I do the RMAN backup side the day before, won't be there always some difference because there is always some delay between the primary and Standby?

    I assume you mean with RMAN to delete the archive logs? If the newspaper was not delivered and applied to the day before still wont RMAN delete, instead, it displays the following error:

    RMAN-08137: WARNING: log archiving not deleted because it is still necessary

    Until the newspaper has been applied on the eve, this intelligence is built in to 11G (10 g you need a parameter of '_' to get this to work).

    Thank you
    Paul

  • Active data guard for EBS

    Hi all

    EBS r12.2.4

    rhel6.5

    Active Dataguard applies in ebs?

    It is available in 11.1 or 11.2 only and up to?

    Thank you very much.

    JC

    Hello JC,.

    See the following blog: https://blogs.oracle.com/stevenChan/entry/oracle_active_data_guard_111

    See also ""E-Business Suite Oracle Active Data Guard Certifications ". "

    Coco - M

  • Data Guard versus Active Data Guard?

    Environment:

    Oracle on Solaris 5.10 EA 11.2.0.3 database

    I have read several threads here and paid through the documentation, but this point still escapes me.

    When Data Guard to become Active Data Guard?

    When Eve is OPEN and in read mode ONLY all redo logs are actively applied?

    If I stop log apply and OPEN the day before for READONLY access, is this just regular Data Guard?

    I want to of course use Data Guard but not pay for Active Data Guard at this stage.

    Where this is documented?

    Michael, if you listen, it's well to the top of your driveway! :-)

    Thank you very much!!

    -gary

    Hello;

    When a database of the previous day is opened read-only for queries, sorting and reporting.

    Requires a license.

    The day before still applies again.

    http://www.Oracle.com/technetwork/database/features/availability/DS-activedataguard-11gr2-130305.PDF

    See also - 9.2 open a physical database from the previous day-

    Oracle® DataGuard of Concepts and Administration 11 g Release 2 (11.2) E10700-02

    Best regards

    mseberg

    Published by: mseberg on January 29, 2013 08:03

  • Oracle11g R2 Active Data guard using ASM problem?

    I configured oracle11g r2 RAC on 2 notes with the ASM (OS, unix) grid.
    ACR is running.
    Now I'm setting up Active data Guard.

    Under Network instance user + ASM and the listener is running.
    User is running under oracle listener static.
    Any drive is mounted.

    Oracle RAC and Data Guard directory and structure I've kept even.


    Now my problem is below:

    $. / rman target sys/HPinvent123nbl@dcpdb sys/HPinvent123nbl@drpdb ASSISTANT

    Recovery Manager: release 11.2.0.1.0 - Production on Wed Jan 16 16:28:32 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    connected to target database: DCPDB (DBID = 316773134)
    connected to the auxiliary database: DRPDB (unassembled)

    RMAN > database of target duplicate for the eve of the active database.

    From 16 January 13 Db double
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID = 5644 device type = DISK

    content of Script memory:
    {
    backup that copy reuse
    TargetFile ' / u02/app/oracle/product/11.2.0/dbhome_1/dbs/orapwdcpdb1' auxiliary format
    ' / u02/app/oracle/product/11.2.0/dbhome_1/dbs/orapwdrpdb';
    }
    execution of Script memory

    From backup 16 January 13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 1897 instance = dcpdb1 = DISK device type
    Backup finished on 16 January 13
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 16/01/2013 16:28:48
    RMAN-06136: the auxiliary database ORACLE error: ORA-00200: control file could not be created
    ORA-00202: control file: '+ data '.
    ORA-17502: cannot create the file + data ksfdcre:4
    ORA-15001: 'DATA' diskgroup do not exist or are not mounted
    ORA-15055: unable to connect to the ASM instance
    ORA-01031: insufficient privileges

    RMAN >

    Please help. \


    Thank you
    Solaiman

    Is your Oracle asmdba group user name?

    What is the output of command mentioned below

    ID Oracle

  • OIM 11 g database using Active Data Guard recovery

    Hello

    Someone did he do IOM database failover configuration using the active data guard.

    Here are the details
    • Two application in primary servers and one in secondary sites
    • Two databases one in primary and the secondary sites.
    • Two application servers point to the primary database.
    • There is an Active Data Guard set up between primary and secondary data.
    • Secondary database is in stand-by mode.
    • Unique CNAME is configured and actively points to the primary database.
    • Failover of the database, the principal is down and the secondary database is marketed as primary and CNAME is changed to point to the secondary database.
    • All the data sources in Weblogic are configured to use CNAME.

    The problem here is the SID. In the primary, we have JSQOIM1P and in the secondary, the SID is JSQOIMDR.

    So when we switch the error we get is unknown TNS name like Weblogic data sources don't know the JSQOIMDR.

    How do configure us the failover in this scenario?

    Thank you
    Kunal jegou

    Hello

    I was able to achieve this by setting up a unique service name pointing to the primary db SID and the same name of unique service on the secondary db pointing to the db secondary sid.

    For the benefit of the users of the forum.
    CNAME - usoimdb pointing to primaryDBHost and can be changed to secondaryDBHost in the case of DR
    Service name - usoimdbsvc pointing to primaryDBSID and usoimdbsvc to secondaryDBSID on secondary db use

    Sources of data, directdb and Kingdom of security to help the chain of
    JDBC:Oracle:thin:@usoimdb:1523/usoimdbsvc

  • Active Data Guard on DB 11 g and ADF business components

    Does anyone has experiences using business against a data source Active Data Guard components? Y at - it something ADF BC specific, you might need to know/set up regarding the parameters of the Application Module. Of course, we would read only your with her. Sorry it kinda turns out to be a beautiful finished question just want to know if it's a go or one thing more than any other possiblity.

    TheOtherDave,

    It should work perfectly. One thing you will need to know is the passivation of State mechanism used by ADF BC can use a store based on files or DB-table-based store. Obviously, if you want to use the DB-table-based store, you will have to configure it to point to a database where you can write to DB tables, which will be probably different from your database pending of DG. Otherwise, I can't think of specific issues (but I don't him have not personally tested).

    John

Maybe you are looking for