Search Results code sql pour dire de ne prendre que les lundis
The JTY_TAE_ATTR_PRODUCTS_SQL
table is a critical component within Oracle E-Business Suite (EBS) versions 12.1.1 and 12.2.2, specifically designed to support the Territory Assignment Engine (TAE) module. This table plays a pivotal role in managing attribute-based territory assignments, which are essential for sales force automation, marketing, and customer segmentation. Below is a detailed analysis of its structure, functionality, and integration within Oracle EBS.
Table Overview
TheJTY_TAE_ATTR_PRODUCTS_SQL
table stores SQL queries or conditions used to define product-based attributes for territory assignment rules. It acts as a repository for dynamic queries that evaluate whether a product (or set of products) meets specific criteria during territory assignment processes. This table is part of the JTY
(Java Territory) schema, which underpins the TAE functionality in Oracle EBS.
Key Columns and Structure
While the exact schema may vary slightly between EBS 12.1.1 and 12.2.2, the table typically includes the following columns:- ATTR_PRODUCT_SQL_ID: Primary key identifier for the SQL query record.
- RULE_ID: Foreign key linking to the territory assignment rule in
JTY_TERR_RULES_B
. - PRODUCT_ATTR_SQL: The actual SQL query or condition used to evaluate product attributes.
- CREATED_BY and LAST_UPDATED_BY: Audit columns tracking user modifications.
- CREATION_DATE and LAST_UPDATE_DATE: Timestamps for record lifecycle management.
Functional Role
The table enables dynamic territory assignments by:- Product-Based Filtering: Stores SQL snippets that evaluate product attributes (e.g., category, price range) to determine eligibility for territory inclusion.
- Rule Execution: During territory assignment runs, the TAE engine executes these queries to match products with predefined territory criteria.
- Integration with TAE: Works alongside tables like
JTY_TERR_RULES_B
andJTY_TAE_ATTR_CUSTOMERS_SQL
to form a comprehensive rule-based assignment framework.
Technical Implementation
In Oracle EBS 12.1.1 and 12.2.2:- Performance: Queries in this table must be optimized to avoid performance bottlenecks during mass territory assignments.
- Security: SQL injection risks are mitigated through internal validation, as queries are generated/administered via TAE’s UI rather than direct DML.
- Upgrade Considerations: Between 12.1.1 and 12.2.2, changes to the TAE engine may impact how queries are stored or executed, though backward compatibility is generally maintained.
Usage Scenarios
Example use cases include:- Assigning territories based on product hierarchies (e.g., "All premium products in the Northeast region").
- Dynamic sales team allocations for product launches by matching attributes like
PRODUCT_CATEGORY = 'NEW_LAUNCH'
.
Conclusion
TheJTY_TAE_ATTR_PRODUCTS_SQL
table is a cornerstone of Oracle EBS’s territory management capabilities, enabling flexible, query-driven product assignments. Its design reflects Oracle’s emphasis on configurability and scalability, particularly in complex sales environments. Administrators should ensure queries are thoroughly tested and indexed to maintain system performance during high-volume assignment processes.
-
Lookup Type: JTF_TASK_ESC_LEVEL
12.1.1
product: JTF - CRM Foundation , meaning: Escalation Levels , description: Escalation Levels ,
-
Lookup Type: JTF_TASK_ESC_LEVEL
12.2.2
product: JTF - CRM Foundation , meaning: Escalation Levels , description: Escalation Levels ,
-
View: JTF_AM_TASK_DTLS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_AM_TASK_DTLS_V, object_name:JTF_AM_TASK_DTLS_V, status:VALID, product: JTF - CRM Foundation , description: This is a view to get task details for Assignments , implementation_dba_data: APPS.JTF_AM_TASK_DTLS_V ,
-
View: JTF_AM_TASK_DTLS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_AM_TASK_DTLS_V, object_name:JTF_AM_TASK_DTLS_V, status:VALID, product: JTF - CRM Foundation , description: This is a view to get task details for Assignments , implementation_dba_data: APPS.JTF_AM_TASK_DTLS_V ,
-
View: JTF_FM_MASTER_DOC_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_FM_MASTER_DOC_V, object_name:JTF_FM_MASTER_DOC_V, status:VALID, product: JTF - CRM Foundation , description: View to show the content ID's and queries for master documents , implementation_dba_data: APPS.JTF_FM_MASTER_DOC_V ,
-
View: JTF_FM_MASTER_DOC_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_FM_MASTER_DOC_V, object_name:JTF_FM_MASTER_DOC_V, status:VALID, product: JTF - CRM Foundation , description: View to show the content ID's and queries for master documents , implementation_dba_data: APPS.JTF_FM_MASTER_DOC_V ,
-
View: JTF_QUAL_TYPE_DENORM_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_QUAL_TYPE_DENORM_V, object_name:JTF_QUAL_TYPE_DENORM_V, status:VALID, product: JTF - CRM Foundation , description: De-normalized view of JTF_QUAL_TYPES table. , implementation_dba_data: APPS.JTF_QUAL_TYPE_DENORM_V ,
-
View: JTF_QUAL_TYPE_DENORM_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_QUAL_TYPE_DENORM_V, object_name:JTF_QUAL_TYPE_DENORM_V, status:VALID, product: JTF - CRM Foundation , description: De-normalized view of JTF_QUAL_TYPES table. , implementation_dba_data: APPS.JTF_QUAL_TYPE_DENORM_V ,
-
Lookup Type: JTFB_DATA_SOURCE_TYPE
12.1.1
product: JTF - CRM Foundation , meaning: JTFB DATA SOURCE TYPE , description: Various types of data sources supported by Declarative Component Framework ,
-
Lookup Type: JTFB_DATA_SOURCE_TYPE
12.2.2
product: JTF - CRM Foundation , meaning: JTFB DATA SOURCE TYPE , description: Various types of data sources supported by Declarative Component Framework ,
-
Lookup Type: JTFB_LOV_DATA_SOURCE_TYPE
12.1.1
product: JTF - CRM Foundation , meaning: JTFB_LOV_DATA_SOURCE_TYPE , description: Various types of data sources supported by Declarative Component Framework for LOV Component ,
-
Lookup Type: JTFB_LOV_DATA_SOURCE_TYPE
12.2.2
product: JTF - CRM Foundation , meaning: JTFB_LOV_DATA_SOURCE_TYPE , description: Various types of data sources supported by Declarative Component Framework for LOV Component ,
-
Lookup Type: JTFB_CALL_TYPE
12.1.1
product: JTF - CRM Foundation , meaning: JTFB CALL TYPE , description: Various types of API Calls used to derive the value ,
-
Lookup Type: JTFB_CALL_TYPE
12.2.2
product: JTF - CRM Foundation , meaning: JTFB CALL TYPE , description: Various types of API Calls used to derive the value ,
-
Lookup Type: JTFB_PREPROCESSING_TYPE
12.2.2
product: JTF - CRM Foundation , meaning: JTFB PREPROCESSING TYPE , description: Various types of pre-processing supported in Declarative Component, before Component data is populated ,
-
Lookup Type: JTFB_PREPROCESSING_TYPE
12.1.1
product: JTF - CRM Foundation , meaning: JTFB PREPROCESSING TYPE , description: Various types of pre-processing supported in Declarative Component, before Component data is populated ,
-
Table: JTY_TAE_ATTR_PRODUCTS_SQL
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTY_TAE_ATTR_PRODUCTS_SQL, object_name:JTY_TAE_ATTR_PRODUCTS_SQL, status:VALID, product: JTF - CRM Foundation , description: This table stores attribute product SQL for TAE. , implementation_dba_data: JTF.JTY_TAE_ATTR_PRODUCTS_SQL ,
-
Table: JTF_TAE_QUAL_PRODUCTS_HINTS
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_TAE_QUAL_PRODUCTS_HINTS, object_name:JTF_TAE_QUAL_PRODUCTS_HINTS, status:VALID, product: JTF - CRM Foundation , description: This table stores the SQL hints for the qualifier combination. , implementation_dba_data: JTF.JTF_TAE_QUAL_PRODUCTS_HINTS ,
-
Table: JTY_TRANS_USG_PGM_SQL
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTY_TRANS_USG_PGM_SQL, object_name:JTY_TRANS_USG_PGM_SQL, status:VALID, product: JTF - CRM Foundation , description: This table stores program SQL for bulk TAE. , implementation_dba_data: JTF.JTY_TRANS_USG_PGM_SQL ,
-
Table: JTY_TRANS_USG_PGM_SQL
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTY_TRANS_USG_PGM_SQL, object_name:JTY_TRANS_USG_PGM_SQL, status:VALID, product: JTF - CRM Foundation , description: This table stores program SQL for bulk TAE. , implementation_dba_data: JTF.JTY_TRANS_USG_PGM_SQL ,
-
Table: JTY_TAE_ATTR_PRODUCTS_SQL
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTY_TAE_ATTR_PRODUCTS_SQL, object_name:JTY_TAE_ATTR_PRODUCTS_SQL, status:VALID, product: JTF - CRM Foundation , description: This table stores attribute product SQL for TAE. , implementation_dba_data: JTF.JTY_TAE_ATTR_PRODUCTS_SQL ,
-
Table: JTF_TAE_QUAL_PRODUCTS_HINTS
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_TAE_QUAL_PRODUCTS_HINTS, object_name:JTF_TAE_QUAL_PRODUCTS_HINTS, status:VALID, product: JTF - CRM Foundation , description: This table stores the SQL hints for the qualifier combination. , implementation_dba_data: JTF.JTF_TAE_QUAL_PRODUCTS_HINTS ,
-
Table: JTY_DEA_ATTR_PRODUCTS_SQL
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTY_DEA_ATTR_PRODUCTS_SQL, object_name:JTY_DEA_ATTR_PRODUCTS_SQL, status:VALID, product: JTF - CRM Foundation , description: This table stores attribute product SQL for date effectivity assignment. , implementation_dba_data: JTF.JTY_DEA_ATTR_PRODUCTS_SQL ,
-
Table: JTY_DEA_ATTR_PRODUCTS_SQL
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTY_DEA_ATTR_PRODUCTS_SQL, object_name:JTY_DEA_ATTR_PRODUCTS_SQL, status:VALID, product: JTF - CRM Foundation , description: This table stores attribute product SQL for date effectivity assignment. , implementation_dba_data: JTF.JTY_DEA_ATTR_PRODUCTS_SQL ,
-
Table: JTF_PERZ_QUERY_RAW_SQL
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_PERZ_QUERY_RAW_SQL, object_name:JTF_PERZ_QUERY_RAW_SQL, status:VALID, product: JTF - CRM Foundation , description: JTF_PERZ_QUERY_RAW_SQL stores the SQL string associated with a personalized query object. , implementation_dba_data: JTF.JTF_PERZ_QUERY_RAW_SQL ,
-
Table: JTF_PERZ_QUERY_RAW_SQL
12.1.1
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_PERZ_QUERY_RAW_SQL, object_name:JTF_PERZ_QUERY_RAW_SQL, status:VALID, product: JTF - CRM Foundation , description: JTF_PERZ_QUERY_RAW_SQL stores the SQL string associated with a personalized query object. , implementation_dba_data: JTF.JTF_PERZ_QUERY_RAW_SQL ,
-
Concurrent Program: JTFRSEMP
12.1.1
execution_filename: jtf_rs_conc_res_pub.synchronize_employee , product: JTF - CRM Foundation , user_name: JTFRSEMP , description: Synchronize Employees , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSERDEN
12.1.1
execution_filename: jtfrsbed , product: JTF - CRM Foundation , user_name: JTFRSERDEN , description: Flatten Employee Hierarchy , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSEMP
12.2.2
execution_filename: jtf_rs_conc_res_pub.synchronize_employee , product: JTF - CRM Foundation , user_name: JTFRSEMP , description: Synchronize Employees , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFTRMVR
12.1.1
execution_filename: jtftrmvr , product: JTF - CRM Foundation , user_name: JTFTRMVR , description: Territory denormalization refresh. , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSIMPUSER
12.1.1
execution_filename: jtf_rs_import_user_pub.crt_bulk_import , product: JTF - CRM Foundation , user_name: JTFRSIMPUSER , description: Employee Import , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSIMPUSER
12.2.2
execution_filename: jtf_rs_import_user_pub.crt_bulk_import , product: JTF - CRM Foundation , user_name: JTFRSIMPUSER , description: Employee Import , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSERDEN
12.2.2
execution_filename: jtfrsbed , product: JTF - CRM Foundation , user_name: JTFRSERDEN , description: Flatten Employee Hierarchy , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: CACSYNCP
12.2.2
execution_filename: cacsyncpurge , product: JTF - CRM Foundation , user_name: CAC SYNC PURGE/CLEANUP UTILITY , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFTRMVR
12.2.2
execution_filename: jtftrmvr , product: JTF - CRM Foundation , user_name: JTFTRMVR , description: Territory denormalization refresh. , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: CACSYNCP
12.1.1
execution_filename: cacsyncpurge , product: JTF - CRM Foundation , user_name: CAC SYNC PURGE/CLEANUP UTILITY , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSBRM
12.2.2
execution_filename: jtfrsbrm , product: JTF - CRM Foundation , user_name: Build reporting manager , description: Build reporting manager , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSGRP
12.2.2
execution_filename: jtf_rs_group_report_pub.query_group , product: JTF - CRM Foundation , user_name: JTFRSGRP , description: Group Audit Report , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSBGD
12.1.1
execution_filename: jtfrsbgd , product: JTF - CRM Foundation , user_name: Flatten group hierarchy , description: Flatten group hierarchy , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSREPMGR
12.1.1
execution_filename: jtf_rs_conc_repmgr_pub.populate_repmgr , product: JTF - CRM Foundation , user_name: JTFRSREPMGR , description: Populate Reporting Manager , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSDGT
12.1.1
execution_filename: jtfrsdgt , product: JTF - CRM Foundation , user_name: JTFRSDGT , description: Resource Manager Diagnostic Tool , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSGRP
12.1.1
execution_filename: jtf_rs_group_report_pub.query_group , product: JTF - CRM Foundation , user_name: JTFRSGRP , description: Group Audit Report , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSBGD
12.2.2
execution_filename: jtfrsbgd , product: JTF - CRM Foundation , user_name: Flatten group hierarchy , description: Flatten group hierarchy , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSHIR
12.2.2
execution_filename: jtf_rs_group_report_pub.query_group_hierarchy , product: JTF - CRM Foundation , user_name: JTFRSHIR , description: Group Structure Report , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSWSN
12.1.1
execution_filename: jtf_rs_conc_wf_pub.synchronize_wf_roles , product: JTF - CRM Foundation , user_name: JTFRSWFSYN , description: Synchronize Workflow Roles , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSSUP
12.1.1
execution_filename: jtf_rs_conc_res_pub.synchronize_supp_contact , product: JTF - CRM Foundation , user_name: JTFRSSUP , description: Synchronize Supplier Contacts , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTYCOLM
12.1.1
execution_filename: JTY_COLLECTION_MIGRATION_PKG.UPDATE_TERR_RECORD , product: JTF - CRM Foundation , user_name: JTYCOLM , description: Territory Collection Migration , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSBRM
12.1.1
execution_filename: jtfrsbrm , product: JTF - CRM Foundation , user_name: Build reporting manager , description: Build reporting manager , argument_method: Standard , enabled: Yes , execution_method: SQL*Plus ,
-
Concurrent Program: JTFRSHIR
12.1.1
execution_filename: jtf_rs_group_report_pub.query_group_hierarchy , product: JTF - CRM Foundation , user_name: JTFRSHIR , description: Group Structure Report , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: JTFRSWSN
12.2.2
execution_filename: jtf_rs_conc_wf_pub.synchronize_wf_roles , product: JTF - CRM Foundation , user_name: JTFRSWFSYN , description: Synchronize Workflow Roles , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,