Search Results msc_manage_plan_partitions
Overview
MSC_MANAGE_PLAN_PARTITIONS is an APPS-owned PL/SQL package body in the Oracle E-Business Suite Advanced Supply Chain Planning (ASCP) schema. Its purpose is to manage the physical and logical partitioning of planning data structures used by MSC (Material Planning / Supply Chain Planning) tables, particularly those tied to plans and planning instances. Oracle's planning products store large volumes of transient planning data — supply, demand, exceptions, and plan output — and partitioning is used to segregate that data by plan or by planning instance so that daily planning runs can truncate or drop partitions rather than perform expensive DELETE operations. This package provides the programmatic infrastructure that creates, drops, and analyzes those partitions. It is an internal utility package rather than a business-facing API; it is classified as OTHER in the ETRM metadata and is not referenced by any other database object, indicating that it is invoked primarily from concurrent programs, DDL maintenance routines, or installation scripts rather than from other PL/SQL packages.
Key Procedures and Functions
The package exposes 13 documented procedures and functions. GET_PLAN and GET_INSTANCE retrieve plan and planning-instance identifiers respectively, resolving the plan or instance whose partitions are to be managed. GET_PARTITION_NAME and GET_PARTITION_NUMBER derive the naming convention and ordinal position for a partition, ensuring consistent identifiers across create and drop operations.
- CREATE_INST_PARTITION — creates a partition on an MSC instance-level table.
- CREATE_EXIST_PLAN_PARTITIONS — creates partitions for plans that already exist in MSC_PLANS, used when partitioning is enabled after plans have been defined.
- CREATE_EXIST_INST_PARTITIONS — the instance-level counterpart, creating partitions for existing planning instances.
- CREATE_PARTITIONS — the overarching routine that drives partition creation, likely coordinating plan and instance partition generation.
- CREATE_FORCE_PARTITION and DROP_FORCE_PARTITION — create or remove a partition unconditionally, bypassing normal existence checks; used for recovery or administrative override.
- PURGE_PARTITION — clears data from an existing partition, typically between planning runs.
- DROP_EXIST_PLAN_PARTITIONS and DROP_EXIST_INST_PARTITIONS — remove partitions for existing plans and instances, used during cleanup or when partitioning is disabled.
- ANALYZE_PLAN — invokes statistics gathering, consistent with the dependency on FND_STATS, so the optimizer has current statistics after partition changes.
No parameter lists are documented; only purposes are inferred from naming and the dependencies listed.
Tables Accessed
The package reads and writes MSC_PLANS and MSC_PLANS_S to identify plans, and MSC_APPS_INSTANCES and MSC_APPS_INSTANCES_S to identify planning instances. MSC_PLAN_PARTITIONS and MSC_INST_PARTITIONS are the core metadata tables that record which partitions exist for each plan and instance; the package maintains these records in step with the physical DDL. DDL is executed through AD_DDL (the AD utilities DDL interface) and DBA_TABLES is queried to verify table and partition existence. FND_ORACLE_USERID and FND_PRODUCT_INSTALLATIONS supply installation and schema context, while DUAL is used for singleton queries. FND_API, FND_GLOBAL, FND_MESSAGE, FND_PROFILE, and FND_STATS provide standard error handling, session context, messaging, profile lookups, and statistics collection.
Usage Notes
MSC_MANAGE_PLAN_PARTITIONS is an internal infrastructure package, so it is normally invoked indirectly. In a 12.1.1 or 12.2.2 environment it is called during planning instance setup and plan creation, during the partition maintenance phase of the ASCP concurrent programs, and during patching or installation when partition schemes must be created or dropped. Because it performs DDL and requires privileges on AD_DDL and DBA_TABLES, invocations must run as a user with the necessary schema and dictionary access. Custom code should avoid calling this package directly; instead it should rely on the supported planning APIs and concurrent programs that manage plan and instance lifecycle, leaving partition management to this package.
-
PACKAGE BODY: APPS.MSC_MANAGE_PLAN_PARTITIONS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_MANAGE_PLAN_PARTITIONS, status:VALID,
-
PACKAGE: APPS.MSC_MANAGE_PLAN_PARTITIONS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_MANAGE_PLAN_PARTITIONS, status:VALID,
-
PACKAGE: APPS.MSC_MANAGE_PLAN_PARTITIONS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_MANAGE_PLAN_PARTITIONS, status:VALID,
-
PACKAGE BODY: APPS.MSC_MANAGE_PLAN_PARTITIONS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_MANAGE_PLAN_PARTITIONS, status:VALID,
-
SYNONYM: APPS.MSC_PLANS_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_PLANS_S, status:VALID,
-
SYNONYM: APPS.MSC_INST_PARTITIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_INST_PARTITIONS, status:VALID,
-
PACKAGE BODY: APPS.MSC_ANALYSE_TABLES_PK
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_ANALYSE_TABLES_PK, status:VALID,
-
PACKAGE: APPS.MSC_POST_PRO
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_POST_PRO, status:VALID,
-
SYNONYM: APPS.MSC_APPS_INSTANCES_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_APPS_INSTANCES_S, status:VALID,
-
SYNONYM: APPS.MSC_APPS_INSTANCES_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_APPS_INSTANCES_S, status:VALID,
-
SYNONYM: APPS.MSC_PLAN_PARTITIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_PLAN_PARTITIONS, status:VALID,
-
SYNONYM: APPS.MSC_PLANS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_PLANS_S, status:VALID,
-
SYNONYM: APPS.MSC_INST_PARTITIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_INST_PARTITIONS, status:VALID,
-
SYNONYM: APPS.MSC_PLAN_PARTITIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_PLAN_PARTITIONS, status:VALID,
-
PACKAGE BODY: APPS.MSC_COPY_PLAN_OPTIONS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_COPY_PLAN_OPTIONS, status:VALID,
-
PACKAGE BODY: APPS.MSC_COPY_PLAN_OPTIONS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_COPY_PLAN_OPTIONS, status:VALID,
-
PACKAGE BODY: APPS.MSC_ANALYSE_TABLES_PK
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_ANALYSE_TABLES_PK, status:VALID,
-
PACKAGE BODY: APPS.MSC_PURGE_LID
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_PURGE_LID, status:VALID,
-
PACKAGE: APPS.MSC_POST_PRO
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_POST_PRO, status:VALID,
-
PACKAGE BODY: APPS.MSC_PURGE_LID
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_PURGE_LID, status:VALID,
-
PACKAGE BODY: APPS.MSC_CL_EXCHANGE_PARTTBL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CL_EXCHANGE_PARTTBL, status:VALID,
-
PACKAGE BODY: APPS.MSC_CL_EXCHANGE_PARTTBL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CL_EXCHANGE_PARTTBL, status:VALID,
-
PACKAGE BODY: APPS.MSC_CL_COLLECTION
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CL_COLLECTION, status:VALID,
-
SYNONYM: PUBLIC.DBA_TABLES
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DBA_TABLES, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.MSC_CL_COLLECTION
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CL_COLLECTION, status:VALID,
-
SYNONYM: PUBLIC.DBA_TABLES
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DBA_TABLES, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.MSC_MANAGE_PLAN_PARTITIONS
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.MSC_MANAGE_PLAN_PARTITIONS
12.2.2
-
SYNONYM: APPS.MSC_APPS_INSTANCES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_APPS_INSTANCES, status:VALID,
-
PACKAGE: APPS.MSC_UTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_UTIL, status:VALID,
-
SYNONYM: PUBLIC.AD_DDL
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:AD_DDL, status:VALID,
-
SYNONYM: APPS.MSC_APPS_INSTANCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_APPS_INSTANCES, status:VALID,
-
SYNONYM: PUBLIC.AD_DDL
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:AD_DDL, status:VALID,
-
PACKAGE: APPS.MSC_UTIL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_UTIL, status:VALID,
-
SYNONYM: APPS.MSC_PLANS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_PLANS, status:VALID,
-
PACKAGE: APPS.FND_STATS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_STATS, status:VALID,
-
SYNONYM: APPS.MSC_PLANS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_PLANS, status:VALID,
-
SYNONYM: APPS.FND_PRODUCT_INSTALLATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_PRODUCT_INSTALLATIONS, status:VALID,
-
SYNONYM: APPS.FND_PRODUCT_INSTALLATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_PRODUCT_INSTALLATIONS, status:VALID,
-
SYNONYM: APPS.FND_ORACLE_USERID
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_ORACLE_USERID, status:VALID,
-
SYNONYM: APPS.FND_ORACLE_USERID
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_ORACLE_USERID, status:VALID,
-
PACKAGE: APPS.FND_STATS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_STATS, status:VALID,
-
APPS.MSC_CL_COLLECTION dependencies on MSC_MANAGE_PLAN_PARTITIONS
12.1.1
-
APPS.MSC_MANAGE_PLAN_PARTITIONS dependencies on MSC_MANAGE_PLAN_PARTITIONS
12.2.2
-
APPS.MSC_MANAGE_PLAN_PARTITIONS dependencies on MSC_MANAGE_PLAN_PARTITIONS
12.1.1
-
APPS.MSC_COPY_PLAN_OPTIONS dependencies on MSC_MANAGE_PLAN_PARTITIONS
12.2.2