RE: Privilege - View (ORA-1031)

  • From: "Mercadante, Thomas F \(LABOR\)" <Thomas.Mercadante@xxxxxxxxxxxxxxxxx>
  • To: <shivaswamykr@xxxxxxxxx>, "ORACLE-L" <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 2 Jan 2007 14:22:57 -0500

Shiva,

 

I should have said "with grant option" rather than "ADMIN" option:

 

GRANT SELECT 

    ON  table_name to user 

    WITH GRANT OPTION;

 

Tom

 


--------------------------------------------------------
This transmission may contain confidential, proprietary, or privileged 
information which is intended solely for use by the individual or entity to 
whom it is addressed.  If you are not the intended recipient, you are hereby 
notified that any disclosure, dissemination, copying or distribution of this 
transmission or its attachments is strictly prohibited.  In addition, 
unauthorized access to this transmission may violate federal or State law, 
including the Electronic Communications Privacy Act of 1985.  If you have 
received this transmission in error, please notify the sender immediately by 
return e-mail and delete the transmission and its attachments.


________________________________


From: Mercadante, Thomas F (LABOR) 
Sent: Tuesday, January 02, 2007 2:21 PM
To: 'shivaswamykr@xxxxxxxxx'; 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@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] 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

Other related posts: