B*********L 发帖数: 700 | 1 I run this command:
DBCC CHECKDB WITH NO_INFOMSGS
It cause tempdb full.
Is there a way to prevent that?
Thanks. |
a9 发帖数: 21638 | 2 with no log?
【在 B*********L 的大作中提到】 : I run this command: : DBCC CHECKDB WITH NO_INFOMSGS : It cause tempdb full. : Is there a way to prevent that? : Thanks.
|
j*****n 发帖数: 1781 | 3 use ESTIMATEONLY to see how big the size of tempdb is needed.
consider increasing space of the tempdb when possible;
otherwise consider separate checks instead of whole. such as NOINDEX,
PHYSICAL_ONLY, DATA_PURITY. conduct BOL for more information.
【在 B*********L 的大作中提到】 : I run this command: : DBCC CHECKDB WITH NO_INFOMSGS : It cause tempdb full. : Is there a way to prevent that? : Thanks.
|
z***y 发帖数: 7151 | 4 dbcc checkdb use hell of space on tempdb. Don't know if there's way you can
change this. |
B*********L 发帖数: 700 | 5
我是把tempdb放在了ramdisk上,这样速度快很多。可是我的ramdisk只有4.5GB,所以
很麻烦。
分开来check大概是条路,但是我没做过,不知道在次序上有没有要求。您能帮着写一
个吗?自己写功力不够。
谢谢。
【在 j*****n 的大作中提到】 : use ESTIMATEONLY to see how big the size of tempdb is needed. : consider increasing space of the tempdb when possible; : otherwise consider separate checks instead of whole. such as NOINDEX, : PHYSICAL_ONLY, DATA_PURITY. conduct BOL for more information.
|
j*****n 发帖数: 1781 | 6 It depends what's your major concern that you want to run this CHECKDB
command. Can you describe in more detail?
For example, if the major concern is about the consistency of disk space
allocation structures, actually you may think only use the DBCC CHECKALLOC
instead.
Again, BOL is the best resource for reference.
【在 B*********L 的大作中提到】 : : 我是把tempdb放在了ramdisk上,这样速度快很多。可是我的ramdisk只有4.5GB,所以 : 很麻烦。 : 分开来check大概是条路,但是我没做过,不知道在次序上有没有要求。您能帮着写一 : 个吗?自己写功力不够。 : 谢谢。
|
n*****y 发帖数: 36 | 7 你的SQL Server 版本是2000,2005还是2008?
另外,如果你的服务器是production server,
似乎tempdb所在的disk容量太小了,为什么不换到
容量大一些的专用硬盘上?
你还可以试试下面两个办法
1. 使用 TABLOCK(代价是low concurency)
2. 使用user-defined snapshots
先为database创建一个snapshot(SQL2005 or 2008),
该snapshot应该建在一个有足够空间的硬盘上,至少
有和该database一样大的空间,然后run dbcc command
on this snapshot
请zenny 和jackrun 大佬指正 |