Creating, detaching, re-attaching, and fixing a SUSPECT database
2017-04-28 16:09
351 查看
今天遇到一个问题:一个数据库suspect了。然后又被用户detach了。
1,尝试将数据库attach回去,因为log file损坏失败了。
2,尝试将数据库attach回去,同一时候rebuild log。因为数据库“The log cannot be rebuilt because the database was not cleanly
shut down.”失败了。
提示有未完毕的transaction,no checkpoint。
鉴于attach数据库时仅提供了mdf,可推论这些信息存储在mdf中。
看大神怎样fix:
http://www.sqlskills.com/blogs/paul/creating-detaching-re-attaching-and-fixing-a-suspect-database/
1,尝试将数据库attach回去,因为log file损坏失败了。
2,尝试将数据库attach回去,同一时候rebuild log。因为数据库“The log cannot be rebuilt because the database was not cleanly
shut down.”失败了。
提示有未完毕的transaction,no checkpoint。
鉴于attach数据库时仅提供了mdf,可推论这些信息存储在mdf中。
看大神怎样fix:
http://www.sqlskills.com/blogs/paul/creating-detaching-re-attaching-and-fixing-a-suspect-database/
相关文章推荐
- Creating, detaching, re-attaching, and fixing a SUSPECT database
- Creating, detaching, re-attaching, and fixing a suspect database
- SQL Server -- Creating, detaching, re-attaching, and fixing a SUSPECT database
- EF Database First with ASP.NET MVC: Creating the Web Application and Data Models开发遇到问题的解决办法
- Creating your MySQL Database: Practical Design Tips and Techniques
- Creating and Managing a Database with DBCA
- Attaching and Detaching Entities
- GP学习(六)—Creating geodatabase and connecting geodatabase
- [Django] Creating an app, models and database
- Getting Started: Creating and Attaching Your First BlockStorage Volume
- How to re-initialize the offline files cache and database
- SQL Server Database Mirroring - Creating and using Mirror Endpoints in Principal, Mirror and Witness
- Overview of Installing Oracle Database Software and Creating a Database
- Creating Database Web Applications with PHP and ASP
- MFC--Attaching and Detaching Objects
- Part 2 Creating, altering and dropping a database
- Qt13 Creating connection open and close function with sqlite database
- Creating, Stopping, Re-Starting and Deleting a Timer in Oracle Forms
- Database Go and JSON
- Creating and Editing File Templates