【问题标题】:Calling Stored Procedure in Python - ORA-04063: error在 Python 中调用存储过程 - ORA-04063:错误
【发布时间】:2012-12-05 16:23:31
【问题描述】:

我有一个调用存储过程的 python 脚本。我很确定我的 python 脚本没有问题,因为当它调用存储的过程时我得到了这个错误:

ORA-04063: package body "db.package_name" has errors ORA-06508: PL/SQL: could not find program unit being called: "db.package_name" ORA-06512: at line 1

我有时也遇到这个错误:

ORA-01403: no data found ORA-06512: at "db.package_name", line 16 ORA-06512: at line 1

在 SQL dev 中查看包,我在其名称上看到一个红色 x,然后右键单击 > compile 给出:

Error(10): PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:     begin end function pragma procedure 

它调用的过程也有一个红色的 x 并且编译给出:

Error(5,3): PLS-00428: an INTO clause is expected in this SELECT statement

所以这让我相信这是包装/程序的问题?

【问题讨论】:

    标签: python sql oracle


    【解决方案1】:

    正确,问题出在程序上,而不是 Python。

    【讨论】:

    • 谢谢。现在我可以发回给我存储过程的人,而不是责怪我的 python 脚本 :)
    猜你喜欢
    • 2018-07-12
    • 1970-01-01
    • 1970-01-01
    • 2018-06-12
    • 2013-12-02
    • 2015-06-11
    • 2012-08-25
    • 1970-01-01
    • 2020-08-17
    相关资源
    最近更新 更多