Solved

SQL Server Log File NOT Growing

Posted on 2008-06-25
11
346 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
 

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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

705 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now