存储过程 myproc(in_num in number,out_num out number)sql脚本模板mysql.sql
{
var nret number;
execute :nret := 0;--初始化call myproc(in_code,:nret)--执行存储过程,in_code会被替换掉
/
select "retcode[" || :nret || "]retcode" from dual--显示结果
/
quit;}SHELL脚本mysh.sh
{
#./mysh.sh 123
cd /home/myshellsed "s/in_code/$1/" mysql.sql > mysql01.sql
#根据sql脚本模板生成实际脚本sqlplus usr/pwd@db.my result$1.txt
#执行sql脚本并把结果输入result$1.txtecho ok!}在Linux下执行./mysh.sh 123,生成result123.txt,myproc输出参数在"retcode["和"]retcode"之间。 重新安装主机后ORACLE DB的处理Linux下利用MySQL建立VSFTPD下的虚拟用户相关资讯 Linux oracle
- Linux下安装Oracle 10G提示“bad (09/18/2008 05:34:23)
- Linux Oracle10.2.0 RAC配置注意问 (09/04/2008 05:34:18)
- Linux下安装Oracle的诀窍你了解吗 (08/30/2008 06:49:42)
| - 在Linux系统上安装64位Oracle遇到 (09/15/2008 07:06:51)
- Linux下修改Oracle用户密码 (08/31/2008 05:48:28)
- 记录Linux下一次oracle启动错误 (08/23/2008 05:56:34)
|
本文评论 查看全部评论 (0)