由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 来来来, 解决一下实际难题
相关主题
Tempdb fulllook for sql server 2012 vendor
那天谁说的想做projectsCan you cluster two different sql server version together?
Re: Is there any easy way to truncate the LDF file of SQL SERVER?请教一个关于sql server distribution 的问题
来说说上次发的微软面试题 1帮配个DELL的服务器。包子感谢. (转载)
the most powerful PC I have ever used so farHow to delete 40 millions records in a 400 millions indexed table fast?
请问有什么好的SQL Server Clustering 的书或training 推荐的吗?SQL Server repair?
SQL Server 2012有啥重大的变化/提高(比SS2K8)?more q: how to make database size smaller
怎么学SQL SERVERsql sever2005
相关话题的讨论汇总
话题: server话题: memory话题: old话题: sql话题: quad
进入Database版参与讨论
1 (共1页)
z***y
发帖数: 7151
1
An company did the following in order to migration database from old server
to new server:
1. On old server, detach all users databases.
2. Then detach SAN from old server.
3. On new server, attach this SAN.
4. Then run script to attach databases.
Around 4:00AM today, they started getting memory dump every a few minutes.
Error Message:
SQL Server Assertion: File: , line = 385 Failed Assertion = '0'
Too many parallel nested transactions. This error may be timing-related. If
the error persists after rerunning the statement, use DBCC CHECKDB to check
the database for structural integrity, or restart the server to ensure in-
memory data structures are not corrupted.
OLD server:
Quad Quad core, 64GB RAM
NEW SERVER:
Quad 8-core, 256GB RAM
By looking at old settings, I saw one setting was changed:
the old MAXDOP is 1 now it's zero.
Also, the max memory setting on new server is 256GB
Was it the root cause? 要完整回答。大家投票 回答最好的, 我给100wb
g***l
发帖数: 18555
2
attach了还要DBCC CHECKDB之类的吧,是2008 ENTRERPISE R2吗?
g***l
发帖数: 18555
3
我GOOGLE了一下,是这个
There are a couple of parallization bugs in SQL server with abnormal input.
OPTION(MAXDOP 1) will sidestep them.
z***y
发帖数: 7151
4
兄弟, 都系捏了, 这种回答不讲究啊。

.

【在 g***l 的大作中提到】
: 我GOOGLE了一下,是这个
: There are a couple of parallization bugs in SQL server with abnormal input.
: OPTION(MAXDOP 1) will sidestep them.

g***l
发帖数: 18555
5
我觉得长QUERY的瓶颈基本上在IO,SAN的速度是很慢的,有时候还不如REGULAR HARD
DRIVE. QUERY PARALLISM帮助并不大,反而容易出错

【在 z***y 的大作中提到】
: 兄弟, 都系捏了, 这种回答不讲究啊。
:
: .

a9
发帖数: 21638
6
但原来用san没问题的吧。

【在 g***l 的大作中提到】
: 我觉得长QUERY的瓶颈基本上在IO,SAN的速度是很慢的,有时候还不如REGULAR HARD
: DRIVE. QUERY PARALLISM帮助并不大,反而容易出错

g***l
发帖数: 18555
7
原来设的不是1么,SUPRESS parallel plan generation了
0 - Uses the actual number of available CPUs depending on the current system
workload. This is the default value and recommended setting. 1 - Suppresses
parallel plan generation. The operation will be executed serially. 2-64 -
Limits the number of processors to the specified value. Fewer processors may
be used depending on the current workload. If a value larger than the
number of available CPUs is specified, the actual number of available CPUs
is used.

【在 a9 的大作中提到】
: 但原来用san没问题的吧。
i****a
发帖数: 36252
8
不東. 圍觀...
dump file 發給微軟 tech support?

server
'
If

【在 z***y 的大作中提到】
: An company did the following in order to migration database from old server
: to new server:
: 1. On old server, detach all users databases.
: 2. Then detach SAN from old server.
: 3. On new server, attach this SAN.
: 4. Then run script to attach databases.
: Around 4:00AM today, they started getting memory dump every a few minutes.
: Error Message:
: SQL Server Assertion: File: , line = 385 Failed Assertion = '0'
: Too many parallel nested transactions. This error may be timing-related. If

