Hello,
What is ROW LOCK & TABLE LOCK and how to implement them? Or if you can direct me, how can I perform ROW Lock and table Lock in DB2?
What is ROW LOCK and TABLE LOCK and how to implement them?
-
- New Member
- Posts: 8
- Joined: Thu Aug 08, 2013 12:34 pm
Re: What is ROW LOCK & TABLE LOCK and how to implement them?
AFAIK, you cannot control directly the lock in DB2 but indirectly you can try doing that but not completely as for that matter DB2 have IRLM which manages it and if you still want to try to manipulate it, you can try it but cannot guarantee it and for that you need to know every resource using the DB2 objects - ROW, PAGE, TABLE, TableSpace etc with the ISOLATION Level you provide in the BIND Card, also sometimes you code - WITH <isolation level> in the SQL Query itself in the COBOL program. Also, you code provide the default lock it can apply while creating the DB2 Objects - Table, TableSpace, I believe, am not sure.
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: What is ROW LOCK & TABLE LOCK and how to implement them?
This article provides and intresting read on: Understanding locking in DB2 Universal Database.
Hope this helps.
Hope this helps.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute