dbTalk Databases Forums  

Lcok iSsue on Sysproc plan catalog table

comp.databases.informix comp.databases.informix


Discuss Lcok iSsue on Sysproc plan catalog table in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
meenu sharma
 
Posts: n/a

Default Lcok iSsue on Sysproc plan catalog table - 06-23-2010 , 12:21 AM






Hi,

In my application, we are constantly facing one issue :

We get the SQL exception that " cannot read sysproc plan catalog table". It
says some other user has locked the table.

As per my understanding, thsi tabel is used by Informix to update query plan
of all stored procedure. Can anyone help me how to get rid of this issue.

Thanks and Regards,
Meenu

Reply With Quote
  #2  
Old   
Vagner
 
Posts: n/a

Default Re: Lcok iSsue on Sysproc plan catalog table - 06-24-2010 , 06:53 PM






Hi,

Did you run update statistics for procedure?

This URL can help you:
http://www-01.ibm.com/support/docvie...id=swg21079720

If you are working on version 7 and the problem persists verify if
your stored proceduer cache size is enough (onstat -g prc).


Vagner

On 23 jun, 01:21, meenu sharma <meenu.thapli... (AT) gmail (DOT) com> wrote:
Quote:
Hi,

In my application, we are constantly facing one issue :

We get the SQL exception that " cannot read sysproc plan catalog table". It
says some other user has locked the table.

As per my understanding, thsi tabel is used by Informix to update query plan
of all stored procedure. Can anyone help me how to get rid of this issue.

Thanks and Regards,
Meenu

Reply With Quote
  #3  
Old   
Tambi Dude
 
Posts: n/a

Default Re: Lcok iSsue on Sysproc plan catalog table - 06-27-2010 , 02:29 PM



On Jun 23, 12:21*am, meenu sharma <meenu.thapli... (AT) gmail (DOT) com> wrote:
Quote:
Hi,

In my application, we are constantly facing one issue :

We get the SQL exception that " cannot read sysproc plan catalog table". It
says some other user has locked the table.

As per my understanding, thsi tabel is used by Informix to update query plan
of all stored procedure. Can anyone help me how to get rid of this issue.

Thanks and Regards,
Meenu
Meenu,

For this to happen the most likely cause is this:

1. stored procedures drop and created temp tables inside the sproc
2. the said sprocs are called within transactions.

sproc has a dependency list of all tables/views it uses. so if any
of them changed after the sproc was last compiled, it forces a new
recompile
of sproc. Dropping/creating a sproc always triggers a new recompile
and recompiling informix locks sysprocplan.

executing sproc within a transaction makes it worse since the lock is
not released
until the transaction commits which can take as long as your
application demands.

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.