Transaction log full

Jcage

ADSM.ORG Member
Joined
Jul 4, 2006
Messages
277
Reaction score
0
Points
0
Location
Toronto
Website
Visit site
Our transaction log usually fills up to between 30 and 40% full between database backups. Early this morning I was called because the log had become 92% full. It has NEVER been tha full and nothing has changed as far as backups and clients go. What could have caused it to go so high.
 
many many TSM requests (sql commands, queries ...) can fill your tsm log, use your actlog to find out whats happend!
 
many many TSM requests (sql commands, queries ...) can fill your tsm log, use your actlog to find out whats happend!


I've been going through the log from the night before and comparing it. I don't see any huge differences.
 
Have you changed the logmode to rollforward/normal?
Or did you backup have many many small files to backup up?
 
Have you changed the logmode to rollforward/normal?
Or did you backup have many many small files to backup up?


There were a number of backups going on. We have 100's of unix and windows servers attached to TSM but there was nothing unusual and the logmode wasn't changed.
 
When was the last full DB backup? If the full DB backup did not happen, then you will see the logs fill up.
 
When was the last full DB backup? If the full DB backup did not happen, then you will see the logs fill up.

We have a full database backup run every afternoon. The only unusual activity I noticed was space reclamation running for about 2 hours longer than it should have. Would this impact the log ?
 
We have a full database backup run every afternoon. The only unusual activity I noticed was space reclamation running for about 2 hours longer than it should have. Would this impact the log ?

Yes it would, the server writes all definitions for the reclaimed files first to the logfile - after a DB backup the logfile will cleared.

Did you have the problems only one times?
 
Yes it would, the server writes all definitions for the reclaimed files first to the logfile - after a DB backup the logfile will cleared.

Did you have the problems only one times?


Yeah only the one time however I did lower the space reclamation threshold last night which would have caused it to run longer. I guess that could be it ?
 
May I suggest increasing your log file size or enabling log extension so you won't be jumping around in the middle of the night?
 
It is also possible for certain TDP's to pin the log. In order to find out which session is having issues you can run the undocumented command:

show logpinned.

This will show you exactly what is pinning the log.
 
I found out exactly what had happened. On any given night we expire between 200,000 and 300,000 objects. The night the log filled up we expired 1.5 million objects.
 
Back
Top