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!

Maximum number of bind variables in a SQL statement?

garywickeOct 7 2016 — edited Oct 7 2016

Environment:

Oracle 11.2.0.4 EE on Solaris

My customer has some program generated SQL that contains lots of bind variables, in some cases over 1000.

According to Oracle Support this has caused the creation of 'core' files to be generated based on the feedback from my SR on the subject.

So far they have been unable to tell me what the maximum number of bind variables that are allowed in a SQL statement.

I did read where the limit is 32767 in PL/SQL but these statements are straight SQL, again being generated from another program.

I have searched the Oracle Documentation but so far have been unable to come up with a number.

I would like to tell my customer to modify their SQL generation code to stay within the SQL limit for bind variables but I am unable until I know what that limit is.  :-(

Thanks very much for any assistance!!

-gary

This post has been answered by gdanby on Oct 7 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2016
Added on Oct 7 2016
7 comments
6,347 views