DB2: Grant on procedure
(1) see what role the user is in
select substr(rolename,1,18) as rolename, substr(grantee,1,18) as grantee from syscat.roleauth order by rolename, grantee with ur;
(2) run the GRANT
grant execute on procedure WCS.TMW_PUBLISH_UNPUBLISH_CATENTRY to role uc4;
(3) what procedures are on the database
select procname from syscat.procedures where procschema='WCS' and procname like 'TMW%';
(4) to see the privilege
select * from SYSCAT.ROUTINEAUTH where schema='WCS';
Comments
Post a Comment