Results for “jtf_terr_all”

50+ results




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

Overview

JTF_TERR_ALL is the master definition table for territories within the Oracle E-Business Suite CRM Foundation (JTF) product family. It stores the complete definition of every territory maintained by the application, including the territory name, its category, hierarchical relationships, effective dates, and control flags that govern how the territory participates in the Territory Manager engine. Three categories of territories are supported: Standard, Escalation, and Template. Standard territories are the operational groupings used to assign and qualify resources, Escalation territories define routing behavior when standard qualification does not produce a winner, and Template territories serve as reusable patterns from which new territories can be generated. The table also records descriptive comments, activation windows, and the type classification of each territory.

From a Data Vault modeling perspective, the foreign key topology of JTF_TERR_ALL — dominated by recursive self-references and a stable surrogate primary key — suggests classification as a hub. The TERR_ID column functions as the enduring business key anchor for territory identity, while surrounding descriptive and flag attributes would typically be modeled as satellites in a Data Vault design.

Key Information Stored

The table is defined in the JTF schema and contains 64 documented columns in release 12.2.2. The primary key, constraint JTF_TERR_ALL_PK, is the surrogate key TERR_ID. A unique index, JTF_TERR_U1, covers (TERR_ID, ORG_ID, ZD_EDITION_NAME), which is the documented business-key candidate and reflects the multi-org and edition-aware nature of the table.

Common Use Cases and Queries

JTF_TERR_ALL is queried most often for territory hierarchy reporting, resource-to-territory assignment analysis, and troubleshooting qualification results in Territory Manager.

Listing active standard territories for an operating unit:

  • SELECT t.terr_id, t.name, t.enabled_flag, t.start_date_active, t.end_date_active FROM jtf_terr_all t WHERE t.org_id = :org_id AND t.enabled_flag = 'Y' AND SYSDATE BETWEEN t.start_date_active AND NVL(t.end_date_active, SYSDATE + 1);

Walking the territory hierarchy using the recursive parent-child relationship:

  • SELECT LEVEL, t.terr_id, t.name, t.parent_territory_id FROM jtf_terr_all t START WITH t.parent_territory_id IS NULL CONNECT BY PRIOR t.terr_id = t.parent_territory_id;

Joining to the territory type classification and to resources assigned to a territory:

  • SELECT t.name, ty.name territory_type, r.resource_id FROM jtf_terr_all t, jtf_terr_types_all ty, jtf_terr_rsc_all r WHERE t.territory_type_id = ty.territory_type_id AND t.terr_id = r.terr_id;

Typical reporting scenarios include territory utilization, escalation path auditing, template usage tracking, and reconciliation of qualification outcomes stored in JTF_TERR_RESULTS against the defining territory metadata.

Related Objects

Because TERR_ID is widely referenced, the table participates in an extensive dependency web. The most significant related objects include:

DBA activities such as purge, security group filtering, and territory engine tuning should account for these recursive and downstream references to preserve referential integrity.