程序包正文的Oracle错误-PLS-00905:对象REV123无效
我正在尝试创建一个包,如下所示。从和中获取参考 错误:程序包正文的Oracle错误-PLS-00905:对象REV123无效,oracle,plsql,oracle11g,oracle10g,Oracle,Plsql,Oracle11g,Oracle10g,我正在尝试创建一个包,如下所示。从和中获取参考 错误: show error; Package body REV123 compiled Errors: check compiler log Errors for PACKAGE BODY REV123: LINE/COL ERROR -------- -------------------------------------------------------------------- 0/0 PL/SQL: Compilat
show error;
Package body REV123 compiled
Errors: check compiler log
Errors for PACKAGE BODY REV123:
LINE/COL ERROR
-------- --------------------------------------------------------------------
0/0 PL/SQL: Compilation unit analysis terminated
1/ PLS-00905: object REV123 is invalid
1/ PLS-00304: cannot compile body of 'REV123' without its specification
要复制的行总数为500万
谢谢这是一个包体。没有软件包规范,它就不可能存在 在运行上述代码之前,请将等级库创建为
CREATE OR REPLACE PACKAGE rev123
is
procedure p_get_x ( p_id in NUMBER);
END;
/
然后
对于这个包,它给出了相同的错误,这意味着你做错了什么。请编辑您的初始消息并发布包规范和正文。好的,我通过添加:t_get_x c_get_x%rowtype;TYPE tab_get_x是t_get_x%类型的表;tb_get_x tab_get_x;好啊我很高兴你把它修好了。
CREATE OR REPLACE PACKAGE rev123
is
procedure p_get_x ( p_id in NUMBER);
END;
/
CREATE OR REPLACE PACKAGE BODY rev123
is
procedure p_get_x ( p_id in NUMBER)
is
cursor c_get_x is
select ...