Hello,
I've got a problem revoking privileges from a plan. Normally our programmers issue
"SET CURRENT SQLID = 'myplanowner';"
"GRANT EXECUTE ON PLAN myplan TO PUBLIC;"
That works, they have created a privilege on 'myplan' for PUBLIC with 'myplanowner', a RACF-group, as grantee.
When they want to this privilege it doesn't work,
"REVOKE EXECUTE ON PLAN myplan FROM PUBLIC;" doesn't work, neither with SET CURRENT SQLID" nor without. Result = SQLCODE -556, ERROR: PUBLIC CANNOT HAVE THE EXECUTE PRIVILEGE ON PK7VTEST REVOKED BY KIRPVO BECAUSE THE REVOKEE DOES NOT POSSESS THE PRIVILEGE OR THE REVOKER DID NOT MAKE THE GRANT
Certainly I can revoke with the "BY 'myplanowner'" keyword since I am SYSADM, but I don't unterstand why a "normal" user ('myplanowner') can't revoke a privilege he has granted on an object that belongs to him.
Did I missunderstand the SQL Reference?
Regards,
Volker.