Solved

Message: Shrink log

Posted on 2016-09-16
4
47 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 12

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 12

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
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 video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

810 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