Results for “ahl_mc_relationships”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

AHL_MC_RELATIONSHIPS is a core table in the Oracle E-Business Suite (EBS) Complex Maintenance Repair and Overhaul (AHL) module. It stores Maintenance Configuration (MC) node information, functioning as a denormalized representation derived from AHL_RELATIONSHIP_B and its translation (TL) table. In EBS 12.1.1 and 12.2.2, this table supports the definition, structuring, and maintenance of hierarchical configuration models used across complex asset and overhaul scenarios. Each row corresponds to a relationship node within a maintenance configuration, capturing the position, parent-child linkage, associated item group, and other descriptive attributes needed to render and process the configured structure.

From a Data Vault modeling perspective, the metadata’s heuristic classification identifies this table as hub-leaning. This suggests that AHL_MC_RELATIONSHIPS primarily acts as a central entity hub, with its primary key (RELATIONSHIP_ID) serving as the business key for the configuration relationship nodes. While it contains descriptive attributes typical of a satellite, its role in anchoring multiple foreign key relationships positions it closer to a hub structure within a normalized data warehouse design.

Key Information Stored

The table is owned by the AHL schema and contains 37 documented columns in 12.2.2. The most significant columns include:

  • RELATIONSHIP_ID – Surrogate primary key (AHL_MC_RELATIONSHIPS_PK). Uniquely identifies each MC relationship node.
  • MC_HEADER_ID – Foreign key to AHL_MC_HEADERS_B. Associates the node with a specific maintenance configuration header. Part of the unique key AHL_MC_RELATIONSHIPS_U2 alongside POSITION_KEY.
  • POSITION_KEY – Business-key component identifying the node’s position within the configuration. Combined with MC_HEADER_ID forms unique index U2.
  • PARENT_RELATIONSHIP_ID – Self-referencing foreign key to AHL_MC_RELATIONSHIPS. Defines hierarchical parent-child relationships among MC nodes.
  • ITEM_GROUP_ID – Foreign key to AHL_ITEM_GROUPS_B. Specifies the item group associated with the node.
  • QUANTITY – Quantity of the item group required at this position.
  • UOM_CODE – Unit of measure for the quantity.
  • POSITION_REF_CODE – Reference code for the position, used for identification or lookup.
  • POSITION_NECESSITY_CODE – Indicates whether the position is mandatory or optional within the configuration.
  • DISPLAY_ORDER – Controls the sequence in which nodes are presented in the configuration hierarchy.
  • ACTIVE_START_DATE / ACTIVE_END_DATE – Define the effective date range during which the relationship node is valid.
  • SECURITY_GROUP_ID – Foreign key to FND_SECURITY_GROUPS, enforcing data security at the node level.
  • OBJECT_VERSION_NUMBER – Supports optimistic locking and concurrent update control.
  • ATTRIBUTE1–ATTRIBUTE15 – Descriptive flexfield (DFF) columns for capturing client-specific extensions.

Two unique indexes are documented: AHL_MC_RELATIONSHIPS_U1 on RELATIONSHIP_ID and AHL_MC_RELATIONSHIPS_U2 on (MC_HEADER_ID, POSITION_KEY). AHL_MC_RELATIONSHIPS_U2 represents a strong business-key candidate, ensuring no duplicate positions exist within the same configuration.

Common Use Cases and Queries

AHL_MC_RELATIONSHIPS is queried for configuration validation, hierarchy traversal, and reporting on maintenance structures. A typical query retrieves the full node hierarchy for a given configuration header:

  • Listing all MC nodes for a configuration: SELECT * FROM AHL.AHL_MC_RELATIONSHIPS WHERE MC_HEADER_ID = :header_id;
  • Finding root nodes (no parent): SELECT * FROM AHL.AHL_MC_RELATIONSHIPS WHERE MC_HEADER_ID = :header_id AND PARENT_RELATIONSHIP_ID IS NULL;
  • Retrieving child nodes recursively via CONNECT BY: SELECT ... START WITH PARENT_RELATIONSHIP_ID IS NULL CONNECT BY PRIOR RELATIONSHIP_ID = PARENT_RELATIONSHIP_ID;
  • Joining with AHL_ITEM_GROUPS_B to report item group details: SELECT mcr.RELATIONSHIP_ID, ig.item_group_name FROM AHL.AHL_MC_RELATIONSHIPS mcr JOIN AHL.AHL_ITEM_GROUPS_B ig ON mcr.ITEM_GROUP_ID = ig.ITEM_GROUP_ID;

These queries support configuration validation, bill-of-material style reporting, and integration with overhaul work definitions. The denormalized nature of the table also reduces join complexity for read-heavy reporting operations.

Related Objects

Several objects reference or depend on AHL_MC_RELATIONSHIPS through documented foreign keys:

  • AHL_MC_HEADERS_B – Referenced by MC_HEADER_ID. Defines the parent maintenance configuration header.
  • AHL_ITEM_GROUPS_B – Referenced by ITEM_GROUP_ID. Supplies item group definitions.
  • FND_SECURITY_GROUPS – Referenced by SECURITY_GROUP_ID. Enforces data security.
  • AHL_MC_CONFIG_RELATIONS – Contains RELATIONSHIP_ID as a foreign key referencing this table; defines configuration relationships.
  • AHL_CTR_UPDATE_RULES – References RELATIONSHIP_ID, governing update rules for change tracking.
  • AHL_DOC_TITLE_ASSOS_B – Uses ASO_OBJECT_ID to associate documentation titles with relationship nodes.
  • AHL_MC_RELATIONSHIPS (self-reference) – PARENT_RELATIONSHIP_ID creates an intra-table hierarchy for MC nodes.

Understanding these relationships is essential for writing accurate joins and for maintaining referential integrity when manipulating configuration data in the AHL module.