Re: Cannot recover the master database.

From: Bob Simms (bob_simms_at_somewhere.com)
Date: 04/05/04


Date: Mon, 5 Apr 2004 19:53:43 +0100


"Daniela" <daniela@perfilcs.com.br> wrote in message
news:257101c41b18$e6f5f3e0$3a01280a@phx.gbl...
>
> Hi,
>
> In my computer when sql is starting occur the follow
> message in log :
> - Error: 9003, Severity: 20, State: 1.
> - Cannot recover the master database.
>
> What I do? Why this happened?
>
To fix a corrupted master database run rebuildm.exe. This will destroy your
master, msdb and modle databases and replace them with blank ones. Then
restore your master, msdb and model backups.

Erm... You do have a backup of your system databases, don't you?

If not, then after rebuildm.exe you'll have to execute sp_attach_db or
sp_attach_single_file_db to repopulate your sysdatabases table in Master.
Also you will have to recreate your SQLAgent jobs etc if you do not have a
MSDB backup

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 29/03/2004


Relevant Pages

  • Re: maintenance plan in enterprise manager not functioning quite right
    ... Well it can't issue a log backup on Master and MSDB since they are in simple ... > all dbs are set to recovery model full except for the master and msdb dbs. ...
    (microsoft.public.sqlserver.tools)
  • Re: Back up system DBs
    ... I prefer to do only db backup for master and model. ... I also do log backup (because of ... As Agent set msdb to simple recovery at startup, ...
    (microsoft.public.sqlserver.server)
  • Re: Coping everything to New Server
    ... the backup devices didn't get restored from the master db, ... msdb; I don't know. ... I copied the backup folder from one machine to another. ... >> That will get all of the stored procedures, jobs and linked servers from ...
    (microsoft.public.sqlserver.setup)
  • Re: sqlserver 6.5 never backup
    ... the reason is that DISK REINIT and DISK REFIT can only be ... Master database comes up perfectly or you have a damaged master and then you ... >> Now onwards please prepare and backup strategy to backup your databases. ...
    (microsoft.public.sqlserver.server)
  • Disaster Recovery question
    ... Ive been doing a bit of digging lately about Restoring the Master db to a ... we would resotre from backup over to the Reporting box. ... I take backups of the Master, MSDB, and user db's regularly. ...
    (microsoft.public.sqlserver.server)