SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


BLOCKING CAUSED BY REORGANIZE OF INDEX JOB IN SQL SERVER 2005


BLOCKING CAUSED BY REORGANIZE OF INDEX JOB IN SQL SERVER 2005

Author
Message
Ivan Mohapatra
Ivan Mohapatra
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 495
according to the blocking email it sometime select statement or update statament
GilaMonster
GilaMonster
SSC Guru
SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)

Group: General Forum Members
Points: 86490 Visits: 45240
Stop shouting at us please.

Yes, blocking is possible. It should be short-lived. It's very hard to help you as you're not giving us much in the way of details. No mention of lock types, wait durations, what exact statements were involved, etc.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Ivan Mohapatra
Ivan Mohapatra
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 495
Gila,

the wait time is 1 minute minimum for a blocking email(alert) to be triggered and i get like more then 5 blocking email.:-)

thanks
Ivan
GilaMonster
GilaMonster
SSC Guru
SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)

Group: General Forum Members
Points: 86490 Visits: 45240
Ok, so something (unknown) is causing something else (unknown) to be blocked for (unknown) duration with (unknown) lock types requested and (unknown) lock types held on (unknown) objects.

Good luck fixing this, because currently there's no way that anyone else can help.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Ivan Mohapatra
Ivan Mohapatra
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 495
GilaMonster (9/30/2013)
Ok, so something (unknown) is causing something else (unknown) to be blocked for (unknown) duration with (unknown) lock types requested and (unknown) lock types held on (unknown) objects.

Good luck fixing this, because currently there's no way that anyone else can help.



so something (Select statement) is causing something else (alter index reorganize ) to be blocked for (5 to 10 min) duration with (unknown) lock types requested and (unknown) lock types held on (SAME) objects.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)

Group: General Forum Members
Points: 86490 Visits: 45240
Not enough information to help. Exact statement that is being blocked. Exact statement (not batch) that is causing the blocking. The Wait time. The exact lock types. The object names. At an absolute minimum. The full blocking chain (with all wait types) would help.

Otherwise it's like calling a mechanic and telling him your car won't start but not giving any other information.

Oh, and if it's the select that's blocking the reorganise (which is the opposite of what you've been saying), then that's completely expected. Optimise the select to run in less time.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Ivan Mohapatra
Ivan Mohapatra
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 495
GilaMonster (9/30/2013)
Not enough information to help. Exact statement that is being blocked. Exact statement (not batch) that is causing the blocking. The Wait time. The exact lock types. The object names. At an absolute minimum. The full blocking chain (with all wait types) would help.

Otherwise it's like calling a mechanic and telling him your car won't start but not giving any other information.

Oh, and if it's the select that's blocking the reorganise (which is the opposite of what you've been saying), then that's completely expected. Optimise the select to run in less time.



i already got my answer from you thanks a lot
Thomas Mucha
Thomas Mucha
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 Visits: 408
I've run into this problem too. The only thing that comes to mind is that tables with LOB data types could be the problem. I know that for index REBUILD you cannot specify ONLINE = ON if the index contains LOB columns, but I haven't seen anything stating the same for REORGANIZE.

Anyone know anything about this?

In SQL there are no absolutes, it always depends...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search