“数据库中的腐败” DB不存在的消息? [英] "Corruption in database" message for DB that does not exist?

查看:67
本文介绍了“数据库中的腐败” DB不存在的消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道以前有没有人见过这个...我收到一条消息"数据库ID 140716013518856中的损坏,对象ID 60可能是由于架构或目录不一致造成的。
运行DBCC CHECKCATALOG。"在警报和SQL服务器日志中。


只有一个小问题:我没有带ID的数据库  140716013518856! 事实上,如果我运行SELECT DB_NAME( 140716013518856)
我会收到算术溢出错误。 即使更奇怪,数字也有所不同,但总是比我们拥有的最高实际DB ID数高出许多数量级。


我可以在所有数据库上运行DBCC CHECKDB并且不要为它们中的任何一个出错。


这是在SQL server 2016标准上,并且大约在2周前我们停电时开始。 我每天都会收到几次消息。

解决方案

消息出现在哪里?在SQL日志中?


此查询的输出是什么:

 USE [master] ; 
GO
SELECT *来自sysdatabases

是否有任何'神秘'数据库显示在那里?


BTW,您是否已应用最新的SQL Service Pack来修复可能导致问题的任何已知错误?

Microsoft SQL Server 2016 Service Pack 2(SP2)


HTH, 功能; 


I'm just wondering if anyone has ever seen this before... I'm getting a message "Corruption in database ID 140716013518856, object ID 60 possibly due to schema or catalog inconsistency. Run DBCC CHECKCATALOG." in alerts and the SQL server log.

There's just one little problem: I have no database with ID 140716013518856!  In fact if I run SELECT DB_NAME(140716013518856) I get an arithmetic overflow error.  Even weirder, the number varies a bit, but is always many orders of magnitude above the highest actual DB ID number we have.

I can run DBCC CHECKDB on all the databases and don't get errors for any of them.

This is on SQL server 2016 standard, and began about 2 weeks ago when we had a power outage.  I get the messages several times a day.

解决方案

Where does the message show up? In SQL Logs?

What is the output of this query:

USE [master];
GO
SELECT * from sysdatabases

Do any 'mystery' databases show up there?

BTW, have you applied the latest SQL Service Pack to fix any known bugs that might me causing problems?
Microsoft SQL Server 2016 Service Pack 2 (SP2)

HTH,  


这篇关于“数据库中的腐败” DB不存在的消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