Search Results max_cardinality
Overview
OKC_RG_DEF_RULES is a Contracts Core (OKC) configuration table in Oracle EBS 12.1.1 and 12.2.2 that defines the association between rule group definitions and individual rule definitions. In practical terms, it answers the question: "Which rules belong to which rule group, and is each rule optional within that group?" Rule groups are the containers that drive contract validation, defaulting, pricing, and clause generation behavior in Oracle Contracts; this table is the junction that binds rules to those containers.
From a Data Vault modeling perspective, the mined heuristic classification is hub-leaning. The table has a two-column primary key (RGD_CODE, RDF_CODE) that resembles a link between two business concepts, but because it also carries descriptive attributes such as optionality, cardinality bounds, and pricing flags, it is best treated as a hybrid hub/link construct. Modelers should treat it as a suggestion only; the authoritative source is the OKC schema definition.
Key Information Stored
The table contains 16 documented columns. The most significant are:
- RGD_CODE — Rule group definition code. Part of the composite primary key and the leading column in every join to rule sources and optionality rules.
- RDF_CODE — Rule definition code. The second half of the composite primary key; identifies the specific rule attached to the group.
- OPTIONAL_YN — Flag indicating whether the rule is optional within the group. Drives whether the rule engine enforces or merely offers the rule at contract creation time.
- MIN_CARDINALITY / MAX_CARDINALITY — Bounds on how many times or instances the rule may apply within the group.
- PRICING_RELATED_YN — Indicates whether the rule participates in pricing calculations, allowing pricing rules to be filtered separately from general validation rules.
- ACCESS_LEVEL — Controls visibility/access scope for the rule association.
- APPLICATION_ID — Identifies the owning application, typically Contracts (OKC).
- SECURITY_GROUP_ID — Foreign key to FND_SECURITY_GROUPS, supporting multi-tenant or organizational data segregation.
- OBJECT_VERSION_NUMBER — Optimistic locking column used by the OAF/ADF framework.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — Standard WHO columns for audit traceability.
- ZD_EDITION_NAME — Editioning column supporting Online Patching (adopted in 12.2.x).
The primary key is OKC_RG_DEF_RULES_PK over (RGD_CODE, RDF_CODE). The unique index OKC_RG_DEF_RULES_U1 over (RGD_CODE, RDF_CODE, ZD_EDITION_NAME) is the business-key candidate under editioning. Because access is governed through SECURITY_GROUP_ID, Row Level Security (RLS/AGL) can be applied to isolate rule definitions by operating unit or legal entity.
Common Use Cases and Queries
Typical uses include auditing which rules belong to a group, identifying mandatory versus optional rules, and reporting on pricing-related rule coverage.
-- List all rules in a group with optionality and cardinality
SELECT r.RGD_CODE, r.RDF_CODE, r.OPTIONAL_YN,
r.MIN_CARDINALITY, r.MAX_CARDINALITY, r.PRICING_RELATED_YN
FROM OKC.OKC_RG_DEF_RULES r
WHERE r.RGD_CODE = :p_group_code;
-- Find all groups that reference a specific rule
SELECT RGD_CODE FROM OKC.OKC_RG_DEF_RULES WHERE RDF_CODE = :p_rule_code;
-- Pricing-only associations
SELECT RGD_CODE, RDF_CODE FROM OKC.OKC_RG_DEF_RULES
WHERE PRICING_RELATED_YN = 'Y';
Reporting scenarios include gap analysis (rules defined but not attached to any group), impact analysis before changing a rule's behavior, and reconciling rule groups across environments after a clone. Because the table is configuration metadata, changes should be made through the Contracts setup UI or supported APIs rather than direct DML; direct updates bypass object version checks and can desynchronize the rule engine cache.
Related Objects
- OKC_RULE_DEF_SOURCES — References OKC_RG_DEF_RULES via (RGR_RGD_CODE, RGR_RDF_CODE). Links rule associations to their source definitions.
- OKL_OPT_RULES — References OKC_RG_DEF_RULES via (RGR_RGD_CODE, RGR_RDF_CODE). Used by Oracle Lease Management optionality rules.
- FND_SECURITY_GROUPS — Referenced through SECURITY_GROUP_ID for data segregation.
- OKC_RULE_DEFINITIONS / OKC_RG_DEFINITIONS — Master rule and rule-group definition tables that RDF_CODE and RGD_CODE denormalize into.
Join path pattern: OKC_RG_DEF_RULES.RGD_CODE = OKC_RULE_DEF_SOURCES.RGR_RGD_CODE AND OKC_RG_DEF_RULES.RDF_CODE = OKC_RULE_DEF_SOURCES.RGR_RDF_CODE. This is the canonical composite-key join used in Contracts rule diagnostics and in lease optionality extraction queries.
-
Table: OKC_RG_DEF_RULES
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_RG_DEF_RULES, object_name:OKC_RG_DEF_RULES, status:VALID, product: OKC - Contracts Core , description: Defines what rule definitions are associated with what rule group definitions and the optionality of that association. , implementation_dba_data: OKC.OKC_RG_DEF_RULES ,
-
Table: OKC_RG_DEF_RULES
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_RG_DEF_RULES, object_name:OKC_RG_DEF_RULES, status:VALID, product: OKC - Contracts Core , description: Defines what rule definitions are associated with what rule group definitions and the optionality of that association. , implementation_dba_data: OKC.OKC_RG_DEF_RULES ,
-
VIEW: OKC.OKC_RG_DEF_RULES#
12.2.2
-
VIEW: APPS.OKC_RG_DEF_RULES_V
12.1.1
-
VIEW: APPS.OKC_RG_DEF_RULES_V
12.2.2
-
View: OKC_RG_DEF_RULES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_RG_DEF_RULES_V, object_name:OKC_RG_DEF_RULES_V, status:VALID, product: OKC - Contracts Core , description: View for table OKC_RG_DEF_RULES , implementation_dba_data: APPS.OKC_RG_DEF_RULES_V ,
-
VIEW: SYS.ALL_SERVICES
12.2.2
-
VIEW: SYS.CDB_SERVICES
12.1.1
-
VIEW: SYS.CDB_SERVICES
12.2.2
-
View: OKC_RG_DEF_RULES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_RG_DEF_RULES_V, object_name:OKC_RG_DEF_RULES_V, status:VALID, product: OKC - Contracts Core , description: View for table OKC_RG_DEF_RULES , implementation_dba_data: APPS.OKC_RG_DEF_RULES_V ,
-
VIEW: SYS.ALL_SERVICES
12.1.1
-
VIEW: OKC.OKC_RG_DEF_RULES#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_RG_DEF_RULES#, status:VALID,
-
TABLE: SYS.SERVICE$
12.1.1
owner:SYS, object_type:TABLE, object_name:SERVICE$, status:VALID,
-
TABLE: SYS.SERVICE$
12.2.2
owner:SYS, object_type:TABLE, object_name:SERVICE$, status:VALID,
-
VIEW: SYS.ALL_SERVICES
12.1.1
owner:SYS, object_type:VIEW, object_name:ALL_SERVICES, status:VALID,
-
VIEW: SYS.ALL_SERVICES
12.2.2
owner:SYS, object_type:VIEW, object_name:ALL_SERVICES, status:VALID,
-
VIEW: SYS.DBA_SERVICES
12.1.1
-
VIEW: SYS.DBA_SERVICES
12.2.2
-
VIEW: APPS.OKC_RG_DEF_RULES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_RG_DEF_RULES_V, object_name:OKC_RG_DEF_RULES_V, status:VALID,
-
VIEW: APPS.OKC_RG_DEF_RULES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_RG_DEF_RULES_V, object_name:OKC_RG_DEF_RULES_V, status:VALID,
-
VIEW: SYS.DBA_SERVICES
12.2.2
owner:SYS, object_type:VIEW, object_name:DBA_SERVICES, status:VALID,
-
TABLE: OKC.OKC_RG_DEF_RULES
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_RG_DEF_RULES, object_name:OKC_RG_DEF_RULES, status:VALID,
-
VIEW: SYS.CDB_SERVICES
12.1.1
owner:SYS, object_type:VIEW, object_name:CDB_SERVICES, status:VALID,
-
VIEW: SYS.DBA_SERVICES
12.1.1
owner:SYS, object_type:VIEW, object_name:DBA_SERVICES, status:VALID,
-
VIEW: SYS.CDB_SERVICES
12.2.2
owner:SYS, object_type:VIEW, object_name:CDB_SERVICES, status:VALID,
-
TABLE: OKC.OKC_RG_DEF_RULES
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_RG_DEF_RULES, object_name:OKC_RG_DEF_RULES, status:VALID,
-
APPS.OKC_RGR_PVT SQL Statements
12.2.2
-
APPS.OKC_RGR_PVT SQL Statements
12.1.1
-
PACKAGE: APPS.OKC_RGR_PVT
12.1.1
-
PACKAGE: APPS.OKC_RGR_PVT
12.2.2
-
PACKAGE BODY: APPS.EGO_COM_ATTR_VALIDATION
12.2.2
-
APPS.OKL_RULE_EXTRACT_PVT SQL Statements
12.1.1
-
APPS.OKL_RULE_EXTRACT_PVT SQL Statements
12.2.2
-
PACKAGE: APPS.OKL_RULE_EXTRACT_PVT
12.2.2
-
PACKAGE: APPS.OKL_RULE_EXTRACT_PVT
12.1.1
-
PACKAGE BODY: APPS.OKC_RGR_PVT
12.2.2
-
PACKAGE BODY: APPS.OKC_RGR_PVT
12.1.1
-
PACKAGE BODY: APPS.OKL_RULE_EXTRACT_PVT_W
12.1.1
-
PACKAGE BODY: APPS.OKL_RULE_EXTRACT_PVT_W
12.2.2
-
APPS.OKC_RGR_PVT dependencies on OKC_RG_DEF_RULES
12.1.1
-
APPS.OKC_RGR_PVT dependencies on OKC_RG_DEF_RULES
12.2.2
-
APPS.OKC_RGR_PVT dependencies on OKC_API
12.1.1
-
APPS.OKC_RGR_PVT dependencies on OKC_API
12.2.2
-
PACKAGE BODY: APPS.OKL_RULE_EXTRACT_PVT
12.2.2
-
PACKAGE BODY: APPS.OKL_RULE_EXTRACT_PVT
12.1.1
-
APPS.OKL_RULE_EXTRACT_PVT dependencies on OKC_RG_DEF_RULES
12.2.2
-
APPS.OKL_RULE_EXTRACT_PVT dependencies on OKC_RG_DEF_RULES
12.1.1
-
APPS.EGO_COM_ATTR_VALIDATION dependencies on EGO_COL_NAME_VALUE_PAIR_OBJ
12.2.2
-
APPS.OKC_RGR_PVT dependencies on OKC_RG_DEF_RULES_V
12.1.1
-
APPS.OKC_RGR_PVT dependencies on OKC_RG_DEF_RULES
12.1.1