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

Home -> Community -> Usenet -> c.d.o.server -> Re: "grant select" for all tables: Is it possible?

Re: "grant select" for all tables: Is it possible?

From: Wolfram Roesler <wr_at_spam.la>
Date: Fri, 12 Aug 2005 09:46:33 +0200
Message-ID: <Xns96B063740B81Fwrgrpde@62.153.159.134>


"Dave" <x_at_x.com> wrote in news:LDHKe.86705$G8.71004 @text.news.blueyonder.co.uk:

> begin
> for i in (select table_name from tabs) LOOP
> execute immediate 'grant select on '||i.table_name||' to user2';
> end loop;
> end;
> /

Thanks a lot, that's easy and will certainly prove useful!

Best regards
W. Rösler Received on Fri Aug 12 2005 - 02:46:33 CDT

Original text of this message

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