Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: imp issue...very confusing!
As one would expect, the dump file contains statements
to recreate the objects as they exist in the source
database.
If you wish to change attributes, such as tablespace
for a table, tablespace for an index, you will have to
either pre-create the object or alter the object after
import.
<token_unix_comment>
one can run strings against the dump file and see that
this is true
</token_unix_comment>
<token_rtmp_comment> (read the man page
imp help=y
</token_rtmp_comment>
(pay particular attention to the INDEXFILE option)
your best bet is to grab a copy of toad, have it create the create table scripts with no indexes, no constraints, no triggers, edit that to the desired tablespace(s) (or create it with no storage parameters) and pre-create the user, assign it the desired default tablespace (and roles, privs) and run the create table script prior to the import. you have now specified the tablespace for the tables, overriding the DDL in the dump file.
This routine is also required if you need to get around ORA-907 errors if you were exporting from 8.1.7.
if you also wish to move the indexes, then do not import the indexes and constraints, and create them afterwards.
hth.
Pd
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Jul 13 2004 - 10:59:53 CDT