|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
关于这个理由我把它放在最后一位。在很多业界专家中有一个相当一致的观点:MySQL不能很好的扩展。关于这点可能有很大的分歧,争论的焦点主要集中于水平可扩展性和垂直可扩展性上。MySQL则更倾向于垂直可扩展性。server|sqlserver启动SQLServer的逝世锁反省
ReportDate:2003/12/11
Preparedby:郑昀
Articlelastmodifiedon2004-2-16
Theinformationinthisarticleappliesto:
üMicrosoftSQLServer2000,7.0
报告:
关于数据库逝世锁,一般能够经由过程TRACEFLAG1204、1205、1206,反省ERRORLOG内里的输入,和剖析SQLTRACE的实行高低文判别逝世锁成绩的出处。
TRACEON函数的第三个参数设置为-1,暗示不但单针对以后connection,而是针对一切包含将来创建的connection。如许,才够完整,不然只是监督以后已创建的数据库毗连了。
实行上面的话能够把逝世锁纪录到Errorlog中:
dbcctraceon(1204,3605,-1)
go
dbcctracestatus(-1)
go
失掉的输入为:
DBCC实行终了。假如DBCC输入了毛病信息,请与体系办理员接洽。
TraceFlagStatus
---------------
12041
12051
36051
(所影响的行数为3行)
DBCC实行终了。假如DBCC输入了毛病信息,请与体系办理员接洽。
今后,你能够检察数据库的例行日记,每隔一段工夫,数据库城市反省逝世锁,日记文本以下所示:
2004-01-1618:34:38.50spid4----------------------------------
2004-01-1618:34:38.50spid4Startingdeadlocksearch1976
2004-01-1618:34:38.50spid4TargetResourceOwner:
2004-01-1618:34:38.50spid4ResType:LockOwnerStype:ORMode:USPID:55ECID:0Ec:(0xAA577570)Value:0x4c25cba0
2004-01-1618:34:38.50spid4Node:1ResType:LockOwnerStype:ORMode:USPID:55ECID:0Ec:(0xAA577570)Value:0x4c25cba0
2004-01-1618:34:38.50spid4Node:2ResType:LockOwnerStype:ORMode:USPID:71ECID:0Ec:(0xABF07570)Value:0x9bd0ba00
2004-01-1618:34:38.50spid4
2004-01-1618:34:38.50spid4--nextbranch--
2004-01-1618:34:38.50spid4Node:2ResType:LockOwnerStype:ORMode:USPID:71ECID:0Ec:(0xABF07570)Value:0x9bd0ba00
2004-01-1618:34:38.50spid4
2004-01-1618:34:38.50spid4
2004-01-1618:34:38.50spid4Enddeadlocksearch1976...adeadlockwasnotfound.
2004-01-1618:34:38.50spid4----------------------------------
以下实践检测到逝世锁的日记输入,来自于一份十分棒的课本“LogShippinginSQLServer2000.ppt”,作者是RonTalmage:
Deadlockencountered....Printingdeadlockinformation
Wait-forgraph
Node:1
KEY:7:1977058079:1(f600d547433a)CleanCnt:1Mode:XFlags:0x0
GrantList::
Owner:0x19090e20Mode:XFlg:0x0Ref:0Life:02000000SPID:54ECID:0
SPID:54ECID:0StatementType:SELECTLine#:1
InputBuf:LanguageEvent:Select*FromAuthors
RequestedBy:
ResType:LockOwnerStype:ORMode:SSPID:53ECID:0Ec:(0x19c5d530)Value:0x19090dc0Cost:(0/114)
Node:2
KEY:7:1977058079:1(f5006f164aa3)CleanCnt:1Mode:XFlags:0x0
GrantList::
Owner:0x19091000Mode:XFlg:0x0Ref:0Life:02000000SPID:53ECID:0
SPID:53ECID:0StatementType:SELECTLine#:1
InputBuf:LanguageEvent:Select*FromAuthors
RequestedBy:
ResType:LockOwnerStype:ORMode:SSPID:54ECID:0Ec:(0x19dc3530)Value:0x19091180Cost:(0/114)
VictimResourceOwner:
ResType:LockOwnerStype:ORMode:SSPID:54ECID:0Ec:(0x19dc3530)Value:0x19091180Cost:(0/114)
这份课本的下载地点:
http://www.sqlpass.org/resources/sessions/summit2002/S231_S348.ppt
数据库办理员必看哦。
附录:DBCCTRACEON
翻开(启用)指定的跟踪标志。
正文
跟踪标志用于自界说某些把持Microsoft |
|