dbTalk Databases Forums  

Re: Role/Security Question

comp.databases.oracle.server comp.databases.oracle.server


Discuss Re: Role/Security Question in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shakespeare
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 03:49 AM







"Dereck L. Dietz" <dietzdl (AT) ameritech (DOT) net> schreef in bericht
news:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...
Quote:
Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). Also, every schema has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare




Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 11:47 AM






On Jun 20, 4:49*am, "Shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"Dereck L. Dietz" <diet... (AT) ameritech (DOT) net> schreef in berichtnews:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...





Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). *Also, every schema *has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. *The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare- Hide quoted text -

- Show quoted text -
As Shakespeare pointed out ownerA.views that reference ownerB.table
will require a direct grant with the "with grant option" clause.

Also stored functions, packages, and procedure will require that the
stored object owner have a direct grant from the table/object owner to
reference objects owned by another user.

HTH -- Mark D Powell --


Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 11:47 AM



On Jun 20, 4:49*am, "Shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"Dereck L. Dietz" <diet... (AT) ameritech (DOT) net> schreef in berichtnews:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...





Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). *Also, every schema *has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. *The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare- Hide quoted text -

- Show quoted text -
As Shakespeare pointed out ownerA.views that reference ownerB.table
will require a direct grant with the "with grant option" clause.

Also stored functions, packages, and procedure will require that the
stored object owner have a direct grant from the table/object owner to
reference objects owned by another user.

HTH -- Mark D Powell --


Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 11:47 AM



On Jun 20, 4:49*am, "Shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"Dereck L. Dietz" <diet... (AT) ameritech (DOT) net> schreef in berichtnews:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...





Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). *Also, every schema *has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. *The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare- Hide quoted text -

- Show quoted text -
As Shakespeare pointed out ownerA.views that reference ownerB.table
will require a direct grant with the "with grant option" clause.

Also stored functions, packages, and procedure will require that the
stored object owner have a direct grant from the table/object owner to
reference objects owned by another user.

HTH -- Mark D Powell --


Reply With Quote
  #5  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 11:47 AM



On Jun 20, 4:49*am, "Shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"Dereck L. Dietz" <diet... (AT) ameritech (DOT) net> schreef in berichtnews:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...





Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). *Also, every schema *has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. *The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare- Hide quoted text -

- Show quoted text -
As Shakespeare pointed out ownerA.views that reference ownerB.table
will require a direct grant with the "with grant option" clause.

Also stored functions, packages, and procedure will require that the
stored object owner have a direct grant from the table/object owner to
reference objects owned by another user.

HTH -- Mark D Powell --


Reply With Quote
  #6  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 11:47 AM



On Jun 20, 4:49*am, "Shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"Dereck L. Dietz" <diet... (AT) ameritech (DOT) net> schreef in berichtnews:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...





Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). *Also, every schema *has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. *The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare- Hide quoted text -

- Show quoted text -
As Shakespeare pointed out ownerA.views that reference ownerB.table
will require a direct grant with the "with grant option" clause.

Also stored functions, packages, and procedure will require that the
stored object owner have a direct grant from the table/object owner to
reference objects owned by another user.

HTH -- Mark D Powell --


Reply With Quote
  #7  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 11:47 AM



On Jun 20, 4:49*am, "Shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"Dereck L. Dietz" <diet... (AT) ameritech (DOT) net> schreef in berichtnews:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...





Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). *Also, every schema *has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. *The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare- Hide quoted text -

- Show quoted text -
As Shakespeare pointed out ownerA.views that reference ownerB.table
will require a direct grant with the "with grant option" clause.

Also stored functions, packages, and procedure will require that the
stored object owner have a direct grant from the table/object owner to
reference objects owned by another user.

HTH -- Mark D Powell --


Reply With Quote
  #8  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Role/Security Question - 06-20-2008 , 11:47 AM



On Jun 20, 4:49*am, "Shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"Dereck L. Dietz" <diet... (AT) ameritech (DOT) net> schreef in berichtnews:F3D6k.10505$uE5.689 (AT) flpi144 (DOT) ffdc.sbc.com...





Oracle 10.2.0.3.0
Windows Server 2003

In our database the security has been wide open (every table has been
granted SELECT TO PUBLIC). *Also, every schema *has had privileges such as
SELECT ANY TABLE granted to them.

We're going to be having outside users start using the database and there
are only certain tables they're supposed to have access to.

I've been trying to revoke PUBLIC from all the tables and grant privileges
through roles.

For the most part it's going okay but we've received an insufficient
privilege violation for a schema trying to select from tables owned by
other schemas to create a view. *The schema has the proper role to select
from the tables but it wouldn't work until I granted the SELECT ANY TABLE
privilege.

What am I doing wrong?

Grant select on the underlying tables with grant option.

With a view on some other schema, you indirectly expose data from that
schema to others in your schema. That's why you need the grant option

Shakespeare- Hide quoted text -

- Show quoted text -
As Shakespeare pointed out ownerA.views that reference ownerB.table
will require a direct grant with the "with grant option" clause.

Also stored functions, packages, and procedure will require that the
stored object owner have a direct grant from the table/object owner to
reference objects owned by another user.

HTH -- Mark D Powell --


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.