Search Results g_number
Overview
APPS.HR_CONSTRAINT_CHECK is a diagnostic and utilities package body in the Oracle E-Business Suite Human Resources (HR) product family. Its primary business function is to verify that the database constraints which enforce the integrity of HR, Payroll, and Benefits tables are present and correctly defined. The package compares the set of constraints that exist in the database against an expected list, and reports any constraints that are missing. This is essential for environments where upgrades, patches, or data migrations may have inadvertently dropped or renamed constraints, which can lead to data corruption or application errors. The package is classified in ETRM as "OTHER" (not a public API), indicating it is an internal utility rather than a supported integration point. The package variable g_number is declared at the top of the body and serves as a package-level counter used internally throughout the constraint-checking logic, for example to tally the number of constraints found, missing, or processed.
Key Procedures and Functions
- BUILD_CONSTRAINT_LIST — Populates an in-memory list (the
ConsListtype) of expected constraints by querying the data dictionary. It discovers constraints on HR, PER, BEN, and related tables and builds the reference set against which actual database constraints are compared. - FIND_MISSING_CONSTRAINTS — Compares the expected constraint list built by BUILD_CONSTRAINT_LIST against the constraints that actually exist in the database, and identifies those that are missing. This is the core diagnostic routine of the package.
- ADD_CASE_CONSTRAINT — Adds a specific constraint definition to the internal collection, typically used to register case-specific or conditional constraints that must be checked in addition to the standard set.
- ADD_HEADER — Writes a formatted header to the output report produced by the package, providing context such as the product, date, or run parameters.
- ADD_FOOTER — Writes a formatted footer to the output report, typically summarizing totals such as the number of constraints checked and the number missing.
Tables Accessed
- ALL_CONSTRAINTS — The primary data dictionary view queried to discover the constraints that exist on HR, PER, and BEN tables. The package filters out system-generated constraints (
SYS_%) and selects by owner and table-name pattern. - FND_APPLICATION — Used indirectly through the
get_schemafunction's call toFND_INSTALLATION.GET_APP_INFOto resolve the Oracle schema (owner) associated with a given product, ensuring the correct owner is used when querying constraints. - HR_API_USER_HOOK_REPORTS — Referenced to integrate constraint-check output with the HR API user-hook reporting mechanism, allowing diagnostic results to be surfaced through the standard HR reporting infrastructure.
Usage Notes
HR_CONSTRAINT_CHECK is an internal utility package and is not designed for direct invocation by end users or as a public API. It is typically executed through concurrent programs or diagnostic scripts during implementation, upgrade validation, and post-patch verification of an HR/Payroll environment. The package may also be called by Oracle's own patch and diagnostic routines to confirm that constraints remain intact after a patch is applied. Custom code should not depend on this package, as its procedures and package variables (including g_number) are subject to change without notice. The package does not appear in the referenced-by list of other documented packages, confirming its role as a standalone diagnostic tool. When investigating missing-constraint errors in HR or Benefits, DBAs and technical consultants can invoke this package to obtain a report of constraints that are absent from the database.
-
APPS.HR_CONSTRAINT_CHECK SQL Statements
12.1.1
-
APPS.HR_CONSTRAINT_CHECK SQL Statements
12.2.2
-
APPS.HR_INDEX_CHECK SQL Statements
12.2.2
-
APPS.HR_INDEX_CHECK SQL Statements
12.1.1
-
PACKAGE BODY: APPS.HR_CONSTRAINT_CHECK
12.2.2
-
PACKAGE BODY: APPS.HR_CONSTRAINT_CHECK
12.1.1
-
PACKAGE BODY: APPS.HR_INDEX_CHECK
12.2.2
-
PACKAGE BODY: APPS.HR_INDEX_CHECK
12.1.1
-
PACKAGE BODY: APPS.FTE_LANE_SEARCH_QUERY_GEN
12.2.2
-
PACKAGE BODY: APPS.FTE_LANE_SEARCH_QUERY_GEN
12.1.1
-
PACKAGE: APPS.JTF_UTILITY_PVT
12.1.1
-
PACKAGE: APPS.JTF_UTILITY_PVT
12.2.2
-
APPS.PAY_BAL_ADJUST SQL Statements
12.1.1
-
PACKAGE: APPS.PAY_GB_PAYE_SYNC
12.2.2
-
APPS.PAY_BAL_ADJUST SQL Statements
12.2.2
-
PACKAGE: APPS.AHL_UTILITY_PVT
12.2.2
-
PACKAGE: APPS.AHL_UTILITY_PVT
12.1.1
-
APPS.HR_API_USER_HOOKS_UTILITY SQL Statements
12.1.1
-
PACKAGE BODY: APPS.JTF_UTILITY_PVT
12.2.2
-
APPS.HR_API_USER_HOOKS_UTILITY SQL Statements
12.2.2
-
PACKAGE BODY: APPS.JTF_UTILITY_PVT
12.1.1
-
PACKAGE: APPS.PVX_UTILITY_PVT
12.1.1
-
PACKAGE: APPS.PVX_UTILITY_PVT
12.2.2
-
PACKAGE: APPS.FTE_LANE_SEARCH_QUERY_GEN
12.2.2
-
PACKAGE: APPS.FTE_LANE_SEARCH_QUERY_GEN
12.1.1
-
PACKAGE: APPS.ARP_CONT_PKG
12.1.1
-
PACKAGE: APPS.ARP_CONT_PKG
12.2.2
-
APPS.PAY_US_GET_ITEM_DATA_PKG SQL Statements
12.1.1
-
PACKAGE: APPS.PAY_US_MMRF_PRINT_REC_HEADER
12.1.1
-
PACKAGE BODY: APPS.PAY_BAL_ADJUST
12.2.2
-
PACKAGE BODY: APPS.PAY_BAL_ADJUST
12.1.1
-
PACKAGE: APPS.PAY_US_MMRF_PRINT_REC_HEADER
12.2.2
-
PACKAGE: APPS.IEX_STRY_UTL_PUB
12.1.1
-
PACKAGE: APPS.IEX_STRY_API_PUB
12.1.1
-
APPS.PAY_US_GET_ITEM_DATA_PKG SQL Statements
12.2.2
-
PACKAGE: APPS.IEX_STRY_UTL_PUB
12.2.2
-
PACKAGE: APPS.IEX_STRY_API_PUB
12.2.2
-
PACKAGE: APPS.IEX_CASE_UTL_PUB
12.1.1
-
PACKAGE: APPS.IEX_CASE_UTL_PUB
12.2.2
-
PACKAGE BODY: APPS.HR_API_USER_HOOKS_UTILITY
12.2.2
-
PACKAGE BODY: APPS.HR_API_USER_HOOKS_UTILITY
12.1.1
-
PACKAGE: APPS.ARH_CONT_PKG
12.2.2
-
PACKAGE: APPS.ARH_CONT_PKG
12.1.1
-
APPS.PAY_US_REPORTING_UTILS_PKG SQL Statements
12.1.1
-
PACKAGE: APPS.AMW_UTILITY_PVT
12.1.1
-
PACKAGE BODY: APPS.PAY_GB_PAYE_SYNC
12.2.2
-
PACKAGE: APPS.PAY_US_W2_GENERIC_EXTRACT
12.2.2
-
PACKAGE: APPS.PAY_US_W2_GENERIC_EXTRACT
12.1.1
-
PACKAGE: APPS.AMS_UTILITY_PVT
12.1.1
-
PACKAGE: APPS.AMS_UTILITY_PVT
12.2.2