export ORACLE_HOME=/opt/oracle/product/oracle10gNote: this will create the file scott.dmp in the location $ORACLE_HOME/admin
export ORACLE_SID=c2dev1
cd $ORACLE_HOME/bin
./expdp system/dumpfile=scott.dmp schemas=scott
That is all it takes to do the export.
If you plan to import into the same database it can stay in the same location.
To do the import into a different database you will need to copy the scott.dmp file to the right location for the other database.
cp $ORACLE_HOME/admin/c2dev1/dpdump/scott.dmp /mynas/scott.dmpThen I ssh to the target machine and copy to the new target location
cp /mynas/scott.dmp $ORACLE_HOME/admin/c2dev2/dpdump/scott.dmpThat should do it. This should make it easy for me to do in the future and hopefully help someone else along the way.
export ORACLE_HOME=/opt/oracle/product/oracle10g
export ORACLE_SID=c2dev2
cd $ORACLE_HOME/bin
./impdp system/dumpfile=scott.dmp remap_schema=scott:scott2 remap_tablespace=USERS:USERS2