Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Privilege - View (ORA-1031)
Probably the "grant option" has been revoked (10.2.0.2):
dellera_at_ORACLE10> create table b.t (x int);
Table created.
dellera_at_ORACLE10> grant select on b.t to a;
Grant succeeded.
dellera_at_ORACLE10> create or replace view a.v as select * from b.t;
View created.
dellera_at_ORACLE10> grant select on a.v to c; grant select on a.v to c
*
Note: it is logical that you need the "grant option", since granting select on a view means granting read privs on (some) info of the table.
dellera_at_ORACLE10> grant select on b.t to a with grant option;
Grant succeeded.
dellera_at_ORACLE10> grant select on a.v to c;
Grant succeeded.
dellera_at_ORACLE10> revoke select on b.t from a;
Revoke succeeded.
dellera_at_ORACLE10> grant select on b.t to a;
Grant succeeded.
dellera_at_ORACLE10> conn c/c_at_oracle10g
Connected.
c_at_ORACLE10> select * from a.v;
select * from a.v
*
c_at_ORACLE10> select privilege from user_tab_privs where table_name = 'V';
PRIVILEGE
-- Alberto Dell'Era "Per aspera ad astra" -- http://www.freelists.org/webpage/oracle-lReceived on Tue Jan 02 2007 - 13:38:36 CST
![]() |
![]() |