update cmpwbmivview_v set viewtext = ' SELECT a.table_name object_name, a.application_short_name parent_business_area_id, ''TABLE'' type, c.description description FROM (SELECT d.table_name, b.application_id, b.application_short_name FROM dba_tables d, fnd_application b, fnd_product_installations p, fnd_oracle_userid o WHERE d.owner = o.oracle_username AND b.application_id = p.application_id AND p.oracle_id = o.oracle_id AND NOT EXISTS (SELECT table_name FROM dba_snapshots WHERE table_name = d.table_name)) a LEFT OUTER JOIN fnd_tables c ON c.application_id = a.application_id AND c.table_name = a.table_name UNION ALL SELECT a.view_name object_name, b.application_short_name parent_business_area_id, ''VIEW'' type, a.description description FROM fnd_views a, fnd_application b, dba_views c WHERE a.application_id = b.application_id AND a.view_name = c.view_name AND c.owner = ''APPS'' UNION ALL SELECT a.sequence_name object_name, a.application_short_name parent_business_area_id, ''SEQUENCE'' type, c.description description FROM (SELECT d.sequence_name, b.application_short_name, b.application_id FROM dba_sequences d, fnd_application b, fnd_product_installations p, fnd_oracle_userid o WHERE p.oracle_id = o.oracle_id AND b.application_id = p.application_id AND d.sequence_owner = o.oracle_username) a LEFT OUTER JOIN fnd_sequences c ON c.application_id = a.application_id AND c.sequence_name = a.sequence_name ' where name = 'miv_business_area_objects' and mivdefinition = (select elementid from cmpwbmivdefinition_v where name = 'ORACLE_EBUSINESS_SUITE'); commit;