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: Extracting SQL from Export files

Re: Extracting SQL from Export files

From: Steve Phelan <stevep_at_no-spam.pmcgettigan.demon.co.uk>
Date: 1997/06/24
Message-ID: <33AFF51D.BAABC6B3@no-spam.pmcgettigan.demon.co.uk>#1/1

Mike Hartas wrote:

> Hi,
> I am in the process of creating a test database for Oracle
> applications
> and will soon be "tidying up" the production database. To do this i
> need
> to be able to adjust the storage parameters for tables, indexes and
> primary keys etc.
> For the tables and indexes i can use the 'indexfile' option of import,
>
> but how can
> i extract other sql statements form an export file or from the
> database?
> (i have tried exporting with show=y to a logfile but the file needs
> substantial editing).
> The database version is 7.3.2.3 running on Seqent. Please help!
>
> Thanks .

You can use the UNIX 'strings' command to get the commands out of the export file. You can then either edit by hand or better still write a small Perl script. Make sure you don't 'compress extents' when you export else the storage clauses will all be incorrect.

Even better solution, IMHO, is to buy Designer 2000, reverse engineer, and then use it for all your change control to your production databases.

Steve Phelan. Received on Tue Jun 24 1997 - 00:00:00 CDT

Original text of this message

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