Central Administration Database Recovery

Problem

You’ve lost, or you’ve accidentally deleted ,the Central Administration database from your MOSS or Windows SharePoint Services environment.

Explanation

Obviously corruptions happen, users get carried away with stsadm, or, in my case, you simply deleted the wrong database and you didn’t have a backup. Luckily for me, I made this mistake in a test environment. Not to worry, there’s any easy fix, see below!

Solution

It’s actually quite simple to recover a central administration database if you have another central admin database that exists in the same domain. Simply backup the database from one farm and restore it to the other. If you can’t get your hands on another central admin database you’ll probably be able to get one from a friendly forum user but you might have to modify the UserInfo tables directly in order to get your user information added to the database.

Here’s what I did to recover my accidentally deleted central administration database:

Step 1 – Add a new content database to your existing (but empty) central administration website.

Stsadm -o addcontentdb -url http://sharepoint:8080 -databasename SP_Admin_Content

(Note that 8080 above is my standard central admin port)

clip_image001

Step 2 – Get a copy of another central admin database by backing up central admin from another farm using the following command

Stsadm -o backup -url http://otherfrm:8080 -filename c:\central.bak

clip_image002

Step 3 - Restore that backup to the farm that’s broken

Stsadm -o restore -url http://sharepoint:8080 -filename c:\central.bak

clip_image003

GD Star Rating
a WordPress rating system
GD Star Rating
a WordPress rating system
Central Administration Database Recovery, 10.0 out of 10 based on 2 ratings

Popularity: 6% [?]

Share and Enjoy:
Share this Post:

One Response to “Central Administration Database Recovery”

  • Tomas says:

    This is almost spot on, although I had to use the “Stsadm -o deletecontentdb -url ” command to remove the reference to the old db before running the restore command.

    Great work around, thanks!

    GD Star Rating
    a WordPress rating system
    GD Star Rating
    a WordPress rating system
  • Leave a Reply:

    Name (required):
    Mail (will not be published) (required):
    Website:
    Comment (required):
    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>