日期:2014-05-17  浏览次数:20849 次

oracle函数编译问题
一个创建函数的语句,在plsql中调试通过,然后在plsql里drop,通过web页执行这个语句,在plsql中刷新后发现函数重新建立,只是带着红叉,
1、通过plsql右键的recompile提示compiled with errors,
2、在命令窗口执行alter procedure xxx compile;提示Warning: Procedure altered with compilation errors,
3、执行dbms_ddl.alter_compile('FUNCTION','xx','xxx')提示invalid sql statement,
4、用plsql打开此函数的edit窗口,直接执行语句,红叉消失,编译成功。

请教各位,我该如何做才能通过sql语句正确重编译此函数?

------解决方案--------------------
函数代码在哪里?
应该是代码有问题

------解决方案--------------------
alter function xxx compile