Database size increasing hugely

ravi_navision
Member Posts: 102
Is any one experienced this problem
Client using Nav 4.0 SP3 & SQL Server 2005.
For every 1 to 2 months the database size increasing drastically (last month it reached to 30GB). When we do Navision restore from proprietary backup (not SQL backup), database size shrink to 3 or 4 GB and works fine. But when we do SQL restore from SQL backup, there is no change in the database size (i.e; same as previous size). Again after some days when we check the database size it shows as 6 or 7 GB. After months it reaches to 20+ GB. There is no complaint about the business process except Performance issue.
How can I trace this problem?
Thanks,
ravi
Client using Nav 4.0 SP3 & SQL Server 2005.
For every 1 to 2 months the database size increasing drastically (last month it reached to 30GB). When we do Navision restore from proprietary backup (not SQL backup), database size shrink to 3 or 4 GB and works fine. But when we do SQL restore from SQL backup, there is no change in the database size (i.e; same as previous size). Again after some days when we check the database size it shows as 6 or 7 GB. After months it reaches to 20+ GB. There is no complaint about the business process except Performance issue.
How can I trace this problem?
Thanks,
ravi
~~ravi
0
Comments
-
Please check recovery model in Database > Alter--if there is Full then click on Boolean field Shrink to true. It will shrink the database to its original size.0
-
Recovery Model option is set to ‘Full’ and I put a check mark on boolean field “Auto Shrink”. Closed and reopen the Navision to check the size, there is no change; it is same as the previous (7GB)~~ravi0
-
Then also you have to check in SQL Server's recovery model it will also shows you Full, you have to change that recovery model Full to Simple.
Mind it, before doing this activity you have to take up the backup then change the recovery model to Simple and then restore it, it will definitely solve your problem.0 -
I am really not too happy with the advise on this thread.
You should NEVER use Autoshrink with Navision, NEVER.David Singleton0 -
=;
Do you have checked why the DB file increase?
Is it "only" the LOG File or realy the mdf / ndf file(s) ?
I belive you have Recovery Model Full. and this is good so for a productive database.
What for maintenance jobs do you have?
And as David said. NERVER USE AUTOSHRINK.
So find out, why the files are increase.Do you make it right, it works too!0 -
Can anyone share why autoshrink should never be used with Nav?
What are the consequences if used?NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
You should never use "AutoShrink" with any SQL database. If the database expanded there was probably good reason. If you autoshrink it (or manually) it is likely to just expand again. This constant expansion/shrink ends up fragmenting the database files on the drive and impact performance. Also you have no control over when, and in what sequence, SQL decides to run the AutoShrink process. Again a possible impact on performance.There are no bugs - only undocumented features.0
-
[Topic moved from 'NAV/Navision' forum to 'SQL Performance' forum]
1) Like David and Garak said : NEVER use autoshrink
2) Like Garak asked : which file is growing : the DB or the log-file?
2.a) If it is the DB, probably it is because the fill-factor of your DB is too low. It should be 90%. To fix this, just change the fill-factor to the correct value. You can shrink your DB, so the size is double the amount your data is taking (this way your DB doesn't need to grow for some time). The autogrowth should be used ONLY in case of emergency. You should (once a week or also once a month) check if there is enough space left in your DB. If not, you should manually grow your DB a fair amount, so you are again tranquil for some time.
2.b) If it is the log-file, you should make TL-backups in the future or use another recovery model. To fix this, you should first make a full backup, then change the recovery model to simple. Shrink the logfile as much as possible (max 10KB!). Finished this, expand your logfile again to the size of your DB (this to eliminate internal fragmentation ; I hope to find some time these days to blog about this). Change recovery mode back to full and make regular TL backups (at least once an hour).
In both cases, it check your disk if it has become fragmented (especially the DB- and log-files) and if they are, defrag your disk (of course, you need to stop the SQL-server service to do this).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
If the "net" size is growing much, and if the size is dramatically reduced after a native backup/restore process, then you should also look into your SIFT structures, means reducing the number of "buckets" and peridically cleaning so called "zero SIFT records" ...
(if you search the forum for "SIFT" you'll find plenty of advices about "how to ...")Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thats right, but first he should say which files increase hugely.Do you make it right, it works too!0
-
garak wrote:Thats right, but first he should say which files increase hugely.
But as we are discussing "database growth" we should consider anything, too 8)Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
stryk wrote:If the "net" size is growing much, and if the size is dramatically reduced after a native backup/restore process, then you should also look into your SIFT structures, means reducing the number of "buckets" and peridically cleaning so called "zero SIFT records" ...
(if you search the forum for "SIFT" you'll find plenty of advices about "how to ...")
You can also do an exe upgrade to 5.0 sp1 which gets rid of SIFT and replaces them with Indexed views.0 -
@ Ravi:
There are two important things you need to do:
1 - Hire someone who knows about SQL Server and let them show you how it works.
2 - Buy yourself a book about SQL Server as a reference
@ sacmon:
Same goes for you, get yourself a good SQL Server book and read about the things you are giving out advice for. It looks like you are misunderstanding some of the options.0 -
I'm also sure that it is the TransLog.
But now it's time for Ravi_Navision to give a statement.
@ Ravi / @ sacmon:
A SQL Server book is a good XMas present for you and you can decant it from the fiscal (here in Germany it's possible because it's a book for the work)Do you make it right, it works too!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