华风 发表于 2018-8-27 13:07:51

shell脚本调用存储过程

#!/bin/bash  
source /etc/profile
  
source ~/.bash_profile
  
##################################################################
  
#功能描述:调用带有输入参数和输出参数的存储过程
  
#执行周期:日
  
# CRONTAB: * 1 * * * * ${prog_path}CALL_PRODEDURE.sh >> ${prog_path}CALL_PRODEDURE.log 2&1
  
#作    者:洪杰
  
#创建时间:2016/07/13
  
#修改记录:
  
##################################################################
  
#programing path
  
prog_path=/utxt/softsmb/scripts/
  
#database tnsname
  
db_srv="smb/czty_smb@zsms"
  
#exporting
  
export_path=/utxt/softsmb/scripts/
  

  
START_DATE=`date +"%Y-%m-%d %H:%M:%S"`
  
echo "start time:${START_DATE}"
  

  
sqlplus -s ${db_srv}
页: [1]
查看完整版本: shell脚本调用存储过程