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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: imp/exp question

Re: imp/exp question

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Tue, 29 Oct 2002 01:10:59 -0800
Message-ID: <F001.004F5E7F.20021029011059@fatcity.com>


Adrian Ciocildau wrote:
>
> Hello,
>
> I have a problem and I hope you can help me.
>
> We have a Oracle 9 installation two users with two different default
> tablespaces. The problem is to move data between theese two users with
> imp/exp.
>
> I'll try to explain it a little bit more.
>
> we have userA with the default tablescape tabA and userB with tablB.
>
> first we want to do something like:
>
> exp userA/passA owner=(userA) file=dump.dmp
>
> and after:
>
> imp userB/passB fromuser=(userA) touser=(userB) file=dump.dmp
>
> If we do not have BLOB columns everything works fine. I think the
> problem resides in the fact that in the case of a BLOB column the
> STORAGE clause specifies in which tablespace the BLOB column
> should be stored and this is not handled by the imp program (not
> relocated in the tablespace B).
>
> I'm sure there should be a way to handle this but I was not able
> to find it.
>
> Please help.
>
> Adrian
>

Adrian,

   what imp tries to do is recreate the object in the same tablespace as it originates from, and if this fails (because the tablespace doesn't exist or the target schema is not allowed to create segments in it) then it falls back on the default tablespace. Check that your target user HAS NOT the UNLIMITED TABLESPACE privilege, and play on quotas (setting them, even temporarily, to 0, when you do not want something to land somewhere) to direct segment creation where you want it to happen. It would be easy if you only had tables, but the presence of indexes, partitions or LOBs as in your case makes it a little difficult to play with when you want to totally relocate everything. It may be simpler to reimport under a different user but in the same tablespaces and then MOVE objects.

-- 
Regards,

Stephane Faroult
Oriole Software
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Oct 29 2002 - 03:10:59 CST

Original text of this message

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