Solved

SQL Server Log File NOT Growing

Posted on 2008-06-25
11
352 Views
Last Modified: 2012-08-14
I have a 15GB SQL Server 2000 database that has a log file that is immediately shrinking or NOT growing even though there are hundreds of transactions being made per hour. Four weeks ago I had made a copy of the database for testing purposes by detaching the original database, copying it, reattaching the original and also reattaching the copied database as a different name. When I run transactions against the test database the log file grows as it should. I should also note that SQL runs a job every night at midnight against the production and the test database that shrinks the log file. The script is as follows:

DBCC SHRINKFILE( [ABONLOG], 2 )
BACKUP LOG [ABON] WITH TRUNCATE_ONLY
DBCC SHRINKFILE( [ABONLOG], 2 )

DBCC SHRINKFILE( [ABONTESTLOG], 2 )
BACKUP LOG [ABONTEST] WITH TRUNCATE_ONLY
DBCC SHRINKFILE( [ABONTESTLOG], 2 )
0
Comment
Question by:adamch25
  • 6
  • 4
11 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 21867204
Are you in Simple recovery mode?
0
 

Author Comment

by:adamch25
ID: 21867211
No. I am in Full recovery mode.
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21867227
Do you have a db maint plan that does log backups?
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:adamch25
ID: 21867279
No. But, we do have a backup that runs nightly at 2:00AM that does a full backup of the databases. The backup software is Symantec Backup Exec which is run from a different server but the agent runs from the SQL server.
0
 

Author Comment

by:adamch25
ID: 21867329
If it helps, the box is running Windows 2003 SP2 and SP4 for SQL
0
 

Author Comment

by:adamch25
ID: 21867362
I just noticed a few error messages in the SQL server logs...

Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.

and

Error: 15457, Severity: 0, State: 1
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 21867367
Hmmm...a full backup shouldn't do it.  Have you checked to make sure that the BackupExec software doesn't do any type of truncation of the log or anything like that?
0
 
LVL 6

Expert Comment

by:kosmoraios
ID: 21867453
The two errors above are just informational. When you change your configuration you'll see these, no need to worry. Running the RECONFIGURE command will make those go away.
0
 

Author Comment

by:adamch25
ID: 21867529
Ahhh! Found the problem and am awarding you the points. The SQL server had an old Symantec Backup Exec Agent which was hanging after the backup completed thus locking the log file. Thank you for your assistance in finding this problem.
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21867553
ah hah!  You're welcome.
0
 

Author Comment

by:adamch25
ID: 22292100
After upgrading the Symantec backup Exec 12. The issue remains.  I have even tried disabling the backup jobs but the 'collapsing' log file issue remains.  I have tested the hard drives, to crc errors or bad sectors.  I've detached, renamed teh log, adn re-atatched to create a fresh log file, no luck.  I movied the mdb and log files to thier own new hdd, no luck.  I have even created a brand new database withing SQl 2000, then jsut run a bunch of transactions against it.  The log file still 'collapses' on itself even in a freshly created database.  SQL Profiler has not shown me anything helpful either.

It's jsut too wierd, at random times the data within the transaction log 'collapses' on itself, and sometimes the container will collapse down to 2MB as well.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question