My Oracle Support Banner

Driver Protocol Violation When Retrieve Autogen Keys Using JDBC Driver (Doc ID 828765.1)

Last updated on APRIL 30, 2021

Applies to:

JDBC - Version and later
Information in this document applies to any platform.
This problem can occur on any platform.


-- Problem Statement:
On in Production:
Oracle Database 10g Relase 2 ( and JDBC Driver giving Protocol violation when attempting to retrieve autogenerated keys.

Following the example code available at this link

Database JDBC Developer's Guide and Reference
4 JDBC Standards Support
Retrieval of Auto-Generated Keys
Sample Code

Running the program to retrieve an autogenerated key, the following error is produced:


The problem is reproduced using the and the JDBC drivers. Both give the same


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

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

In this Document

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