?
Solved

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

Posted on 2010-08-27
2
Medium Priority
?
6,805 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 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