1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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 "=========================================================================================="