Search Results ad_mv
Overview
AD_MV is an Oracle E-Business Suite database package owned by the APPS schema that provides a controlled, centralized interface for manipulating Oracle materialized views (MVs, historically termed snapshots) used to support Oracle Applications reporting and summary data structures. It is declared with AUTHID CURRENT_USER, meaning its unqualified database object references resolve against the invoking schema's privileges rather than the definer's, which is consistent with a utility package designed to be called from a variety of application contexts. The package encapsulates the raw DDL required to create, alter, and drop materialized views and their associated indexes, applying standard EBS tablespace conventions through its global variables g_mv_data_tablespace and g_mv_index_tablespace. Three package constants—mv_create, mv_alter, and mv_drop—encode the operation type passed to the internal DDL drivers. The package dates from the 11i era (the source header shows version 115.6) and remains present in both 12.1.1 and 12.2.2.
Key Procedures and Functions
Six documented procedures constitute the public API. Users searching for "drop_mv" are directed to the DROP_MV procedure, which removes an existing materialized view by name using a supplied statement.
- CREATE_MV — Creates a materialized view from a supplied statement, with a boolean flag indicating whether the statement is a long-running operation.
- CREATE_MV2 — An overload variant of CREATE_MV that accepts an integer (rather than boolean) long-statement indicator, provided for callers binding numeric flags.
- ALTER_MV — Applies an alteration statement to an existing materialized view.
- DROP_MV — Drops the named materialized view using the supplied statement text.
- DO_MV_DDL — The generic DDL driver taking an operation code (mv_create, mv_alter, or mv_drop), the MV name, the statement text, and a boolean execute flag.
- DO_MV_DDL2 — The numerically flagged counterpart to DO_MV_DDL, accepting an integer execute indicator.
The parameter lists are not restated here to avoid speculation; the documented signature pattern is (operation, mview name, statement, execute flag).
Tables Accessed
The package references several data dictionary and EBS administrative views through APPS synonyms. FND_ORACLE_USERID and DBA_USERS are consulted to resolve the Oracle schema/user identity that owns or executes the MV operations, a common requirement in a multi-schema EBS environment. USER_MVIEWS and USER_OBJECTS are queried to determine whether a materialized view already exists and to inspect its state before create, alter, or drop actions are executed. USER_TABLES is used to verify the underlying container table. PLITBLM, the PL/SQL table-to-index-by conversion utility, supports internal collection handling. DBMS_SQL and DBMS_UTILITY provide dynamic SQL execution and identifier parsing for the DDL strings being processed.
Usage Notes
AD_MV is not an end-user-facing API and is not typically invoked from an Oracle Forms screen. It is called by other PL/SQL packages—documentation records it as referenced by two other packages—which assemble the appropriate MV DDL and delegate execution to AD_MV so that tablespace assignment, existence checks, and dynamic SQL execution follow a single consistent path. Custom extensions that need to build materialized views within the EBS data model should call AD_MV rather than issuing DDL directly, so that the same tablespace globals and dictionary validations apply. Callers must ensure the statement text is syntactically complete and that the invoking user holds the privileges required, since AUTHID CURRENT_USER executes the DDL under the caller's authority.
-
PACKAGE: APPS.AD_MV
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AD_MV, status:VALID,
-
PACKAGE: APPS.AD_MV
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AD_MV, status:VALID,
-
PACKAGE BODY: APPS.AD_MV
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AD_MV, status:VALID,
-
PACKAGE BODY: APPS.AD_MV
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AD_MV, status:VALID,
-
PACKAGE: APPS.AD_MV
12.2.2
-
PACKAGE: APPS.AD_MV
12.1.1
-
SYNONYM: PUBLIC.USER_MVIEWS
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:USER_MVIEWS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: PUBLIC.USER_MVIEWS
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:USER_MVIEWS, status:VALID,
-
PACKAGE BODY: APPS.POA_MV_UTILS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:POA_MV_UTILS_PKG, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.AD_ZD_MVIEW
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AD_ZD_MVIEW, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.OKI_DBI_MV_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKI_DBI_MV_UTIL_PVT, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: PUBLIC.DBA_USERS
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DBA_USERS, status:VALID,
-
PACKAGE BODY: APPS.FEM_BI_DIMENSION_UTILS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FEM_BI_DIMENSION_UTILS_PKG, status:VALID,
-
PACKAGE BODY: APPS.MSC_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_UTIL, status:VALID,
-
SYNONYM: PUBLIC.USER_TABLES
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:USER_TABLES, status:VALID,
-
PACKAGE: APPS.AD_TSPACE_UTIL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AD_TSPACE_UTIL, status:VALID,
-
PACKAGE BODY: APPS.MRP_CL_REFRESH_SNAPSHOT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_CL_REFRESH_SNAPSHOT, status:VALID,
-
PACKAGE: APPS.AD_TSPACE_UTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AD_TSPACE_UTIL, status:VALID,
-
SYNONYM: PUBLIC.USER_TABLES
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:USER_TABLES, status:VALID,
-
PACKAGE: APPS.AD_ZD_MVIEW
12.2.2
-
SYNONYM: PUBLIC.USER_OBJECTS
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:USER_OBJECTS, status:VALID,
-
PACKAGE BODY: APPS.AD_MV
12.1.1
-
PACKAGE BODY: APPS.AD_MV
12.2.2
-
SYNONYM: PUBLIC.USER_OBJECTS
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:USER_OBJECTS, status:VALID,
-
SYNONYM: APPS.FND_ORACLE_USERID
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_ORACLE_USERID, status:VALID,
-
SYNONYM: PUBLIC.DBMS_LOCK
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_LOCK, status:VALID,
-
APPS.FEM_BI_DIMENSION_UTILS_PKG dependencies on AD_MV
12.1.1
-
APPS.OKI_DBI_MV_UTIL_PVT dependencies on AD_MV
12.1.1
-
APPS.AD_MV dependencies on AD_MV
12.1.1
-
APPS.POA_MV_UTILS_PKG dependencies on AD_MV
12.1.1
-
APPS.AD_MV dependencies on AD_MV
12.2.2
-
APPS.MRP_CL_REFRESH_SNAPSHOT dependencies on AD_MV
12.2.2
-
APPS.MSC_UTIL dependencies on AD_MV
12.2.2
-
SYNONYM: PUBLIC.DBMS_UTILITY
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_UTILITY, status:VALID,
-
SYNONYM: PUBLIC.DBMS_UTILITY
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_UTILITY, status:VALID,
-
PACKAGE BODY: APPS.AD_ZD_MVIEW
12.2.2
-
APPS.AD_MV dependencies on AD_TSPACE_UTIL
12.1.1
-
APPS.AD_MV dependencies on AD_TSPACE_UTIL
12.2.2
-
APPS.AD_MV dependencies on DBMS_LOCK
12.1.1
-
APPS.AD_MV dependencies on DBMS_SQL
12.2.2
-
APPS.AD_ZD_MVIEW dependencies on DBMS_METADATA
12.2.2
-
SYNONYM: PUBLIC.DBMS_SQL
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_SQL, status:VALID,
-
SYNONYM: PUBLIC.DBMS_SQL
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_SQL, status:VALID,
-
PACKAGE: SYS.DBMS_STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:DBMS_STANDARD, status:VALID,
-
PACKAGE BODY: APPS.BSC_MV_ADAPTER
12.1.1
-
PACKAGE: SYS.DBMS_STANDARD
12.2.2
owner:SYS, object_type:PACKAGE, object_name:DBMS_STANDARD, status:VALID,