Re: Enterprise Manager Question..
From: LKBrwn_DBA <member30625_at_dbforums.com>
Date: Mon, 25 Aug 2003 16:14:54 -0400
Message-ID: <3282969.1061842494_at_dbforums.com>
Date: Mon, 25 Aug 2003 16:14:54 -0400
Message-ID: <3282969.1061842494_at_dbforums.com>
Not with OEM, you need dynamic sql and do something like this:
Set Time Off Timing Off Term Off
Set echo off pages 0 lin 80 head off ver off feed off recsep off Trim On
host echo "Select 'Grant Select On '||table_name||' To OtherUsr;'"
>create_grants.sql
host echo " From User_Tables;" >>create_grants.sql
spo grants.sql
_at_create_grants
spo off
set echo on head on term on feed on ver on pages 23
_at_grants
:cool:
-- Posted via http://dbforums.comReceived on Mon Aug 25 2003 - 22:14:54 CEST