No Before Value in Trail File for PK Column on Updates

I can't seem to get "before" values for columns that are PK's to show up in my trail files.  Eg: when reading with a Velocity template:
#foreach($op in $tx)
#foreach($col in $op)
  before: $col.getBeforeValue()
   after: $col.getAfterValue()
#{end}
#{end}
... if the operation is an INSERT, then the values show up for all columns in the after, so INSERTS are fine.
... if the operation is a DELETE, then the PK column value *does* show up in the before, so DELETES are fine.
... if the operation is an UPDATE, then the PK column value does *not* show up in either the before or the after, so UPDATES are broken.
I've tried setting the following in my extract's parameters ... each with no change in the results:
nocompressupdates
getupdatebefores
I'm running OGG Capture for Oracle Version 11.2.1.0.3 on Solaris, sparc 64bit on the OGG that's is running against my Oracle DB redo logs.
I'm running OGG Capture Version 11.1.1.0.0 on Solaris, sparc 64bit on the system that I'm pumping the trail files to, against which I'm trying to read the before values in a userexit, as described above.
Thanks for any guidance / pointers.

In order to get the PK column for an update, you need to add a supplemental log group that includes the primary key columns, with the GGSCI command ADD TRANDATA. This is discussed in the Oracle GoldenGate Oracle Installation and Setup Guide in the section "Enabling table-level supplemental logging", found here:
http://docs.oracle.com/cd/E22355_01/doc.11111/e21406.pdf
A combination of ADD TRANDATA and GETUPDATEBEFORES should get you what you want. Here is more information on this:
FAQ  - 11.2.1 - How do extract parameters affect the data to be selected to be written to the GoldenGate trail file. (Doc ID 1478414.1)
Let me know if you have any further questions.
Best regards,
Marie

