DBA Data[Home] [Help]

APPS.HZ_MIGRATE_MOSR_REFERENCES dependencies on HZ_ORG_CONTACT_ROLES

Line 63: from hz_org_contact_roles contact_roles where orig_system_reference is not null and status in ('A','I')

59: -- Bug 4956873
60: cursor org_contact_roles is
61: select /*+ parallel(contact_roles) */ orig_system_reference, org_contact_role_id, created_by, nvl(created_by_module,'TCA'),
62: nvl(application_id,'222'), creation_date,last_updated_by, last_update_date, nvl(last_update_login,-1)
63: from hz_org_contact_roles contact_roles where orig_system_reference is not null and status in ('A','I')
64: and not exists(select /*+ parallel(osr) */ 'X' from hz_orig_sys_references osr
65: where contact_roles.org_contact_role_id = osr.owner_table_id
66: and osr.owner_table_name = 'HZ_ORG_CONTACT_ROLES'
67: and osr.orig_system = 'UNKNOWN'

Line 66: and osr.owner_table_name = 'HZ_ORG_CONTACT_ROLES'

62: nvl(application_id,'222'), creation_date,last_updated_by, last_update_date, nvl(last_update_login,-1)
63: from hz_org_contact_roles contact_roles where orig_system_reference is not null and status in ('A','I')
64: and not exists(select /*+ parallel(osr) */ 'X' from hz_orig_sys_references osr
65: where contact_roles.org_contact_role_id = osr.owner_table_id
66: and osr.owner_table_name = 'HZ_ORG_CONTACT_ROLES'
67: and osr.orig_system = 'UNKNOWN'
68: and contact_roles.orig_system_reference =
69: osr.orig_system_reference
70: and osr.status = 'A')

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

67: and osr.orig_system = 'UNKNOWN'
68: and contact_roles.orig_system_reference =
69: osr.orig_system_reference
70: and osr.status = 'A')
71: and not exists(select 'N' from hz_orig_sys_mapping where owner_table_name='HZ_ORG_CONTACT_ROLES' and multiple_flag='N' and orig_system='UNKNOWN');
72:
73: cursor party_sites is
74: select orig_system_reference, party_site_id, created_by, nvl(created_by_module,'TCA'),
75: nvl(application_id,'222'), creation_date,last_updated_by, last_update_date, nvl(last_update_login,-1)

Line 277: values(hz_orig_system_ref_s.nextval,'UNKNOWN', orig_sys_ref(i), 'HZ_ORG_CONTACT_ROLES', org_contact_role_id(i),

273: (orig_system_ref_id, orig_system, orig_system_reference, owner_table_name, owner_table_id,
274: status, start_date_active, end_date_active, reason_code, created_by,
275: old_orig_system_reference, created_by_module, application_id, creation_date, last_updated_by,
276: last_update_date,last_update_login, object_version_number)
277: values(hz_orig_system_ref_s.nextval,'UNKNOWN', orig_sys_ref(i), 'HZ_ORG_CONTACT_ROLES', org_contact_role_id(i),
278: 'A', sysdate, null, null, created_by(i), null, created_by_module(i), appl_id(i), creation_date(i), last_updated_by(i),
279: last_update_date(i), last_update_login(i), 1);
280:
281: if l_last_fetch then