1.写个test.sh脚本:
sqlplus -s username/password@sid < set echo off; set serveroutput on; set timing on; var c varchar2(2000) exec prc_test('201003',:c); commit; exit; ! 2.输入如下命令(test.log是生成的日志文件 &是后台执行): nohup test.sh >test.log& 3.在进程中查看下: ps -ef|grep test.sh 会找到两条记录