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: Reardon, Bruce (CALBBAY) <Bruce.Reardon_at_comalco.riotinto.com.au>
Date: Thu, 28 Sep 2000 21:54:30 -0000
Message-Id: <10633.118186@fatcity.com>


Hi Mosy,

You can do nearly the same thing under NT Get yourself a copy of strings from
http://www.sysinternals.com/misc.htm#Strings (a very useful site for NT utilities that should have been in NT!).

Do an export with no rows
Then do a

        strings -a export_file.dmp | find "create seq" /i > seq.sql

And seq.sql will contain the create sequence commands.

Regards,
Bruce Reardon
mailto:bruce.reardon_at_comalco.riotinto.com.au

-----Original Message-----
From: Mosy Lo [mailto:mlo_at_JCICorp.com]
Sent: Friday, 29 September 2000 1:40
To: Multiple recipients of list ORACLE-L Subject: RE: Export Sequences from a database

Hi, Joe

Thanks for the reply. However, the database is on NT. How can I extract from NT?

Mosy
-----Original Message-----
Sent: Wednesday, September 27, 2000 3:11 PM To: Multiple recipients of list ORACLE-L

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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Joseph S. Testa
  INET: teci_at_oracle-dba.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: 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
Received on Thu Sep 28 2000 - 16:54:30 CDT

Original text of this message

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