Search Results oe_pc_fkey_cols_v
Overview
OE_PC_FKEY_COLS_V is a read-only view owned by the APPS schema in Oracle E-Business Suite, shipped with the Order Management (ONT) product family. It is part of the Oracle Application Object Library (AK) metadata layer and exposes foreign key definitions together with their corresponding unique key definitions for database objects registered in the EBS metadata repository. The view is primarily used by internal EBS components that need to reason about relational metadata at runtime — for example, the Order Management ordering and schema introspection utilities that rely on the AK foreign key catalog.
The view is documented as VALID and is present in both EBS 12.1.1 and 12.2.2. It is not a transactional view; it is a metadata dictionary view. Its role in reporting and integration is to provide a normalized, readable projection of the foreign key and unique key relationships defined in the AK tables, which would otherwise require multi-table joins across four or more underlying tables. For integrations that build dynamic SQL, generate DDL, or validate referential relationships, this view supplies the column-level mapping between the foreign key columns and the unique key columns they reference.
Underlying Base Objects
The view is defined over five synonymous references in APPS, which resolve to the underlying AK tables:
- AK_FOREIGN_KEYS — the master record for each foreign key, providing APPLICATION_ID, DATABASE_OBJECT_NAME, FOREIGN_KEY_NAME, and UNIQUE_KEY_NAME.
- AK_FOREIGN_KEY_COLUMNS — the individual columns that make up each foreign key, with FOREIGN_KEY_SEQUENCE and attribute references.
- AK_OBJECT_ATTRIBUTES — resolves the attribute code to a physical COLUMN_NAME for both the foreign key side (FAKOA) and the unique key side (UAKOA).
- AK_UNIQUE_KEYS — the unique key definition referenced by the foreign key, supplying UK_APPLICATION_ID and UK_DATABASE_OBJECT_NAME.
- AK_UNIQUE_KEY_COLUMNS — the columns constituting the unique key, matched to foreign key columns by FOREIGN_KEY_SEQUENCE = UNIQUE_KEY_SEQUENCE.
The join is driven by foreign key name, attribute application ID/attribute code, database object name, and the positional sequence value, ensuring each foreign key column is paired with the unique key column it references.
Key Columns
- APPLICATION_ID — the application owning the foreign key definition.
- DB_OBJECT_NAME — the database object (table or view) on which the foreign key is defined.
- DB_OBJECT_TYPE — the object type; the view text hard-codes this as 'VIEW'.
- FOREIGN_KEY_NAME — the foreign key constraint identifier.
- FK_COLUMN_SEQUENCE — ordinal position of the column within the foreign key.
- FK_COLUMN_NAME — the physical column name on the foreign key side.
- UNIQUE_KEY_NAME — the referenced unique key identifier.
- UK_APPLICATION_ID, UK_DB_OBJECT_NAME — the owning application and object of the referenced unique key.
- UK_COLUMN_NAME — the referenced column name on the unique key side.
Common Use Cases and Queries
Typical scenarios include generating dynamic join predicates, validating that the correct unique-key columns back a foreign key, and documenting the relational structure of Order Management tables. A basic query to list all foreign key to unique key column mappings for a given object:
- SELECT foreign_key_name, fk_column_name, unique_key_name, uk_column_name FROM oe_pc_fkey_cols_v WHERE db_object_name = :object_name ORDER BY foreign_key_name, fk_column_sequence;
- SELECT db_object_name, foreign_key_name, uk_db_object_name FROM oe_pc_fkey_cols_v WHERE application_id = 660 GROUP BY db_object_name, foreign_key_name, uk_db_object_name;
- SELECT DISTINCT foreign_key_name, uk_column_name FROM oe_pc_fkey_cols_v WHERE fk_column_name = uk_column_name;
Because the view is a metadata construct, results reflect the AK registration for the current release; query results may differ between 12.1.1 and 12.2.2 as new objects are registered.
-
View: OE_PC_FKEY_COLS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PC_FKEY_COLS_V, object_name:OE_PC_FKEY_COLS_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_PC_FKEY_COLS_V ,
-
View: OE_PC_FKEY_COLS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PC_FKEY_COLS_V, object_name:OE_PC_FKEY_COLS_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_PC_FKEY_COLS_V ,
-
SYNONYM: APPS.AK_UNIQUE_KEY_COLUMNS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AK_UNIQUE_KEY_COLUMNS, status:VALID,
-
SYNONYM: APPS.AK_FOREIGN_KEY_COLUMNS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID,
-
SYNONYM: APPS.AK_FOREIGN_KEYS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AK_FOREIGN_KEYS, status:VALID,
-
SYNONYM: APPS.AK_FOREIGN_KEY_COLUMNS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AK_FOREIGN_KEY_COLUMNS, status:VALID,
-
SYNONYM: APPS.AK_UNIQUE_KEY_COLUMNS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AK_UNIQUE_KEY_COLUMNS, status:VALID,
-
SYNONYM: APPS.AK_FOREIGN_KEYS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AK_FOREIGN_KEYS, status:VALID,
-
SYNONYM: APPS.AK_UNIQUE_KEYS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AK_UNIQUE_KEYS, status:VALID,
-
SYNONYM: APPS.AK_UNIQUE_KEYS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AK_UNIQUE_KEYS, status:VALID,
-
PACKAGE BODY: APPS.OE_PC_CONSTRAINTS_ADMIN_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OE_PC_CONSTRAINTS_ADMIN_PVT, status:VALID,
-
PACKAGE BODY: APPS.OE_PC_CONSTRAINTS_ADMIN_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OE_PC_CONSTRAINTS_ADMIN_PVT, status:VALID,
-
VIEW: APPS.OE_PC_FKEY_COLS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PC_FKEY_COLS_V, object_name:OE_PC_FKEY_COLS_V, status:VALID,
-
VIEW: APPS.OE_PC_FKEY_COLS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PC_FKEY_COLS_V, object_name:OE_PC_FKEY_COLS_V, status:VALID,
-
SYNONYM: APPS.AK_OBJECT_ATTRIBUTES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AK_OBJECT_ATTRIBUTES, status:VALID,
-
SYNONYM: APPS.AK_OBJECT_ATTRIBUTES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AK_OBJECT_ATTRIBUTES, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
APPS.OE_PC_CONSTRAINTS_ADMIN_PVT SQL Statements
12.1.1
-
APPS.OE_PC_CONSTRAINTS_ADMIN_PVT SQL Statements
12.2.2
-
APPS.OE_PC_CONSTRAINTS_ADMIN_PVT dependencies on OE_PC_FKEY_COLS_V
12.1.1
-
APPS.OE_PC_CONSTRAINTS_ADMIN_PVT dependencies on OE_PC_FKEY_COLS_V
12.2.2
-
PACKAGE BODY: APPS.OE_PC_CONSTRAINTS_ADMIN_PVT
12.1.1
-
PACKAGE BODY: APPS.OE_PC_CONSTRAINTS_ADMIN_PVT
12.2.2
-
eTRM - ONT Tables and Views
12.2.2
description: OM WorkFlow Activity Skip Log. ,
-
12.2.2 DBA Data
12.2.2
-
eTRM - ONT Tables and Views
12.1.1
description: OM WorkFlow Activity Skip Log. ,
-
12.1.1 DBA Data
12.1.1
-
eTRM - ONT Tables and Views
12.1.1
description: OM WorkFlow Activity Skip Log. ,
-
eTRM - ONT Tables and Views
12.2.2
description: OM WorkFlow Activity Skip Log. ,