Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Lock Table Overflow

Former Member
0 Likes
772

Hi,

I am facing problem with Lock Table Overflow Error for a program. Can anyone plz let me know, how to resolve this error?

6 REPLIES 6
Read only

manuel_bassani
Contributor
0 Likes
725

Hi Heena,

which program is it? standard or a custom one ?

If you try to lock many records passing the primary key, the lock table will quickly overflow

Perhaps you can try one of the following:

1. lock records by partial key (if possible)

2. Contact your SPA administrator and ask to add space to lock table

Have a nice day

Manuel

Read only

0 Likes
725

Hi,

Thanks for the reply.

Its a custom program, it gave an error in the PCH Env.

So need to find the reason behind this overflow.

Read only

0 Likes
725

Since it is a custom program, try to make sure that you only do indiviual locking of objects and don not forget to unlock them, before creating a new lock.

Read only

Former Member
0 Likes
725

hiii.

in case of a custom prg...if you lock many fields then this type of errors occur.

try to lock a less number of fields.....

and always use the enqueue and dequeue function modules and fix the scope to 2.

reward if helpful..

thanks...

Read only

0 Likes
725

Hi,

Can you plz elobarate on "Scope to 2". What this says?

thanx.

Read only

0 Likes
725

hii,

scope means that if you want to pass on the lock to the update work process also or not.

there r 3 type of scope.

1. 1-the lock only remains in the prg

2. 2-the lock remains in the prg and passed on to the lock process.

3. 3 -the lock remains remains both in the prg and also in the update work process.

if more details plz revert back.

reward if heplful.

thankssss.....