Re: Very large LDF
- From: Atlas <Atlas@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Mar 2007 07:20:16 -0700
Thanks for that information, very helpful.
A couple of further questions just to clarify my understanding of the backup
process.
If a database is backed up using the 'Complete Backup' option via Enterprise
Manager (All Tasks - Backup database) - will this backup the transaction logs
as well?
Also when creating a DB Maintenance plan there is an option on one Tab to do
a complete Backup (of the database) and on another Tab to back up the
transaction logs. Thinking about it, if a full database backup is done then
why do the transaction logs need backing up as well as - does a full backup
commit all remaining transactions?
And lastly - is the '> 1. Perform a Transaction log backup’
'BACKUP LOG mydb TO mydblogbackup' the same as going into Enterprise Manager
(All Tasks - Backup) and backing up the Transaction log only.
Thanks in advance
"Hari Prasad" wrote:
Hi,.
This is because you are not performing the transaction log backup. The LDF
file will be cleared after the log backup.
How to shrink the existing LDF file:
1. Perform a Transaction log backup (BACKUP LOG - refer books online)
2. Use DBCC SHRINKFILE on trasnaction log file
Have a look into the below link;
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q272318
Note:
Check the Recovery model you are using for that database. If it is FULL and
your data is not critical then change the
Recovery model to SIMPLE. Simple recovery model will clear the Transaction
log after commiting.
If you need the recovery model as FULL then,
Schedule a Transaction log backup based on your data growth, This can be
used when point in time recovery.
This will ensure that ur log file wont grow much.
Thanks
Hari
"Atlas" <Atlas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:52FC44F4-7F78-4A97-AB79-1A157207C0A6@xxxxxxxxxxxxxxxx
Hello,
I have a database that has an extremely large LDF file. The DB is approx 1
GB and the LDF about 20 GB. Presumably the LDF file should not be this
large.
The database gets backed up using Veritas Backup Exec. Can someone tell me
what I should do to the database in order to reduce the LDF file as it is
taking up unnecessary space.
Is it just a mater of shrinking the database from Enterprise Manager or is
there allot more involved.
The DB is set to Full recovery model and gets backed up every night (using
Veritas Backup Exec)
Thanks
- Follow-Ups:
- Re: Very large LDF
- From: Hari Prasad
- Re: Very large LDF
- References:
- Re: Very large LDF
- From: Hari Prasad
- Re: Very large LDF
- Prev by Date: Re: Very large LDF
- Next by Date: Re: Encrypting the actual MDF file - not the data column
- Previous by thread: Re: Very large LDF
- Next by thread: Re: Very large LDF
- Index(es):
Relevant Pages
|