Hi All,
im trying to set up database mirroring and in the initial phase of database restoring im getting some problem.
the scenario is .
1- i create a tempDB on server1(which will be principal server) and backup full and transaction logs.
2- create tempDB in server 2( going to be used as mirror) .
3- restore the full backup of "tempDB" from server1 with NORECOVERY option.
this step results in a message box showing that the restore was successfull...
but the database explorer( management studio) shows the tempDB in (restoring ...) state. and no more operations can be performed with this Database. ( because teh databse isin restoring mode).. please help what this issue is?
Thanks In Advance for any suggestions
hi amir,
1.you have a db in principal server and it shud be in full recovery mode to configure db mirroring
2.take a full a full backup and restore it with norecovery option in the mirror prior to configuring mirroring
3.take a tran log backup in principal and restore it with norecovery option in the mirror.
then start configuring db mirroring using the wizard............
norecovery option restores the db but it will be in restoring state i.e you can apply tran logs to it but you cant use it and no objects will be visible
normally there are 3 types while performing restoration,
1.Leave the database ready to use by rolling back the uncommitted transactions. Additional transaction logs cannot be restored. (RESTORE WITH RECOVERY)
2.Leave the database non-operational, and do not roll back the uncommitted transactions. Additional transaction logs can be restored. (RESTORE WITH NORECOVERY)
3.Leave the database in read-only mode. Undo uncommitted transactions, but save the undo actions in a standby file so that recovery effects can be reverted. (RESTORE WITH STANDBY)
http://msdn2.microsoft.com/en-us/library/ms177429.aspx - refer this link for restoring options.........
refer ,
http://deepakinsql.blogspot.com/2007/07/how-to-configure-database-mirroring.html - for configuring dbmirroring
http://deepakinsql.blogspot.com/2007/07/prerequisites-for-database-mirroring.html - prerequisites for mirroring
revert if you have nay concerns
thanks
|||Hi Amir,
What Deepak xplained is right.
Follow the steps and if want to see the objects in mirror database just force a failover. The new mirror will be in restoring... state
Its quite confusing, it should have been "dont worry continue..." rather than "restoring..."
Goodluck
Vj
No comments:
Post a Comment