User is part of group that has select permissions but they get error when select the table in stored procedure -


i have created user called spuser , assigned them group has select permissions on database tables. when running select * mytable, query returns results expected.

when spuser executes stored procedure using mytable, returns following message:

an error occurred during implicit system action type "5".  information returned error includes sqlcode "-551", sqlstate "42501" ,    message tokens "spuser|select|myschema.mytable".. sqlcode=-727, sqlstate=56098,  driver=4.16.53 

if grant select privileges directly user don't error table anymore although getting same error different table. i'm not sure whether need grant select privileges tables or whether affected. stored procedure has ran before not sure why i'm seeing now.

does know causes error , can fix it?

thanks help.

privileges granted groups not apply in static context, e.g. stored procedures. either have grant required privileges individual user or create role (if db2 version supports roles), grant privileges role, grant role user.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -