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

Home -> Community -> Usenet -> c.d.o.misc -> Re: dumping a table in sql insert format?

Re: dumping a table in sql insert format?

From: <hasta_l3_at_hotmail.com>
Date: 17 May 2007 22:04:10 -0700
Message-ID: <1179464650.025568.7280@e65g2000hsc.googlegroups.com>


On 18 mai, 03:24, DA Morgan <damor..._at_psoug.org> wrote:
> Mark Harrison wrote:
> > DA Morgan <damor..._at_psoug.org> wrote:
> >> Mark Harrison wrote:
> >>> What's the best way to dump some tables into a file
> >>> such that the data is in a series ofinsertstatements?
>
> >>> I would like to set up some regression tests for my
> >>> database, and this is the seed data that is needed
> >>> after the schema has been created.
>
> >>> TIA!
> >>> Mark
>
> >> SELECT 'INSERTINTO t VALUES (' || srvr_id || ')' FROM servers;
>
> >> Wouldn't external tables be easier?
>
> > Well, here's my goal, any suggestions appreciated...
>
> > I want to be able to easily set up and tear down a development or test
> > environment. Ideally such things as sequences will all be initialized
> > to known values, so that regression testing is as easy as possible,
> > e.g. doing simple string comparisons (dates/times are the main
> > trouble here).
>
> My choice would be to set it up once.

I second this...

> Turn on archiving and flashback.
> Create a guaranteed restore point.
> And at the end of each run just FLASHBACK DATABASE TO <restore_point>;

If regression does not include performance tests, I would also consider VMWare.

Received on Fri May 18 2007 - 00:04:10 CDT

Original text of this message

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