Search Results final_sql_string




Overview

AMS.AMS_EXP_LIST_HEADERS_ALL is an Oracle E-Business Suite table in the Oracle Marketing (AMS) schema that stores the name and other descriptive details about exported data. In EBS 12.1.1 and 12.2.2 it functions as the header repository for export list definitions produced by the marketing export subsystem, capturing the template, ownership, status, scheduling, and — per the column FINAL_SQL_STRING — the resolved SQL statement used to generate the export. The table resides in tablespace APPS_TS_TX_DATA with PCTFREE 10 and is classified as VALID.

Under a heuristic Data Vault classification mined from its foreign-key structure, this object presents as a standalone entity — effectively a hub-style anchor for export header identity, with descriptive and scheduling attributes behaving as satellite-style payload. The classification is a modeling suggestion rather than a documented derivation; the only documented outbound reference is SECURITY_GROUP_IDFND_SECURITY_GROUPS, and no downstream dependents were captured.

Key Information Stored

The table carries 30 documented columns; the following are the most significant.

Common Use Cases and Queries

Typical scenarios include auditing active exports, tracing an export back to its template, and inspecting the generated SQL.

  • Listing recent export headers: SELECT export_list_header_id, name, status_code, status_date FROM ams.ams_exp_list_headers_all WHERE status_code = 'ACTIVE' ORDER BY status_date DESC;
  • Retrieving the resolved SQL for a named export: SELECT name, final_sql_string FROM ams.ams_exp_list_headers_all WHERE name = :name;
  • Joining to templates: SELECT h.name, t.template_name FROM ams.ams_exp_list_headers_all h, ams.ams_exp_template t WHERE h.exp_template_id = t.exp_template_id;
  • Correlating exports with concurrent requests via REQUEST_ID against FND_CONCURRENT_REQUESTS.
  • Reporting recurring exports by filtering on REPEAT_INTERVAL, REPEAT_UNIT, and REPEAT_MODE.

Related Objects

  • AMS.AMS_EXP_TEMPLATE — referenced through EXP_TEMPLATE_ID; the template that defines export structure.
  • FND_SECURITY_GROUPS — referenced through SECURITY_GROUP_ID (the sole documented FK).
  • AMS.AMS_EXP_LIST_HEADERS_ALL — self-reference via PARENT_EXP_HEADER_ID for parent/child export hierarchies.
  • FND_CONCURRENT_REQUESTS — correlates via REQUEST_ID to identify the concurrent program run.
  • FND_USER — resolves OWNER_USER_ID and WHO columns to user identities.
  • FND_APPLICATION — resolves VIEW_APPLICATION_ID to the viewing application.