QuestionQ142

VerifiedManage Security

Examine the following Data Pump commands for exporting objects from, and importing objects into, the same database.

The DBA has not yet created users hr1 and oe1.

$expdp system/manager  
schemas = hr.oe  
directory = EXP_DIR  
dumpfile = export.dat  
include = table  
$ impdpsysten/manager  
schemas = hr1,oe1  
directory = EXP_DIR  
dumpfile = export.dat  
remap_schena=hr:hrl, oe:oe1  

What happens when these commands are run?

Explanation

A Data Pump export restricted to tables does not contain the user-creation metadata required to create remapped target schemas. REMAP_SCHEMA therefore requires the target schemas to exist before import, so importing into absent hr1 and oe1 fails. The DIRECTORY parameter supplies the location for the dump file.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!