Unix Technical Forum

Rebind operation locks up

This is a discussion on Rebind operation locks up within the DB2 forums, part of the Database Server Software category; --> Hi I'm using DB2 V9.1.0 on SUSE Linux with kernel version 2.6.5. In the system I'm working on, there ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:36 AM
Ben.Combrink@gmail.com
 
Posts: n/a
Default Rebind operation locks up

Hi

I'm using DB2 V9.1.0 on SUSE Linux with kernel version 2.6.5.

In the system I'm working on, there are several stored procedures which
perform simple selects through different views.

Those views are redefined (drop/create) periodically. DB2 rebinds the
stored procedures that use the views, automatically.

The stored procedures are executed concurrently by another program. My
problem is that the rebind operations seem to interfere with each
other, causing a lockup. Neither can proceed.

With a long lock timeout (5 minutes) they'll wait the full 5 minutes,
every time.

If I manually issue rebind commands for the stored procs, one after the
other, the stored procs execute trouble-free when the program using
them runs.

I'm seeing lock waits like this, from db2pd -locks wait

0x26218AE0 18 00000F00430024590100000052 Row ..X W 19 1 0 0x10
0x40000000 TbspaceID 0 TableID 15 PartitionID 0 Page 88356 Slot 67
0x26219B40 19 00000F00430024590100000052 Row ..U G 19 1 0 0x10
0x40000000 TbspaceID 0 TableID 15 PartitionID 0 Page 88356 Slot 67

The table with ID 15 in tablespace 0 is SYSIBM.SYSSECTION. It appears
to be 2 locks on a row in that table that is at the center of the
problem. But this is an operation under DB2's control.

Has anyone else seen lockups with automatic rebinds? Could this be a
DB2 bug?

Thanks
Ben

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:36 AM
Gert van der Kooij
 
Posts: n/a
Default Re: Rebind operation locks up

In article <1162562796.514225.210340@i42g2000cwa.googlegroups .com>,
Ben.Combrink@gmail.com says...
> Hi
>
> I'm using DB2 V9.1.0 on SUSE Linux with kernel version 2.6.5.
>
> In the system I'm working on, there are several stored procedures which
> perform simple selects through different views.
>
> Those views are redefined (drop/create) periodically. DB2 rebinds the
> stored procedures that use the views, automatically.
>
> The stored procedures are executed concurrently by another program. My
> problem is that the rebind operations seem to interfere with each
> other, causing a lockup. Neither can proceed.
>
> With a long lock timeout (5 minutes) they'll wait the full 5 minutes,
> every time.
>
> If I manually issue rebind commands for the stored procs, one after the
> other, the stored procs execute trouble-free when the program using
> them runs.
>
> I'm seeing lock waits like this, from db2pd -locks wait
>
> 0x26218AE0 18 00000F00430024590100000052 Row ..X W 19 1 0 0x10
> 0x40000000 TbspaceID 0 TableID 15 PartitionID 0 Page 88356 Slot 67
> 0x26219B40 19 00000F00430024590100000052 Row ..U G 19 1 0 0x10
> 0x40000000 TbspaceID 0 TableID 15 PartitionID 0 Page 88356 Slot 67
>
> The table with ID 15 in tablespace 0 is SYSIBM.SYSSECTION. It appears
> to be 2 locks on a row in that table that is at the center of the
> problem. But this is an operation under DB2's control.
>
> Has anyone else seen lockups with automatic rebinds? Could this be a
> DB2 bug?
>
> Thanks
> Ben
>
>


I don't know if it is a real bug but I've seen it happen a lot of times
with the bind files belonging to our COBOL programs. Manually binding
them didn't cause a problem but the automatic rebinds were causing a lot
of trouble. We never did any table/etc.. updates during online hours,
only during the housekeeping interval.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 09:37 AM
Gregor =?UTF-8?B?S292YcSN?=
 
Posts: n/a
Default Re: Rebind operation locks up

Gert van der Kooij wrote:

> In article <1162562796.514225.210340@i42g2000cwa.googlegroups .com>,
> Ben.Combrink@gmail.com says...
>> Hi
>>
>> I'm using DB2 V9.1.0 on SUSE Linux with kernel version 2.6.5.
>>
>> In the system I'm working on, there are several stored procedures which
>> perform simple selects through different views.
>>
>> Those views are redefined (drop/create) periodically. DB2 rebinds the
>> stored procedures that use the views, automatically.
>>
>> The stored procedures are executed concurrently by another program. My
>> problem is that the rebind operations seem to interfere with each
>> other, causing a lockup. Neither can proceed.
>>
>> With a long lock timeout (5 minutes) they'll wait the full 5 minutes,
>> every time.
>>
>> If I manually issue rebind commands for the stored procs, one after the
>> other, the stored procs execute trouble-free when the program using
>> them runs.
>>
>> I'm seeing lock waits like this, from db2pd -locks wait
>>
>> 0x26218AE0 18 00000F00430024590100000052 Row ..X W 19 1 0 0x10
>> 0x40000000 TbspaceID 0 TableID 15 PartitionID 0 Page 88356 Slot 67
>> 0x26219B40 19 00000F00430024590100000052 Row ..U G 19 1 0 0x10
>> 0x40000000 TbspaceID 0 TableID 15 PartitionID 0 Page 88356 Slot 67
>>
>> The table with ID 15 in tablespace 0 is SYSIBM.SYSSECTION. It appears
>> to be 2 locks on a row in that table that is at the center of the
>> problem. But this is an operation under DB2's control.
>>
>> Has anyone else seen lockups with automatic rebinds? Could this be a
>> DB2 bug?
>>
>> Thanks
>> Ben
>>
>>

>
> I don't know if it is a real bug but I've seen it happen a lot of times
> with the bind files belonging to our COBOL programs. Manually binding
> them didn't cause a problem but the automatic rebinds were causing a lot
> of trouble. We never did any table/etc.. updates during online hours,
> only during the housekeeping interval.


I've also experienced DB2 crashes when we called a procedure that was
invalid and DB2 had to rebuild it. We tracked the problem down to invalid
functions (had to be recreated). When we recreate those functions first and
then recreate procedures everything is working.

Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:25 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com