Similar Messages

  • Change InfoObject value in flat file for Hierarchy load

    Hi Guys,
    I am loading hierarchy for an infoobject from flat file. I have the field InfoObject (IOBJNM) whose value needs to be changed before loading into the hierarchy. Can somebody tell me how can I do that through formula or routine.
    The InfoObject loads 0HIER_NODE and a leaf infoobject values from flat file.
    The hierarchy transfer rules does not contain IOBJNM field., though the Hier Structure under Transfer Structure tab contains IOBJNM.
    In transfer structure I see only NodeName, Date From, Date To, and eaf infoobject.
    Any help would be appreciated.

    Hi,
          Try using the IDOC method while loading the hierarchy and make sure you have this IOBJNM in the external charactersitics for the Infoobect to which you are loading this hier.
    Thanks,
                Peter

  • Using values returned from SQL for Report column names

    I am building reports against our TFS development db.
    One of the reports tracks days spent (Dwell Time) in various status categories (eg: New, Assigned, In Development, Hold, etc) for a given "ticket".
    For a fixed list of values from {Work Item].System_State, I can send the results (days in Assigned) to the column named (Assigned) for each status for each event in the [Work Item History], and then sum them for each ticket as:
    Ticket ID      New          Assigned       InDev       etc
    1230001        2                  0                 0          ...
    1230001        0                  1                 2          ....      
    SUM            2                    1                2         ....            
    However, I have many different Projects, each of which use their own Status names.
    I don't want to duplicate the same basic report, if I can avoid it.
    How can I name and generate this data for the unique Status list for each Project?
    Simplest analog is:  name = First(Fields!Status.Value, "TFSdb")
    and allows value for a column name (category) as: =IIF(Fields!Status.Value = First(Fields!Status.Value, "TFSdb"), Fields!Days.Value, 0)
    However this fails beause:
    1. It only delivers the FIRST status value, and,
    2. I cannot SUM an expression which is itself an aggregate (using First).

    RRapport,
    Is this still an issue?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to create event alert for particular column get updated

    Hi every one.... plz help me
    How to create oracle event alert when particular column is update. plz help me.... Acutually i need email alert when ever list price for an item column in pricing table get updated+... plz. Its urgent.

    Oracle Event alert is based on update of specific table and not on specific column in table.
    However you can create a trgigger on table which is based on updat of column. And in this trigger you can send a mail using plsql.
    HTH

  • Backup files for future restoration and updates

    How do I go about backing up the following before I install the Illustrator CS5 HTML5 Pack with Illustrator?: 15.0.1:
    Backup the following files: (restoration of these files are required for any future update)
    <Install>\Adobe Illustrator CS5\Plug-ins\Extensions\Art Style.aip
    <Install>\Adobe Illustrator CS5\Plug-ins\Extensions\CharParaStyles.aip
    <Install>\Adobe Illustrator CS5\Plug-ins\Extensions\Layers Panel.aip
    <Install>\Adobe Illustrator CS5\Plug-ins\Illustrator Formats\SVG File Format.aip
    <Install>\Adobe Illustrator CS5\Support Files\Contents\Windows\SVGExport.dll
    I just wanted to copy the file and put them in a new folder as backup.  Will this be suficient or do I have to do something entirely different to back up these files?  If so, I am uncertain how I would go about it if it includes the whole file location name as indicated above.
    I'm in the middle of all of this at this moment and would appreciate a quick response.
    Thank you in advance for your help.

    Should be sufficient to move them whereever you want to keep them and also keep this snippet of text so you know where to put them back in case it's needed.

  • Structure of the input file for RMDATIND (standard material update program)

    Hi all !
    I need to find the structure of the input file used by the RMDATIND standard program. Is there only one structure for this file ? what should it contains ?
    Thanks a lot
    Regards,
    --Yohann

    Hi Yohann,
    Check this link...
    [RMDATIND Document|http://www.iconet-ltd.co.uk/mm.doc]
    Hope this would solve your issue.
    Regards
    Narin Nandivada

  • Missing file for VIA4.43 driver update

    Hi, 8)
    I just downloaded the 4in1443v.exe driver and ran the 'normal' install. I then found that one of the installations leaves windows searching for a driver file - you know, where you have to point it to a file location to find a .inf file. This was looking for the driver for the "VIA Standard PCI to ISA Bridge". What on earth am I supposed to do here? I don't know where to seartch for this file. If I cancel, I go through the same ritual on every reboot. Should I have this file somewhere?
    System is a K7TTurbo2, Athlon Tbird 1.4GHz, 256RAM, Windows98 SE

    Bas gave me a great tip for this.
    Most of these programs are exe. now to make it easier for us (yeh, whatever).
    Extract or "unzip" the exe. file with WinRar into a seperate folder and on reboot, point to that folder.
    Should install without a problem.
    J. :P

  • Reference documentation refers to nonexistent file for install of FP13 update

    I manage six different computer labs for the university by which I'm employed. For the most recent version of Flash Player 12, I found and implemented a wonderful method of deploying the update to all the computers I manage, all at once, from their login screen, without the need to actually go machine to machine, clicking with the mouse. It saved me a great amount of time and effort.
    This deployment solution used a file named "Adobe Flash Player Install Manager" that is in the /Contents/MacOS folder of the package.
    When I downloaded Flash Player 13 today, to peform the same deployment strategy, I found that it lacked that file, instead having a file named "Install Adobe Flash Player" in that folder, instead.
    I attempted to use that file in place of the other, and it didn't work.
    I hunted down a PDF about deploying FP13, on the Adobe website itself. It referred, specifically, to the "Adobe Flash Player Install Manager" file... which doesn't seem to be a part of the downloadable package.
    ... help?

    Don't know what download you got. If it was the "Stub installer" (1mb), it doesn't have the Install Manager.
    You need to use:
    http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_playe r_13_osx.dmg   <-- the FULL installer (HAS the Install Manager)
    or
    http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_playe r_13_osx_pkg.dmg <--- Just the pkg (COCOA installer)

  • Error while importing a text file for a list of values

    Hi Experts,
    While importing a text file for a list of values in designer, I am getting error message as below:
    "Invalid setting in Excel key of the Engines section of the Windows Registry. (3433)".
    I am using BO XI R3. Universe Designer version : 12.1.0.882
    Any suggestion ?
    Regards

    plzzzzzzzzzzzzzzzzz.............sme1 help me out

  • How to asssign output value in the CSV file for the specific header

    Hi,
    I am using OpenScript 9.10. The problem I am facing is that, to Write the Output value captured from the application, When i am trying to use the methods "Appen String to File" i am unable to write / assign the out put value below the specific header. Can any one please look into this and post the methods related to Write the output vaues in to the CSV files under specific headers.
    Thanks in Advance.
    Thanks.,
    Siva

    Hi Alex,
    Thanks for your reply.I need to write the output value under specified parameter name.
    for example after creating the sales order,the order number have to write in the CSV file under
    OrderNumber column.I tried with appendStringtofille() method,by using this able to write the value under
    first column.But i need to write output value under specified columnname(means Header name in the cSV
    file).can u please give a reply for the above problem.
    Note: In that Csv file i am taking the input vales and also need to write the output values under
    specified column(header)
    Thanks,
    Siva Thota.

  • The value should be set for Base image URL and Image file directory

    Hi experts
    Now customer has the following issue.
    XML Publisher concurrent request, using RTF layout template with LOGO, does not generate the LOGO for Excel output.
    but in output formats PDF, it is shown normally.
    from the debug log, we can found the following error message
    ======
    [051812_054716051][][ERROR] Could not create an image. Set html-image-dir and html-image-base-uri correctly.
    ======
    so I tell the customer to do the following action plan.
    1. in XML Publisher Administrator resp > Administration expand the HTML Output section.
    2a. enter a value for 'Base image URI'
    2b. enter a value for 'Image file directory'
    Customer set the value as following and retest this issue,but he found the issue is not solved.
    Base image URI: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media/XXSLI_SONY_LIFE_LOGO.gif
    Image file directory: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media
    I verified 'Base image URI' and 'Image file directory' settings:
    1) Change output type to HTML.
    2) Click the Preview.
    but the image is correctly displayed on HTML, so I think the issue is caused by user's uncorrectly setting of the base image URL and/or image file directory
    but could anyone give me some advice on which value should be set for Base image URL and Image file directory
    Regards
    shuangfei

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • Scan a file for virus before upload

    In many CRM functions, eg - Activities, Mkt Planner, etc., there is a tab for uploading/attaching files.  How can we scan the file for virus before saving?  We have a Basis 620, so we can't use the Virus Scan Interface because it is available from Basis 640 onwards.
    I am looking for two things - 1. A method to scan for virus and 2. A user exit where this can be implemented before saving.
    Thanks.

    http://forum.java.sun.com/thread.jspa?threadID=499566&tstart=200

  • Where can i find the chassis file for import in MAX for drawing connection diagram before purchasing

    where can i find the chassis file for import in MAX for drawing connection diagram before purchasing
    chassis: NI PXIe-1078
    thx

    This board is for an obsolete product called Measure - an add-on for Excel. Please repost with details on exactly what you mean by 'chassis file'.

  • Opening a file for write access [trailing spaces required]

    Hi,
    i am opening a file for write access using:
    OPEN DATASET W_FILENAME FOR OUTPUT IN TEXT MODE.
    However, when i perform transfer W_LINE to W_FILENAME, trailing spaces in W_LINE are trimmed off automatically. I have tried various methods without success.
    Appreciate if help can be offered. Thank You~

    haiiiiiii,
    OPEN DATASET OUTFILE FOR OUTPUT IN TEXT MODE encoding default.
    TRANSFER OUTREC TO OUTFILE.
    CLOSE DATASET OUTFILE.
    here out rec we are moving to the out put  file.
    for ur requrement concatinate all the fioelds to outrec and then move it to file.
    then u wont get any problems with spaces

  • TS4002 I don't have Lion OS but have switched to icloud to keep my MAIL account working. However, now I find I'm missing SENT files for anything before July 2012. I logged onto iCloud thinking they might be online but they're not there either? Help!

    I don't have Lion OS but have switched to icloud to keep my MAIL account working. However, now I find I'm missing SENT files for anything before July 2012. I logged onto iCloud thinking they might be online but they're not there either? Help!

    Call Apple Customer Relations - 1-800-275-2273.  Ask politely & firmly that you want to be transferred to Customer Relations.  Tell them exactly what you stated in your post.
    GOOD LUCK!
    These are user-to-user forums where everyday folk (volunteers) post questions and offer answers (technical support) to each other.  

Maybe you are looking for