Last updated on NOVEMBER 28, 2016
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 188.8.131.52 [Release 10.2 to 11.2]
Information in this document applies to any platform.
This problem can occur on any platform.
JDBC auto generated SQL accesses ALL_CONSTRAINTS and ALL_CONS_COLUMNS runs a sub-optimal execution plan and takes long time. The studied case showed the SQL is generated by getImportedKeys() method of DatabaseMetaData class. This SQL or similar SQLs can be generated by other methods which get information about constraints:
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms