Db2

 View Only
Expand all | Collapse all

Finding last updated time and checksum of a DB2 table

  • 1.  Finding last updated time and checksum of a DB2 table

    Posted Tue October 18, 2022 12:13 PM
    Edited by System Fri January 20, 2023 04:50 PM
    I m looking for mechanisms
     1) to find the last updated time at which a table got updated by insert/delete/statement statements.
     2) to compute the checksum of the table - This is required to detect duplicates in data across tables.

    If you know of any mechanism without server side configuration preferably or with server side configuration, please let me know.

    Please note that I may not be able to add a row change timestamp column in the table since the table belongs to the end users.



    ------------------------------
    radhakrishnan thangamuthu
    ------------------------------
    #Db2


  • 2.  RE: Finding last updated time and checksum of a DB2 table

    IBM Champion
    Posted Wed October 19, 2022 01:31 AM
    Hi!
     There are some timestamps in the RTS that could help you but not that much really.
    Checksum is not available anywhere. You must code that yourself and is obviously very very cpu intensive...

    ------------------------------
    Roy Boxwell
    ------------------------------