Re: How to backup a standby database
From: Tommy (Tommy_at_discussions.microsoft.com)
Date: 10/11/04
- Next message: Tibor Karaszi: "Re: Problem with sp_attach_db"
- Previous message: James Chavez: "SQL Server attacking UDP 1434"
- In reply to: Keith Kratochvil: "Re: How to backup a standby database"
- Next in thread: jrpm: "Re: How to backup a standby database"
- Reply: jrpm: "Re: How to backup a standby database"
- Reply: Peter Yeoh: "Re: How to backup a standby database"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 11 Oct 2004 11:57:04 -0700
No, I don't have the backups. My standby environment is remote, so I can't
readily access production from standby or vice versa. I initialized the
standby environment from a tape backup of the production environment, and
then I transmit logs using an encrypted secure shell internet transfer.
Periodically I want to activate my standby database and test my disaster
recovery environment. Afterwards, I want to go back to standby mode, and
it's not feasible to have hundreds of sites send new tapes to reinitialize
their standby databases. The only other option is to save my original
production backup and all subsequent log backups in order to restore the
standby environment, but this could span months and thousands of logs.
I tried detaching the database, but when I re-attach it SQL Server recovers
it so I can't apply any more logs. The only other solution I can think of is
to shutdown the SQL Server, make copies of the data files, activate the
standby database, create a new dummy database, change the dummy database
status to "Loading", stop the SQL Server, replace the dummy database files
with the standby database files, then restart SQL Server. What a kluge! But
I don't know what else to do if SQL Server won't let me create a backup.
Tommy
"Keith Kratochvil" wrote:
> You cannot backup a database that is in standby mode. You already have the
> necessary backups. They are from your production database!
>
> --
> Keith
>
>
> "Tommy" <ziggy.971485@bloglines.com> wrote in message
> news:1f1201c4afad$7df77970$a501280a@phx.gbl...
> > I have a remote standby database that I use for disaster
> > recovery, and I apply logs from the production environment
> > on an hourly basis. I would like to backup this standby
> > database, but when I try I get an error 927 - "Database
> > cannot be opened - it is in the middle of a restore".
> >
> > So my question is how can I backup this standby
> > environment? I don't want to activate the database
> > because I will no longer be able to apply logs. I tried
> > opening the database in read only mode, but I can't backup
> > then either.
> >
> > Thanks,
> >
> > Tommy
>
>
- Next message: Tibor Karaszi: "Re: Problem with sp_attach_db"
- Previous message: James Chavez: "SQL Server attacking UDP 1434"
- In reply to: Keith Kratochvil: "Re: How to backup a standby database"
- Next in thread: jrpm: "Re: How to backup a standby database"
- Reply: jrpm: "Re: How to backup a standby database"
- Reply: Peter Yeoh: "Re: How to backup a standby database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|