Search Results set_dim_recursive




Overview

APPS.BSC_AW_BSC_METADATA is an internal PL/SQL package belonging to the Oracle Balanced Scorecard (BSC) Analytics Warehouse (AW) metadata layer. Its role is to resolve the structural metadata that defines how a Balanced Scorecard KPI is materialized in the analytics warehouse — specifically the dimensions, dimension sets, dimension levels, measures, calendars, and data sources associated with each KPI. The package acts as a bridge between the configuration stored in the BSC repository and the generated analytics objects, converting configured KPI definitions into the dimension hierarchies, level lists, and recursive parent-child relationships required to build and query aggregated data.

The package header carries the signature /*$Header: BSCAWMDS.pls 120.7 2006/01/14 20:54 vsurendr noship $*/, indicating a shipped, Oracle-owned object that is not intended for direct customer modification. The noship marker reflects that BSC module code is distributed with the applications rather than as standalone shipping code. In release 12.1.1 the package is owned by APPS and classified as OTHER in the ETRM repository, with no public API designation.

Key Procedures and Functions

The documented interface exposes approximately 39 procedures and functions. The principal groupings are:

The package maintains runtime state through globals such as g_debug, g_stmt, g_count, and g_exception, and several routines use NOCOPY out parameters to return large PL/SQL tables efficiently.

Tables Accessed

The ETRM record lists two referenced objects through APPS synonyms: DBMS_SQL and PLITBLM. DBMS_SQL is used for dynamic SQL construction, consistent with the g_stmt varchar2(32000) global and the generation of data source and view definitions at runtime. PLITBLM is the standard Oracle PL/SQL-supplied package used for index-by table manipulation, supporting the varchar2_table level and dimension lists passed between procedures. No application base tables are disclosed in the documented metadata; the package operates primarily against BSC AW adapter data structures (dimension, KPI, and calendar record types) rather than direct DML on business tables.

Usage Notes

BSC_AW_BSC_METADATA is an internal utility invoked programmatically, not directly by end users. It is referenced by seven other packages within the BSC Analytics Warehouse stack, which depend on its metadata resolution routines when building or refreshing analytics structures. Typical invocation occurs during Balanced Scorecard configuration and refresh processing, when KPI definitions, dimension sets, and calendars must be translated into concrete data source and hierarchy definitions. Because the package is marked noship and appears in ETRM as a non-public API, customizations should avoid calling it directly; instead, customers requiring equivalent information should use supported BSC public APIs. Any diagnostic use of the g_debug flag or inspection of g_stmt should be treated as unsupported tracing.