#!/bin/sh
|
source ./oracle_env.sh
|
|
echo "========================================================================================="
|
echo "input oracle username"
|
read oracle_user
|
|
echo "input password"
|
read oracle_pwd
|
|
echo "input dumpfile name"
|
read oracle_dumpfile
|
|
echo "execute Y|N"
|
read flag
|
|
|
if [[ $flag == "N" ]];then
|
|
echo "exit "
|
exit;
|
|
fi
|
|
expdp $oracle_user/$oracle_pwd directory=dmpdir dumpfile=$oracle_dumpfile
|
|
echo "=========================================================================================="
|
echo "please download dmp from /u01/app/dmpdir"
|
echo "=========================================================================================="
|