Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Privilege - View (ORA-1031)
Shiva,
I should have said "with grant option" rather than "ADMIN" option:
GRANT SELECT ON table_name to user
WITH GRANT OPTION; Tom
From: Mercadante, Thomas F (LABOR)
Sent: Tuesday, January 02, 2007 2:21 PM
To: 'shivaswamykr_at_gmail.com'; ORACLE-L
Subject: RE: Privilege - View (ORA-1031)
Shiva,
Of course it is logical. User C does not have privs on the table in Schema B. And Schema B did not give the "ADMIN" priv to the table to user B which would allow User B to grant access to his view to anyone.
You should *never* grant "select any table" to anybody. When you did this, you allowed user C select access to the table in Schema B.
This is the way it works. Read up on database security.
Tom
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Shivaswamy Raghunath
Sent: Tuesday, January 02, 2007 2:00 PM
To: ORACLE-L
Subject: Privilege - View (ORA-1031)
Hello.
Version - 10.1.0.5.0.
User C is NOT able to select (ORA-1031) from a View V in Schema A (On which C has select privilege), which is based on a table in Schema B.
If user C is granted Select any Table, he is able to select from the view V.
This does not loook logical to me. Have you come across this?
Thanks,
Shiva
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Jan 02 2007 - 13:22:57 CST
![]() |
![]() |