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: grants to schema query

Re: grants to schema query

From: Rachel Carmichael <carmichr_at_hotmail.com>
Date: Thu, 02 Aug 2001 22:49:31 -0700
Message-ID: <F001.0035DD51.20010802100538@fatcity.com>

grant to each object ... but you can sorta kinda wildcard it as follows:

select 'grant update on '||owner|'.'||object_name||' to <user>;' from dba_objects where owner='<ownername>' and object_type in ('TABLE','VIEW','SEQUENCE',....);

spool to a file, then run the file as either the object owner, or as someone who has been granted update with admin

>From: "O'Neill, Sean" <Sean.ONeill_at_organon.ie>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: grants to schema query
>Date: Thu, 02 Aug 2001 07:01:15 -0800
>
>Hope there is not an obvious answer to this..... I want to grant UPDATE
>priv
>to all objects in a schema to a user. Do I need to grant to each object or
>can I somehow wildcard all the objects?. What are my option(s)?. I'd
>appreciate example grant statements!
>
>
>Sean :)
>
>Rookie Data Base Administrator
>Oracle 7.3.3, 8.0.5, 8.1.7 - NT, W2K
>[0%] OCP Oracle8i DBA
>[0%] OCP Oracle9i DBA
>-------------------------------- ------------
>Organon (Ireland) Ltd.
>E-mail: sean.oneill_at_organon.ie [subscribed: Digest Mode]
>
>Visit: http://groups.yahoo.com/group/Oracle-OCP-DBA
>
>"Nobody loves me but my mother... and she could be jivin' too." - BB King
>
>
>
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: O'Neill, Sean
> INET: Sean.ONeill_at_organon.ie
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>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).



Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: carmichr_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Fri Aug 03 2001 - 00:49:31 CDT

Original text of this message

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