If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > -503 Too many tables locked.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-06, 03:50
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
-503 Too many tables locked.

Hi,
I am runing a process and the aplication return this error, you can tell me what is the reason for this error.

thank you for you help.
Reply With Quote
  #2 (permalink)  
Old 08-16-06, 06:18
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
#finderr 503

This database server in this host operating system has a limit on the
number of tables that can be locked at one time. It was unable to lock
the table you requested. Roll back the current transaction. Then
redesign the operation to lock fewer tables, to use row-level locking,
or to open the database in exclusive mode.
Reply With Quote
  #3 (permalink)  
Old 08-17-06, 02:30
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Lightbulb

of course, I need a explanation of this error and why?

Thank you.
Reply With Quote
  #4 (permalink)  
Old 08-17-06, 04:47
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Lightbulb

Hi,
How many tables can open informix at same time?
Reply With Quote
  #5 (permalink)  
Old 08-17-06, 07:39
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
Quote:
Originally Posted by georgipa
Hi,
How many tables can open informix at same time?
It depends if you lock the tables or not.
Normally there is no limit for number of open tables, but if are using LOCK TABLE, there
is a hard limit of 32 tables per user.
Reply With Quote
  #6 (permalink)  
Old 08-17-06, 08:06
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Lightbulb

Hi Stanislav,

Thank you for you help, ¿ this value can modify in the configuration? for to increase number lock tables is 100 and how do it.

Thank you.
Reply With Quote
  #7 (permalink)  
Old 08-17-06, 10:57
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
If you need to lock more then 32 tables would it be easier to just lock the whole database?
Reply With Quote
  #8 (permalink)  
Old 08-17-06, 11:21
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
Quote:
Originally Posted by georgipa
Hi Stanislav,

Thank you for you help, ¿ this value can modify in the configuration? for to increase number lock tables is 100 and how do it.

Thank you.
You cant modify this value. So use solutions mentioned in the description of your error: lock fewer tables, use row-level locking or as artemka already sayed just lock the whole database.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On