My Oracle Support Banner

java.sql.SQLException: Protocol violation: [ 6, 7, 5, ] When Column Size Exceeds 1300 (Doc ID 2088417.1)

Last updated on MAY 19, 2017

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


JDBC application fails with Protocol Violation exception when the SQL query column exceeds 1300 columns.


java.sql.SQLException: Protocol violation: [ 6, 7, 5, ]
at oracle.jdbc.driver.T4CTTIfun.receive(
at oracle.jdbc.driver.T4CTTIfun.doRPC(
at oracle.jdbc.driver.T4C8Oall.doOALL(
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(
at oracle.jdbc.driver.T4CPreparedStatement.fetch(
at oracle.jdbc.driver.OracleStatement.fetchMoreRows(
at oracle.jdbc.driver.InsensitiveScrollableResultSet.fetchMoreRows(
at oracle.jdbc.driver.InsensitiveScrollableResultSet.absoluteInternal(
at oracleojdbcissue.OracleOJDBCIssue.executeQuery(



To replicate this issue JDBC driver should be patched for <Bug 20222015> JAVA.LANG.ARRAYINDEXOUTOFBOUNDSEXCEPTION: 128 WITH JDBC DRIVER.

At the database level one has to set ALTER system SET "_FIX_CONTROL"='17376322:OFF' scope=both, or should have <Patch 20315685> applied.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.