[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to find DB2 committed transaction log timestamps?

Posted on 2011-02-23
4
Medium Priority
?
2,183 Views
Last Modified: 2012-05-11
Is there any command to find out the committed transactions in DB2?
0
Comment
Question by:Sudarshan3677
3 Comments
 
LVL 46

Assisted Solution

by:Kent Olsen
Kent Olsen earned 1000 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 1000 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 143

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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

873 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