Created
November 23, 2017 11:49
-
-
Save zeraf29/cd76ba62be60ebf6c2a94a9e1f69b5a7 to your computer and use it in GitHub Desktop.
Oracle impdb sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export IMPLOG=/oradir # directory for Import log | |
export DUMP_DATE=`date +%y%m%d` #making dumpdate | |
echo "schemas migration : " `date` >> $IMPLOG | |
impdp system/systempw directory=oradir content=metadata_only dumpfile=dumpfile.dmp logfile=logfile.log schemas=SCHEMA >> $IMPLOG | |
#for all export data, User system account. | |
#directory : What you create directory on Oracle upper step. | |
#CONTENT=METADATA_ONY : Only import metadata (not records) | |
#dumpfile : Dump file what you made using expdb in 'directory' | |
#logfile : making log file | |
#schemas : schema what you want importing | |
echo "========== END DATE : `date ` ======================= " >> $IMPLOG | |
echo | |
echo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment