Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Fastest way to export stored procedures, triggers & packages to text file
Yep, I agree with you. I initially understood from OP that they just want to
transfer their stored procedures & other stuff to another database to do
some experimenting there.
Tanel.
<Kenneth Koenraadt> wrote in message
news:3f5b7e49.8076913_at_news.inet.tele.dk...
> On Sat, 6 Sep 2003 20:29:32 +0300, "Tanel Poder"
> <change_to_my_first_name_at_integrid.info> wrote:
>
> >Hi!
> >
> >Why not full export with rows=n (and possibly specifying needed schemas)
> >instead?
> >Utl_file and sqlplus spooling are very slow...
> >
> >Tanel.
> >
>
> Hi Tanel,
>
> For 2 reasons :
>
> 1) An export file is a binary thing and though stored procs and
> triggers code may be more or less readable in there, it's still *very
> nice* to have it in clear text format. Escpecially if you are going to
> edit/develop the code further....
>
> 2) Export is not generic. A script that prints out the whole code in
> text format can easily be modified to pick only certain parts of it
> when necessary, i.e.
>
> select text
> from DBA_SOURCE
> order by owner, type,name,line;
>
> Becomes :
>
> select text
> from DBA_SOURCE
> where type ='PACKAGE BODY'
> and name like '%UPDATE%'
> order by owner, name,line;
>
>
> - Kenneth Koenraadt
Received on Sun Sep 07 2003 - 17:47:08 CDT
![]() |
![]() |