Search Results ak_foreign_key_columns
Overview
The AK_FOREIGN_KEY_COLUMNS table is a core metadata repository within the Oracle E-Business Suite (EBS) architecture, specifically under the AK (Common Modules-AK) product family. Its primary function is to define and manage the relationship between application attributes and database-level foreign key constraints. This table acts as a critical mapping layer, linking the logical attribute definitions used by the Application Object Library (AOL) and the Oracle Applications Framework (OAF) to the physical foreign key constraints implemented in the database schema. By maintaining this linkage, it enables the EBS application's runtime environment to understand and enforce referential integrity within its flexible, metadata-driven user interface components, such as regions and descriptive flexfields.
Key Information Stored
The table stores a precise mapping record for each attribute that participates in a foreign key relationship. Its structure is defined by a composite primary key and a critical foreign key relationship. The key columns are:
- FOREIGN_KEY_NAME: Identifies the specific foreign key constraint in the database, as defined in the related AK_FOREIGN_KEYS table.
- ATTRIBUTE_CODE: The code identifying the application attribute that is mapped to a column in the foreign key.
- ATTRIBUTE_APPLICATION_ID: The application ID (from FND_APPLICATION) for the attribute, providing namespace context for the ATTRIBUTE_CODE.
Together, these columns create a record stating that a given logical attribute (ATTRIBUTE_CODE/APPLICATION_ID) is bound to a specific column within a specific physical foreign key constraint (FOREIGN_KEY_NAME). The table's primary key constraint, AK_FOREIGN_KEY_COLUMNS_PK, is enforced on these three columns.
Common Use Cases and Queries
This table is primarily accessed by the underlying AK and AOL modules for runtime metadata resolution and is less frequently queried directly in application development. Common technical use cases include diagnosing metadata issues in flexfields or OAF pages and performing impact analysis for schema changes. A typical query would join to the AK_FOREIGN_KEYS table to get a complete picture of a foreign key's definition and its associated attributes:
- Finding Attributes for a Foreign Key:
SELECT afkc.attribute_code, afkc.attribute_application_id FROM ak_foreign_key_columns afkc WHERE afkc.foreign_key_name = '<FK_NAME>'; - Listing Foreign Keys for an Attribute:
SELECT afkc.foreign_key_name FROM ak_foreign_key_columns afkc WHERE afkc.attribute_code = '<ATTR_CODE>' AND afkc.attribute_application_id = <APP_ID>;
Direct data manipulation (INSERT, UPDATE, DELETE) on this table is strongly discouraged and should only be performed using the official Oracle Applications Manager (OAM) or AD_DD APIs to maintain metadata integrity.
Related Objects
The AK_FOREIGN_KEY_COLUMNS table exists within a tightly coupled metadata ecosystem. Its most direct relationship, as documented in the ETRM, is a foreign key constraint referencing the AK_FOREIGN_KEYS table on the FOREIGN_KEY_NAME column. This ensures every mapped attribute points to a valid foreign key definition. The attributes themselves (ATTRIBUTE_CODE and ATTRIBUTE_APPLICATION_ID) are logically related to the core AOL attribute metadata tables, such as FND_DESCRIPTIVE_FLEXS and FND_APPL_TAXONOMY. The table is fundamentally part of the AK module's repository, which supports the Oracle Applications Framework's metadata-driven development model.
-
Table: AK_FOREIGN_KEY_COLUMNS
12.1.1
owner:AK, object_type:TABLE, fnd_design_data:AK.AK_FOREIGN_KEY_COLUMNS, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID, product: AK - Common Modules-AK , description: Links an attribute to a foreign key , implementation_dba_data: AK.AK_FOREIGN_KEY_COLUMNS ,
-
Table: AK_FOREIGN_KEY_COLUMNS
12.2.2
owner:AK, object_type:TABLE, fnd_design_data:AK.AK_FOREIGN_KEY_COLUMNS, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID, product: AK - Common Modules-AK , description: Links an attribute to a foreign key , implementation_dba_data: AK.AK_FOREIGN_KEY_COLUMNS ,
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_FOREIGN_KEY_COLUMNS
12.1.1
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_FOREIGN_KEY_COLUMNS
12.2.2
-
APPS.AK_OBJECT3_PVT dependencies on AK_FOREIGN_KEY_COLUMNS
12.1.1
-
APPS.AK_FOREIGN_KEYS_PKG dependencies on AK_FOREIGN_KEY_COLUMNS
12.2.2
-
APPS.AK_KEY_PVT dependencies on AK_FOREIGN_KEY_COLUMNS
12.1.1
-
APPS.AK_QUERY_PKG dependencies on AK_FOREIGN_KEY_COLUMNS
12.1.1
-
APPS.AK_QUERY_PKG dependencies on AK_FOREIGN_KEY_COLUMNS
12.2.2
-
APPS.AK_OBJECT2_PVT dependencies on AK_FOREIGN_KEY_COLUMNS
12.2.2
-
APPS.AK_FOREIGN_KEYS_PKG dependencies on AK_FOREIGN_KEY_COLUMNS
12.1.1
-
APPS.AK_OBJECT2_PVT dependencies on AK_FOREIGN_KEY_COLUMNS
12.1.1
-
APPS.AK_OBJECT3_PVT dependencies on AK_FOREIGN_KEY_COLUMNS
12.2.2
-
APPS.AK_KEY_PVT dependencies on AK_FOREIGN_KEY_COLUMNS
12.2.2
-
VIEW: APPS.OE_DEF_RELATED_OBJ_V
12.2.2
-
VIEW: AK.AK_FOREIGN_KEY_COLUMNS#
12.2.2
owner:AK, object_type:VIEW, object_name:AK_FOREIGN_KEY_COLUMNS#, status:VALID,
-
VIEW: APPS.OE_DEF_RELATED_ATTR_V
12.2.2
-
VIEW: APPS.OE_DEF_RELATED_OBJ_V
12.1.1
-
TRIGGER: APPS.AK_FOREIGN_KEY_COLUMNS+
12.2.2
owner:APPS, object_type:TRIGGER, object_name:AK_FOREIGN_KEY_COLUMNS+, status:VALID,
-
VIEW: APPS.OE_DEF_RELATED_ATTR_V
12.1.1
-
VIEW: APPS.OE_DEF_AK_FKEY_COLS_V
12.2.2
-
VIEW: APPS.OE_DEF_AK_FKEY_COLS_V
12.1.1
-
SYNONYM: APPS.AK_FOREIGN_KEY_COLUMNS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID,
-
View: OE_DEF_RELATED_ATTR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_DEF_RELATED_ATTR_V, object_name:OE_DEF_RELATED_ATTR_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_DEF_RELATED_ATTR_V ,
-
SYNONYM: APPS.AK_FOREIGN_KEY_COLUMNS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID,
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_FOREIGN_KEYS
12.1.1
-
TRIGGER: APPS.AK_FOREIGN_KEY_COLUMNS+
12.2.2
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_FOREIGN_KEYS
12.2.2
-
View: OE_DEF_RELATED_OBJ_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_DEF_RELATED_OBJ_V, object_name:OE_DEF_RELATED_OBJ_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_DEF_RELATED_OBJ_V ,
-
View: OE_DEF_RELATED_OBJ_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_DEF_RELATED_OBJ_V, object_name:OE_DEF_RELATED_OBJ_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_DEF_RELATED_OBJ_V ,
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_OBJECT_ATTRIBUTES_VL
12.2.2
-
View: OE_DEF_RELATED_ATTR_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_DEF_RELATED_ATTR_V, object_name:OE_DEF_RELATED_ATTR_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_DEF_RELATED_ATTR_V ,
-
VIEW: APPS.AK_FOREIGN_KEY_COLUMNS_V
12.2.2
-
VIEW: APPS.OE_PC_FKEY_COLS_V
12.1.1
-
VIEW: APPS.AK_FOREIGN_KEY_COLUMNS_V
12.1.1
-
VIEW: AK.AK_FOREIGN_KEY_COLUMNS#
12.2.2
-
VIEW: APPS.OE_PC_FKEY_COLS_V
12.2.2
-
VIEW: APPS.AK_FOREIGN_KEY_MAPPING_V
12.1.1
-
VIEW: APPS.AK_FOREIGN_KEY_MAPPING_V
12.2.2
-
TABLE: AK.AK_FOREIGN_KEY_COLUMNS
12.1.1
owner:AK, object_type:TABLE, fnd_design_data:AK.AK_FOREIGN_KEY_COLUMNS, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID,
-
TABLE: AK.AK_FOREIGN_KEY_COLUMNS
12.2.2
owner:AK, object_type:TABLE, fnd_design_data:AK.AK_FOREIGN_KEY_COLUMNS, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID,
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_OBJECT_ATTRIBUTES_VL
12.1.1
-
View: OE_DEF_AK_FKEY_COLS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_DEF_AK_FKEY_COLS_V, object_name:OE_DEF_AK_FKEY_COLS_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_DEF_AK_FKEY_COLS_V ,
-
FUNCTION: APPS.AK_FOREIGN_KEY_COLUMNS=
12.2.2
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_OBJECT_ATTRIBUTES
12.2.2
-
APPS.AK_OBJECT2_PVT dependencies on AK_FOREIGN_KEYS
12.1.1
-
APPS.AK_FOREIGN_KEYS_PKG SQL Statements
12.1.1
-
Table: AK_FOREIGN_KEYS
12.2.2
owner:AK, object_type:TABLE, fnd_design_data:AK.AK_FOREIGN_KEYS, object_name:AK_FOREIGN_KEYS, status:VALID, product: AK - Common Modules-AK , description: Foreign keys for an object , implementation_dba_data: AK.AK_FOREIGN_KEYS ,
-
APPS.OE_DEFAULTING_FWK_PUB dependencies on AK_OBJECT_ATTRIBUTES
12.1.1
-
APPS.AK_OBJECT2_PVT dependencies on AK_FOREIGN_KEYS
12.2.2