Unix Technical Forum

huge logfile problem

This is a discussion on huge logfile problem within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi All, I have SQL Server 2000 sp3, Windows 2000 Server. I have a database which is used by ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 02:32 AM
guf
 
Posts: n/a
Default huge logfile problem

Hi All,

I have SQL Server 2000 sp3, Windows 2000 Server.
I have a database which is used by an application server. I do several
important jobs a day in the application server and never access my
database directly. Those jobs are created through the application
server API and I do not have access to the Application server
procedure.

My database is 500 Mo.
Now my problem is that some jobs that are planed through the
application server can generate huge logfile (2 Go+) in less than 20
minutes work.
What is really strange is if I export my db using the DTS, and
performed the same operation on the new database, the logfile don't
grow more than 4 or 5 Mo. If I switch the production database to the
new one, it takes no more than 2 days to have the same problem.

This is a real problem because backup takes longer, and will
probably be harder to restore in case of crash. The operation is also
slowing down the system because SQL Server needs to add more space to
the logfile.

I cannot switch easily from one database to another, because this is a
production application and we should have 99,99% availability.

Jobs that are planed in my database:
On an hourly basis:
* logfile backup

On a daily basis:
* database backup
* DBCC SHRINKDATABASE (N'IMANDATA', 30,TRUNCATEONLY) every day
* EXECUTE master.dbo.xp_sqlmaint N'-PlanID XXX -Rpt "f:\...."
-DelTxtRpt 2WEEKS -WriteHistory -RebldIdx 10 '
* EXECUTE master.dbo.xp_sqlmaint N'-PlanID XXX -Rpt "f:\...."
-DelTxtRpt 2DAYS -WriteHistory -UpdOptiStats 100 '
* EXECUTE master.dbo.xp_sqlmaint N'-PlanID XXX -Rpt "f:\..."
-DelTxtRpt 2WEEKS -WriteHistory -CkDB '

It would be really great if someone could help me on this.

guillaume
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:00 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com