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: How to change object sizes using export/import

Re: How to change object sizes using export/import

From: Michael Serbanescu <mserban_at_postoffice.worldnet.att.net>
Date: 1997/09/26
Message-ID: <342B4DC4.3B94@postoffice.worldnet.att.net>#1/1

Run what I call a "fake" import with the following parameters:

FROMUSER=<export_schema>
TOUSER=<import_schema>
SHOW=Y
ROWS=N
GRANTS=Y
INDEXES=Y
LOG=<file_name>

SHOW=Y displays the contents of the export file without doing the actual import (therefore ROWS=N is not necessary, but I would put it in for added safety) and LOG captures them in a file. Edit that file to remove the STORAGE clause for your tables.

Hope this helps.

Michael Serbanescu



jjreimer_at_wthg.com wrote:
>
> I sometimes need to copy every object (tables, indexes, views, sequences,
> triggers, packages, procedures,...) for a schema from a production
> database to a test database. I can't pull the actual data because the
> test instance is too small to hold it all.
>
> The problem is that the create table (and index) statements in the export
> file have the sizes of the production database. I would like to change
> these sizes or eliminate them so the default storage size for the
> tablespaces would be used.
>
> I can do this for the indexes using the indexfile keyword on import, then
> editing the file. I have not been able to modify the storage clause for
> the tables.
>
> Does anyone know how I could accomplish this? Or, has anyone been able
> use an editor on the export file without corrupting the file? If so,
> which editor?
>
> John Reimer
> DBA
> Worthington Steel
>
> -------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet
  Received on Fri Sep 26 1997 - 00:00:00 CDT

Original text of this message

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