I have a view created under a user "dbaUserA". View query uses a table from another user "dbaUserB". Both users are dba.
view name: v_valid_trx with query of
Select trx_no,trx_date,order_item
from trx_table a left outer join dbaUserB.cancelled_trx b on a.trx_no=b.trx_no
where b.trx_no is null;
I have created a less privilege user "userC" but with select privilege on
dbaUserA.trx_table
dbaUserB.cancelled_trx.
dbaUserA.v_valid_trx
I can select directly trx_table and cancelled_trx from those different schemas however i cannot select on the view v_valid_trx.
Oracle prompts
ORA-01031: insufficient privileges 01031. 00000 - "insufficient privileges" *Cause: An attempt was made to change the current username or password without the appropriate privilege. This error also occurs if attempting to install a database without the necessary operating system privileges. When Trusted Oracle is configure in DBMS MAC, this error may occur if the user was granted the necessary privilege at a higher label than the current login. *Action: Ask the database administrator to perform the operation or grant the required privileges. For Trusted Oracle users getting this error although granted the the appropriate privilege at a higher label, ask the database administrator to regrant the privilege at the appropriate label. Error at Line: 1 Column: 21
Been wrestling with these for hours now. I can't seem to understand the cause of the error when i can freely select the base tables.
please help :)
grant select on cancelled_trx to dbausera with grant option
, though that's a bit of a guess without a complete test case. dbaUserB gave dbaUserA permission to query it, not to share it with anyone else. – William Robertson