• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1349
  • Last Modified:

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
0
STLOracleDude
Asked:
STLOracleDude
  • 3
  • 2
1 Solution
 
sdstuberCommented:
you can use remap_tablespace  similar to remap_schema
0
 
STLOracleDudeAuthor Commented:
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.
0
 
sdstuberCommented:
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.
0
 
STLOracleDudeAuthor Commented:
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.
0
 
sdstuberCommented:
yes
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now