Solved

log_reuse_wait_desc = replication, can't shrink log files.

Posted on 2014-01-19
4
3,136 Views
Last Modified: 2014-01-19
Hello Experts,

My ERP production database went down over the weekend. The cause is because of the drive that holds my DB is out of space.

After investigating, I found that my log files have grown from 600mb a piece to 100 gigs each (qty 2).

I have followed all the correct steps to shrink my database but i cannot.

after some further investigation i found out that the cause is because

'log_reuse_wait_desc = replication,'

WE HAVE NO REPLICATION on this server.

One of the steps i read i should take is to enable a replication publication and then delete it, (http://www.sqlservercentral.com/Forums/Topic695034-357-1.aspx)

but, the problem is that I cannot create a publication, when i try, i get an error message saying

"Invalid object name: dbo.syspublications"
0
Comment
Question by:FutureDBA-
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Surendra Nath earned 500 total points
ID: 39792867
try this

USE [Database_Name]
GO
EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0,@time = 0, @reset = 1
SELECT name,recovery_model_desc,log_reuse_wait_desc FROM SYS.DATABASES

Open in new window


http://subhrosaha.wordpress.com/2011/12/17/sql-server-log_reuse_wait_desc-set-to-replication/
0
 

Author Comment

by:FutureDBA-
ID: 39792935
My results are
master	SIMPLE	ACTIVE_TRANSACTION
tempdb	        SIMPLE	NOTHING
model	        FULL	        LOG_BACKUP
msdb	        SIMPLE	NOTHING
ERMS_CU3	SIMPLE	REPLICATION
ERMS_TST	        SIMPLE	NOTHING
EXPLink	        SIMPLE	NOTHING

Open in new window

0
 

Author Closing Comment

by:FutureDBA-
ID: 39792967
You my friend, have just relieved the most pressure and stress I've had in the last year.

I was going to have hundreds of very unhappy end users in the morning.
0
 
LVL 16

Expert Comment

by:Surendra Nath
ID: 39793001
I hope you mean very happy end users (not unhappy end users)
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

685 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