DB2: See privileges for procedures




 select substr(t1.schema,1,5) as schema
    , substr(t2.routinename,1,30) as unqualname
    , substr(t1.specificname,1,30) as qualname
    , substr(t1.grantee,1,20) as who
    , t1.granteetype as type
    , t2.create_time
    , t2.alter_time
from syscat.routineauth as t1
inner join syscat.routines as t2
    on t1.specificname = t2.specificname
where t1.schema = 'WCS'
    and t1.routinetype = 'P'
    and t2.routinename='TMW_BUNDLE_PRICE_UPDATE'
order by unqualname
with ur


 select substr(t1.schema,1,5) as schema
    , substr(t2.routinename,1,30) as unqualname
    , substr(t1.specificname,1,30) as qualname
    , substr(t1.grantee,1,20) as who
    , t1.granteetype as type
    , t2.create_time
    , t2.alter_time
from syscat.routineauth as t1
inner join syscat.routines as t2
    on t1.specificname = t2.specificname
where t1.schema = 'WCS'
    and t1.routinetype = 'P'
order by unqualname
with ur

Comments

Popular posts from this blog

Postgres: Clean up stopped replication slot