Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

strange query in top sql queries

user10356290Jul 26 2014 — edited Jul 27 2014

I see the following query several times in top running sql queries. Also, it has over 1000 buffer gets per execution.

select * from (select null TABLE_CATALOG, ac.owner TABLE_SCHEMA, ac.table_name TABLE_NAME, acc.column_name COLUMN_NAME,

null COLUMN_GUID, null COLUMN_PROPID, acc.position ORDINAL from all_constraints ac, all_cons_columns acc

where ac.owner = acc.owner and ac.table_name = acc.table_name and ac.constraint_type = 'P' and ac.constraint_name = acc.constraint_name)

DBSCHEMA_PRIMARY_KEYS  WHERE TABLE_SCHEMA = 'myschemaname' AND TABLE_NAME = 'mytablename' order by 3, 4

Obviously, it is not a query from my application. Any ideas how to eliminate this ? or at least don't run that many times.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 24 2014
Added on Jul 26 2014
4 comments
303 views