linux shell 执行sql
来源:互联网 发布:淘宝性保健品吗 编辑:程序博客网 时间:2024/06/06 02:09
在shell下执行oracle数据库的sql
####函数####说明:执行sql语句####输入参数:{sql语句}{数据库tns}{数据库用户名}{数据库用户密码}#### 输出参数:sql执行结果function exe_sql{sql=$1oracle_sid=$2user_name=$3user_pwd=$4error_code=`sqlplus -S -L /nolog<<EOFconnect $user_pwd/$user_pwd@$oracle_sidset termout off;set echo off;set feedback off;set heading off;set pagesize 0;$sql;commit;quitEOF`echo "$error_code"if [ -z "$error_code" ];thenreturn 0else return 1fi}
- linux shell 执行sql
- linux shell 执行sql
- linux shell执行sql
- linux shell命令执行sql(mysql入门)
- shell 脚本执行 sql
- Linux/Unix shell 脚本跨服务器跨实例执行SQL
- Linux/Unix shell 脚本跨服务器跨实例执行SQL
- Linux -- Shell 执行方式
- linux执行shell脚本
- shell执行linux命令
- Linux执行shell脚本
- shell命令行中执行SQL
- shell 里执行sql 例子
- Shell脚本中执行sql
- shell执行Oracle sql脚本
- linux 定时执行shell脚本
- Runtime.exec()执行linux shell
- linux 定时执行shell脚本
- 解决django中超链接页面不跳转的问题
- 面试总结-OS篇(windows与linux内核对比)
- 读写锁
- 将Mongoose webserver嵌入到你的应用
- 分别定义Teacher(教师)类和Cadre(干部)类,采用多重继承方式由这两个类派生出新类Teacher_Cadre(教师兼干部)
- linux shell 执行sql
- 亲爱的,外面没有别人,只有你自己——《遇见未知的自己》节选
- GNU C 中的__attribute__ (一)
- hibernate.properties 译文
- linux shell 执行oracle存储过程
- Argus 堆
- Android Launcher 分析
- Android系统中的广播(Broadcast)机制简要介绍和学习计划
- 一个猜测程序 用户心里选择一个数 让计算机询问用户是否正确并做控制 知道猜对数字(图)