AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / dba / 问题 / 9984
Accepted
Ammar Alammar
Ammar Alammar
Asked: 2012-01-01 10:36:30 +0800 CST2012-01-01 10:36:30 +0800 CST 2012-01-01 10:36:30 +0800 CST

SQL Server 2000 中的一致性错误

  • 772

我有 SQL Server 2000,自从从 SP2 升级到 SP4 后,随机错误就开始发生了。主要是溢出错误,有时在 data type 中SqlDateTime,有时在 data typenumeric中。

例如,现在我有一个列1099511628.776作为它的值,列类型decimal(18,3)最多可以容纳 10^38,所以很明显这不是溢出,但是当我尝试更新该列并将其设置为 1 时,我得到错误Arithmetic overflow error converting numeric to data type numeric。

我DBCC CHECKDB在数据库上运行,在第一个表的两个表中出现 6 个一致性错误:

Msg 8970, Level 16, State 1, Line 1  
Row error: Object ID 578101100, index ID 0, page ID (1:24157), row ID 61.
Column 'wh_id' was created NOT NULL, but is NULL in the row.

第二张表:

Msg 8928, Level 16, State 1, Line 1   
Object ID 933578364, index ID 0: Page (1:7160) could not be processed. 
See other errors for details.

Msg 8939, Level 16, State 12, Line 1  
Table error: Object ID 933578364, index ID 0, page (1:7160). 
Test (*(((int*) &m_reservedB) + i) == 0) failed. Values are 0 and 65536.

Msg 8944, Level 16, State 2, Line 1  
Table error: Object ID 933578364, index ID 0, page (1:7223), row 12. 
Test (!(hdr->r_tagA & (VERSION_MASK | RECTAG_RESV_A | RECTAG_RESV_B))) failed. 
Values are 17 and 193.`

Msg 8928, Level 16, State 1, Line 1  
Object ID 933578364, index ID 0: Page (1:7254) could not be processed. 
See other errors for details.`

Msg 8939, Level 16, State 106, Line 1  
Table error: Object ID 933578364, index ID 0, page (1:7254). 
Test (m_freeCnt == freeCnt) failed. Values are 2442 and 2444.`

现在对于第一个错误,我尝试运行查询:

SELECT *
FROM table1
WHERE wh_id IS NULL

但是,它返回零行。对于其余的错误,我不知道如何查询表以找到坏行。

我该如何修复这些一致性错误,它们是随机错误的原因吗?

sql-server-2000 corruption
  • 1 1 个回答
  • 659 Views

1 个回答

  • Voted
  1. Best Answer
    mrdenny
    2012-01-02T17:32:36+08:002012-01-02T17:32:36+08:00

    这些错误是实际表本身中的损坏页面。您将需要恢复表。由于损坏位于基表中,因此无法在不丢失数据的情况下修复问题。

    • 1

相关问题

  • Sql 2000 附加错误 5172

  • 如何确定导致触发器触发的进程的名称

  • 将 SQL Server 2000 移动到 SQL Server 2005 时出错 NOLOCK 错误

  • 如何在 SQL Server 2008 中查找损坏的页面

  • SQL Server 2000:列出并禁用所有触发器

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何查看 Oracle 中的数据库列表?

    • 8 个回答
  • Marko Smith

    mysql innodb_buffer_pool_size 应该有多大?

    • 4 个回答
  • Marko Smith

    列出指定表的所有列

    • 5 个回答
  • Marko Smith

    从 .frm 和 .ibd 文件恢复表?

    • 10 个回答
  • Marko Smith

    如何在不修改我自己的 tnsnames.ora 的情况下使用 sqlplus 连接到位于另一台主机上的 Oracle 数据库

    • 4 个回答
  • Marko Smith

    你如何mysqldump特定的表?

    • 4 个回答
  • Marko Smith

    如何选择每组的第一行?

    • 6 个回答
  • Marko Smith

    使用 psql 列出数据库权限

    • 10 个回答
  • Marko Smith

    如何从 PostgreSQL 中的选择查询中将值插入表中?

    • 4 个回答
  • Marko Smith

    如何使用 psql 列出所有数据库和表?

    • 7 个回答
  • Martin Hope
    Mike Walsh 为什么事务日志不断增长或空间不足? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland 列出指定表的所有列 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney MySQL 能否合理地对数十亿行执行查询? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx 如何监控大型 .sql 文件的导入进度? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison 你如何mysqldump特定的表? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    pedrosanta 使用 psql 列出数据库权限 2011-08-04 11:01:21 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 对 SQL 查询进行计时? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas 如何从 PostgreSQL 中的选择查询中将值插入表中? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 列出所有数据库和表? 2011-02-18 00:45:49 +0800 CST
  • Martin Hope
    bernd_k 什么时候应该使用唯一约束而不是唯一索引? 2011-01-05 02:32:27 +0800 CST

热门标签

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve