Thanks for the question, Peter.
Asked: February 26, 2019 - 7:00 am UTC
Last updated: December 04, 2024 - 6:01 am UTC
Version: 12.2
Viewed 10K+ times! This question is
--execute as user a: create table b.t (col varchar2 (10)); insert into b.t values ('a'); commit; grant delete on b.t to ut; --execute as user ut: delete from b.t where col = 'a'; -- ==> ORA-01031: insufficient privileges --execute as user a: grant select on b.t to ut; --execute as user ut: delete from b.t where col = 'a'; -- => 1 row deleted
Peter, February 26, 2019 - 1:34 pm UTC
Laurent Schneider, February 26, 2019 - 1:43 pm UTC
Peter, February 27, 2019 - 6:02 am UTC
lh, February 27, 2019 - 8:16 am UTC
Stacy, December 02, 2024 - 3:49 pm UTC
select 'grant select on '||table_name||' to '||user_name||';' from dba_tables t, dba_users u where t.owner in (...) and u.username in (...)
The Oracle documentation contains a complete SQL reference.