Link to home
Start Free TrialLog in
Avatar of STLOracleDude
STLOracleDudeFlag for United States of America

asked on

Datapump Import without creating tablespaces

I have a huge datapump export that I am copying from production to development.  In it are 120 schemas that i need to transpose into multiple copies, ie fromuser a touser a1,a2,etc.  

The new users can be created prior to running the import, but I have this additional problem: The production copy has 120 different tablespaces, one for each user, that the schemas' data is populated in.  
How can i skip over the tablespace creates in impdp?  in 9i, imp would dump the objects into the user's default tablespace if the specified tablespace didn't exist.  is it the same behavior in 11g?  

Also can I specify multiple targets in the fromuser/touser replacement, remap_schema?
ie remap_schema=usera:usera1,usera:usera2,userb:userb1,userb:userb2
ASKER CERTIFIED SOLUTION
Avatar of Sean Stuber
Sean Stuber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of STLOracleDude

ASKER

is there a way to globally remap all the tablespaces during the impdp?  The generated sql from the dump file is over 20 million lines long and I'm sure I could miss one or two referenced tablespaces.
Avatar of Sean Stuber
Sean Stuber

no, sorry, I'm afraid there is no wildcarding for the remap operation.

You could generate the remapping though from either db by selecting from dba_tablespaces to maybe save some typing and put them all in your parfile.
Can i dump all the remaps into a parfile? typing them all out netted 15k characters, well above the buffer for a single bash command.