Hi Gaagoo,
Please find below the update queries for locking/unlocking of attributes: -
update odf_locked_attributes
set attribute_code = 'aaa_***'
where attribute_name = (select attribute_name from DB table where attribute_name = 'value')
and attribute_code = 'aaa';
commit;
update odf_locked_attributes
set attribute_code = 'aaa'
where attribute_name = (select attribute_name from DB table where attribute_name = 'value')
and attribute_code = 'aaa_***';
commit;
....something similar!!
Hope this helps!
Regards,
Suhail.