Search Results get_func_asg




Overview

APPS.HR_DM_LIBRARY is a technical utility package within the Oracle E-Business Suite Human Resources data migration framework (the HR_DM schema family). Its role is to support the migration of configuration and transactional data from a source database instance to a destination database instance by generating, resolving, and validating the metadata required to move rows correctly. It is not a user-facing business package; it is an internal engine that other migration packages call to inspect table structures, resolve primary and foreign key relationships, generate PL/SQL code fragments, build column lists, and manage the delete-tracking ("DT delete") bookkeeping that guards a migration run.

The package is declared AUTHID CURRENT_USER and carries a long-standing header date (2003), indicating that its design has been stable across many EBS releases. It operates against the APPS schema and relies on APPS synonyms for its table access.

Key Procedures and Functions

The 30 documented entry points fall into several functional clusters:

Tables Accessed

The package reads and writes migration control tables through APPS synonyms: HR_DM_MIGRATIONS (the migration run header), HR_DM_PHASES and HR_DM_PHASE_ITEMS (phase sequencing), HR_DM_TABLES (the table inventory), HR_DM_HIERARCHIES and HR_DM_HIERARCHIES_S (parent/child relationships), and HR_DM_RESOLVE_PKS and HR_DM_RESOLVE_PKS_S (key resolution state). Delete tracking is persisted in HR_DM_DT_DELETES and HR_DM_DT_DELETES_S. Dictionary access uses ALL_CONSTRAINTS and ALL_CONS_COLUMNS for key discovery, DBMS_SQL for dynamic statement execution, AD_DDL for DDL generation, and FND_ORACLE_USERID for schema/user context.

Usage Notes

HR_DM_LIBRARY is invoked indirectly rather than from a user form. It is called by the HR Data Migration runtime and by the 14 other packages that reference it, typically during the generation and execution phases of a migration run. Custom extensions that move HR data between instances should reuse the resolve-PK and DT-delete routines rather than reimplementing them, since INS_DT_DELETE and the CHK_ROW_IN_DT_DELETE_* checks maintain the integrity of the delete reconciliation process. Because the package executes dynamic SQL and DDL under AUTHID CURRENT_USER, callers must connect as APPS with the standard EBS initialization in effect.