DBA Data[Home] [Help]

APPS.HZ_MIGRATE_MOSR_REFERENCES dependencies on HZ_ORG_CONTACTS

Line 35: from hz_org_contacts org_contacts where orig_system_reference is not null and status in ('A','I')

31:
32: cursor org_contacts is
33: select orig_system_reference, org_contact_id, created_by, nvl(created_by_module,'TCA'),
34: nvl(application_id,'222'), creation_date,last_updated_by, last_update_date, nvl(last_update_login,-1)
35: from hz_org_contacts org_contacts where orig_system_reference is not null and status in ('A','I')
36: and not exists(select 'X' from hz_orig_sys_references osr
37: where org_contacts.org_contact_id = osr.owner_table_id
38: and osr.owner_table_name = 'HZ_ORG_CONTACTS'
39: and osr.orig_system = 'UNKNOWN'

Line 38: and osr.owner_table_name = 'HZ_ORG_CONTACTS'

34: nvl(application_id,'222'), creation_date,last_updated_by, last_update_date, nvl(last_update_login,-1)
35: from hz_org_contacts org_contacts where orig_system_reference is not null and status in ('A','I')
36: and not exists(select 'X' from hz_orig_sys_references osr
37: where org_contacts.org_contact_id = osr.owner_table_id
38: and osr.owner_table_name = 'HZ_ORG_CONTACTS'
39: and osr.orig_system = 'UNKNOWN'
40: and org_contacts.orig_system_reference =
41: osr.orig_system_reference
42: and osr.status = 'A')

Line 43: and not exists(select 'N' from hz_orig_sys_mapping where owner_table_name='HZ_ORG_CONTACTS' and multiple_flag='N' and orig_system='UNKNOWN');

39: and osr.orig_system = 'UNKNOWN'
40: and org_contacts.orig_system_reference =
41: osr.orig_system_reference
42: and osr.status = 'A')
43: and not exists(select 'N' from hz_orig_sys_mapping where owner_table_name='HZ_ORG_CONTACTS' and multiple_flag='N' and orig_system='UNKNOWN');
44:
45: -- Bug 4956873
46: cursor contact_points is
47: select /*+ parallel(contact) */ orig_system_reference, contact_point_id, created_by, nvl(created_by_module,'TCA'),

Line 213: values(hz_orig_system_ref_s.nextval,'UNKNOWN', orig_sys_ref(i), 'HZ_ORG_CONTACTS', org_contact_id(i),

209: (orig_system_ref_id, orig_system, orig_system_reference, owner_table_name, owner_table_id,
210: status, start_date_active, end_date_active, reason_code, created_by,
211: old_orig_system_reference, created_by_module, application_id, creation_date, last_updated_by,
212: last_update_date,last_update_login, object_version_number)
213: values(hz_orig_system_ref_s.nextval,'UNKNOWN', orig_sys_ref(i), 'HZ_ORG_CONTACTS', org_contact_id(i),
214: 'A', sysdate, null, null, created_by(i), null, created_by_module(i), appl_id(i), creation_date(i),
215: last_updated_by(i), last_update_date(i), last_update_login(i), 1);
216:
217: if l_last_fetch then