Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting "Ordinal binding and Named binding cannot be combined" error

917681Feb 15 2012 — edited Feb 15 2012
Hello,

I am getting following exception while calling stored produre:

*"Ordinal binding and Named binding cannot be combined"*

I am calling stored procedure with JDBC with 1 input parameter and 1 output parameters as mentioned below:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

CallableStatement collableStat = connection.prepareCall("{ call sp_clnt_intermed_validation(?,?) };

// Registering In parameters
collableStat.setString("p_user_name", "SampleUser");

// Registering Out parameters

for(String paramKey : paramKeysSet) {
collableStat.registerOutParameter("p_success_flag", Types.VARCHAR);
}

// execute stored procedure
collableStat.execute();
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please guide.

Regards,
Akshay.

Edited by: 914678 on Feb 15, 2012 5:48 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2012
Added on Feb 15 2012
2 comments
5,134 views