Solved

DBCC MSDB Single User

Posted on 2008-10-02
8
832 Views
Last Modified: 2012-08-13
All of a sudden, our Veritas tape backup complained about 0xe0008443 SQL Database Consistency Check failure on the MSDB database.

I tried running:

dbcc checkdb (msdb, repair_allow_data_loss)

but it complained about msdb not being in single user mode.

I tried running:

alter DATABSE MSDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
dbcc checkdb (msdb, repair_allow_data_loss)
GO
alter DATABASE MSDB SET MULTI_USER WITH ROLLBACK IMMEDIATE
GO
but it generated a syntax error .

I tried right clicking the msdb database and manually going into single user mode, but it said other users had the database.

I tried stopping the sql server agent service, but that didn't help.

Any ideas??

Thanks,
Mike
0
Comment
Question by:mike2401
  • 5
  • 2
8 Comments
 
LVL 23

Accepted Solution

by:
bhanukir7 earned 500 total points
ID: 22627394
Hi,

before running the DBCC check did you stop the Veritas tape backup solution which is using the SQL DB. When you set it to Single user mode the same might have made that single connection. So ensure that all applications that are connecting to the SQL database are stopped and then place the DB in single user mode from command line.

then run the checks

bhanu
0
 

Author Comment

by:mike2401
ID: 22627541
nope, I can certainly try stopping veritas.  

BTW: did you spot any syntax error in the script above?

(I presume I need to past the into a query window and run it.

Thx
Mike
0
 

Author Comment

by:mike2401
ID: 22772706
bhanukir7,

I'm waiting to schedule some down time for the server - I haven't forgotten, and very much appreciate your suggestion,

Mike
0
 
LVL 23

Expert Comment

by:bhanukir7
ID: 22783710
yw mike.  as far as your dbcc part is concerned that does not seem to have any error.

the only that you need to do before running that dbcc is to ensure that none of the symantec services in the services.msc are running and then try altering the DB to single user mode forcing active connections to close.

bhanu
0
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.

 

Author Comment

by:mike2401
ID: 22944284
Thanks for your help!!!
0
 

Author Closing Comment

by:mike2401
ID: 31502482
Thanks!
0
 

Expert Comment

by:aimds
ID: 24639254
Your problem is that your first line syntax is incorrect.  It should be Database not Databse
0
 

Author Comment

by:mike2401
ID: 24642204
Thank you aimds .

Good catch.

Since the call is closed, I don't think I can credit you with points, but thank you nonetheless!

Mike
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

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