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

Home -> Community -> Usenet -> c.d.o.tools -> Re: How do you change a table's tablespace through Import.

Re: How do you change a table's tablespace through Import.

From: Brian Peasland <peasland_at_edcmail.cr.usgs.gov>
Date: 2000/04/14
Message-ID: <38F71AF4.9F351497@edcmail.cr.usgs.gov>#1/1

You can do this one of two ways.

  1. if all of the schema's tables will move to another tablespace, then do the following:
  2. create the schema ii) assign the schema to a default tablespace where you want the tables to be reside. iii) revoke UNLIMITED TABLESPACE from the schema iv) alter the schema to have QUOTA UNLIMITED on the default tablespace
  3. import the data.
  4. If you want the schema's tables in mulitiple tablespaces, then do the following:
  5. create the schema ii) For the tables you are importing, create the tables in the correct tablespace. iii) Import the data with the IGNORE=Y option. The create table statments in the import will fail cuz the tables are already created, but this error will be ignored. The import will then import the data into the tables.

> Wouldn't an Import attempt to place the tables in the same tablespace as the
> original database?

It will unless you've taken steps like above.  

HTH,
Brian

-- 
========================================
Brian Peasland
Raytheons Systems at
  USGS EROS Data Center
These opinions are my own and do not
necessarily reflect the opinions of my 
company!
========================================
Received on Fri Apr 14 2000 - 00:00:00 CDT

Original text of this message

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