How do I import data into a new installation of oracle 11g r2 using a .dmp file and a .par file?
Here is what I have done so far, on a Windows 8.1 devbox:
1.) Open command line as administrator
2.) C:\WINDOWS\system32>sqlplus / as sysdba
This will reveal the SQL prompt as follows:
SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 25 14:20:46 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CREATE DIRECTORY DMPDIR AS 'C:\path\to\DumpDir\';
SQL> exit;
3.) Then back in windows command prompt:
C:\WINDOWS\system32>impdp parfile=C:\path\to\DumpDir\impdp.par;
Then I read this other posting which contains the following answer code:
impdp user/pass schemas=schema1 directory=dumpdir \
remap_schema=schema1:schema2 \
dumpfile=schema1.dmp \
logfile=impdp_schema2.log
Since my question is slightly different, I guessed at the following, which I have not typed yet:
impdp schemas=schema1 directory=dumpdir \
dumpfile=schema1.dmp \
logfile=impdp_logfile.log
What is the correct syntax to use? And what other steps should I take to do this properly?