Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DBCC MSDB Single User

Posted on 2008-10-02
8
Medium Priority
?
887 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 23

Accepted Solution

by:
bhanukir7 earned 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

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