RE: Need Help with locks
Posted in 1997
Marie You can increase the LOCKS parameter in the onconfig file. If you dont = want to lock the entire table and if your lock mode is ROW (you can = check this with SELECT tabname,locklevel FROM systables WHERE tabid > = 99), and if the user who is running your archive program has resource = permission you can ALTER TABLE tabname LOCK MODE (PAGE) just before each = table DELETE and ALTER TABLE tabname LOCK MODE (ROW) right after. This = will reduce the locks on your tables. HTH Sujit Pal ---------- From: Marie Josee Daigle[SMTP:ericmari@total.net] Sent: Wednesday, August 27, 1997 6:15 PM To: informix-list@rmy.emory.edu Subject: Need Help with locks Hi, I'm new with INFORMIX , we are currently working with version 5. I hope that your experience will help me out with this problem: I'm creating a program to archive records and to delete those = records every month ( or week). Right now, i'm getting an error message saying = that there is=20 "too many locks". I would like to keep this program running even if = there are user accessing the table(I don't want to lock the whole table). 1) Is there a way to increase the maximum number of lock ? 2) Do you have any other idea ? thank you Eric Brochu