Hi all,
If the experts on this forum or maybe Scott klement himself can help, it would be very helpful for me!! :)
I have a db2 ALTER statement in an embedded sqlrpgle prgoram that does the below:
ALTER TABLE table name ACTIVATE column ACCESS CONTROL
but the problem is if the file is locked by another process, the statement fails. Is there any way I can make the alter to work even if the table is locked?
One strange thing I noticed is when I do a WRKOBJLCK, no lock is appearing but I can see a lock in the object_lock_info DB2 table.
Enable access control for an IBM i DB2 table when it is locked
-
- Profound User
- Posts: 48
- Joined: Fri Jul 10, 2020 8:35 am
- First Name: Thej
- Last Name: Pav
- Company Name: Confidential
- Phone: 00918310800134
- Address 1: Chennai
- Address 2: India
- City: Chennai
- State / Province: Outside Canada/USA
- Zip / Postal Code: 673592
- Country: India
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Enable access control for an IBM i DB2 table when it is locked
Sorry, I don't know any way to bypass the need for a lock.
Who is online
Users browsing this forum: No registered users and 1 guest