How to covert before and after image details from logdump to SQL

Hi,
Through logdump,i am able to retrieve below before and after image details for an update statement.
Instead of below ascii format output, i need to know the complete sql statement before update and after update.
Is there any command to covert below output to readable SQL sentence?
2012/09/26 02:30:16.999.659 FieldComp Len 300 RBA 2528
Name: TEST.TESTTABLE
Before Image: Partition 4 GU m
5e50 86f5 af70 9660 b6fa 785c e34f 8881 0497 9507 | ^P...p.`..x\.O......
799f 2ee2 6399 d539 ea92 90de 828b 83d9 adc9 c8c4 | y...c..9............
ca87 9632 7136 a5fc 826f 8cc7 6ddd 7f8a e02e 816a | ...2q6...o..m......j
6ac4 739a 8011 5068 068a 4553 4937 93e7 cc5a d3d3 | j.s...Ph..ESI7...Z..
6a2b 2540 3be9 1df7 6d0c 0f17 d795 efd4 e0c5 dae9 | j+%@;...m...........
a488 a757 7c07 78a4 5f2a 1330 d2bb 5a05 7075 6b95 | ...W|.x._*.0..Z.puk.
529c f681 97d8 df6f 58d5 37dc e36d 8bc0 19d5 c7f0 | R......oX.7..m......
Bad compressed block, found length of 34549 (x86f5), RBA 2528
Logdump 2335 >n
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 300 (x012c) IO Time : 2012/09/26 02:30:16.999.659
IOType : 15 (x0f) OrigNode : 255 (xff)
TransInd : . (x01) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 24567 AuditPos : 4268948
Continued : N (x00) RecCount : 1 (x01)
2012/09/26 02:30:16.999.659 FieldComp Len 300 RBA 2947
Name: TEST.TESTTABLE
After Image: Partition 4 GU m
5e50 86f5 af70 9660 b6fa 785c e34f 8881 0497 9507 | ^P...p.`..x\.O......
799f 2ee2 6399 d539 ea92 90de 828b 83d9 adc9 c8c4 | y...c..9............
ca87 9632 7136 a5fc 826f 8cc7 6ddd 7f8a e02e 816a | ...2q6...o..m......j
6ac4 739a 8011 5068 068a 4553 4937 93e7 cc5a d3d3 | j.s...Ph..ESI7...Z..
6a2b 2540 3be9 1df7 6d0c 0f17 d795 efd4 e0c5 dae9 | j+%@;...m...........
a488 a757 7c07 78a4 5f2a 1330 d2bd 5a05 7075 6b95 | ...W|.x._*.0..Z.puk.
529c f681 97d8 df6f 58d5 37dc e36d e8b8 19d5 1af0 | R......oX.7..m......
Bad compressed block, found length of 34549 (x86f5), RBA 2947

From the reference guide:
*FORMATSQL*
Valid for Extract
Use the FORMATSQLparameter to output data in external SQL format, instead of the default
Oracle GoldenGate canonical format. FORMATSQLgenerates SQLstatements (INSERT, UPDATE,
DELETE) that can be applied to both SQLand Enscribe tables by utilities other than Oracle
GoldenGate Replicat.
NOTE Do not use FORMATSQL if the data will be processed by the Replicat process.
Replicat expects the default canonical format. Do not use FORMATSQLif
FORMATASCIIor FORMATXMLis being used.
A FORMATSQL statement affects all extract files or trails defined after it.
Default output
Without options, FORMATSQLtransactions are output as follows, in comma-delimited format:
● The begin-transaction indicator, B.
● The timestamp at which the transaction was committed.
● The sequence number of the transaction log in which the commit was found.
● The relative byte address (RBA) of the commit record within the transaction log.
● The SQL statements.
● The commit indicator, C.
● A newline indicator.
Every record in a transaction is contained between the begin and commit indicators. Each
combination of commit timestamp and RBA isunique. You can customize the output
format with optional arguments.
Default See “Default output”
Syntax FORMATSQL [<option>] [, ...]

