My DB was in Recovery phase.
My friend Dagupati ( a professional DBA ) helped me getting out of this trouble.
Following are the steps to be followed in sequence to achieve this.
1) Take the DB into emergency mode.
ALTER DATABASE yourDBname SET EMERGENCY2) Bring DB to single user mode.
ALTER DATABASE yourDBname SET SINGLE_USER
3)Repair you DBDBCC CheckDB ('yourDBname', REPAIR_REBUILD)
if the above command fails, try thisDBCC CheckDB ('yourDBname', REPAIR_ALLOW_DATA_LOSS)
NOTE : This may result in dataloss
4) Bring you DB to multi user modeALTER DATABASE yourDBname SET MULTI_USER
By now you should have your DB up & running.
DB at times enter into SUSPECT mode - restarting server should solve them if not follow the above steps.
To be on safer side take full / transactional backups regularly
No comments:
Post a Comment