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: SQL 'DUMP' From Oracle - How?

Re: SQL 'DUMP' From Oracle - How?

From: Jerry Gitomer <jgitomer_at_ictgroup.com>
Date: Wed, 27 May 1998 12:51:05 -0400
Message-ID: <356C4479.10B@ictgroup.com>


Hi Mark,

Yeah, you have to write a fiddly query like so:

SELECT * FROM <table_name>;

SPOOL OFF

SET COLSEP ' '
SET FEEDBACK ON
SET PAGES 24
SET HEAD ON The output will be a nice comma delimited file all ready to load into any RDBMS with a utility smart enough to handle a delimited file.

Regards

Jerry

Mark Tortolano wrote:
>
> Hi there,
>
> I'm trying to dump the contents of a table, in order to create a
> series of SQL INSERT statements. I know the functionality of Export,
> but I just want to create INSERT statements, not an Oracle-specific
> binary.
>
> How do I do this? Is the only way to create a (fiddly) SQL*Plus
> report, using headings, separators, etc, or is there a better way?
>
> Thanks,
>
> Mark Tortolano

--

Jerry Gitomer         	ICT Group
jgitomer_at_ictgroup.com	Langhorne PA
jgitomer_at_yahoo.com 	Opinions are mine not those of ICT Group
Received on Wed May 27 1998 - 11:51:05 CDT

Original text of this message

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