Similar Messages

  • Data Loading(Before and After Image)

    I heard that a datasource which has both "Before and After Image " ,then the data can be sent directly to the infocube or from the DSO to the Infocube but where as
    If a datasource supports after image then first it has to be loaded to the DSO and then to the Infocube ,
    My question is how to know the image types of the datasource ?

    Hi Ravi,
    Check in ROOSOURCE tables in ECC. You can find the behvariaour options in DELTA field, so based on this table we can say will it support Cube/ODS.
        Delta Only Via Full Upload (ODS or InfoPackage Selection)
    A    ALE Update Pointer (Master Data)
    ABR    Complete Delta with Deletion Flag Via Delta Queue(Cube-Comp)
    ABR1    Like Method 'ABR' But Serialization Only by Requests
    ADD    Additive Extraction Via Extracto (e.g. LIS Info Structures)
    ADDD    Like 'ADD' But Via Delta Queue (Cube-Compatible)
    AIE    After-Images Via Extractor (FI-GL/AP/AR)
    AIED    After-Images with Deletion Flag Via Extractor (FI-GL/AP/AR)
    AIM    After-Images Via Delta Queue (e.g. FI-AP/AR)
    AIMD    After-Images with Deletion Flag Via Delta Queue (e.g. BtB)
    CUBE    InfoCube Extraction
    D    Unspecific Delta Via Delta Queue (Not ODS-Compatible)
    E    Unspecific Delta Via Extractor (Not ODS-Compatible)
    FIL0    Delta Via File Import with After-Images
    FIL1    Delta Via File Import with Delta Images
    NEWD    Only New Records (Inserts) Via Delta Queue (Cube-Compatible)
    NEWE    Only New Records (Inserts) Via Extractor (Cube-Compatible)
    O  
    ODS    ODS Extraction
    X    Delta Unspecified (Do Not Use!)

  • Compare BEFORE and AFTER image in replicat

    Do any of You experts know how to make the following code smaller?
    ...,p_kolonner=@STRCAT("ID='",@IF(@COLTEST(BEFORE.ID,PRESENT),BEFORE.ID,""),"'>'",@IF(@COLTEST(ID,PRESENT),ID,""),"'¤",
    "OBSOLETED_ON='",@IF(@COLTEST(BEFORE.OBSOLETED_ON,PRESENT),BEFORE.OBSOLETED_ON,""),"'>'",@IF(@COLTEST(OBSOLETED_ON,PRESENT),OBSOLETED_ON,""),"'¤",
    "SMRT_ID='",@IF(@COLTEST(BEFORE...The actual parameter would look like:
    P_KOLONNER:  ID=''>'11531'¤OBSOLETED_ON=''>''¤SMRT_ID=''>'1'¤SM_SMID=''>'2011X0074-00'¤SMT_ID=''>''...
    This code is part of the params section of a sqlexec in a replicat file where I want to concatenate before and after images of a table into one parameter. I have to replace all NULLs with '' or the whole string evaluates to NULL when one of the columns are NULL. I have a procedure receiving the parameter.
    How do I write this code shorter? I have to use less code to accomplish the same thing.

    Hi Yosemite:
      You're right, the correct term is "Key Fields", in the previous post I made a mistake when referring to it as "Key Part", I'm sorry for the confusion.
    Anyway, it is not clear to me if you managed to solve the problem or if you're still struggling with your data loads, if this is the case, Could you please elaborate?
    -Which is the data source you are working with?
    -Did you map the ROCANCEL field both to the 0STORNO and 0RECORDMODE InfoObjects?
    -Are you using Addition or Overwrite on the Update Rules/Transformation Rules to the DSO?
    -Have you applied any relevant SAP Note to fix this issue?
    In case you have not read the blog by Swapna Gollakota, take a look at it, you might find it useful.
    How does a datasource communicates "DELTA" with BW?
    /people/swapna.gollakota/blog/2007/12/27/how-does-a-datasource-communicates-delta-with-bw
    Regards,
    Francisco Milán.
    Edited by: Francisco Milan on Oct 29, 2010 12:31 PM

  • Before and after image question.

    Dear all,
    I have a similiar scenario below
    something i got off from previous post*****
    1000 10 10 (new)
    1000 10 8 (changed in the next day)
    then extractor will send like this.
    first load means when the entry is created in the source system.
    1000 10 10.
    after change to 8. source will send the entry like this
    1000 10 -2.
    My question is, when i do a FULL LOAD into the next ODS, i keep getting only -2 as my result, not 8. How can i solve this in my update rule?

    Hi again,
    The delta records from an ODS always gets before and after images. For the full update, the records are always read from active table so this will only get the after image. Now suppose you are having wrong data in ODS2, you have to selectively delete the records from ODS2 and then do a full repair from ODS1. Incase of overwrite update rule, you need not do a selectively delete. So if ur data in ODS2 is wrong, delete it first and then do a full repair. You ran a full repai without deleting the already existing data and this might have created the problem.
    Sriram

  • What are Before and After Images ?

    Hello Masters,
    Best wishes to all.
    For the past one week I've learnt many concepts from SDN, got all my doubts clarified.
    On the same roll, I have one more question
    What are Before and After Images ?
    Where do we come across these terms ?
    Could you please explain with an example ?
    I always thank my replies in points 
    Thanks in advance...

    <b>Hai</b>....
    <u><b>Before and After Images:</b></u>
    This Term is Used in the " Change Log "....
    Change Log is one of the Table used in ODS....
    That means the Changes in Running Request in ODS....
    Example:
    If you Enter the Request to " New Table" after activation the Request will be Deleted From the Table, You can see that in Change log......
    <i><b>Assign Points If It Halps</b></i>....
    <u><b>BalajeeKannan</b></u>

  • Before and after images in ODS

    Hi everyone,
    Please let me know what are the before and after images when we are handling ODS.When those are coming in to the picture. I appreciate for great answers
    Thanks
    Ratna

    Hi!
    check this link for after image.
    Re: regarding ODS
    and before image is snapshot of the data before a change took place
    after image is snapshot of the data after change.
    these are used for delta update.
    with regards
    ashwin
    <i>   PS n: assigning poinst is the way of saying thanks here. please close the threads after you find the solution because its easier to refer to other people. if you do not close it is thought that you could not find a solution. and closing thread is assigning 10 points. if you find the solution yourself you can still close by clicking the radio button "solved myself beside the question".</i>

  • Appointments one hour ahead of appointments created in iCloud - both before *and* after the shift from daylight savings time

    I am in the CET timezone and my Lumia 925 on 8.1 has consistently shown appointments one hour ahead of appointments created in iCloud - both before and after the shift from daylight savings time here.
    My disappointment is compounded by the fact that I patiently waited for October, naïvely thinking the clockchange would solve things... doh.
    Look forward to your earliest solution.
    Jonny.

    There is a separate thread on this subject. It's a bug in Windows Phone 8.1. It is fixed in the upcoming Windows 8.1 Update 1 release (due Nov/Dec 2014). Alternatively, you can install the developer preview (go to Store and search for 'preview for developers'.
    You have to register as a developer though (easily done through appstudio.windows.com) or you can wait for your phone vendor (Microsoft / Nokia) to release the 'Denim' upgrade.
    For now, I don't know a decent workaround.

  • White spaces before and after Images

    I have several images in my FM document,
    They are either gif or jpg.
    All set in Anchored frames, left-aligned.
    I have made most of them conditional for Online help, so they
    dont show up in my Online help.
    My issue is I am not sure how to remove all the space that
    appears before and after the images (they are not displayed because
    I have set it to conditional)
    I remember somewhere that the spaces for such images can be
    removed.
    Please let me know if there is.

    Hi,
    Thanks for replying.
    I have removed the spaces before and after the images in
    Frame.
    Set the images to be conditional (only for print). If there
    are any images they are in anchored frame--left aligned.
    So my problem is that the space before - after and the place
    where the image originally was (now not displayed as it is
    conditional) have these huge white spaces displayed.
    I am not sure how to map them or how to delete them.
    I am familiar in FM, and Robohelp (although i have worked
    with Word only and it was easy). For some reason this seems too
    hard.
    Hope I have gotten across to you with my question.

  • Printing count of records before and after a command in a PL/SQL

    Hi: I have the following PL/SQL script
    declare
    l_sysdate date := sysdate;
    begin
    INSERT INTO a_mnsnotes SELECT * from mnsnotes where TKT_NBR in (
    select TKT_NBR from mnsinterface where MNS_STATUS=5 and CLOSED_DATE < (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400));
    delete from mnsnotes Where
    TKT_NBR in (select TKT_NBR from mnsinterface where MNS_STATUS=5 and CLOSED_DATE < (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400));
    commit;
    end;
    /I want to assign the number of records in the two table (a_mnsnotes and mnsnotes) to two variables so I can print in one line the numberof records for both tables before and after the procedure. How do I set the output of a sql command (select count(*) from mnsnotes) to a variable within the pl/sql?
    Thanks
    Ravi

    Also I'm guessing this:
    (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400);
    is because closed_date is stored as number of seconds since 01-JAN-1970, which should be turned into a date ASAP. Never store dates as anything other than DATE datatype (or maybe TIMESTAMP in more recent versions).
    It's not right, as sysdate will have a time component so if this code is run at 8am it will give different results to if it is run at 9pm. And not all months have 30 days.
    Have you considered TRUNC(add_months(sysdate,-1)) instead of l_sysdate-30 ?

  • How do I find and extract images in from email

    Over the years, plenty of people have shared pictures with me via email.  I want to find all those pictures and make copies to put into aperture.  I don't want to grab all the pictures that are .gifs that are icons from applications or signature etc.
    Does anyone know a good way or app to do this?  Finder doesn't seem to allow me to exclude certain files.

    mass wrote:
    Finder doesn't seem to allow me to exclude certain files.
    Let's get a few things out of the way first.
    As to X1, forget it. It's Windows only, and it's not exactly cheap.
    Also, nothing I say applies to Outlook. I assume you're talking Outlook 2011, and I have no clue how it works.
    As to Finder, it doesn't do searches. All searches are done by Spotlight. Finder's Find command, the Spotlight menu, these are just different ways of interacting with Spotlight. And, yes, of course you can exclude certain files. You simply have to learn to use Spotlight. I'm not a fan -- I think Spotlight is not a search engine, but a sorry, pathetic excuse for one -- but still, it can do a few things if you handle it right.
    Now, about Mail. AFAIK, Apple does not document the <~/Library/Mail> structure, so what follows is from my own observations, and hence not authoritative.
    Incoming and outgoing messages from your mail accounts, ie, listed in Mail.app's Sidebar under "Mailboxes", are stored in <~/Library/Mail/[account]>, inside .mbox packages, as individual .emlx files. An .emlx file contains the raw message, plus an XML footer. Any attachments are, of course, inside the raw message in base64 encoding. The .emlx metadata does not include whether or not the message contains an attachment, so you can't use Spotlight to search for messages with attachments, nor can you do that in Mail.
    However, messages which are moved from your mail accounts to local, user-created mailboxes, listed in Mail.app's Sidebar under "On My Mac", are treated slightly differently. They are still stored as .emlx files (including attachments) inside .mbox packages, which, in their turn, are inside a directory named "Mailboxes", but the attachments are also extracted to an Attachments directory inside the respective .mbox package, being stored inside directories labelled with the respective message's number. With this arrangement, finding images with Spotlight becomes trivial.
    For instance, you say you want to find all images which are not GIFs. In Finder, select <~/Library/Mail/Mailboxes>, then ⌘F or ⇧⌘F. In the search field, type
    kind:image NOT .gif
    (the Boolean operator NOT is case sensitive). This should find all images which do not contain the string ".gif" in their file name. Of course, there are strings attached.  If there is an image named, say, "my_photo.gif.jpg", it will be missed. Also, "kind:image" only looks for TIFF, JPEG, PNG, GIF and BMP formats. It will probably not find RAW images, or those in more exotic formats.
    So, your first step in Mail (if you haven't done so already) is to organise your mail, irrespective of attachments, in mailboxes and folders in "On My Mac". (IMHO, this is a good idea in any case.)
    The next step is to use a Spotlight search as described above to find all images. After that, it's up to you. I don't know how Aperture works. Maybe you can just import them, or maybe you need to copy them to some folder. (Remember, you may copy stuff from <~/Library/Mail>, but don't move or delete any of it in Finder -- or the wrath of Mac OS X will strike down upon thee with great vengeance and furious anger!) If you do need to copy them to some other folder, I suspect you'll discover another bridge to cross, but we'll deal with that when -- if -- we get there.

  • Checklist before and after BW upgrade from 7.0 to 7.3 ?

    Hi Guru's
    Can you please let me know the steps to be carried for upgrading BW7.0 to BW7.3, more specific to a BW consultant (with OSS Notes to check at, etc....)
    Thanks,
    Kiran

    Hi Anil,
    This is a commonly asked question. Maybe google before you ask the question.
    But see the links down below.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2047cd8f-fa94-2e10-1f90-8f11dcf0e589?overridelayout=t…
    PI Upgrade from 7.0 to 7.3
    advantage of upgrading pi 7.1 to pi 7.3
    PI 7.0 to 7.3 Migration
    http://scn.sap.com/thread/2062650
    Regards,
    Jannus Botha

  • LO Cookpit: what is "Before Image" and "After Image" related to Delta ?

    Someone mentions "Before Image" and "After Image" which is related to Delta method in source systems.  Someone know what they mean?
    Thanks

    Before Image and After Image are different Record modes present.
    Before Image :
    Lets assume the data present in the Cube and ODS is
    Doc No --Mat Type --- QTY
    120 -
    M01----
    10
    Now let assume that the data has changes and the quatity has to be changed from 10 to 8.This can be done in different way depending on if we are using a Cube or ODS.
    If its a Infocube . i.e it is additive so we can send the before image and the after image together
    Eg:
    Doc No -
    MAT type -
    QTY
    120--M01--
    -10
    120--M01--
    8
    If the Data Source sends both the before image and the after image, this combination can be loaded in any cube or ODS target. For ODS targets, if Overwrite setting is made, then only the after image(the last one) will make it to the Activation queue table of the ODS. If the ODS is set to Addition then both before and after image are needed to make a correct load to the target.

  • ! symbol and before and after

    I am finding when I bring up images that were previously in LR2 that in the bottom right hand corner there is an (!).  When I click on it it asks if I want to update my image.  Then come up a before and after image.  I cannot for the life of me get back to just having a single image.  Thanks anyone.

    Adobe has a Lightroom video titled "What's New in Lightroom 3" at http://tv.adobe.com/watch/getting-started-with-adobe-photoshop-lightroom-3/whats-new-in-li ghtroom-3/
    If you watch it you will see a detailed explanation of the ! symbol at about 6:27.  I went ahead and converted all of my images so they could all take advantage of the new Develop features.
    Jim

  • Before and after

    In PSE 9 how can I see before and after
    images in full edit mode?

    I don't know how familiar you are with PS. So please apologize if my proposal may sound improper or confusing.
    In PS there may be of course lots of "befores" and "afters". Therefore, I would recommend you to use the "History" panel enabling you to easily switch between different states of your editing procedure. Also within the History panel there should be a "Snapshot" feature (I know there is in PS - not sure if this is valid also for PSE) which makes it even easier to name and identify a "before" (or "after") state.
    Some users prefer to create a duplicate of the original file first to avoid undesired changes and to be able to compare original and duplicate.
    A 3rd option (which I use very often) is to just duplicate the background layer. You then simply apply your tweaks to the resulting "background copy" layer and can switch this layer "on" and "off" (just by clicking on the eye symbol) within the layer panel.
    I hope that may be helpful. Please excuse if I misunderstood and you know all these features already.

  • After image delta from cube to OHD..

    Hi All,
    I would like to pick you brains for an issue I am currently facing. There is one requirement that requires us to send delta data in the form of After image to an OHD file from a cube.
    The issue is when we get delta data from the cube, we are getting only the additive values. My understanding is that this delta is the aggregation of the Before and After image delta values from the underlying dso.
    My issues are:
    1. Is there a way of getting the after image delta values from the cube?
    2.  I do not want to read from the underlying dsos because, some calculations are performed when loading the cubes. Also, the data required is in aggregated on year level. So if we take the data from the dso, which is in day level, we would have to do aggregation manually.
    Thanks in advance for your help experts!

    Thanks for the above responses...
    Let me give the more detailed scenario..
    I have 4 GL cubes whose delta values are required to be exported. They want the delta values to reflect the "As Is",
    So for instance we have the following on Day 1:
    GL Acc  0Amount
    10001    100
    The next day, 0Amount(Aggregation mode: Sum) gets an addition of 100, they want to see the following
    GL Acc 0Amount
    10001   200
    These 4 GL Cubes have about 5 common underlying DSOs.
    The issues here is:
    - If we read the delta directy from Cubes we are getting the addiditive values: in this case +100
    - If we read the delta from DSOs, from my understanding we should perform aggregation manually. Since the client wants to view the data by Year instead of by Day which is how it exists in the DSO.
    - Another issue here is: The clients require us to send a SINGLE file. Hence we need a way of appending the Data from multiple InfoProviders to a single file.
    Our Proposed Solution:
    - Read from underlying DSOs. and store in a intermediate Write - Optimized DSO.
    - Perfrom manual aggregation by using ABAP.
    - Send delta values to OHD filtering out the before image(ORecordMode = 'X')
    Issues:
    Need to perform manual aggregation which may be an issue because the volume can be large.(Currently we can not predict the volume.)
    Plus Any other issues that you can foresee?

Maybe you are looking for

  • IPod Classic will not turn on, refuses to go into disk mode.

    Hello Apple Community. Last night I went out to a party, and while I was asleep, some questionable so-and-so poured alcohol on me, and this alcohol got all over my pants, and subsequently, the iPod. I am using a 160GB White iPod Classic, and I have n

  • How to get solid color background in Photo Booth?

    I checked the Help menu for Photo Booth and my experience does not match the descriptions in the Help. I want to have the speaker in front ofd the iMac with a deep blue background. I found a deep blue swatch of color in Google and placed it into the

  • How to save a string to a variable..

    i need to save a string to a variable but have no idea...... currently my code looks like Scanner getname = new Scanner (System.in); System.out.print("You have entered the name: " + getname.next());anyone with any ideas i will appreciate a lot!

  • Connection verification failed for data source using mySQL

    Hi, I having problem with mySQL datasource and getting the above error. This is only happening in our staging server. We are using ColdFusion 8 running JRUN4 and trying to connect to mySQL v 5.1.41. I tried adding DSN from my localhost using ColdFusi

  • "Start Date" field available

    Hi experts.... I need your help on this ....how can we configure the "start date"field should be available for an opportunity In GUI.i am able to see all the closing dates for an opportunity.But i need start date Please provide me the configuration s