Worklist BPM using Active data ADF to auto-refresh?

Hi all

Jdev: 11.1.1.7.1

Oracle BPM worklist use ADF Active Data Services to automatically refresh the task list table when a new item is pushed into the queue of the user?

Just happened to get a stacktrace error and found ADSFilter at the launch of the BPM list.

at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:248)


Thank you

Srini

Hi Srini,

I do not think that the Oracle BPM Worklist using ADF ADS to automatically refresh the queue of the user (you must manually click the Refresh button).

Antonis

Tags: Fusion Middleware

Similar Questions

  • 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

  • ADFBC change - automatic updating using PUSH - Data Service entity Active?

    Hi all

    Jdev Version: 11.1.1.7.1

    Summary of the problem: I have a table in the user interface based on a line of open readonly SQL base tickets showing VO. The queue will be worked by several people of support at the same time. So, it is ideal that the queue Auto - refreshes to collect a ticket from the table in the user interface if someone else picked up the ticket & closed. The UI is equipped with filters - so think the option is to push to an activeOutputText and then refresh the table UI using PPR.

    Ofcourse Poll is an option - but am inclined to PUSH as it seems most optimal.

    But the documentation around the use of live data for ADFBC is very confusing. Most of the examples out there talking about external data sources or a direct change in DB as an event in a first time - not a change of entity as an event trigger object. I have a few queries-

    1. is JMS the only way by which the changes of the entity object can be listened to or is there any other mechanism?

    2. on the binding of the tree on the definition of the page, we see ChangeEventPolicy with an option like "push." When is it useful?

    3. any good example of simple use ADFBC with live data?

    4. is my hypothesis on the af: poll be bad valid? Leave the configured push with "long-polling" is much better than a 'af:poll '.

    Thanks in advance!

    1. is JMS the only way by which the changes of the entity object can be listened to or is there any other mechanism?

    I guess you can use any type of mechanism to queue, JMS is 'natural' because that is part of Java EE (so it is included in the Java EE as Weblogic servers)

    2. on the binding of the tree on the definition of the page, we see ChangeEventPolicy with an option like "push." When is it useful?

    It is used in combination with the active data

    3. any good example of simple use ADFBC with live data?

    http://technology.AMIS.nl/2012/06/19/notifying-ADF-applications-of-database-changes-fast-and-lean-using-Active-data-service-for-server-to-client-push-part-two/

    4. is my hypothesis on the af: poll be bad valid? Leave the configured push with "long-polling" is much better than a 'af:poll '.

    Well, that depends on the number of users, refresh rate...

    But for your use case, push is probably much better than af: poll

    Have you thought about putting your VO readonly to the module of the shared application (to the level of the application): Sharing of Instances of the Application Module View (this was also supported for notifications of changes unnecessary db)?

    Dario

  • Active data services

    Hey,.
    I use active data services to update an array element with the use of database change notifications. I was able to view the changes in the database, that they take place. The problem is that the data inserted will be added at the end of the table and if I want to add it at the beginning or in other places, it would be difficult to change the hash table (reduce performance) to include the new data line (I'll have to push the values in the hash table and add the new at the top so that it appears at the beginning of the table).

    So the question is how can I do this more effectively?

    Is it possible to use another data structure where it will be possible to add data to a post that will automatically push the other values?

    Published by: mangun November 19, 2009 17:05

    Hello

    not sure on the AP, in you use JDeveloper 11 g R1 PS1 (11.1.1.2) us proxy to frame which has a method

    /**
    * built the ActiveDataUpdateEvent .
    *
    @param type the type of the event change, could be updated, INSERT,
    * REMOVE, REFRESH, etc.
    the changeCount changeCount @param
    @param key the key of the line (in the case of CollectionModel)
    @param insertKey key to indicate the insertion position
    @param genericConversion param passed to the internal call
    *convertKeyPath
    @param names the names of the attributes to modify
    @param values the values of the attributes to be changed
    * @return the ActiveDataUpdateEvent
    */
    public static (buildActiveDataUpdateEvent) ActiveDataUpdateEvent
    Type of ActiveDataEntry.ChangeType,
    int changeCount,
    The object of the [] key,
    Object [] insertKey,
    String [] names,
    Object [] values)

    ...

    The insertKey can be used for specific key to the line where the new line should be inserted. I was not working with the API set prior to JDeveloper 11 g R1 PS1, then all the I can say is that if this works with the existantespourlesproduitsphytopharmaceuti, then it works with manual API so

    See:

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/adv_ads.htm#ADFFD19611

    Frank

  • 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

  • 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

  • ORA-29975: cannot save a query in the middle of a transaction active Castle ADF

    Hello

    I use JDeveloper 12.1.3. 64 bit.

    I have a unique feature on FirstEO EO object validator is based:

    public boolean validateSomeThingCheckRule() {}

    Boolean flag = false;

    Set of rows from the rowset = this.getMyVO1 (); / * an accessor to ViewObject MyVO * /.

    rowSet.setRangeSize(-1);

    rowSet.executeQuery (); /

    Line myRow = rowSet.first ();

    If (myRow! = null) {}

    .. .do something

    if(Something>0) {}

    flag = true;

    }

    else {}

    flag = false;

    }

    }

    return of flag;

    }

    The validator works well.

    I also Module of Application with java AMImpl class, where I replace before the commit operation:

    @Override

    {} public void beforeCommit (TransactionEvent transactionEvent)

    MyViewObjectImpl firstViewObjectImpl = getFirstVO1 (); / * Raturns FirstVO based on FirstEO * /.

    MyViewRowImpl firstViewRowImpl = (MyViewRowImpl) firstViewObjectImpl.getCurrentRow ();

    Set of rows myRowSet = (all lines) firstViewRowImpl.getAttribute ("MyVO1"); / * an accessor to ViewObject MyVO, as in the EO validator, they have both access same view MyVO object * /.

    MyRow = myRowSet.getRowSet () such () line; / * Here I have: ORA-29975: cannot save a query in the middle of an active transaction Castle * /.

    / * do something...*/

    super.beforeCommit (transactionEvent);

    }

    Can someone explain to me why and help me with the solution. Thx a lot.

    This is probably related to database change notifications.

    Maybe you have enabled auto-refresh on this VO?

    In addition, postings in beforeCommit() method of coding is not very good practice: this is the 'overall' method so it is called for each commit on each page, and in some cases, this method can be called by framework: http://andrejusb.blogspot.ba/2013/03/coding-validation-in-adf-bc-view-object.html

    Dario

  • ADF_FACES - 60003:Component with the ID: pt1:cil2 not registered Active data.

    When I generate a PDF reports using < af:fileDownloadActionListene > and Ireport this erros fires when I click on active tab.
    I use Studio Edition Version 11.1.2.3.0:

    Pt1 is a < af:pageTemplate >
    cil2 we < disabled af:commandImageLink = "#{!}" bindings. CreateInsertEnc.enabled}"id ="cil2 ".



    < af:commandImageLink id = "cil11".
    Binding = "#{backingBeanScope.BakingDocument.cil11} '"
    Icon="/pictures/printer.png".
    shortDesc = "Print" >
    < af:fileDownloadActionListener method="#{backingBeanScope.BakingCotizar.PrintDoc}"/ >
    < / af:commandImageLink >
    Error log:

    java.lang.IllegalStateException: ADF_FACES - 60003:Component with the ID: pt1:cil2 not registered Active data.
    at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.unregisterComponent(PageDataUpdateManager.java:600)
    at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    http://tompeez.WordPress.com/2011/11/16/jdev-11-1-2-1-0-dealing-with-adf_faces-60003-error-component-with-ID-r11cb1-not-registered-for-active-data/

    Dario

  • Active data service

    I'm looking for information on the Service of Active data or server push.

    The only information I found is a Google Talk web client written in ADF (TP4), who no longer works with JDev 11 g.
    Also, he made reference to Annex H of the manual, which no longer exists.

    Can someone point me out if it actually works and documentation / sample I can use?

    Thank you
    Jonny

    We have removed Active current production JDeveloper 11 g Data Services - until he is a little better prepared.
    Should be there in the next major release of JDeveloper.

  • Watches of switch resets the activity data?

    Switching between my two watches resets activity data and replaces the data on the iPhone. Go back to the first watch updated the iPhone to see again all activities and achieved the objectives for the day but it now shows double badges for the longest series of movement and intelligence shows me have resisted for only 8 hours, even if the chart has 13. Anyone else having issues with activity and several watches? I bought the second one, because my first has been repaired/replaced, which took some time.

    Hi JWins,

    Thank you for using communities Support from Apple!

    I understand that switching between Apple watches has affected the data on your iPhone. In this case, I recommend reading on the following article to ensure that the process that you use to switch watches is identical to what is described in the article. Your progress should update automatically after activation.

    Use more than one Apple Watch with your iPhone - Apple Support

    Best!

  • Incorrect activity data

    Was wondering if anyone had any suggestions on how to correct the incorrect activity data? My wife has reduced its objectives to about 200 calories per day just to experiment with the application activity and she is still unable to achieve this goal, unless it's one day, she does a workout. She's up and down of the markets all day at work (which certainly would increase the heart rate to be considered exercise.)

    Just curious to know if there is something you miss. You need to be a vegetable not to burn 200 calories per day. Objectives of settlement also work when they feel like it.

    There are also times when she goes for a mile 3 fast walking up and down the hills and he gave her 10 minutes of exercise.

    Hello

    Every minute movement equaling or exceeding the intensity of a brisk walk took into account in the daily exercise goals and moving of your wife.

    If she supports outdoor records his iPhone with him and walks or runs as training via the application of the session training, data GPS can estimate its distance and pace. Otherwise, it is important for his arms swinging naturally as she walks or races, because the watch relies on the movement of arms (identified through the built-in accelerometer) to follow the movement. Unless the application of the training session is used, heart rate data are not required account in the estimate of exercise or calories. The daily focus of travel is also active energy / calories (rest energy / calories are not taken into account).

    Calibration of watch your wife will allow him to estimate more precisely various fitness and results related to the activity (by teaching how his arm movements relate to "Stride" lengths at different speeds).

    Calories and other calculations also depend on his personal information. To verify that it was entered correctly and update over time:

    -On his iPhone, in the application of Eve, go to: My Watch (tab) > health > edit (top-right).

    More information:

    Use the activity on your Apple Watch - Apple Support

    Use of the workout on your Apple Watch - Apple Support

    Calibrate your Apple Watch for better accuracy of training and activity - Apple Support

  • Apple music and use of data in offline mode

    I need someone to address this concern:

    I downloaded a number of playlists and songs on my iPhone for offline listening. Even though I'm in my car, I have to listen to these songs & playlists. I noticed that I always use data for the application of music and also some data in my system services on my iPhone.

    Why is this happening? I was under the assumption that if I listen to the music that has been downloaded for listening offline, there is no use of data...

    Thank you

    Your music will be always connect to Apple and validate that you have an active Apple music subscription so that you can play music downloaded in offline mode. I suspect that's what you see, unless the use of data is important.

  • Invoking applications using active text - how to configure?

    I would liketo use invocation of active text

    https://developer.BlackBerry.com/HTML5/documentation/beta/active_text.html

    I was able to save the other calls, but not one that is using Active text.

    I would like to use regexp to retrieve the expected text. The idea is to be able to find block valid PGP data in message email or bbm etc. My regexp is: [-] {5} BEGIN PGP [A - Z] * [---] {5} [\\S\\s] * [---] {5} END PGP [A - Z] * [---] {5}

    but I tried the simplest possible models and they are not recognized (in the email).

    Any suggestions?

    Is it possible to use the active text at all?  Someone at - it tried? What is a configuration?

    I added in my config.xml file by the example of the Web page, but it doesn't, of course.

    Hello

    It is confirmed for the BB team that (for now: 2014-04-24) invocation of active text works that for "uri:", and not for the regex.

  • Update of the data in the Table using XMLTYPE DATA

    I did insertions using XMLTYPE data but have never done it and update. Can someone give me some advice?

    PROCEDURE ADD_LABORDER_CODES)

    IN_ORDERCODESXML IN CLOB DEFAULT NULL,

    Number of OUT OUT_AFFECTEDROWS

    )

    AS

    X SYS. XMLTYPE;

    BEGIN

    X: = SYS. XMLTYPE. CREATEXML (IN_ORDERCODESXML);

    INSERT INTO MAINT_LABORD_CODES)

    INSERT INTO MAINT_LABORD_CODES)

    LABORD_CODE_ID,

    COMPENDIUM_ID,

    ORDER_CODE,

    ORDER_DESC,

    ACTIVE,

    TIMESTAMP,

    MODIFIED_BY)

    SELECT MLOCDS_SEQ. NEXTVAL,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/COMPENDIUM_ID') AS COMPENDIUM_ID,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/ORDER_CODE') AS ORDER_CODE,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/ORDER_DESC') AS ORDER_DESC,.

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/LOINC_CODE') AS LOINC_CODE,

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/ACTIVE') AS ACTIVE.

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/TIMESTAMP') AS TIMESTAMP.

    EXTRACTVALUE (VALUE (MLOC), '/ ORDERCODE/MODIFIED_BY') AS MODIFIED_BY

    TABLE (XMLSEQUENCE (EXTRACT(X,'/ORDERCODES/ORDERCODE'))) NMCO;

    OUT_AFFECTEDROWS: = NUMBER OF ROWS SQL %;

    EXCEPTION

    WHILE OTHERS THEN

    dbms_output.put_line (SQLERRM);

    RAISE_APPLICATION_ERROR (-20001, SQLERRM);

    END;

    Example of use of the FUSION-

    If the line exists in the target table (based on the COMPENDIUM_ID and ORDER_CODE values), the UPDATE is, if not to INSERT:

    declare
    
      in_ordercodesxml  clob :=
      '
      
        500
        696231
        ABO Group & Rh Type
        NULL
        12345
        Y
        2014-08-13
        1
      
    ';
    
    begin
    
      merge into maint_labord_codes t
      using (
        select compendium_id
             , order_code
             , order_desc
             , loinc_code
             , active
             , timestamp
             , modified_by
        from xmltable('/ORDERCODES/ORDERCODE'
               passing xmltype(in_ordercodesxml)
               columns COMPENDIUM_ID    number(10)    path 'COMPENDIUM_ID'
                     , ORDER_CODE       varchar2(50)  path 'ORDER_CODE'
                     , ORDER_DESC       varchar2(250) path 'ORDER_DESC'
                     , LOINC_CODE       varchar2(10)  path 'LOINC_CODE'
                     , ACTIVE           varchar2(1)   path 'ACTIVE'
                     , TIMESTAMP        date          path 'TIMESTAMP'
                     , MODIFIED_BY      number(10)    path 'MODIFIED_BY'
             )
      ) x
      on (     t.compendium_id = x.compendium_id
           and t.order_code = x.order_code )
      when matched then update
        set t.order_desc = x.order_desc
          , t.loinc_code = x.loinc_code
          , t.active     = x.active
          , t.timestamp  = x.timestamp
          , t.modified_by = x.modified_by
      when not matched then insert
      (
        labord_code_id
      , compendium_id
      , order_code
      , order_desc
      , loinc_code
      , active
      , timestamp
      , modified_by
      )
      values (
        mlocds_seq.nextval
      , x.compendium_id
      , x.order_code
      , x.order_desc
      , x.loinc_code
      , x.active
      , x.timestamp
      , x.modified_by
      );
    
    end;
    /
    

    Also note that I used XMLTABLE instead of TABLE/XMLSEQUENCE, which is much easier to use (and not deprecated in the latest versions).

    You have not precisely the date format in the TIMESTAMP element so I assumed a conform to W3C.

    If you have a problem with this part, return to a projection of VARCHAR2 and use TO_DATE with actual size.

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

Maybe you are looking for