UIM: Attachment Table Full-Scan on LogicalDeviceAccount Creation

(Doc ID 2412373.1)

Last updated on JUNE 20, 2018

Applies to:

Oracle Communications Unified Inventory Management - Version 7.3.4.0.0 and later
Information in this document applies to any platform.

Goal

When the customer creates a logical device then UIM core framework is generating certain SQL statements. The query below is part of those statements.

However when this SQL Select is executed - it is performing the FULL table scan for Attachment Table.

SQL:
SELECT t2.ENTITYID, t2.ENTITYCLASS, t2.ACTIVITY, t2.ADMINSTATE, t2.ATTACHMENTTYPE, t2.CREATEDDATE, t2.CREATEDUSER, t2.DESCRIPTION, t2.DIRECTION, t2.ENDDATE, t2.ENTITYVERSION, t2.FROMENTITYCLASS, t2.FROMENTITYID, t2.FROMENTITYNAME, t2.FROMENTITYREF, t2.FROMENTITYROLEKEY, t2.FROMENTITYSPECNAME, t2.ID, t2.LASTMODIFIEDDATE, t2.LASTMODIFIEDUSER, t2.NAME, t2.OBJECTSTATE, t2.RELTYPE, t2.STARTDATE, t2.TOENTITYCLASS, t2.TOENTITYID, t2.TOENTITYNAME, t2.TOENTITYREF, t2.TOENTITYROLEKEY, t2.TOENTITYSPECNAME, t2.CUSTOMINVOLVEMENTSPECIFICATION FROM Specification t0, Attachment t2, CustomInvolvementSpecification t1 WHERE (((((t0.NAME = ?) AND (((t2.FROMENTITYCLASS = ?) AND (t2.FROMENTITYREF = ?)) OR ((t2.TOENTITYCLASS = ?) AND (t2.TOENTITYREF = ?)))) AND (((t2.OBJECTSTATE = ?) OR (t2.OBJECTSTATE = ?)) OR (t2.OBJECTSTATE = ?))) AND (t2.ENTITYCLASS = ?)) AND ((t0.ENTITYID = t2.CUSTOMINVOLVEMENTSPECIFICATION) AND ((t1.ENTITYID = t0.ENTITYID) AND (t0.ENTITYCLASS = ?)))) ORDER BY t2.ATTACHMENTTYPE ASC, t2.FROMENTITYCLASS ASC, t2.TOENTITYCLASS ASC


What can be recommended to improve the performance?
 

Solution

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