If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to simulate a transaction log full?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-09, 11:08
dwouters dwouters is offline
Registered User
 
Join Date: Aug 2008
Posts: 4
How to simulate a transaction log full?

Hi all,

I would like to test the behavior of my application in case of a full transaction log.

What would be the best way to do that with DB2 9.5?

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-24-09, 12:00
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I assume you are using a test system to do this... Make the log space very small, then start making transactions and leave them open (do not commit). The log space should fill up fairly quickly.

Andy
Reply With Quote
  #3 (permalink)  
Old 08-26-09, 21:21
stephen.song stephen.song is offline
Registered User
 
Join Date: Aug 2004
Posts: 24
while(true){

insert a record;
delete this record;

}
__________________
I am a java and database developer.
Reply With Quote
  #4 (permalink)  
Old 08-27-09, 08:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by stephen.song
while(true){

insert a record;
delete this record;

}
If autocommit is turned on, then this will not fill up the logs.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On