Results for “refresh_party_market_segment”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
AMS_PARTY_MKT_SEG_LOADER_PVT is a private PL/SQL package body in the APPS schema that supports the Oracle Marketing (AMS) party market segmentation infrastructure within Oracle E-Business Suite 12.1.1 and 12.2.2. Its principal business function is to build and maintain the population of parties (customers, prospects, and other trading community entities) that belong to a given marketing segment. Marketing segments in AMS are defined by a discoverer-style SQL statement that selects the qualifying parties; this package executes that SQL, materialises the resulting party list into the AMS_PARTY_MARKET_SEGMENTS table, and refreshes the associated segment metadata.
The package is classified as a PVT (private) API, meaning it is not intended as a public integration interface. It acts as the internal engine invoked by the public segmentation loader layer, and ETRM reports it as referenced by zero other database objects — it is a leaf dependency in the call graph, driven at runtime rather than statically bound into other compiled units.
Key Procedures and Functions
ETRM documents five procedures/functions in this package body. No parameter lists are published in the metadata; the descriptions below reflect documented purpose only.
- LOAD_PARTY_MKT_SEG — The primary entry point. Orchestrates the load of party market segment membership, driving the qualifying SQL against the discoverer definition and populating the segment tables.
- LOAD_PARTY_MARKET_QUALIFIER — Loads the market qualifier rows associated with a party market segment, capturing the qualification criteria that determine segment membership.
- REFRESH_PARTY_MARKET_SEGMENT — Rebuilds or refreshes the stored membership of an existing party market segment, typically after the underlying discoverer SQL or qualifier definitions change.
- REFRESH_SEGMENT_SIZE — Recalculates and updates the segment size (the count of qualifying parties), which AMS surfaces in the segmentation UI and list management screens.
- VALIDATE_SQL — Validates the user-supplied discoverer SQL before execution, guarding against malformed or unsafe statements via DBMS_SQL parsing.
Tables Accessed
The package reads and writes the core segmentation entities through APPS synonyms:
- AMS_PARTY_MARKET_SEGMENTS and AMS_PARTY_MARKET_SEGMENTS_S — the primary segment definition and membership tables where loaded parties are stored.
- AMS_DISCOVERER_SQL and AMS_ACT_DISCOVERER_ALL — hold the SQL text and discoverer definitions that define segment qualification criteria.
- HZ_RELATIONSHIPS and HZ_RELATIONSHIP_TYPES — the TCA relationship model used to resolve related parties within a segment.
- JTF_SOURCES_ALL, JTF_TERR_ALL, and JTF_TERR_USGS_ALL — source and territory/territory-usage tables supporting territory-based qualification.
- DBMS_SQL, DUAL, and PLITBLM — dynamic SQL execution and PL/SQL table utilities employed during validation and loading.
Usage Notes
Because this is a private package body with no inbound dependencies, it is not called directly by other compiled database objects. It is invoked at runtime, principally through the Marketing segmentation forms and concurrent programs that manage party market segments and list generation. Administrators trigger it when creating, editing, or refreshing a party market segment, and the refresh procedures may be scheduled as concurrent requests for large segments. Custom code should call the public AMS segmentation APIs rather than this private package, and must never bypass the VALIDATE_SQL guard when supplying discoverer SQL. Its behaviour is identical across 12.1.1 and 12.2.2, as documented in ETRM for both releases.