Very big Transaction Log file

Djou2424
Member Posts: 76
HI,
I'm trying to understand why the transaction log of a database is getting very big.
It is currently at almost 80 gigs.
The database itself is not that big.
mdf file is at 4 gigs and ndf file is at 15 gigs but the ldf file is at 80 gigs
They are running Nav 2009 SP1 classic on SQL
Any idea what I should be looking at?
-Julie
I'm trying to understand why the transaction log of a database is getting very big.
It is currently at almost 80 gigs.
The database itself is not that big.
mdf file is at 4 gigs and ndf file is at 15 gigs but the ldf file is at 80 gigs
They are running Nav 2009 SP1 classic on SQL
Any idea what I should be looking at?
-Julie
0
Comments
-
Did you create a Maintance Plan to backup your database regularly? After a backup, the logfile can be truncated.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Or just set the recovery model to simple and it won't grow that much anymore.
http://www.youtube.com/watch?v=fiO_V0TZd-s0 -
A backup is run everyday and they would like to keep the recovery model as FULL0
-
Check for Truncate and or Shrink SQL Server transaction log file.
You may need to do this periodically if your recovery model is set to full.0 -
Why do you want to keep the recovery model full?
Do you have transaction log backups?
What is your disaster recovery scenario? Do you have it written on paper? What are the recovery steps? How often do you practice doing it.
If there is no one who knows how to append the t-log backups it is false security.
All I want to say is; in case of a disaster, if it takes you 4 hours to find out how to restore your transaction log it is easier to retype all the data manually.0 -
Hi Mark,
I respectfully disagree with you.
It will be far cheaper for them to find someone who really knows SQL Server and NAV to help them set up a decent backup plan and make sure their SQL Server is operating efficiently.
The money they spend now will be a tiny fraction of the cost of recovering from a disaster.
Otherwise they are like a person who has driven a car, suddenly driving down the road in a 18 wheeler and hoping for the best.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Djou2424 wrote:A backup is run everyday and they would like to keep the recovery model as FULL
The transaction log backup should be done every hour.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Hey David,
I agree with you.
All I want to say is that you should make a decision. Either make a proper recovery plan in case of a disaster or accept that in case of a recovery you only have your overnight backup.
Most customers only start thinking of recovery when a disaster strikes. This should be done way earlier and practiced every once in a while.
If you don't practice a recovery frequently you'll find out that a system that has been setup perfecly like a while ago something has changed that broke your plan.
If you don't have in-house knowledge to periodically do this you should ask your vendor to periodically do this.
This does not only apply to SQL databases. Also to file and exchange backups. Often I've experienced at customers that their vendor promised a fail safe backup system and when it comes to a disaster it either takes them days to recover the files/emails/database from backups or they cannot recover them at all because at that time they discover that "somthing" has been misconfigured.
That is why you should periodicaly practice recovery. Or let someone else do this.0 -
Djou2424 wrote:A backup is run everyday and they would like to keep the recovery model as FULL
This is NOT meant as RTFM, but to show you where you can get information like this. SQL Server has probably the best help system of all MSFT products. Even though it sits on your local computer, it's called "Books Online", or BOL. It includes offline help articles and MSDN type information, but it also grabs information from online sources.
Go to Start, All Programs, SQL Server, Documentation and Tutorials, and Books Online should be right there. If it is not, then you'll have to get the installation disk and install it.
Click 'Search' and type in "backup strategies". You should see an article called "Introduction to Backup and Restore Strategies in SQL Server". Read this carefully, it will introduce you to the concepts. If you want to drill down, search for "Recovery Model". Search for "Transaction Log".
Check out my YouTube clip about maintenance, I think there's a section about backups, although it covers just the basics.0 -
Oh and listen to Mark. Answer the questions he asks. Set up a proper plan. Probably most important: PRACTICE RECOVERY0
-
Start by defining an acceptable recovery plan for your business. Then implement a backup plan (or other things) to support it. What works for others may not be right for you. And yes, practice it. Finding out, during a real emergency, that it doesn't quite work as expected is not a good experience.
Your recovery plan should address 2 primary questions:
1. How much data are you can you afford to lose? This helps determine the type and frequency of backups.
2. How long can the recovery take? This is the question I think people sometimes forget about. You may have the backups but could stil be looking at several hours to recover.There are no bugs - only undocumented features.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions