Results for “ams_query_template_all”

50+ results




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

Overview

The AMS_QUERY_TEMPLATE_ALL table resides in the AMS (Marketing) schema and stores query template definitions used by the Oracle Marketing Audience Workbench. In Oracle EBS 12.1.1 and 12.2.2, this table underpins the segmentation and audience selection capabilities of the Advanced Marketing module, where marketers define reusable query criteria that filter customer, prospect, and contact populations for campaigns. Each row represents a single query template configuration, including the source objects, sampling parameters, and materialized view artifacts associated with the template.

From a Data Vault modeling perspective, the metadata classifies this object heuristically as standalone, which suggests it behaves as an independent reference or configuration entity rather than a transactional link or dependent satellite. Its single documented foreign key to FND_SECURITY_GROUPS indicates that security partitioning is applied at the multi-org/security-group level, reinforcing its role as a controlled configuration reference rather than a join-heavy fact table.

Key Information Stored

The table contains 26 documented columns. The most significant include:

Common Use Cases and Queries

Typical use cases include auditing active query templates, verifying materialized view availability, and reporting on sampling configuration. A common reporting query lists enabled templates with their security group context:

SELECT qt.template_id, qt.template_type, qt.mv_name, qt.enabled_flag, qt.security_group_id FROM ams.ams_query_template_all qt WHERE qt.enabled_flag = 'Y';

A join to security groups resolves partition ownership:

SELECT qt.template_id, fsg.security_group_name FROM ams.ams_query_template_all qt, fnd_security_groups fsg WHERE qt.security_group_id = fsg.security_group_id;

Administrators also query by MV_AVAILABLE_FLAG to diagnose stale or missing materialized views that can block campaign audience generation.

Related Objects