【发布时间】:2012-09-26 19:09:02
【问题描述】:
我在 oracle 11g 中用客户端松鼠创建了一个简单的程序,这是代码
create or replace procedure EXAMPLE_P is
begin
1+2;
end;/
在执行时我收到了这个警告
Warning: Warning: execution completed with warning
SQLState: 99999
ErrorCode: 17110
Position: 0
Query 1 of 1, Rows read: 0, Elapsed time (seconds) - Total: 0.031, SQL query: 0.031, Building output: 0
这里的问题,我不能调用我的程序。
begin
EXAMPLE_P();
end;/
我在执行上面的代码块时遇到了这个错误。
Error: ORA-06550: line 2, column 9:
PLS-00302: component 'EXAMPLE_P' must be declared
ORA-06550: line 2, column 2:
PL/SQL: Statement ignored
SQLState: 65000
ErrorCode: 6550
Position: 37
该过程存在于表 ALL_OBJECTS 中,状态为 INVALID。 我试图编译它(验证状态),但我不会使用下面的查询
alter procedure EXAMPLE_P COMPILE;
有人知道我可以做些什么来调用我的程序,(我使用 PL/SQL 开发人员,从来没有遇到过这个问题)
【问题讨论】:
标签: sql oracle procedure squirrel-sql