Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Effective granting of rights to Views

Status
Not open for further replies.

DTRNTR

MIS
Jun 27, 2000
34
US
We have a shared schema 'Develop_Views' where database Views are created and then referenced by our application developers.

What is the best way to handle the granting of access to these Views to our individual application developers so as to minimize the administration necessary when new Views are added to this schema. In other words, can this be done by granting access to all Views in the schema (and hopefully inheriting rights to new View objects when created) without explicitly naming each granted View individually?

Thank You!
 
The best option is probably to script it using the SQL from SQL technique e.g. adding a new user:

Code:
set echo off
set feedback off
set pages 0
set heading off

spool grntview.sql
select 'grant select, insert, update, delete on '||view_name||' to &user;'
from all_views
where owner = 'XXX';
spool off
@grntview
 
What Dagon is trying to say is that you can't set schema level permissions in oracle. I have brought this up with oracle in the past, but they don't support this yet.

Bill
Oracle DBA/Developer
New York State, USA
 
Thank You both....I greatly appreciate the code sample and the clarification provided!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top