um, shameless plu here:
Oracle SQL & PL/SQL Annotated Archives has a script to create sql for
triggers, and it can be used to generate for all triggers owned by a
schema
end of shameless plug
- Larry Elkins <elkinsl_at_flash.net> wrote:
> David,
>
> I would lean towards generating a script for all the triggers (if you
> don't
> already have them), doing a global replace on that, and then
> executing the
> script. TOAD, for example, can easily generate a single script for
> you
> containing all the create or replace trigger statements in a schema.
> And
> while I don't have one handy, I'm sure other list members have
> scripts to
> dump trigger source code where you could accomplish your same goal.
>
> Regards,
>
> Larry G. Elkins
> elkinsl_at_flash.net
> 214.954.1781
>
> > -----Original Message-----
> > From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of
> > DBarbour_at_austin.isd.tenet.edu
> > Sent: Thursday, October 25, 2001 2:12 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject: Update invalid trigger_text in DBA_TRIGGERS?
> >
> >
> >
> > I've got 885 triggers with hard-coded fully qualified table names
> in
> > DBA_TRIGGERS. Problem is, the vendor changed the ownership on
> these
> > tables, and now I've got 885 invalid triggers. I'd just like to
> run my
> > grand scheme (not to be confused with schema) past you folks,
> > give you the
> > chance to realize just what an idiot I am, and offer brilliant
> > alternatives
> > that'll cause lasting envy, jealousy, and self-pity - mostly
> because the
> > suggestions will be simpler, and might actually work.
> >
> > So much for the introduction. I thought I'd just go into
> DBA_TRIGGERS and
> > run a replace against the trigger_text. Since trigger_text is a
> long data
> > type, I don't believe I can use a straight update .. set ...
> replace() in
> > SQL PLUS. My plan therefore is to write a quick PL/SQL piece that
> will
> > select the long column into a varchar2, do the replace, then update
> the
> > long column with the edited varchar2 variable.
> >
> > Is this a realistic strategy?
> >
> >
> >
> > David A. Barbour
> > Oracle DBA, OCP
> > AISD
> > 512-414-1002
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author:
> > INET: DBarbour_at_austin.isd.tenet.edu
> >
> > 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).
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Larry Elkins
> INET: elkinsl_at_flash.net
>
> 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).
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Rachel Carmichael
INET: wisernet100_at_yahoo.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 Thu Oct 25 2001 - 15:18:26 CDT