export NLS_LANG=AMERICAN_AMERICA.UTF8
cat /dev/null > output.txt
user=$1
password=$2
url=$3
sqlfile=$4
/app/oracle/product/bin/sqlplus $user/$password@$url << EOF
@$sqlfile
exit
EOF
cat /dev/null > output.txt
user=$1
password=$2
url=$3
sqlfile=$4
/app/oracle/product/bin/sqlplus $user/$password@$url << EOF
@$sqlfile
exit
EOF
来源:CSDN
作者:beyondlpf
链接:https://blog.csdn.net/beyondlpf/article/details/7326229