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: Backup stored procedures

Re: Backup stored procedures

From: Hanne Iren Midttun <hannem_at_tihlde.org>
Date: Thu, 12 Jun 2003 09:02:54 +0200
Message-ID: <Pine.LNX.4.21.0306120900210.4245-100000@colargol.tihlde.org>


On Wed, 11 Jun 2003, Karsten Farrell wrote:

> hannem_at_tihlde.org said...
> > Hi,
> > is it possible only to backup stored procedures using the exp utilty?
> > eg exp user/password
> > file=file.dat
> > log=log.log
> > owner=owner
> > tables=user_source
> >
> > regards Hanne
> > --
> > Hanne Midttun
> > http://www.tihlde.org/~hannem
> >
> > No! Try not. Do. Or do not. There is no try. - Yoda
> >
> >
>
> You could do a variation on this theme:
>
> spool myproc.bak
> select text
> from user_source
> where name = 'MYPROC'
> order by line;
> spool off

I tought off doing it this way, but I am not familiar with all the settings in sql (set verify off, echo off, linesize and so on) to create a file containing only the source.

Good ide, if I have been better :-)

Hanne

--
Hanne Midttun
http://www.tihlde.org/~hannem

No! Try not. Do. Or do not. There is no try. - Yoda
Received on Thu Jun 12 2003 - 02:02:54 CDT

Original text of this message

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