?
Solved

Service Control Manager - Database is locked, I need to unlock it

Posted on 2010-08-27
2
Medium Priority
?
6,930 Views
Last Modified: 2013-08-22
I have a server where the Service Control Manager database has been locked for several days. I've been doing some reading and it looks like it is supposed to lock/unlock when starting services, but unfortunately ours remained locked somehow.

From my research I've found that there is an unlock procedure using the U parameter, but I can't find syntax anywhere. The lock command is 'sc lock'. Does anyone know the unlock command? Can I harm anything by unlocking it after it has entered a frozen locked state?

Thanks in advance!
0
Comment
Question by:tjkre
[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
2 Comments
 
LVL 8

Accepted Solution

by:
SylvainDrapeau earned 2000 total points
ID: 33547750
Hello !

All you need to do is type "SC LOCK" at the command prompt and type U at the message : "To unlock via API, press u:". If you receive "[SC] UnlockServiceDatabase SUCCESS", you should be ok.

Next, you need to find why the Service Database was locked.

Check the event log for a service set to start automatically but that failed to initialize correctly.

Syldra
0
 

Expert Comment

by:ITSIntel
ID: 39431486
sc lock is not working for me :(
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

650 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