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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Export Sequences from a database

Re: Export Sequences from a database

From: Joseph S. Testa <teci_at_oracle-dba.com>
Date: Wed, 27 Sep 2000 14:01:50 -0400
Message-Id: <10632.118035@fatcity.com>


here is how i get sequences from the .dmp file on the fly

solaris world:

mkfifo x.pipe
cat x.pipe | strings | grep -in "CREATE SEQUENCE" > /tmp/1.1 & exp userid/password file=x.pipe rows=n

vi /tmp/1.1 and you got the create sequence statements

and soon as i get some free time i'll finish testing the ddl extractor pgm from the .dmp file utility :)

joe

PS: A CAVEAT, strings on solaris is brain dead after 1023 characters, it just truncates the input, get gnu binutils and compile it on your platform, that version of strings i've had 30K lines with no problems.

Ruth Gramolini wrote:

> Export the schema of the owner of the sequences then import them with
> row=N. RBG
> ----- Original Message -----
> To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> Sent: Tuesday, September 26, 2000 4:36 PM
>
> > hi, Everybody
> >
> > I created over 50 sequences in a schema and would like to import all these
> > sequences to another database. How can I do that?
> > Thanks in advance for the info.
> >
> > Mosy Lo
> >
> > email: mlo_at_jcicorp.com
> >
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Mosy Lo
> > INET: mlo_at_JCICorp.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).
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Ruth Gramolini
> INET: rgramolini_at_tax.state.vt.us
>
> 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 Wed Sep 27 2000 - 13:01:50 CDT

Original text of this message

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