DBCC CHECKDB 遭遇Operating system error 112(failed to retrieve text for this error. Reason: 15105) encountered

我们一个SQL Server服务器在执行YourSQLDBa的作业YourSQLDba_FullBackups_And_Maintenance时遇到了错误:

 

Exec YourSQLDba.Maint.ShowHistoryErrors @JobNo = 1227

<row>

<ctx>yMaint.IntegrityTesting</ctx>

<Sql>DBCC checkDb('xxxx') </Sql>

<err>In case of non-completion of this command check SQLServer Error Log at 2016-11-17 00:00:03.327 for Spid 67</err>

</row>

 

错误日志里面有下面一些错误信息,如下所示:

 

Date 2016/11/17 0:53:21

Log SQL Server (Archive #8 - 2016/11/18 0:00:00)

 

Source spid67

 

Message

DBCC CHECKDB (xxxx) executed by xxxxx found 0 errors and repaired 0 errors. Elapsed time: 0 hours 53 minutes 18 seconds. Internal database snapshot has split point LSN = 00623e60:00004a5b:0001 and first LSN = 00623e60:000048f3:0011. This is an informational message only. No user action is required.

 

Date 2016/11/17 0:53:21

Log SQL Server (Archive #8 - 2016/11/18 0:00:00)

 

Source spid13s

 

Message

Write to sparse file 'xxxxxxx.ndf:MSSQL_DBCC10' failed due to lack of disk space.

 

 

SQL Server

Date 2016/11/17 0:53:21

Log SQL Server (Archive #8 - 2016/11/18 0:00:00)

 

Source spid129

 

Message

D:\xxx\xxxx\xxxxx.ndf:MSSQL_DBCC10: Operating system error 112(failed to retrieve text for this error. Reason: 15105) encountered.

 

另外,我们的磁盘空间告警作业也收到了大量的磁盘空间告警邮件:

 

 

其实在白天的时候,该服务器就已经有磁盘空间告警邮件发出,由于系统管理员想在周末做存储扩容。所以在晚上数据库做DBCC CHECKDB时,就由于磁盘空间不足,遭遇了这个错误。DBCC CHECKDB时会生成数据库快照,而数据库的快照文件是基于稀疏文件(Sparse File),而当快照创建后,随着对源数据库的改变逐渐增多,稀疏文件也会慢慢增长。所以,当磁盘空间不足时,就会遇到下面错误信息:

 

1:Write to sparse file 'xxxxxxx.ndf:MSSQL_DBCC10' failed due to lack of disk

2:SSQL_DBCC10: Operating system error 112(failed to retrieve text for this error. Reason: 15105) encountered

 

此时由于磁盘空间不足,就会导致DBCC CHECKDB停止。关于DBCC CHECKDB耗用大量额外磁盘空间,可以参考下面这篇博客。

CHECKDB From Every Angle: Why would CHECKDB run out of space?

 

参考资料:

http://www.sqlskills.com/blogs/paul/checkdb-from-every-angle-why-would-checkdb-run-out-of-space/

时间: 2024-08-30 13:03:55

DBCC CHECKDB 遭遇Operating system error 112(failed to retrieve text for this error. Reason: 15105) encountered的相关文章

Write on ……… failed: 112(failed to retrieve text for this error. Reason: 15105)

   早上检查数据库的备份邮件时,发现一台Microsoft SQL Server 2008 R2 (SP2)数据库的Maintenance Report有错误   在SSMS里面执行Exec YourSQLDba.Maint.ShowHistoryErrors 729脚本后,发现如下错误信息(数据库名用XXX替代): <Exec>   <ctx>yMaint.backups</ctx>   <cmd> backup log [XXXX_XXX] to di

Write on &amp;hellip;&amp;hellip;&amp;hellip; failed: 112(failed to retrieve text for this error. Reason: 15105)

   早上检查数据库的备份邮件时,发现一台Microsoft SQL Server 2008 R2 (SP2)数据库的Maintenance Report有错误   在SSMS里面执行Exec YourSQLDba.Maint.ShowHistoryErrors 729脚本后,发现如下错误信息(数据库名用XXX替代): <Exec>   <ctx>yMaint.backups</ctx>   <cmd> backup log [XXXX_XXX] to di

Unable to open the physical file xxxx. Operating system error 2

在新UAT服务器上,需要将tempdb放置在SSD(固态硬盘)上.由于SSD(固态硬盘)特性,所以tempdb的文件只能放置在D盘下面,而不能是D盘下的某一个目录下面. ALTER  DATABASE tempdb MODIFY FILE(name='tempdev', filename='D:\tempdb.mdf') ;   GO   ALTER  DATABASE tempdb MODIFY FILE(name='templog', filename='D:\templog.ldf') ;

CREATE FILE encountered operating system error 5(Access is denied.)

 这篇博文主要演示"CREATE FILE encountered operating system error 5(Access is denied.)"错误如出现的原因(当然只是导致这个错误出现的一种场景而已)和如何解决这个问题以及一些不解的迷惑.   实验环境:         操作系统版本: Windows Server 2012 SP2         数据库的版本:Microsoft SQL Server 2014 - 12.0.2000.8 如下所示,SQL Server

Master Note For Automatic Storage Management (ASM) For Operating System (OS) Administrators [ID 1345

In this Document  Purpose   Scope   Master Note For Automatic Storage Management (ASM) For Operating System (OS) Administrators      All Platforms      Linux x86-64      Solaris      HP-UX      IBM AIX      Microsoft Windows      IBM Linux on Z Appli

安装ORACLE 10G时,报告操作系统版本(operating system version)检查失败之案例一

[Environment(环境)] OS:solaris 9 DB:Oracle 10G [Symptom现象)     ] 执行./runInstaller以后,报告下面的错误: Checking installer requirements-- Checking operating system version: must be 5.6, 5.7, 5.8 or 5.9. Actual 5.10 Failed <<<< Exiting Oracle Universal Inst

Win8系统开机出现missing operating system怎么办?

Win8系统开机出现missing operating system怎么办?   原因分析: 1.系统引导区出现问题; 2.电脑受到了病毒的攻击; 3.硬盘出现问题. 一般都是由于系统引导记录出现错误.系统引导记录位于逻辑0扇区,是由高级格式化命令FORMAT生成的.主引导程序在检查分区表正确之后,根据分区表中指出的系统分区的起始地址,读系统引导记录,若读取失败,就显示"Error loading operating system"的错误提示,若能正确读出系统引导记录,主引导程序则会检

Windows7旗舰版系统开机出现“Missing operating system”怎么办

  具体原因分析: 在一般情况下,由系统引导记录出现错误时,系统引导记录位于逻辑0扇区,是由高级格式化命令FORMAT生成的.检查主引导程序分区表是否正确,根据分区表中指出的系统分区的起始地址,读系统引导记录,若读取失败,就显示"Error loading operating system"的错误提示,若能正确读出系统引导记录,主引导程序则会检查系统引导记录的最后两个字节是否为55AA,如果不是这两个字节,则会给出"Missing operation system"

VS2010安装顽疾解决方法:error 25541 failed to open xml file

一.问题描述 因为之前(2012)对HDFS客户端Thrift接口的库文件封装使用的是VS2010,最近考虑做一个完整的网盘系统的客户端,就把该库文件使用起来,比较悲剧的是之前做过操作系统的还原.我的VS2010已经没有了,过程中为了与客户的Project版本保持一致,我的MSProject也做了部分升级,word\Excel仍然是Office2007,而MSproject版本为offcie2010.重装VS2010的时候,悲剧发生了,每次安装到中间,总是报错误信息,继而安装失败,错误信息描述如