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 > DB2 9.7 UDB - transaction Log space.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-11, 12:19
db2mtrk db2mtrk is offline
Registered User
 
Join Date: Nov 2011
Posts: 27
DB2 9.7 UDB - transaction Log space.

Hi,
we are running DB2 9.7 UDB on win 2008 R2 - HADR enviornment.
Question about logs.
I have setup primary logs to 40 and secondary log to 60.
Log size is 10MB.
Configured to Archive log.
Database size is around 480GB.

By checking archive log folder, I can see there are around 30 (average per day) logs are archived. This means to me that 30 logs are used per day.

BUT, i did the snapshot for the database and I can see the following log details.
Log space available - 1038669727 bytes
Log space used by the db - 4786273 bytes
Maximum total log space uses - 21070297 bytes
Seconday log usage -0

I reset the monitor ,then after 24 hours did the above snapshot.

The question is, the snapshot information and the archived logs are not tally.
Can someone give me some idea why ? am I doing something wrong ?
please advise.
Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-24-11, 00:18
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

the maximum value describes the High Water mark for the amount of space used by open transactions. It's not the amount of logspace written over time.

Hth
nvk
Reply With Quote
  #3 (permalink)  
Old 11-25-11, 04:46
db2mtrk db2mtrk is offline
Registered User
 
Join Date: Nov 2011
Posts: 27
the eqation is not correct

as you said, according to the high water mark, only 20MB was used. So there should be only 2 log files in the archive area.
But there are 30 logs in archive.

Any ideas?
Reply With Quote
  #4 (permalink)  
Old 11-25-11, 04:56
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you can close a logfile with archive command - as db2 does while executing backup..
the size of the closed logfile can be truncated because the file was not filled
....
the nbr of files is not reflecting the logspace used....
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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