Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


2012 DB in recovery pending status


2012 DB in recovery pending status

Author
Message
Benki Chendu
Benki Chendu
SSC Veteran
SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)

Group: General Forum Members
Points: 278 Visits: 490
One of the databases in my clustered instance is in the recovery pending state.
I see the following error in the SQL Server error logs:
I think the database has gone corrupted. How could I fix the issue now?

The operating system returned error 1167(The device is not connected.) to SQL Server during a read at offset 0000000000000000 in file 'X:\\MSSQL\DATA\Giraffe_log.LDF'. Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
Benki Chendu
Benki Chendu
SSC Veteran
SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)

Group: General Forum Members
Points: 278 Visits: 490
I could not run a database consistency check on this database. I had to do the following things to recover the database:

1. Put the database in single user mode with immediate rollback option.
2. Set the database in emergency mode
3. Ran the database consistency check with repair_rebuild option but it didn't work.
4. Ran the database consistency check with REPAIR_ALLOW_DATA_LOSS option. The consistency check ran without any consistency errors.
5. Database cameup online in the single user mode. I switched it to multi user mode.

Now, the database is accessible.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search