Search Results org_contact_merge2




Overview

HZ_MERGE_PKG is a core Oracle E-Business Suite PL/SQL package owned by the APPS schema that implements the registry-level merge logic for the Oracle Trading Community Architecture (TCA). Its principal business function is to consolidate two party records — typically a duplicate party and a surviving (master) party — into a single unified entity, transferring or repointing all dependent data such as relationships, profiles, customer accounts, contact points, and supplementary profile attributes. Because party merge touches virtually every table that carries a PARTY_ID foreign key, the package acts as the orchestration layer that individual TCA entity packages call during a merge operation initiated from the Oracle Customer Data Management (CDM) or Data Quality Management (DQM) merge user interface.

The package is classified as an internal "OTHER" API rather than a public Oracle API. It is validated in both EBS 12.1.1 and 12.2.2, and depends on FND_API for the standard API return-status conventions (X_RETURN_STATUS, X_MSG_COUNT, X_MSG_DATA).

Key Procedures and Functions

The ETRM metadata documents 41 procedures and functions. The principal entry points include:

Additional documented procedures include PARTY_MERGE and the merge routines for citizenship, education, employment history, and code assignments, each applying the same deduplicate-or-repoint pattern.

Tables Accessed

The package reads and writes the principal TCA tables, including HZ_CERTIFICATIONS, HZ_CITIZENSHIP, HZ_CLASS_CATEGORIES, HZ_CODE_ASSIGNMENTS, HZ_CONTACT_POINTS, HZ_CONTACT_PREFERENCES, HZ_CREDIT_RATINGS, HZ_CUST_ACCOUNTS, HZ_CUST_ACCOUNT_ROLES, HZ_CUST_ACCT_SITES_ALL, HZ_EDUCATION, and HZ_EMPLOYMENT_HISTORY. It also references HZ_DNB_REQUEST_LOG, HZ_DNB_REQUEST_LOG_S, and HZ_DQM_SYNC_INTERFACE, which support the DQM synchronization workflow that drives merge processing. Each table is accessed through APPS synonyms and updated to repoint the duplicate party's foreign keys to the surviving party, or to delete redundant rows where the surviving party already holds equivalent data.

Usage Notes

HZ_MERGE_PKG is invoked indirectly rather than directly by end users. In standard EBS, merge requests are submitted through the Oracle Customer Data Management / DQM concurrent programs and forms, which call HZ_MERGE_PKG and its sibling package HZ_PROFILE_MERGE_PKG to execute the merge. Customizations that need to trigger a party merge programmatically should call the DQM merge APIs rather than HZ_MERGE_PKG directly, since the package assumes a controlled transaction context and merge-bookkeeping state. Because the package is an internal API, Oracle does not guarantee signature stability across patches, so custom code should avoid direct references where possible.