Pl/sql store procedure
Revanth kumar kurva, September 12, 2018 - 3:03 pm UTC
Hi ,
I have same identical request . How do you perform the grant select on table which created by schema . I have a,b,c schemas . When ever these schemas creates a table . I have grant select on table to role D . Please suggest on this
September 12, 2018 - 3:11 pm UTC
That doesn't look like the same request to me?
Anyway, you have to grant each table individually. There's no "grant all on user" option.
This is one of the more popular suggestions on the database ideas forum. We've raised an enhancement request for it
https://community.oracle.com/ideas/2333
Great 12c enhancement!
Dusan Valasek, September 13, 2018 - 1:22 pm UTC
Hi Chris,
Thank you for your valuable answer!
I do no go for first solution, due easy bypass (security by obscurity)
Second solution is cool, I heard about it but never tried. Nevertheless, more enhancement would be nice. In sense "Do not give grant role on app stored procedure for everybody, just for app_user or somebody else"
Anyway, in the meantime I found some solution, little modification, not to the stored procedures code, but just to one view.
Thanks,
Dusan
September 13, 2018 - 2:25 pm UTC
You still need execute privileges on the function! So only those you've granted this access can call it with code-based access control.