Query on ALL_TYPE_ATTRS is Very Slow
Last updated on JULY 07, 2017
Applies to:JDBC - Version 18.104.22.168 to 22.214.171.124.0 [Release 11.1 to 11.2]
Information in this document applies to any platform.
Oracle JDBC driver executes the below query when retrieving metadata information for complex data types. The execution time of this query is very high and affects performance.
SELECT ATTR_NO, ATTR_NAME, ATTR_TYPE_NAME, ATTR_TYPE_OWNER
WHERE TYPE_NAME IN
FROM USER_SYNONYMS START WITH SYNONYM_NAME = :tname CONNECT BY NOCYCLE PRIOR TABLE_NAME = SYNONYM_NAME UNION
FROM DUAL) ORDER BY ATTR_NO
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 hundreds of Community platforms