Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Schema specific grants

Re: Schema specific grants

From: Thomas Day <tday6_at_csc.com>
Date: Wed, 12 Feb 2003 09:43:58 -0800
Message-ID: <F001.0054AD5D.20030212094358@fatcity.com>

CREATE ROLE GUEST_USER;
SPOOL GIMME.SQL
SELECT 'GRANT INSERT ON '||TABLE_NAME||' TO GUEST_USER;' FROM USER_TABLES; SPOOL OFF
@GIMME
GRANT GUEST_USER TO GUEST;

                                                                                                                                       
                      "Bob Metelsky"                                                                                                   
                      <bmetelsky               To:      Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>                    
                      @cps92.com>              cc:                                                                                     
                      Sent by: root            Subject: Schema specific grants                                                         
                                                                                                                                       
                                                                                                                                       
                      02/12/2003 10:30                                                                                                 
                      AM                                                                                                               
                      Please respond                                                                                                   
                      to ORACLE-L                                                                                                      
                                                                                                                                       
                                                                                                                                       




Good Morning All

Im looking at trying to grant privilidges to a "guest" user (who does not own the tables)

I know I can do it for individual tables

Eg
GRANT INSERT ANY SCHEMA_NAME.TABLE_NAME TO Guest;

 but I need to grant to an entrie schema Like
GRANT INSERT ANY SCHEMA_NAME.* TO Guest;

Anyone have the syntax for that?

Many thanks
bob

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Bob Metelsky
  INET: bmetelsky_at_cps92.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Thomas Day INET: tday6_at_csc.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Wed Feb 12 2003 - 11:43:58 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US