Results for “master_ds_rec_numbers”

24 results




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

Overview

AMS_QUERY_TEMPLATE_VL is a translation-enabled (VL) view owned by the APPS schema in Oracle E-Business Suite, delivered as part of the AMS – Marketing product family. It exposes query template information maintained through the Audience Workbench, the Oracle Marketing component used to define, store, and manage audience selection criteria. In EBS Release 12.1.1 and 12.2.2 the view is documented as VALID, meaning it is a supported dictionary object that can be referenced by reports, concurrent programs, personalizations, and external integrations that need read access to template definitions without querying the underlying transactional tables directly.

The VL suffix indicates that the view joins a language-independent base table to its translation table and filters the result by the session language. This is why TEMPLATE_NAME and DESCRIPTION are surfaced through the view: they are resolved at runtime according to USERENV('LANG'). Developers should therefore treat this object as the localization-aware entry point for query template metadata rather than as a simple projection of a single table.

Underlying Base Objects

The ETRM 12.2.2 metadata identifies two referenced base objects, both accessed through APPS synonyms: AMS_QUERY_TEMPLATE_ALL and AMS_QUERY_TEMPLATE_TL. The view definition joins them on TEMPLATE_ID and restricts the translation row to the current language:

FROM AMS_QUERY_TEMPLATE_TL T, AMS_QUERY_TEMPLATE_ALL B WHERE B.TEMPLATE_ID = T.TEMPLATE_ID AND T.LANGUAGE = USERENV('LANG')

AMS_QUERY_TEMPLATE_ALL holds the language-independent attributes of each query template, including workflow-style audit columns, seeded and enabled flags, security group, and the materialized-view related fields. AMS_QUERY_TEMPLATE_TL holds the translatable text attributes. The view selects B.ROWID as ROW_ID, giving each row a pseudo-key that reflects the base row in AMS_QUERY_TEMPLATE_ALL.

Key Columns

Common Use Cases and Queries

The view is typically used to list available query templates for an organization, to inspect a template's AQE linkage, or to review sampling and materialized-view settings before running an audience build. Because it excludes the LANGUAGE filter logic, callers never need to add translation joins themselves.

To locate a template by its Advanced Query Engine identifier:

SELECT template_id, template_name, aqe_id, enabled_flag, mv_name
FROM apps.ams_query_template_vl
WHERE aqe_id = :aqe_id;

To list enabled templates with their type and sampling configuration:

SELECT template_id, template_name, template_type, list_src_type,
sample_pct, recalc_table_status
FROM apps.ams_query_template_vl
WHERE enabled_flag = 'Y'
ORDER BY template_name;

To review materialized-view readiness for templates that use one:

SELECT template_id, template_name, mv_name, mv_available_flag,
last_update_date
FROM apps.ams_query_template_vl
WHERE mv_name IS NOT NULL;

Because the view filters translation rows by the session language, any external integration should connect with an NLS_LANG value matching a loaded language; otherwise TEMPLATE_NAME and DESCRIPTION may return no rows for templates that lack a translation in that language.