当前位置:网站首页>[database data recovery] a data recovery case in which the disk partition where the SQL Server database is located is insufficient and an error is reported
[database data recovery] a data recovery case in which the disk partition where the SQL Server database is located is insufficient and an error is reported
2022-07-27 12:22:00 【51CTO】
Database data recovery environment :
A brand of server stores 2 Group raid, A group of raid1(2 Block hard disk ), A group of raid5(5 Block hard disk );
There are SqlServer database .
Database failure :
Deposit SqlServer The partition of the database is insufficient due to the increase of the amount of data , The administrator generated a in another partition .ndf File and point the database path to this partition to continue using , After a period of time, the database fails and reports an error , Prompt connection failure ,SqlServer The database cannot attach queries . The administrator then tried to recover the data, but failed to recover the data , So contact our data recovery center for data recovery .
Database data recovery process :
1、 The backup data . The server data recovery engineer will mirror and back up all disks stored in the failed server .
2、 Database failure analysis . because SqlServer The disk partition where the database file is located is insufficient , The database doesn't work , There is a logic error . Analysis storage RAID1 and RAID5 Structure , According to the obtained raid The information is virtual reorganized RAID1 and RAID5 And check the data . Because after the database failure , The administrator has tried to restore the data of the database in the original environment many times , The original database file has been changed 、 Cover , Disk space has been repeatedly erased and written , Therefore, it is impossible to repair the database file after the administrator has tried to restore it many times . Fortunately, the administrator failed in the database , A database file was backed up before attempting recovery .
3、 Database repair . Try attaching the previously backed up database file to the database , Result attachment failed , The error message is as follows :

The error indicates that the primary database file does not match the secondary database file , Database data recovery engineer view .ndf The bottom of the file , Find out .ndf There's almost no data in the file . Try to cancel .mdf Document and .ndf The relationship between files , Only .mdf There are still error prompts when attaching files :

Error prompt log file (.ldf) And database files (.mdf) Mismatch . So the database data recovery engineer tries to attach the database without database , Attach success . But the database system table was found to be corrupt , Not working properly .

The database data recovery engineer tries to repair the system table of the database , But the system table is seriously damaged and cannot be repaired .
Parsing database records in database files , The North Asia data recovery engineer prepares corresponding programs to extract the database records in the database files , Analyze the database backup to obtain the table structure in the database , Reconstruct the table structure and import the extracted database records into the new table .
data validation :
The administrator verifies the extracted database records , Confirm that all data is completely recovered . By the way, just to remind you , In the process of using the database , Reasonably allocate the disk space where the database file is located , Clean up the garbage data in time , Ensure the normal operation of the database 、 Safe operation .
边栏推荐
- Flash quickly builds an API
- 广东财政多举措助力稳住粮食安全“压舱石”
- About offline caching application cache / using manifest file caching
- Recursive method | Fibonacci sequence
- Binary search decision tree (average search length of binary search tree)
- [excerpt] [medical image] common DICOM thumbnail interpretation and viewer converter conversion tool
- omitempty在go中的使用
- 浪潮之巅——读书笔记+摘录+感悟
- Simple blockchain day based on bolt database (2)
- NPM step pit
猜你喜欢
随机推荐
Leetcode 02: sword finger offer 58 - I. flip the word order (simple); T123. Verify palindrome string; T9. Palindromes
Unexpected harvest of epic distributed resources, from basic to advanced are full of dry goods, big guys are strong!
评价自动化测试优劣的隐性指标
After Party A's hard work, 49.08 million orders of China Mobile were scrapped
银行人脸识别系统被攻破:一储户被偷走 43 万元
Mysql8msi installation tutorial (database mysql installation tutorial)
快抖抢救“失意人”
Detailed explanation of flask framework
Detailed explanation of flask framework
Do you really understand the underlying data structure skip list of Zset in redis?
Sword finger offer notes: t57 - I. and two numbers of S
MySQL paging query instance_ MySQL paging query example explanation "suggestions collection"
Image segmentation vs Adobe Photoshop (PS)
MySQL数据库主从复制集群原理概念以及搭建流程
POJ1988_Cube Stacking
解决@OneToMany查询陷入循环引用问题
Solution: can not issue executeupdate() or executelargeupdate() for selections
2021-3-22-directed graph sorting
你尚未连接代理服务器可能有问题或地址不正确(如何查看代理服务器ip)
Idea: can't use subversion command line client: SVN solution