B*****g
发帖数: 34098
9
曾哥是看你们谁是可造之材,然后收了当小弟

【在 i****a 的大作中提到】
: 不東. 圍觀...
: dump file 發給微軟 tech support?
:
: server
: '
: If

z***y
发帖数: 7151
10
Anyone can give an complete answer?
相关主题
请问有什么好的SQL Server Clustering 的书或training 推荐的吗?look for sql server 2012 vendor
SQL Server 2012有啥重大的变化/提高(比SS2K8)?Can you cluster two different sql server version together?
怎么学SQL SERVER请教一个关于sql server distribution 的问题
进入Database版参与讨论
g***l
发帖数: 18555
11
还有一个问题SQL Server 2008 R2, Standard Edition maxes out at 64GB of memory
.Windows Server 2008 R2 Standard只支持32GB,最好查清楚是什么版本,以前的公司
就出过这种事,弄了个STANDARD的WINDOWS,结果上了MEMORY没用。LOL
i****a
发帖数: 36252
12
我知道
"dump file 發給微軟 tech support" 就是我的答案, haha

【在 B*****g 的大作中提到】
: 曾哥是看你们谁是可造之材,然后收了当小弟
g***l
发帖数: 18555
13
出错的好像都是SQL SERVER 2005,说SP3就FIX了,不知真假,APPLY LATEST SERVICE
PACK,哈哈
z***y
发帖数: 7151
14
我有时间post 自己的分析。
y****w
发帖数: 3747
15
谁说san很慢阿。

【在 g***l 的大作中提到】
: 我觉得长QUERY的瓶颈基本上在IO,SAN的速度是很慢的,有时候还不如REGULAR HARD
: DRIVE. QUERY PARALLISM帮助并不大,反而容易出错

s**********o
发帖数: 14359
16
是很慢,现在都是SSD DATABASE MIRRORING取代SAN的CLUSTER,或者干脆把TEMPDB放入
内存
z***y
发帖数: 7151
17
The root cause were the MAXDOP setting and the max memory setting.
The new box has more CPU cores. MAXDOP was set to 0 which means SQL Server
can use up to all cores, it's enterprise edition btw. Due to using multiple
cores, many memory was consumed for holding interim result for each thread.
When checked the wait status we can see huge amount of suspended sessions
with CXPACKET wait type.
To get things worse, the max memory is the same as physical memory size. So
memory was kept allocated until there's no memory left. Then the whole sql
server get hung. Critical processes cannot get enough memory.

server
'
If

【在 z***y 的大作中提到】
: An company did the following in order to migration database from old server
: to new server:
: 1. On old server, detach all users databases.
: 2. Then detach SAN from old server.
: 3. On new server, attach this SAN.
: 4. Then run script to attach databases.
: Around 4:00AM today, they started getting memory dump every a few minutes.
: Error Message:
: SQL Server Assertion: File: , line = 385 Failed Assertion = '0'
: Too many parallel nested transactions. This error may be timing-related. If

s**********o
发帖数: 14359
18
没经过TEST乱改PRODUCTION参数的DBA会被FIRE掉的
1 (共1页)
进入Database版参与讨论
相关主题
sql sever2005the most powerful PC I have ever used so far
sql server 面试题 (4)请问有什么好的SQL Server Clustering 的书或training 推荐的吗?
再问I/O WAIT的问题SQL Server 2012有啥重大的变化/提高(比SS2K8)?
MSSQL server database backup v.s. transaction log.怎么学SQL SERVER
Tempdb fulllook for sql server 2012 vendor
那天谁说的想做projectsCan you cluster two different sql server version together?
Re: Is there any easy way to truncate the LDF file of SQL SERVER?请教一个关于sql server distribution 的问题
来说说上次发的微软面试题 1帮配个DELL的服务器。包子感谢. (转载)
相关话题的讨论汇总
话题: server话题: memory话题: old话题: sql话题: quad