+ -
当前位置:首页 → 问答吧 → 用sql developer 工具建了个存储过程 但是调试时报错

用sql developer 工具建了个存储过程 但是调试时报错

时间:2011-09-17

来源:互联网

建立一个返回一组数据的存储过程
 先建立了一个package
SQL code

create or replace
package qwypackage as
type my_cursor is ref cursor;
end qwypackage;


存储过程
SQL code

create or replace procedure back_list(
pdname in varchar2,begtime in date,endtime in date,p_cursor out qwypackage.my_cursor
) is
begin
open p_cursor for
select typeid from resultvalue where pstarttime>begtime and pendtime<endtime and pdname=pdname;
end back_list


这个写的没报错 但是执行时没有结果输出 degbug时提示
连接到数据库 192.168.1.89
执行 PL/SQL:ALTER SESSION SET PLSQL_DEBUG=TRUE
执行 PL/SQL:CALL DBMS_DEBUG_JDWP.CONNECT_TCP('192.168.1.68','18511')
ORA-30683:与调试程序连接失败
ORA-12560:TNS:协议适配器错误
ORA-06512:在"SYS_DBMS_DEBUG_JDWP",line 68
进程退出

请问这是什么情况 求大神

作者: FriendQ   发布时间: 2011-09-17

执行 PL/SQL:CALL DBMS_DEBUG_JDWP.CONNECT_TCP('192.168.1.68','18511')
说明没有连接上这个地址的数据库!

作者: fendou1314   发布时间: 2011-09-17

热门下载

更多