I am inserting many records using JDBC batch inserts. Is there any way to get the generated key for each record? Can I use ps.getGeneratedKeys() with batch ins
ps.getGeneratedKeys()
It appears that Oracle 12c does not support combining auto-generated keys with batch update according to the following page:
http://docs.oracle.com/cd/E16655_01/java.121/e17657/jdbcvers.htm
See the subsection labeled "Limitations" under the section "Retrieval of Auto-Generated Keys"