example shell to excute sqlldr
来源:互联网 发布:大数据分析报告开场白 编辑:程序博客网 时间:2024/04/28 10:37
#!/bin/ksh
#Define variable
V_NUM_COUNTER=0
#Exitif thereisno parameter passed.
if[$#=0]
then
echo "========================================="
echo "No parms were passed to the Shell Program"
echo "========================================="
exit1
fi
#Get the parametervalue
while["$V_NUM_COUNTER"-le$#]
do
echo "============================="
echo "Show passed parameter $V_NUM_COUNTER : "
echo "============================="
case"$V_NUM_COUNTER"in
0) echo"$0";;
1) echo"$1"
V_CHR_DB_CONN="$1";;
2) echo"$2";;
3) echo"$3";;
4) echo"$4";;
5) echo"$5"
V_CHR_CTL_FILE="$5";;
6) echo"$6"
V_CHR_DATA_FILE="$6";;
*) echo" Not parm 0 thru 8";;
esac
V_NUM_COUNTER=`expr$V_NUM_COUNTER+1`
done
######Print file information######
echo "=============================="
echo "Control file = $V_CHR_CTL_FILE"
echo "Data file = $V_CHR_DATA_FILE"
echo "=============================="
######Parameter validation######
if[!-f$V_CHR_CTL_FILE]
then
echo "========================================="
echo "Control file: $V_CHR_CTL_FILE is invalid!"
echo "========================================="
exit1
fi
if[!-f$V_CHR_DATA_FILE]
then
echo "======================================="
echo "Data file: $V_CHR_DATA_FILE is invalid!"
echo "======================================="
exit1
fi
######Start sqlldr######
echo "======================="
echo "Start to load data....."
echo "======================="
sqlldr userid=$V_CHR_DB_CONN control=$V_CHR_CTL_FILEdata=$V_CHR_DATA_FILE
if[$?-eq0]
then
echo "=========================="
echo "Loading Data Successfully!"
echo "=========================="
exit0
else
echo "============================================"
echo "Loading data failed. Please check log file!"
echo "============================================"
exit1
fi
- example shell to excute sqlldr
- how to excute command which need su permission with adb shell?
- build shell script example, from checkout to build to hermes
- Excute shell and read the output
- shell example
- shell example
- awr报告中的Excute to Parse
- How to excute jquery by nodejs?
- 一HOW TO EXCUTE CODE IN DATA SEGMENT
- Jenkins ssh to windows,and excute windows batch
- shell example change names
- Shell Code Example
- shell script example
- shell command example
- linux shell example
- shell脚本.example
- Linux shell example
- shell 里执行sqlldr,not found
- LINUX初学者需要了解的基础知识
- 解决OutOfMemory问题
- 遇到求职陷阱 你可以这样应对
- C程序设计语言练习2-3
- Android事件监听器(Event Listener)
- example shell to excute sqlldr
- 用户空间的spi驱动
- Android 自动升级
- getopt
- Android AudioFlinger
- web services axis1客户端Invalid byte 2 of 2-byte UTF-8 sequence
- Linux /etc/fstab详解
- AudioPolicyService 和 AudioPolicyManager
- JTAG和ISP