Re: suitable plan for Log backup
From: Aryan (Aryan_at_discussions.microsoft.com)
Date: 07/13/04
- Next message: Aryan: "Re: suitable plan for Log backup"
- Previous message: Pieter: "SQL7 - SP4 Applied script error"
- In reply to: Hari Prasad: "Re: suitable plan for Log backup"
- Next in thread: Aryan: "Re: suitable plan for Log backup"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Jul 2004 06:57:04 -0700
Hi,
Thanks for your guidance.
After the transaction log backup, I have tried to perform the shrinkfile command but I got the error message as below:
"Cannot shrink log file 2 (IstgDocument_Log) because all logical log files are in use."
After the first backup,the size of log backup is about 500k.Also the
DBCC SQLPERF(LOGSPACE) shows only 3.5% of log space is used.
Does it mean, only about 500k of logs are active?
How can I reduce the log file size in this situation?
Thanks
Aryan
"Hari Prasad" wrote:
> Hi,
>
>
> The physical logfile size (LDF file) will not reduce after a Transaction log
> backup. The transaction log backup will perform the backup of the database
> since the last log was backed up. After the backup the inactive part of
> transaction log will be removed from log. But the physical file size will
> remain the same. How to the
> log size and usage.
>
> DBCC SQLPERF(LOGSPACE)
>
> To reduce the LDF file physical size, after the transaction log backup you
> have to perform the shrinkfile command.
>
> DBCC SHRINKFILE('Logical_ldf_file',truncateonly)
>
> Logical ldf file can be identified by executing the below command
>
> use <dbname>
> go
> sp_helpfile
>
> Logical name is the column with "NAME".
>
> --
> Thanks
> Hari
> MCDBA
>
>
> "Aryan" <Aryan@discussions.microsoft.com> wrote in message
> news:FF3EF101-93B0-4B64-852C-4C924501405B@microsoft.com...
> > Hi,
> >
> > I have a 2GB database and the size of log file is approximately 1.5GB. For
> backup, I have defined a maintenance plan for DB & Log files. Unfortunately,
> after backup the size of log file does not decrease. It is said that after
> log file backup, SQL server eliminate the inactive logs automatically.
> > What is the best plan for Backup in SQL server? I mean, a plan for backup
> of DB/Log files and also we can have a log file in a suitable size.
> >
> > Thanks in advance
> >
> > Aryan
> >
>
>
>
- Next message: Aryan: "Re: suitable plan for Log backup"
- Previous message: Pieter: "SQL7 - SP4 Applied script error"
- In reply to: Hari Prasad: "Re: suitable plan for Log backup"
- Next in thread: Aryan: "Re: suitable plan for Log backup"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|