Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to figure out when a record was addeed/updated in table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
dappyin

New User


Joined: 23 Dec 2006
Posts: 2
Location: Gurgaon

PostPosted: Tue Dec 22, 2009 4:45 am    Post subject: How to figure out when a record was addeed/updated in table
Reply with quote

Hi,

I am trying to figure out of it's possible to figure out when a record was added/updated into the table. I don't have any time stamp related field in the table.

Might be a wierd requirement but was just wondering if it's possible to figure it out. Based upon this I would be able to implement a solution for my problem.

Thanks!!
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Dec 22, 2009 5:41 am    Post subject:
Reply with quote

You've already alluded to the solution -- add a couple of columns to the table: updated_user and updated_timestamp.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Dec 22, 2009 8:37 am    Post subject:
Reply with quote

Hello,

Suggest you talk with your dba and ask about what is available via the db2 log.
Back to top
View user's profile Send private message
senthilssg

New User


Joined: 09 Dec 2005
Posts: 64
Location: USA

PostPosted: Tue Dec 29, 2009 3:34 am    Post subject:
Reply with quote

1) Check with your DBA if there is any AUDIT table exists for the given table .
If there is AUDIT table exists for your base table , you can check when the rows were deleted and who did that .

or

2) you can follow the recommendation which was mentioned by dick in this thread
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us