Solved

How to find DB2 committed transaction log timestamps?

Posted on 2011-02-23
4
1,893 Views
Last Modified: 2012-05-11
Is there any command to find out the committed transactions in DB2?
0
Comment
Question by:Sudarshan3677
4 Comments
 
LVL 45

Assisted Solution

by:Kdo
Kdo earned 250 total points
ID: 34967180
Hi Sudarshan,

It will vary depending on which version of DB2 you're running, but you'll have to extract that information from the logs.  I'm unaware of a command to do so, but the db2ReadLog API can be called from a user-written program to scan the log file(s).

Kent
0
 
LVL 12

Accepted Solution

by:
mwochnick earned 250 total points
ID: 34967203
The committed transactions are in the transaction logs.  Unfortunately these are binary and require a tool to read them.  DB Recovery Expert is one such tool.  A second approach is to build your own tool using the DB2 api.  I've never tried this, but here is an article that talks about that approach.  http://it.toolbox.com/blogs/db2admin/reading-transaction-logs-26229
here are some articles from IBM
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.apdv.api.doc/doc/r0001910.html
and
an example
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.apdv.api.doc/doc/r0001673.html
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 35196754
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now