通过私有软件安装创建新数据库时,我遇到了无法解决的问题。
链接到跟踪死锁XML File here
的跟踪的XML文件我能够跟踪导致死锁的原因以及我尝试更改db owner时的错误。
声明:EXEC [ISC_RAS_CD_APP] .dbo.sp_changedbowner @loginame = N'sa',@ map = false
<deadlock-list>
<deadlock
victim="process4efa404e8">
<process-list>
<process
id="process4efa404e8"
taskpriority="0"
logused="0"
waitresource="KEY: 1:281474978545664 (11ea04af99f6)"
waittime="4947"
ownerId="1284191"
transactionname="HkHostCkptEnableDisable"
lasttranstarted="2017-02-23T12:51:54.617"
XDES="0x4ff1e5be0"
lockMode="S"
schedulerid="4"
kpid="10252"
status="suspended"
spid="62"
sbid="0"
ecid="0"
priority="0"
trancount="1"
lastbatchstarted="2017-02-23T12:51:54.610"
lastbatchcompleted="2017-02-23T12:51:54.610"
lastattention="2017-02-23T12:51:54.580"
clientapp="SQL Management"
hostname="IDQSRV01"
hostpid="8940"
loginname="HMS\OrenG"
isolationlevel="read committed (2)"
xactid="1284156"
currentdb="12"
lockTimeout="4294967295"
clientoption1="673185824"
clientoption2="128056">
<executionStack>
<frame
procname="mssqlsystemresource.sys.sp_changedbowner"
line="26"
stmtstart="1656"
stmtend="1686"
sqlhandle="0x0300ff7f12d71ceed5d2350180a4000001000000000000000000000000000000000000000000000000000000">
checkpoint </frame>
<frame
procname="adhoc"
line="1"
sqlhandle="0x01000c0069b98f048084f3000500000000000000000000000000000000000000000000000000000000000000">
EXEC [ISC_RAS_CD_APP].dbo.sp_changedbowner @loginame = N'sa', @map = false </frame>
</executionStack>
<inputbuf>
EXEC [ISC_RAS_CD_APP].dbo.sp_changedbowner @loginame = N'sa', @map = false </inputbuf>
</process>
</process-list>
<resource-list>
<keylock
hobtid="281474978545664"
dbid="1"
objectname="master.sys.sysdbreg"
indexname="clst"
id="lock5006efc00"
mode="X"
associatedObjectId="281474978545664">
<owner-list>
<owner
id="process4efa404e8"
mode="X" />
<owner
id="process4efa404e8"
mode="S"
requestType="wait" />
</owner-list>
<waiter-list>
<waiter
id="process4efa404e8"
mode="S"
requestType="wait" />
</waiter-list>
</keylock>
</resource-list>
</deadlock>
</deadlock-list>
“sa”是我在安装新服务器时创建的默认用户。
我的任务优先级设置为0,但每次它给我一个不同的任务ID,所以我不确定我是否可以更改它。
我在线查看每一个答案,但没有什么可以帮助我,任何人都知道我可以做些什么来解决它?
如果需要,可以提供更多信息。
此致