XmlBean to implement an incremental update?

Assume that I have an object A that extends XmlBean.
A has two object fields B and C.
Assume that operations on A are either modify(B), modify(C), or modify (B,C), which overwrite fields B, C, or B&C respectively.
Is there a way to maintain a set of A objects in a distributed cache such that one does not need to retrieve the whole object A to perform single field modifications (B or C)?
For example, modify(B) and modify(C) operations should be implemented lightweight. One should not need to retrieve field C during modify(B) in order to update field B. Calling cache.get() blindly is a no-no.
This sort of functionality seems relavant in Web Services context, where one can easily ignore parts of a message that are irrelevant, or not understood. One can also deal with a message that has incomplete data, i.e., an XML message for an Object A with only a B value. This is provided by messaging in XML. Is there a similar construct in Coherence?
Message was edited by:
bulut

Thanks Cameron.
A custom EntryProcessor that takes as input:
1) ReflectionUpdater (for field identification)
2) the new field object value (to override)
works well.

Similar Messages

  • Differential Incremental Backup or Incrementally Updated Backup?

    DB Version:11g
    DB Size:450Gb
    DB type: OLTP (storing retail warehouse transactions)
    To implement a proper backup strategy, we are currently weighing the Pros and Cons of Differential Incremental Backup and Incrementally Updated Backup.
    I understand that , for Incrementally Updated Backup , the level 0 backup must be stored in FRA. We don't want to configure FRA as of now.
    Which backup strategy would you choose for a similair environment?

    I don't think that 11g RMAN level 0 backup need to use FRA: can you provide us the link to Oracle doc ?
    When designing your backup strategy you need to define:
    RTO: recovery time objective
    RPO: recovery point objective.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14210/hadesign.htm
    To meet a low RTO objective, you may need to use incrementally updated backup because it should be faster to recover from incrementally updated backup compared to differential incremental backup.

  • Implement an internal update server.

    How can i implement an internal update server to make incremental deployments with a customized version of Firefox.

    Hi core-el,
    First of all, Thank you very much for your replies.
    Now i just want to make sure about the following:
    I do a customization preference on Firefox 10.0.12 and packaging it to msi file (i do it by adding some files firefox.cfg etc...) and when installed it on any PC the Firefox installed successfully with all new preference, then i set "app.update.url" preference to my local installed Apache server (http://localhost/%PRODUCT%/%VERSION%/%LOCALE%/update.xml ).
    update.xml file contains the update to version 12.
    then chose "check for updates" from "Help" menu and i get the updated version of firefox with all customized preference.
    this mean that Upgrading Firefox will replace its files, but it will not remove the manually added files.
    So that there is no needs to customized the MAR file.
    i tried this and its work fine for me. please confirm that , thank you very much again, waiting your response :)

  • Not able to see ikm oracle incremental update and ikm oracle slowly changing dimensions under PHYSCIAL tab in odi 12c

    not able to see ikm oracle incremental update and ikm oracle slowly changing dimensions under PHYSCIAL tab in odi 12c
    But i'm able to see other IKM's please help me, how can i see them

    Nope, It has not been altered.
    COMPONENT NAME: LKM Oracle to Oracle (datapump)
    COMPONENT VERSION: 11.1.2.3
    AUTHOR: Oracle
    COMPATIBILITY: ODI 11.1.2 and above
    Description:
    - Loading Knowledge Module
    - Loads data from an Oracle Server to an Oracle Server using external tables in the datapump format.
    - This module is recommended when developing interfaces between two Oracle servers when DBLINK is not an option.
    - An External table definition is created on the source and target servers.
    - When using this module on a journalized source table, the Journaling table is first updated to flag the records consumed and then cleaned from these records at the end of the interface.

  • Incrementally updated backup and EMC NMDA

    Hello Everyone,
    I'm kind of a newbie in setting up networker module for oracle, to backup database to tape. We use the oracle's suggested backup strategy to backup DB to Disk first using the incrementally updated backups with recovery set to 3 days (RECOVER COPY OF DATABASE WITH TAG ... UNTIL TIME 'SYSDATE-3') , which helps us to recover DB to any point in time using the backup files in disks vs. going to tape. After backup to disk, we backup recovery area to tape nightly. However, we do want to maintain backup Retention Policy of 1 month. Couple of questions,
    1. If i set RP to recovery window of 31 days in RMAN, then backups don't obsolete at all. this forces me to set RP in networker and they don't recommend setting RP in both RMAN and networker. how is this done generally to obsolete backups from tape as well as rman (catalog in CF) with above strategy. perhaps in this case i should set RP in netwoker and set RP in RMAN to none and rely on crosscheck and delete expired commands to sync with RNAM catalog.
    2. Wondering if nightly backup of recovery area to tape is going to take incremental from previous day and NOT full backup. The reason i ask is, i do not want the tape to do full backup of FRA every day cause full backup datafiles change once in 3 days based on the until time set. is there an option do set in networker to do incremental only or that's the default.
    Thanks in Advance!
    11gR2, 4 Node RAC, Linux, NMDA 1.1, Networker 7.6 sp1

    Loic wrote:
    You do a full backup of the FRA on tape ?No, I do a full backup of the database on tape. Using RMAN together with Veritas NetBackup.
    I mean if you use incremental updated backup it'll not work on tape... Because the level 0 backup that will be updated with the backup of the day after will be on tape and will not be updated.The incrementally updated backup is in the FRA only, on disk (both the image copy and the following backup sets that are used for recovery of the image copy). Never gets written to tape or updated on tape.
    Why don't you use then normal incremental backup ? That will have no problem with the tape backup even if level0, or level1,2 becomes reclaimable... ?I think I do :-)
    Maybe:
    To keep that you can put the redundancy to 2 out of 1 copy. Like this even with one copy on disk and tape it'll say keep the 2 copies.
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;I'll think about that.

  • Please, help with Incremental Update for Linearized document.

    Hi, here is my problem.
    I'm working in my own annotation app. It incrementally updates pdfs. Works fine with most of the pdfs.
    But i've found couple of pdfs, that was being corrupted after updating.
    Here goes more details:
    Single page-linearized pdf: when i've looked into pdf source, i found that page object has /Parent key which referencing to non-existing object. Normally, as i understand /Parent for page object is /Type /Pages objects with /Kids /Count etc.
    12 0 obj
    <</ArtBox[26 0 585.999 792]/BleedBox[26 0 586 792]/Contents[14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R]/CropBox[0 0 612 792]/MediaBox[0 0 612 792]/Parent 8 0 R/Resources 37 0 R/Rotate 0/TrimBox[26 0 586 792]/Type/Page>>
    endobj
    Parent 8 0 R - Is missing
    But all pdf viewers are ok with that.
    So, this pdf has two Xref tables:
    36 0 obj
    <</DecodeParms<</Columns 4/Predictor 12>>/Filter/FlateDecode/ID[<2C9B406A12A771465F8FE0D6A4DC67ED><9B829DD8BDB09849A00CA5D75E7 5CDF4>]/Index[10 54]/Info 9 0 R/Length 114/Prev 66739/Root 11 0 R/Size 64/Type/XRef/W[1 2 1]>>stream....
    and Second one at the end of file.
    5 0 obj
    <</DecodeParms<</Columns 5/Predictor 12>>/Filter/FlateDecode/ID[<2C9B406A12A771465F8FE0D6A4DC67ED><9B829DD8BDB09849A00CA5D75E7 5CDF4>]/Info 9 0 R/Length 51/Root 11 0 R/Size 10/Type/XRef/W[1 3 1]>>stream
    Linearized dict:
    10 0 obj
    <</Linearized 1/L 67043/O 12/E 48239/N 1/T 66738/H [ 534 185]>>
    endobj
    /T 66738 points to Xref table in 5 0 obj's stream
    Now, when my annotation is stored: i'm adding the following object to the end of file:
    8 0 obj <</Type /Pages/Count 1/Kids [ 12 0 R ]>>
    endobj
    I've create the missing 8 0 obj with Kids and /Count 1
    12 0 obj<</Type /Page/Annots [ 65 0 R ]/ArtBox [ 26 0 585.999 792 ]/BleedBox [ 26 0 586 792 ]/Contents [ 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R ]
    /CropBox [ 0 0 612 792 ]/MediaBox [ 0 0 612 792 ]/Parent 8 0 R/Resources 37 0 R/Rotate 0/TrimBox [ 26 0 586 792 ]>>
    endobj
    it's page objects with new Reference to Annotation object which is:
    65 0 obj<</Type /Annot/Contents (Test 2)/M (D:20120507172231+03'00')/Open true/P 12 0 R/Rect [ 0 0 100.000 100.000 ]/Subtype /Text/T(Test 1)>>
    endobj
    then goes my xref table
    xref
    8 1
    0000067045 00000 n
    0000067189 00000 n
    0000067591 00000 n
    trailer
    <<
    /ID [ <FE1185EC7443D19473E8A4A1569A1CB2> <FE1185EC7443D19473E8A4A1569A1CB2> ]
    /Info 64 0 R
    /Prev 66739
    /Root 11 0 R
    /Size 69
    >>
    startxref
    67760
    %%EOF
    And this totally broks my PDF.
    Questing: /Prev in my trailer should point ot 5 0 obj or 36 0 obj?

    Ok, thanks, and /Pref in my trailer should point to which xref? 5 0 (and the end of the original file) or 36 0 at the beginning?

  • Error in odi- IKM oracle incremental update

    hi,
    i am integrating Oracle to Oracle databse using ODI.
    i am using IKM Oracle Incremental Update and i am having the following error:
    ORA-01747: invalid user.table.column, table.column, or column specification
    for the description below
    update EBS.SY_NAMADD T
    set (
    ) =
    select
    from EBS.I$_SY_NAMADD S
    where T.NADCOD =S.NADCOD
    where (NADCOD)
    in (
    select NADCOD
    from EBS.I$_SY_NAMADD
    where IND_UPDATE = 'U'
    since in the SQL in the EST there is no column specify it gin=ving me this error.
    should i have specify it somewhere
    thanks a lot
    nazeedah

    hi,
    another error is taht when i set the control to Yes unser IKM and in the control tab i have chosen :CKM oracle.
    i am having an error while creating teh table below
    create table EBS.SNP_CHECK_TAB
    CATALOG_NAME VARCHAR2(100 CHAR) NULL ,
    SCHEMA_NAME VARCHAR2(100 CHAR) NULL ,
    RESOURCE_NAME VARCHAR2(100 CHAR) NULL,
    FULL_RES_NAME VARCHAR2(100 CHAR) NULL,
    ERR_TYPE VARCHAR2(1 CHAR) NULL,
    ERR_MESS VARCHAR2(250 CHAR) NULL ,
    CHECK_DATE DATE NULL,
    ORIGIN VARCHAR2(100 CHAR) NULL,
    CONS_NAME VARCHAR2(35 CHAR) NULL,
    CONS_TYPE VARCHAR2(2 CHAR) NULL,
    ERR_COUNT NUMBER(10) NULL
    error: missing parenthese
    please help
    nazeedah

  • How to save the Increment  update to the PDF on the web

    By now I use PDDocSaveWithParams method to save file,but this method is used to local,not on the web.
    I think there are some methode in SDK to save(or send)  the Incremental update to the server.
    But i don't know which is,so if there is please tell me.
    Thanks.

    That is correct.  Internet Explorer (or whatever browser you are using) downloads the PDF to your local Temporary Internet Files cache and then Acrobat/Reader open it from there.

  • How does iWeb track files for incremental updates to .mac

    In short, my question is where does iWeb keep track of which pages have been published to .mac so it can make perform an incremental update?
    My father is in Alaska using iWeb 1.1.1 to maintain a blog and photo gallery that, when published to .mac, has grown to just over 100MB. His connection speeds vary from port to port, but are typically around 128k and cut out after a bit of use. The challenge now is that iWeb is trying to upload the entire site which is failing every time due to the internet connection.
    While visiting him, I saved an identical domain.site file to my computer that I would like to publish using my high speed connection. Following this, my goal is to convince his version of iWeb that it has been updated without having to transfer the entire domain.site file and this is the part where I could use some help.
    So far I have published my copy of the site. I have then tried emailing him copies of the files: index.xml.gz, assets.site.plist, ServerCachedResources.plist, sharedassets.plist, and com.apple.iweb.plist which I accessed using the show package contents on the domain.site file. He has transfered these to domain file however it still wants to upload the entire site. Are there any other ideas on where iWeb tracks pages for incremental updates?
    ibook g4   Mac OS X (10.4.6)  

    If your MBP has a line in jack, just plug an 1/8th inch stereo miniplugto whatever your cassette deck has and use garageband to record the song.

  • Adobe Reader not picking up updates in incrementally updated forms

    I am trying to do incremental update on PDF form. I created two forms using Acrobat Pro. One contains an unchecked checkbox and the other contains unselected radio button. In incremental update, the controls are selected. The issue is that on opening the updated form, Adobe Reader doesn't pick up the updated objects and shows the original form with unselected controls. When I try to open the updated forms with Foxit Reader, updated contents are visible with the controls selected. What could be the issue here?
    Incremental update files I created are available at
    http://www.freedrive.com/file/1309817,cb1.pdf
    http://www.freedrive.com/file/1309818,rb1.pdf

    After some testing, i do find that the overrides file is working properly for my base/newly built machines. So, it must be something on a currently deployed machine, so i can fix that.. I guess technically it's working...
    But, i'm noticing that the Internal AAM server it's looking at is not showing all of the updates it should,
    I did see some errors of :
    Downloading http://swupdl.adobe.com/updates/oobe/aam20/mac/PhotoshopCameraRawForElements11-7.1-x64/7.3 .37/7.3.37.xml
    ******** HTTP Error*********
    Failed to open remote file http://swupdl.adobe.com/updates/oobe/aam20/mac/PhotoshopCameraRawForElements11-7.1-x64/7.3 .37/7.3.37.xml
    Downloading update:  AdobeExtensionManagerCS5-5.0/5.0.1
    I usually just do an incremental update (Mac Server running 10.8)
    Do i need to do a Forced Update? or a 1, of re-downloading a fresh copy of everything?
    It's only a couple updates, But one missing, is the latest Photoshop, which i see if i remove the overrides file, but disappears if i use the overrides file.
    Thanks.

  • Which is better: Oracle incremental update (merge) or Oracle incremental update

    Hi All,
    We have big data load happening from Oracle RDBMS(source) to Oracle RDBMS(target). The data is huge (in billions) and new insertions, updates will happen. I would like to understand which among
    Oracle incremental update (merge) or Oracle incremental update is better and faster -  for first load and subsequent incremental updates, deletes? I request you all to provide valid reasons since I need to present the same to my client
    If at all Oracle incremental update (merge) is better, then why ODI needs to have Oracle incremental update IKM.
    I have seen some discussions on the same topic but I have not yet got a proper response with reasons and that is why I am posting the question again
    Thanks & Regards,
    Sijee Sadasivan

    Hi Sijee Sadasivan,
    IKM SQL Control Append could be faster for the initial load. You will therefore need another interface for the initial load.
    From my experience IKM Oracle Incremental Update (Merge) is faster than IKM Oracle Incremental Update for the incremental load, but I think the best thing to do is to try it on your environment. Nothing is better than a benchmark .
    IKM Oracle Incremental Update is useful for Oracle RDBMS < 9i, before this syntax was introduced.
    Regards,
    JeromeFr

  • ODI 12c Incremental update taking indefinite time

    I am trying to load data from database  view  data into staging tables . When i load with out key on target it loads data loads very fast when i define key and change KM to Incremental update then it is taking more than 12 hours and still running
    Please find below query from the Insert I$.Please guide me if I need to fine tune the performance
    /* DETECTION_STRATEGY = NOT_EXISTS */
    insert into MKTG.I$_LF_STG_SIEBEL_ACCOUNT
      CUSTOMER_ID,
      PR_CON_ID,
      CDH_PARTY_ID,
      ACCOUNT_NAME,
      ACCOUNT_ID,
      DISPLAY_NAME,
      ACCOUNT_TEAM,
      ACCOUNT_TYPE,
      ACCOUNT_SUB_TYPE,
      TOTAL_AGENTS,
      TOTAL_OFFICES,
      MLS_SET_ID,
      PRIMARY_HLC,
      PRIMARY_CLC,
      TOTAL_HLC,
      TOTAL_CLC,
      PARENT_ACCOUT_NAME,
      PARENT_ACOUNT_ID,
      STATUS,
      FRANCHISE,
      TOTAL_CONTRACT_VALUE,
      CREDIT_STATUS,
      TATUS_AS_OF,
      SALES_LOCK,
      LOCK_EXP_DATE,
      CREDIT_RISK,
      ALERTS,
      URL,
      OWN_COSHOW,
      OWN_FCMA,
      OWN_FH,
      OWN_CYCLE,
      OWN_SLE,
      OWN_IDX,
      OWN_BA,
      OWN_FAC,
      OWN_LH,
      OWN_MS,
      OWN_TP_CRM,
      OWN_OSL,
      "OWN_CO_Broke",
      OWN_FH_BROKER,
      PRICE_LIST,
      NEXT_RENEWAL_DATE,
      TERRITORY,
      DIVISION,
      CREATION_DATE,
      CREATED_BY,
      MAIN_EMAIL_ADDRESS,
      PRIMARY_ADDRESS_ID,
      IND_UPDATE
    select
    CUSTOMER_ID,
      PR_CON_ID,
      CDH_PARTY_ID,
      ACCOUNT_NAME,
      ACCOUNT_ID,
      DISPLAY_NAME,
      ACCOUNT_TEAM,
      ACCOUNT_TYPE,
      ACCOUNT_SUB_TYPE,
      TOTAL_AGENTS,
      TOTAL_OFFICES,
      MLS_SET_ID,
      PRIMARY_HLC,
      PRIMARY_CLC,
      TOTAL_HLC,
      TOTAL_CLC,
      PARENT_ACCOUT_NAME,
      PARENT_ACOUNT_ID,
      STATUS,
      FRANCHISE,
      TOTAL_CONTRACT_VALUE,
      CREDIT_STATUS,
      TATUS_AS_OF,
      SALES_LOCK,
      LOCK_EXP_DATE,
      CREDIT_RISK,
      ALERTS,
      URL,
      OWN_COSHOW,
      OWN_FCMA,
      OWN_FH,
      OWN_CYCLE,
      OWN_SLE,
      OWN_IDX,
      OWN_BA,
      OWN_FAC,
      OWN_LH,
      OWN_MS,
      OWN_TP_CRM,
      OWN_OSL,
      "OWN_CO_Broke",
      OWN_FH_BROKER,
      PRICE_LIST,
      NEXT_RENEWAL_DATE,
      TERRITORY,
      DIVISION,
      CREATION_DATE,
      CREATED_BY,
      MAIN_EMAIL_ADDRESS,
      PRIMARY_ADDRESS_ID,
      IND_UPDATE
    from (
    select 
      MOVE_BS4_ACCOUNT_VW_A.CUSTOMER_ID CUSTOMER_ID,
      MOVE_BS4_ACCOUNT_VW_A.PR_CON_ID PR_CON_ID,
      MOVE_BS4_ACCOUNT_VW_A.CDH_PARTY_ID CDH_PARTY_ID,
      MOVE_BS4_ACCOUNT_VW_A.ACCOUNT_NAME ACCOUNT_NAME,
      MOVE_BS4_ACCOUNT_VW_A.ACCOUNT_ID ACCOUNT_ID,
      MOVE_BS4_ACCOUNT_VW_A.DISPLAY_NAME DISPLAY_NAME,
      MOVE_BS4_ACCOUNT_VW_A.ACCOUNT_TEAM ACCOUNT_TEAM,
      MOVE_BS4_ACCOUNT_VW_A.ACCOUNT_TYPE ACCOUNT_TYPE,
      MOVE_BS4_ACCOUNT_VW_A.ACCOUNT_SUB_TYPE ACCOUNT_SUB_TYPE,
      MOVE_BS4_ACCOUNT_VW_A.TOTAL_AGENTS TOTAL_AGENTS,
      MOVE_BS4_ACCOUNT_VW_A.TOTAL_OFFICES TOTAL_OFFICES,
      MOVE_BS4_ACCOUNT_VW_A.MLS_SET_ID MLS_SET_ID,
      MOVE_BS4_ACCOUNT_VW_A.PRIMARY_HLC PRIMARY_HLC,
      MOVE_BS4_ACCOUNT_VW_A.PRIMARY_CLC PRIMARY_CLC,
      MOVE_BS4_ACCOUNT_VW_A.TOTAL_HLC TOTAL_HLC,
      MOVE_BS4_ACCOUNT_VW_A.TOTAL_CLC TOTAL_CLC,
      MOVE_BS4_ACCOUNT_VW_A.PARENT_ACCOUNT_NAME PARENT_ACCOUT_NAME,
      MOVE_BS4_ACCOUNT_VW_A.PARENT_ACCOUNT_ID PARENT_ACOUNT_ID,
      MOVE_BS4_ACCOUNT_VW_A.STATUS STATUS,
      MOVE_BS4_ACCOUNT_VW_A.FRANCHISE FRANCHISE,
      MOVE_BS4_ACCOUNT_VW_A.TOTAL_CONTRACT_VALUE_ TOTAL_CONTRACT_VALUE,
      MOVE_BS4_ACCOUNT_VW_A.CREDIT_STATUS CREDIT_STATUS,
      MOVE_BS4_ACCOUNT_VW_A.STATUS_AS_OF TATUS_AS_OF,
      MOVE_BS4_ACCOUNT_VW_A.SALES_LOCK SALES_LOCK,
      MOVE_BS4_ACCOUNT_VW_A.LOCK_EXP_DATE LOCK_EXP_DATE,
      MOVE_BS4_ACCOUNT_VW_A.CREDIT_RISK CREDIT_RISK,
      MOVE_BS4_ACCOUNT_VW_A.ALERTS ALERTS,
      MOVE_BS4_ACCOUNT_VW_A.URL URL,
      MOVE_BS4_ACCOUNT_VW_A.OWN_COSHOW OWN_COSHOW,
      MOVE_BS4_ACCOUNT_VW_A.OWN_FCMA OWN_FCMA,
      MOVE_BS4_ACCOUNT_VW_A.OWN_FH OWN_FH,
      MOVE_BS4_ACCOUNT_VW_A.OWN_CYCLE OWN_CYCLE,
      MOVE_BS4_ACCOUNT_VW_A.OWN_SLE OWN_SLE,
      MOVE_BS4_ACCOUNT_VW_A.OWN_IDX OWN_IDX,
      MOVE_BS4_ACCOUNT_VW_A.OWN_BA OWN_BA,
      MOVE_BS4_ACCOUNT_VW_A.OWN_FAC OWN_FAC,
      MOVE_BS4_ACCOUNT_VW_A.OWN_LH OWN_LH,
      MOVE_BS4_ACCOUNT_VW_A.OWN_MS OWN_MS,
      MOVE_BS4_ACCOUNT_VW_A.OWN_TP_CRM OWN_TP_CRM,
      MOVE_BS4_ACCOUNT_VW_A.OWN_OSL OWN_OSL,
      MOVE_BS4_ACCOUNT_VW_A.OWN_CO_BROKE "OWN_CO_Broke",
      MOVE_BS4_ACCOUNT_VW_A.OWN_FH_BROKER OWN_FH_BROKER,
      MOVE_BS4_ACCOUNT_VW_A.PRICE_LIST PRICE_LIST,
      MOVE_BS4_ACCOUNT_VW_A.NEXT_RENEWAL_DATE NEXT_RENEWAL_DATE,
      MOVE_BS4_ACCOUNT_VW_A.TERRITORY TERRITORY,
      MOVE_BS4_ACCOUNT_VW_A.DIVISION DIVISION,
      MOVE_BS4_ACCOUNT_VW_A.CREATION_DATE CREATION_DATE,
      MOVE_BS4_ACCOUNT_VW_A.CREATED_BY CREATED_BY,
      MOVE_BS4_ACCOUNT_VW_A.MAIN_EMAIL_ADDRESS MAIN_EMAIL_ADDRESS,
      MOVE_BS4_ACCOUNT_VW_A.PRIMARY_ADDRESS_ID PRIMARY_ADDRESS_ID,
      'I' IND_UPDATE
    from MKTG.C$_0MOVE_BS4_ACCOUNT_VW MOVE_BS4_ACCOUNT_VW_A
    where (1=1)
    ) S
    where NOT EXISTS
      ( select 1 from MKTG.LF_STG_SIEBEL_ACCOUNT T
      where T.ACCOUNT_ID = S.ACCOUNT_ID
      and ((T.CUSTOMER_ID = S.CUSTOMER_ID) or (T.CUSTOMER_ID IS NULL and S.CUSTOMER_ID IS NULL)) and
      ((T.PR_CON_ID = S.PR_CON_ID) or (T.PR_CON_ID IS NULL and S.PR_CON_ID IS NULL)) and
      ((T.CDH_PARTY_ID = S.CDH_PARTY_ID) or (T.CDH_PARTY_ID IS NULL and S.CDH_PARTY_ID IS NULL)) and
      ((T.ACCOUNT_NAME = S.ACCOUNT_NAME) or (T.ACCOUNT_NAME IS NULL and S.ACCOUNT_NAME IS NULL)) and
      ((T.DISPLAY_NAME = S.DISPLAY_NAME) or (T.DISPLAY_NAME IS NULL and S.DISPLAY_NAME IS NULL)) and
      ((T.ACCOUNT_TEAM = S.ACCOUNT_TEAM) or (T.ACCOUNT_TEAM IS NULL and S.ACCOUNT_TEAM IS NULL)) and
      ((T.ACCOUNT_TYPE = S.ACCOUNT_TYPE) or (T.ACCOUNT_TYPE IS NULL and S.ACCOUNT_TYPE IS NULL)) and
      ((T.ACCOUNT_SUB_TYPE = S.ACCOUNT_SUB_TYPE) or (T.ACCOUNT_SUB_TYPE IS NULL and S.ACCOUNT_SUB_TYPE IS NULL)) and
      ((T.TOTAL_AGENTS = S.TOTAL_AGENTS) or (T.TOTAL_AGENTS IS NULL and S.TOTAL_AGENTS IS NULL)) and
      ((T.TOTAL_OFFICES = S.TOTAL_OFFICES) or (T.TOTAL_OFFICES IS NULL and S.TOTAL_OFFICES IS NULL)) and
      ((T.MLS_SET_ID = S.MLS_SET_ID) or (T.MLS_SET_ID IS NULL and S.MLS_SET_ID IS NULL)) and
      ((T.PRIMARY_HLC = S.PRIMARY_HLC) or (T.PRIMARY_HLC IS NULL and S.PRIMARY_HLC IS NULL)) and
      ((T.PRIMARY_CLC = S.PRIMARY_CLC) or (T.PRIMARY_CLC IS NULL and S.PRIMARY_CLC IS NULL)) and
      ((T.TOTAL_HLC = S.TOTAL_HLC) or (T.TOTAL_HLC IS NULL and S.TOTAL_HLC IS NULL)) and
      ((T.TOTAL_CLC = S.TOTAL_CLC) or (T.TOTAL_CLC IS NULL and S.TOTAL_CLC IS NULL)) and
      ((T.PARENT_ACCOUT_NAME = S.PARENT_ACCOUT_NAME) or (T.PARENT_ACCOUT_NAME IS NULL and S.PARENT_ACCOUT_NAME IS NULL)) and
      ((T.PARENT_ACOUNT_ID = S.PARENT_ACOUNT_ID) or (T.PARENT_ACOUNT_ID IS NULL and S.PARENT_ACOUNT_ID IS NULL)) and
      ((T.STATUS = S.STATUS) or (T.STATUS IS NULL and S.STATUS IS NULL)) and
      ((T.FRANCHISE = S.FRANCHISE) or (T.FRANCHISE IS NULL and S.FRANCHISE IS NULL)) and
      ((T.TOTAL_CONTRACT_VALUE = S.TOTAL_CONTRACT_VALUE) or (T.TOTAL_CONTRACT_VALUE IS NULL and S.TOTAL_CONTRACT_VALUE IS NULL)) and
      ((T.CREDIT_STATUS = S.CREDIT_STATUS) or (T.CREDIT_STATUS IS NULL and S.CREDIT_STATUS IS NULL)) and
      ((T.TATUS_AS_OF = S.TATUS_AS_OF) or (T.TATUS_AS_OF IS NULL and S.TATUS_AS_OF IS NULL)) and
      ((T.SALES_LOCK = S.SALES_LOCK) or (T.SALES_LOCK IS NULL and S.SALES_LOCK IS NULL)) and
      ((T.LOCK_EXP_DATE = S.LOCK_EXP_DATE) or (T.LOCK_EXP_DATE IS NULL and S.LOCK_EXP_DATE IS NULL)) and
      ((T.CREDIT_RISK = S.CREDIT_RISK) or (T.CREDIT_RISK IS NULL and S.CREDIT_RISK IS NULL)) and
      ((T.ALERTS = S.ALERTS) or (T.ALERTS IS NULL and S.ALERTS IS NULL)) and
      ((T.URL = S.URL) or (T.URL IS NULL and S.URL IS NULL)) and
      ((T.OWN_COSHOW = S.OWN_COSHOW) or (T.OWN_COSHOW IS NULL and S.OWN_COSHOW IS NULL)) and
      ((T.OWN_FCMA = S.OWN_FCMA) or (T.OWN_FCMA IS NULL and S.OWN_FCMA IS NULL)) and
      ((T.OWN_FH = S.OWN_FH) or (T.OWN_FH IS NULL and S.OWN_FH IS NULL)) and
      ((T.OWN_CYCLE = S.OWN_CYCLE) or (T.OWN_CYCLE IS NULL and S.OWN_CYCLE IS NULL)) and
      ((T.OWN_SLE = S.OWN_SLE) or (T.OWN_SLE IS NULL and S.OWN_SLE IS NULL)) and
      ((T.OWN_IDX = S.OWN_IDX) or (T.OWN_IDX IS NULL and S.OWN_IDX IS NULL)) and
      ((T.OWN_BA = S.OWN_BA) or (T.OWN_BA IS NULL and S.OWN_BA IS NULL)) and
      ((T.OWN_FAC = S.OWN_FAC) or (T.OWN_FAC IS NULL and S.OWN_FAC IS NULL)) and
      ((T.OWN_LH = S.OWN_LH) or (T.OWN_LH IS NULL and S.OWN_LH IS NULL)) and
      ((T.OWN_MS = S.OWN_MS) or (T.OWN_MS IS NULL and S.OWN_MS IS NULL)) and
      ((T.OWN_TP_CRM = S.OWN_TP_CRM) or (T.OWN_TP_CRM IS NULL and S.OWN_TP_CRM IS NULL)) and
      ((T.OWN_OSL = S.OWN_OSL) or (T.OWN_OSL IS NULL and S.OWN_OSL IS NULL)) and
      ((T."OWN_CO_Broke" = S."OWN_CO_Broke") or (T."OWN_CO_Broke" IS NULL and S."OWN_CO_Broke" IS NULL)) and
      ((T.OWN_FH_BROKER = S.OWN_FH_BROKER) or (T.OWN_FH_BROKER IS NULL and S.OWN_FH_BROKER IS NULL)) and
      ((T.PRICE_LIST = S.PRICE_LIST) or (T.PRICE_LIST IS NULL and S.PRICE_LIST IS NULL)) and
      ((T.NEXT_RENEWAL_DATE = S.NEXT_RENEWAL_DATE) or (T.NEXT_RENEWAL_DATE IS NULL and S.NEXT_RENEWAL_DATE IS NULL)) and
      ((T.TERRITORY = S.TERRITORY) or (T.TERRITORY IS NULL and S.TERRITORY IS NULL)) and
      ((T.DIVISION = S.DIVISION) or (T.DIVISION IS NULL and S.DIVISION IS NULL)) and
      ((T.CREATION_DATE = S.CREATION_DATE) or (T.CREATION_DATE IS NULL and S.CREATION_DATE IS NULL)) and
      ((T.CREATED_BY = S.CREATED_BY) or (T.CREATED_BY IS NULL and S.CREATED_BY IS NULL)) and
      ((T.MAIN_EMAIL_ADDRESS = S.MAIN_EMAIL_ADDRESS) or (T.MAIN_EMAIL_ADDRESS IS NULL and S.MAIN_EMAIL_ADDRESS IS NULL)) and
      ((T.PRIMARY_ADDRESS_ID = S.PRIMARY_ADDRESS_ID) or (T.PRIMARY_ADDRESS_ID IS NULL and S.PRIMARY_ADDRESS_ID IS NULL))

    I had a query doing the same thing and switching it to use decode fixed the performance issue.  The syntax is Decode(X, Y, 1, 0) = 1 instead of X=Y or (X is null and Y is null).  You probably will have to modify the KM or pre-filter the data to do this in ODI.  However, copy everything from the first select down and tune it straight on the database.  Once you get good performance, then look at ODI and see how you can duplicate it.

  • IKM MSSQL Incremental Update fails on SQL Server 2000 - Collation Problem

    I am having a problem where the the incremental update isn't cabable of updating the table it creates.
    In the Flag Rows to Update I get the following error message:
    446 : HY000 : java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot resolve collation conflict for equal to operation.
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot resolve collation conflict for equal to operation.
    Source Code is:
    update     S
    set     IND_UPDATE = 'U'
    from     SQRoracleStage..I$_tblOracleStage      S,     
         SQRoracleStage..tblOracleStage      T
    where     T.Occurance     = S.Occurance
    and     T.PlanName     = S.PlanName
    Oracle has suggested that the IKM be updated to include a COLLATE clause following the column name in the where clause.
    update S
    set IND_UPDATE = 'U'
    from <%=snpRef.getTable("L", "INT_NAME", "A")%> S,
    <%=snpRef.getTable("L", "TARG_NAME", "A")%> T
    where <%=snpRef.getColList("", "T.[COL_NAME]\t= S.[COL_NAME] COLLATE replace_with_server_collation_string", "\nand\t", "", "UK")%>
    However this code doesn't retrieve the collation string, but rather expects you to replace the replace_with_server_collation_sting with the value from the server.
    Being unfamiliar with SQL Server I would have expected that the model should be capable of determining this value, and that the code should look something similar to:
    update S
    set IND_UPDATE = 'U'
    from <%=snpRef.getTable("L", "INT_NAME", "A")%> S,
    <%=snpRef.getTable("L", "TARG_NAME", "A")%> T
    where <%=snpRef.getColList("", "T.[COL_NAME]\t= S.[COL_NAME] COLLATE <%=snpRef.getServerCollationString("L", "TARG_NAME", "A")%> ", "\nand\t", "", "UK")%>
    It seems as though since ODI creates the table dynamically it should be capable of doing an update to it without intervention.
    Has anyone found a work around for this issue?

    I found the error :)
    This is what happened:
    I copied the tables from the MS SQL Server model to my Oracle model and then generated the DDL, so this gave me a quick set of tables in Oracle identical to the MS SQL database. But what I didn't know was that with the reverse engineer from MS SQL the ODI tool set the primary key columns to READ ONLY (and thus my copied tables also had read only primary key columns). Read only is OK for a source table but devastating for my tables I must load. So when I removed the read only indicator from the Oracle target table pk columns I was again a happy camper !
    Thanks for being the one to talk to ! That really helped :)

  • Incremental Updates and PKCS7 Signatures

    Hello, this is my first message in this forum and I thank you in advance for your help.
    I am developing a component to countersign PDFs. I was able to place the first signature ok, but when a countersign it problems come.
    The way I countersign the document (as i read in the document "Digital Signatures in the PDF Language") is:
    I create an incremental update with the following information:
    1* Catalog changes
    2* Info object
    3* Acroform changes
    4* New Annotation
    5* New signature.
    6* xref section
    7* Trailer
    The new signature is computed on the whole document but the signature new itself.
    After this, not only the new signature is invalid, the previous signature becomes invalid althout there is no change in the previous version. I only have to remove the incremental update to get first signature to be valid again.
    Acrobat Reader shows next message:
    Error during signature verification.
    Unexpected byte range values defining scope of signed data.
    Details: byte range of signature is invalid.
    I have reviewed thouse ranges several times but i did not find any error. Can anyone help me?
    I could post a (badly) countersigned file if that could help.
    Thank in advance,
    José

    Hello again. First of all, thanks again for your help.
    I don't want to abuse but I have another problem with signatures.
    I have two ways two sign a PDF.
    A) Load the PDF, add the signature fields, sign and save.
    B) Load the PDF, add the signature as an incremental update, sign and save.
    I would prefer to use always the second alternative but problems come when I use method B to countersign.
    If I sign a PDF with method A and then countersign using method B, I have a correct PDF with two signatures.
    http://www.igijon.com/personales/josepm/RPACTCENTROS.SIGNED.signed_B.rar
    If I sign and countersign usign method B, acrobat just ignore the second signature as it was not there, although It is able to detect changes after first signature.
    http://www.igijon.com/personales/josepm/RPACTCENTROS.SIGNED.signed.rar
    The incremental update is done always the same way, somethink like this:
    %%EOF
    1 0 obj
    <<
    /Type /Catalog
    /AcroForm 26 0 R
    /PageMode /UseNone
    /Pages 2 0 R
    /ViewerPreferences <<
    /FitWindow true
    /NonFullScreenPageMode /UseNone
    /PageLayout /SinglePage
    >>
    >>
    endobj
    24 0 obj
    <<
    /CreationDate (D:20070824132228+02'00')
    /ModDate (D:20070824132233+02'00')
    /Producer (Burke - Componente de Firma)
    >>
    endobj
    8 0 obj
    <<
    /Type /Page
    /Annots [ 25 0 R 32 0 R ]
    /Contents [ 5 0 R ]
    /Parent 2 0 R
    /Resources 6 0 R
    >>
    endobj
    26 0 obj
    <<
    /Fields [ 25 0 R 32 0 R ]
    /SigFlags 3
    >>
    endobj
    32 0 obj
    <<
    /Type /Annot
    /Border [ 0.000000 0.000000 5.000000 ]
    /F 4
    /FT /Sig
    /M (D:20070824132233+02'00')
    /P 8 0 R
    /Rect [ 407.000000 58.000000 457.000000 16.000000 ]
    /Subtype /Widget
    /T (ContraFirmo yo)
    /V 33 0 R
    >>
    endobj
    33 0 obj
    <<
    /Type /Sig
    /ByteRange [ 0 230122 250124 438 ]
    /ContactInfo (Sin contacto)
    /Contents <308 ... 000>
    /FT /Sig
    /Filter /Adobe.PPKMS
    /Location (ContraFirmo aquí)
    /M (D:20070824132233+02'00')
    /Name (ContraFirmo yo)
    /Reason (ContraFirmo porque si)
    /SubFilter /adbe.pkcs7.detached
    >>
    endobj
    xref
    0 2
    0000000000 65535 f
    0000229283 00000 n
    8 1
    0000229602 00000 n
    24 1
    0000229465 00000 n
    26 1
    0000229712 00000 n
    32 2
    0000229772 00000 n
    0000229997 00000 n
    trailer
    <<
    /Info 24 0 R
    /Prev 228481
    /Root 1 0 R
    /Size 34
    >>
    startxref
    250310
    %%EOF
    I have tried to detect the error with the Preflight function of Acrobat and with the "PDF Appraiser" with no results.
    Thanks again for your help.

  • Best way to implement auto increment in JPA.

    What is the best way to implement auto increment in JPA so that it will support all databases such as MySQL, MSSQL Server, Oracle etc. ? Or is there any way to set auto increment strategy in common place such as persistence.xml? Please help...

    All JPA strategies require something (like a table or sequence object) be in the database, with table sequencing being the most portable, though EclipseLink does allow custom sequence stratgies where you could use something else, such as the UUID. Sequencing is described here described here http://wiki.eclipse.org/EclipseLink/Examples/JPA/PrimaryKey with a custom UUID example shown here http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomSequencing .

Maybe you are looking for