简体   繁体   English

ORA-06550:第1行,第7列:PLS-00306:错误的数量或调用中的参数类型

[英]ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call

I want call a procedure from my Java code to delete from database. 我想从我的Java代码中调用一个过程以从数据库中删除。 Below is my Java code and exception 以下是我的Java代码和异常

String procedureCall = "{call NEW_PORTING_PRC.delete_album_metadata(?)}";
                        CallableStatement cal = conn.prepareCall(procedureCall);
                        cal.setString(1, catId);
                        cal.registerOutParameter(2, oracle.jdbc.OracleTypes.VARCHAR);
                        cal.execute();

Exception is: 例外是:

ERROR ["http-bio-8080"-exec-9] (Content_005fDelete_jsp.java:45) - [15-05-15 14:16:01,912] -  
java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'DELETE_ALBUM_METADATA'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

Can anyone suggest where I am going wrong? 谁能建议我要去哪里错了?

you are passing one parameter to the NEW_PORTING_PRC.delete_album_metadata procedure and it's expecting a different number of parameters 您正在将一个参数传递给NEW_PORTING_PRC.delete_album_metadata过程,并且期望使用不同数量的参数

or 要么

you are passing a varchar where it is expecting a number, date etc 您正在传递期望数字,日期等的varchar

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 引起:java.sql.SQLException:ORA-06550:第 1 行,第 7 列:PLS-00306:ZDBC11CAA5BDA99F77E6FB4DABD_SPE_FA 7 调用中的 ZDBC11CAA5BDA99F77E6FB4DABD8SPE_7 的错误编号或类型 - Caused by: java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PR_SP_FAHMI' MyBatis Oracle呼叫PLS-00306:呼叫错误的参数数量或类型错误 - MyBatis Oracle Call PLS-00306: wrong number or types of arguments in call Error PLS-00306:Java中对GET_NEW_EVENTS的调用中参数的数量或类型错误 - PLS-00306: wrong number or types of arguments in call to GET_NEW_EVENTS in Java 当 Hibernate 看起来正确时,为什么我会收到 PLS-00306“调用中的 arguments 的数量或类型错误”? - Why am I getting PLS-00306 “wrong number or types of arguments in call” when the Hibernate looks correct? 具有命名绑定的 CallableStatement 导致 PLS-00306:错误的参数数量或类型 - CallableStatement with Named binding leads to PLS-00306: wrong number or types of arguments ORA-06550 第 2 行,第 44 列:PLS-00103: 遇到符号“文件结束” - ORA-06550 line 2, column 44:PLS-00103: Encountered the symbol "end-of-file" 使用Java调用PL / SQL函数时,类型或参数数量错误。 PLS-00306错误 - Wrong type or number of parameters when calling a PL/SQL function using Java. PLS-00306 error 休眠PLS-00306错误 - hibernate PLS-00306 error java.sql.SQLException:ORA-06550:第1行第13列:授予用户对EXECUTE包的权限后 - java.sql.SQLException: ORA-06550: line 1, column 13: After granting user permission to EXECUTE package java.sql.SQLException:ORA-06550 - java.sql.SQLException: ORA-06550
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM