sqlplus中执行存储过程
2010-04-21 14:29
337 查看
CREATE OR REPLACE PROCEDURE GETZRCLIST
(p_TYBM in varchar2,p_CURSOR OUT comm_types.comm_cursor) is
temp_str varchar2(10);
temp_nf number;
temp_number number;
begin
temp_str := p_TYBM;
-- temp_nf := p_NF;
temp_number := to_number(temp_str);
--CDC
open p_CURSOR for
SELECT * from T_ZRCXX where (TYBM_ID = temp_str) order by zlcbm;
end GETZRCLIST; -- TYBM_ID 是varchar2类型的。
SQL> var p_cur refcursor;
SQL>
SQL> exec sp_pp(1,1,1,1,0,:p_cur);
PL/SQL procedure successfully completed.
SQL> print p_cur;
ERROR:
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
no rows selected
SQL> alter session set sql_trace=false;
Session altered.
SQL>
//////////////////////////////////////////
SQL> var out_no number
SQL> exec SP_SERVICE('133', :out_no);
print out_no
http://www.itpub.net/thread-256539-1-1.html
(p_TYBM in varchar2,p_CURSOR OUT comm_types.comm_cursor) is
temp_str varchar2(10);
temp_nf number;
temp_number number;
begin
temp_str := p_TYBM;
-- temp_nf := p_NF;
temp_number := to_number(temp_str);
--CDC
open p_CURSOR for
SELECT * from T_ZRCXX where (TYBM_ID = temp_str) order by zlcbm;
end GETZRCLIST; -- TYBM_ID 是varchar2类型的。
SQL> var p_cur refcursor;
SQL>
SQL> exec sp_pp(1,1,1,1,0,:p_cur);
PL/SQL procedure successfully completed.
SQL> print p_cur;
ERROR:
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
no rows selected
SQL> alter session set sql_trace=false;
Session altered.
SQL>
//////////////////////////////////////////
SQL> var out_no number
SQL> exec SP_SERVICE('133', :out_no);
print out_no
http://www.itpub.net/thread-256539-1-1.html
相关文章推荐
- 在oracle服务器的sqlplus中执行存储过程
- sqlplus中执行存储过程
- mysql命令行创建存储过程命令行定时执行sql语句
- 关于拼sql语句执行与直接执行存储过程的效率比较
- sqlplus中批量执行sql脚本
- MySQL存储过程实现动态执行SQL
- 编写和执行SQL例程与模块---触发器和存储过程---SQL编程元素
- SQL执行存储过程
- crontab 加入sqlplus命令执行不了
- Sqlplus中调试带cursor的存储过程
- 只执行SQL语句(不执行存储过程)
- Linux下用freetds执行SQL Server的sql语句和存储过程
- sqlplus执行创建表sql
- bat脚本采用sqlplus登录oracle并若登录失败不卡住bat脚本的执行流程
- Entity Framework Code First执行SQL语句、视图及存储过程
- 用SQL语句执行存储过程
- Sql语句 循环调用存储过程 设置1秒执行一次!
- 在SQL SERVER中定时执行SQL语句,或者存储过程. &sql server 自动执行存储过程
- sqlplus执行返回游标的存储过程
- pl/sql 创建并执行oralce存储过程,并返回结果集