在pl/sql command window中调用存储过程,需要传给存储过程一个cursor,
调用时报错,代码:
create or replace package pkg_Report IS
type rcTypeCursor is ref cursor;
procedure procReport(startDate in varchar2,
endDate in varchar2,
retCursor IN OUT rcTypeCursor);
end;
var result pkg_Report.rcTypeCursor;
exec proc_report('2014-10-11','2014-10-11', :result);
执行这部的时候报错,unknown datatype
result 换成ref cursor 或refcusor时,报REFCURSOR not supported。
请问是什么原因,在command window 中可以显示游标返回的结果集吗
另外换成在sql plus中执行,代码:
var result refcusor;
exec proc_report('2014-10-11','2014-10-11', :result);
--到这步执行成功。
print result;时报错误:
ERROR:
ORA-03113: end-of-file on communication channel
请问如何解决。