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: Alex Hillman <alex_hillman_at_physia.com>
Date: Wed, 27 Sep 2000 15:50:06 -0400
Message-Id: <10632.118059@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C028BC.22CDE180
Content-Type: text/plain;

        charset="iso-8859-1"

Joe, result of your approach will be DDL to create sequences - you can get it running query from dba_sequences spooling it into the file. More interesting is create SQL to recreate sequences with correct current values. Several approaches were discussed before in the list.

Alex Hillman

-----Original Message-----
From: Joseph S. Testa [mailto:teci_at_oracle-dba.com] Sent: Wednesday, September 27, 2000 3:11 PM To: Multiple recipients of list ORACLE-L Subject: Re: Export Sequences from a database

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

------_=_NextPart_001_01C028BC.22CDE180
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Export Sequences from a database</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Joe, result of your approach will be DDL to create =
sequences - you can get it running query from dba_sequences spooling it =
into the file. More interesting is create SQL to recreate sequences =
with correct current values. Several approaches were discussed before =
in the list.</FONT></P>

<P><FONT SIZE=3D2>Alex Hillman</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Joseph S. Testa [<A =
HREF=3D"mailto:teci_at_oracle-dba.com">mailto:teci_at_oracle-dba.com</A>]</FON=
T>
<BR><FONT SIZE=3D2>Sent: Wednesday, September 27, 2000 3:11 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: Re: Export Sequences from a database</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>here is how i get sequences from the .dmp file on the =
fly</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>solaris world:</FONT>
</P>

<P><FONT SIZE=3D2>mkfifo x.pipe</FONT>
<BR><FONT SIZE=3D2>cat x.pipe | strings | grep -in &quot;CREATE =
SEQUENCE&quot; &gt; /tmp/1.1 &amp;</FONT>
<BR><FONT SIZE=3D2>exp userid/password file=3Dx.pipe rows=3Dn</FONT>
</P>

<P><FONT SIZE=3D2>vi /tmp/1.1 and&nbsp; you got the create sequence =
statements</FONT>
</P>

<P><FONT SIZE=3D2>and soon as i get some free time i'll finish testing =
the ddl extractor pgm from</FONT>
<BR><FONT SIZE=3D2>the .dmp file utility :)</FONT>
</P>

<P><FONT SIZE=3D2>joe</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>PS:&nbsp; A CAVEAT, strings on solaris is brain dead =
after 1023 characters, it just</FONT>
<BR><FONT SIZE=3D2>truncates the input, get gnu binutils and compile it =
on your platform, that</FONT>
<BR><FONT SIZE=3D2>version of strings i've had 30K lines with no =
problems.</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>Ruth Gramolini wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Export&nbsp; the schema of the owner of the =
sequences then import them with</FONT>
<BR><FONT SIZE=3D2>&gt; row=3DN.&nbsp; RBG</FONT>
<BR><FONT SIZE=3D2>&gt; ----- Original Message -----</FONT>
<BR><FONT SIZE=3D2>&gt; To: &quot;Multiple recipients of list =
ORACLE-L&quot; &lt;ORACLE-L_at_fatcity.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Tuesday, September 26, 2000 4:36 =
PM</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; hi, Everybody</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; I created over 50 sequences in a schema =
and would like to import all these</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; sequences to another database.&nbsp; How =
can I do that?</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Thanks in advance for the info.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Mosy Lo</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; email: mlo_at_jcicorp.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; --</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; &gt; --</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Author: Mosy Lo</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;&nbsp;&nbsp; INET: mlo_at_JCICorp.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Fat City Network =
Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX: (858) =
538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; =
--------------------------------------------------------------------</FO=
NT>
<BR><FONT SIZE=3D2>&gt; &gt; To REMOVE yourself from this mailing list, =
send an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; to: ListGuru_at_fatcity.com (note EXACT =
spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; the message BODY, include a line =
containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; (or the name of mailing list you want to =
be removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; also send the HELP command for other =
information (like subscribing).</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; --</FONT>
<BR><FONT SIZE=3D2>&gt; Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; --</FONT>
<BR><FONT SIZE=3D2>&gt; Author: Ruth Gramolini</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; INET: =
rgramolini_at_tax.state.vt.us</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
(858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt; =
--------------------------------------------------------------------</FO=
NT>
<BR><FONT SIZE=3D2>&gt; To REMOVE yourself from this mailing list, send =
an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt; to: ListGuru_at_fatcity.com (note EXACT spelling =
of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt; the message BODY, include a line containing: =
UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; (or the name of mailing list you want to be =
removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt; also send the HELP command for other =
information (like subscribing).</FONT>
</P>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Joseph S. Testa</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: teci_at_oracle-dba.com</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =
538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru_at_fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
Received on Wed Sep 27 2000 - 14:50:06 CDT

Original text of this message

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