Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
Log size is Big
16 posts, Page 1 of 2
1
2
»»
Log size is Big
Rate Topic
Display Mode
Topic Options
Author
Message
DIB IN
DIB IN
Posted Tuesday, January 08, 2013 12:27 AM
SSC Rookie
Group: General Forum Members
Last Login: Wednesday, March 06, 2013 12:28 AM
Points: 31,
Visits: 156
i am new in DBA.
If in a database MDF file Size is 10 GB and LDF file size is 50 GB
What are the steps require to reduce to log file size.
Post #1403996
Bhuvnesh
Bhuvnesh
Posted Tuesday, January 08, 2013 1:03 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
DIB IN (1/8/2013)
If in a database MDF file Size is 10 GB and LDF file size is 50 GB.What are the steps require to reduce to log file size.
LDF will grow it should. it is its nature. but we need to manage the files ? whats the recovery model ? simple or full ? are you taking its regular backup ? see this link
http://www.sqlservercentral.com/articles/Administration/64582/
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1404025
anthony.green
anthony.green
Posted Tuesday, January 08, 2013 1:15 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
As you state that you are a new DBA, I would strongly recommend reading the Accidental DBA guide (link in my signature below) as it will cover some of the main issues which are faced in the world of SQL.
But as Bhuvnesh, what is the recovery model of the database? If FULL or BULKLOGGED do you have transaction log backups running?
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1404029
DIB IN
DIB IN
Posted Tuesday, January 08, 2013 1:35 AM
SSC Rookie
Group: General Forum Members
Last Login: Wednesday, March 06, 2013 12:28 AM
Points: 31,
Visits: 156
recovery model is full
Post #1404041
anthony.green
anthony.green
Posted Tuesday, January 08, 2013 1:37 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
Do you do transaction log backups?
Do you need the databases to be in full recovery?
What is your acceptable amount of data loss? What is your recovery point objective? Can you loose a days worth of data with no affects to the business, or can you only loose minutes?
How often do you do full or differential backups?
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1404043
GilaMonster
GilaMonster
Posted Tuesday, January 08, 2013 2:37 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 11:08 AM
Points: 37,639,
Visits: 29,893
Please read through this -
Managing Transaction Logs
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1404074
Aadhar Joshi
Aadhar Joshi
Posted Tuesday, January 08, 2013 3:38 AM
Ten Centuries
Group: General Forum Members
Last Login: 2 days ago @ 10:01 PM
Points: 1,044,
Visits: 226
You should keep it to simple recovery model, untill u dont think your all transactions should logged in log file till the database backup process and it increses size of your log file..
OR you should take backup periodically..
Post #1404098
DIB IN
DIB IN
Posted Tuesday, January 08, 2013 3:46 AM
SSC Rookie
Group: General Forum Members
Last Login: Wednesday, March 06, 2013 12:28 AM
Points: 31,
Visits: 156
Well i have gone through the articles mentioned above. Currently there is no transaction back up. database is in full recovery.
Will it be useful if we run the below query when there is no transaction active?
USE DBNAME;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE DBNAME
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (DBNAME_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE DBNAME
SET RECOVERY FULL;
GO
Post #1404105
anthony.green
anthony.green
Posted Tuesday, January 08, 2013 3:48 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
Do you need the database to be in FULL recovery?
As I have said what is your acceptable amount of data loss? How much data can you afford to loose with this database?
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1404106
DIB IN
DIB IN
Posted Tuesday, January 08, 2013 3:53 AM
SSC Rookie
Group: General Forum Members
Last Login: Wednesday, March 06, 2013 12:28 AM
Points: 31,
Visits: 156
database to be Full recovery.
there will be no data loss or minimum data loss.
Post #1404113
« Prev Topic
|
Next Topic »
16 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.