如果希望对常见的Oracle异常ORA报错解决方案有系统的了解,请看《ORACLE系列异常总结ORA》。
ORA-06553: PLS-306: wrong number or types of arguments in call to 'OGC_AREA'
调用area时,错误数值或者参数类型错误
OGC_AREA表示:在调用参数area时,报错
执行如下SQL时报错:
select
t.fid,
t.ftransactionstatus,
t.fsettleaccountstatus,
area.fname
from t_trade_transactionreport t
where t.fid = 'JY170830000008'
异常原因是:SQL中,没有area这个参数。
当然上面的SQL能一下子发现问题,如果是如下非常复杂的SQL就比较难发现了。
select report.fid "id" , report.fuuId "uuId", report.frate "rate", report.fcompensable "compensate.compensable", report.fdisabledInfo "compensate.disabledInfo", report.frateInfo "rateInfo", report.fauditState "auditState", report.fadjustStatus "adjustStatus", report.fintentionDate "intentionDate", report.ftransactionStatus "transactionSt |