ORA-06550:line 1,column 7;PLS-00201:indentifer '存储过程' must be declared;...PL/SQL Statement ignored 问题

时间:2023-03-09 19:18:58
ORA-06550:line 1,column 7;PLS-00201:indentifer '存储过程' must be declared;...PL/SQL Statement ignored 问题

前段时间由于修改SMES系统,出现了一个问题。

ORA-06550:line 1,column 7;PLS-00201:indentifer '存储过程' must be declared;...PL/SQL Statement ignored 问题

纠结一段时间后,后来找到问题,代码是这样的:

ORA-06550:line 1,column 7;PLS-00201:indentifer '存储过程' must be declared;...PL/SQL Statement ignored 问题

这个函数的功能是将MSSQL数据传递到ORACLE数据,将数据进行转换后,通过ORACLE存储过程将传递的数据插入ORACLE数据库保存。

ORACLE存储过程如下图:

ORA-06550:line 1,column 7;PLS-00201:indentifer '存储过程' must be declared;...PL/SQL Statement ignored 问题

后来查询资料,找到了问题的解决办法。

将ORACLE存储过程中的out 型的数据设置初始值,out型的 是输出型数据,将输出的数据进行取值。修改后的代码如下图所示:

ORA-06550:line 1,column 7;PLS-00201:indentifer '存储过程' must be declared;...PL/SQL Statement ignored 问题

在调试程序的时候,就能成功运行了。

结论:ORACLE存储过程中out型数据必须要有输入参数。