|
|
|
|
|
|
| Author |
Message |
Chris *nix forums beginner
Joined: 10 Jul 2006
Posts: 1
|
Posted: Mon Jul 10, 2006 6:10 am Post subject:
check transaction log
|
|
|
Help! is there a way i can view if the transaction logs are getting
full? My problem is that every week i do a dump_tran just to clear the
transaction log because when the transaction log gets full our
application hangs. So what i need is how to check if the transaction
log is nearing 100%. BTW, I perform a daily dump database but somehow
the transaction log still gets full once a week.
Thanks! |
|
| Back to top |
|
 |
bret@sybase.com *nix forums addict
Joined: 24 May 2005
Posts: 66
|
Posted: Mon Jul 10, 2006 3:50 pm Post subject:
Re: check transaction log
|
|
|
Chris wrote:
| Quote: | Help! is there a way i can view if the transaction logs are getting
full? My problem is that every week i do a dump_tran just to clear the
transaction log because when the transaction log gets full our
application hangs. So what i need is how to check if the transaction
log is nearing 100%. BTW, I perform a daily dump database but somehow
the transaction log still gets full once a week.
Thanks!
|
To get the current size of the log in a database:
sp_spaceused syslogs
Note that DUMP DATABASE does not truncate the log - it just makes
a backup copy of everything. The DUMP TRAN command makes a copy
of the log and then truncates it (up to the beginning of the oldest
still open
transaction).
You can use THRESHOLDS to automatically dump and truncate the log
when it reaches some level of fullness.
-bret |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sun Nov 23, 2008 11:09 am | All times are GMT
|
|
Adverse Credit Remortgage | Debt Consolidation | Loans | Fast Loans | Remortgages
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|