AOTX San Antonio
2007-07-11 13:16:00 UTC
I have a database that I was mirroring when the transaction log grew to over
1Gb and the database was only 2Gb total. I wanted to shrink the Transaction
log but I have not found a way to shring the Tlog while Mirroring. So I
stopped mirroring on the Principal server and shrunk the Tlog. I then did a
full backup and also a transaction log backup. I went to the standby server
where the mirror database is in "Recovery". First I tried to Recover the
database with the following command:
RESTORE DATABASE XXXX WITH RECOVERY
I get the following Error:
Msg 3104, Level 16, State 1, Line 1
RESTORE cannot operate on database 'AOTXInventory' because it is configured
for database mirroring. Use ALTER DATABASE to remove mirroring if you intend
to restore the database.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
When I try and look at Properties to stop Mirroring I get error 927
Database XXX cannot be opened. It is in the middle of a restore.
When I try and just delete the database I get error 3743
The database XXX is enabled for database mirroring. Database mirroring must
be removed before you drop the database...
My question then is : How do I get a database from Recovery to non recovery
so I can bring it into an operational mode. If I have a failure on the
principal I don't see how I can get the standby into an operational state.
Right now I have the database on the principal server running fine but with
no mirroring. I have the same database on the standby server indicating (In
Recovery) but unable to do anything with the database. In order to
reinitialize mirroring I need to retore the backup and TLog I took after I
shrank the transaction log...
I am running Sql Server 2005 Enterprise with SP2. I am running Mirroring in
an Asynchronous mode no witness. I am running on Windows 2003 Enterprise
Server.
Thanks for any advice in advance...
1Gb and the database was only 2Gb total. I wanted to shrink the Transaction
log but I have not found a way to shring the Tlog while Mirroring. So I
stopped mirroring on the Principal server and shrunk the Tlog. I then did a
full backup and also a transaction log backup. I went to the standby server
where the mirror database is in "Recovery". First I tried to Recover the
database with the following command:
RESTORE DATABASE XXXX WITH RECOVERY
I get the following Error:
Msg 3104, Level 16, State 1, Line 1
RESTORE cannot operate on database 'AOTXInventory' because it is configured
for database mirroring. Use ALTER DATABASE to remove mirroring if you intend
to restore the database.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
When I try and look at Properties to stop Mirroring I get error 927
Database XXX cannot be opened. It is in the middle of a restore.
When I try and just delete the database I get error 3743
The database XXX is enabled for database mirroring. Database mirroring must
be removed before you drop the database...
My question then is : How do I get a database from Recovery to non recovery
so I can bring it into an operational mode. If I have a failure on the
principal I don't see how I can get the standby into an operational state.
Right now I have the database on the principal server running fine but with
no mirroring. I have the same database on the standby server indicating (In
Recovery) but unable to do anything with the database. In order to
reinitialize mirroring I need to retore the backup and TLog I took after I
shrank the transaction log...
I am running Sql Server 2005 Enterprise with SP2. I am running Mirroring in
an Asynchronous mode no witness. I am running on Windows 2003 Enterprise
Server.
Thanks for any advice in advance...