Solved

Message: Shrink log

Posted on 2016-09-16
4
34 Views
Last Modified: 2016-11-02
Executed as user: NT AUTHORITY\SYSTEM. DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  Cannot shrink file '2' in database 'MSCRM_CONFIG' to 256 pages as it only contains 160 pages.
[SQLSTATE 01000] (Message 7993)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  Cannot shrink log file 2 (Kofax_log) because total number of logical log files cannot be fewer than 2.
[SQLSTATE 01000] (Message 9006)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  Cannot shrink file '2' in database 'kofax1' to 256 pages as it only contains 104 pages.
[SQLSTATE 01000] (Message 7993)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528)  Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized.
Reissue the statement after the current backup or file manipulation operation is completed. [SQLSTATE 42000] (Error 3023)  DBCC execution completed.
If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Error 2528).  The step failed.
0
Comment
Question by:Sumeet Singh
  • 2
4 Comments
 
LVL 11

Assisted Solution

by:Nakul Vachhrajani
Nakul Vachhrajani earned 500 total points
ID: 41802167
Looks like your log shrink and a DB backup operation (or even file growth, for that matter) conflicted with each other. Arrange the sequence such that the shrink runs after file manipulation operations are completed.

Does the shrink run regularly as a scheduled job (if yes, it will impact performance as your DB scales up).

This page tells you which administrative tasks can run concurrently: https://technet.microsoft.com/en-us/library/ms189315(v=sql.105).aspx
0
 

Author Comment

by:Sumeet Singh
ID: 41802214
Yes as a part of maintenance plan the shrink job runs every day.
0
 
LVL 11

Accepted Solution

by:
Nakul Vachhrajani earned 500 total points
ID: 41802602
Did you check for conflicting file operations? That is the only way you would end up with error #3023 (which by the way is the core error in the message. The others are just informational messages)

If this was working fine before, what changed recently to cause conflicting file operations?

And yes, a daily shrink is absolutely not recommended. Please do revisit your maintenance strategy.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

757 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

21 Experts available now in Live!

Get 1:1 Help Now