Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / May 2006

Tip: Looking for answers? Try searching our database.

Uncommitted statements?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bernd Hohmann - 18 May 2006 09:30 GMT
Hi,

is there any commandline option to see if there are uncommitted
statements and which statements aren't comitted? Or at least a hint that
there are uncommitted pages in the transaction log.

Bernd
Pierre Saint-Jacques - 18 May 2006 18:50 GMT
The db2 get snapshot for database on dbname will give you.
The log file name of the first active log, which should contain either or
both of 1 or more transaction in flight or dirty (committed but not
externalized to the table).
The last active log file.
The application handle of the appl. holding the pldest in flight
transaction.
But not the contents of the logs, nor the number of transactions in those
states.

A snapshot at the application level will show you how many appls. there are,
which are holding what type of locks and how many locks are held. You could
also turn the statement switch on to get this at the statement lervel.  This
could be a busy report!!!!!
Those holding locks would be the ones that have not rolled back or committed
and therefore have in flight stuff.

HTH,  Pierre.
Signature

Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515

> Hi,
>
[quoted text clipped - 3 lines]
>
> Bernd
Shashi Mannepalli - 18 May 2006 20:17 GMT
Once you identify the LOG file which u want to read you can use
SQLURLOG API
to read its contents.

cheers...
Shashi Mannepalli
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.