8 Oracle Utilities Data Model OLAP Model Dimensions

This chapter describes the Data Flow from the fact tables and dimension tables of Oracle Utilities Data Model foundation layer to the target materialize views and cubes of the Analytical Layer to support Oracle Utilities Data Model OLAP.

This chapter includes the following sections:

For more information, see Chapter 9, "Oracle Utilities Data Model OLAP Model Cubes".

Introduction to OLAP Architecture

Oracle Data Warehouse for utilities (Oracle Utilities Data Model Relational) contains the lowest level Meter Reading details measuring consumption and detection of events, low level combination of base tables and the summary, average, and so on, of Base and Derived data. Oracle Utilities Data Model was developed in a relational database.

General Process to Populate the OLAP Module in Oracle utilities Data Model

Oracle Utilities Data Model oudm_sys schema does the following:

  • Directly maps the leaf level data from the relational table/mv into the OLAP cube.

  • Cube organized materialized views represent the cube to SQL-based applications as materialized views that you can use for both refresh and query rewrite. With Query Re-write enabled, Oracle will automatically re-write SQL queries targeted against relational tables. to use the Cube-Organized Materialized View. To use this feature the OLAP cubes and relational components are in a single schema (oudm_sys).

  • All cubes are available for the end user SQL based Query Tool access through CUBE_TABLE based SQL Views, which are created and maintained automatically during the cube build/update process.

  • Cubes are built from level 0 DWA materialized views or DWR tables (which, when a date is present, usually means at the month level).

Using SQL to access the cubes and dimensions is a significant feature of Oracle OLAP because it enables reporting tools that only generate SQL to use all of the powerful features of the analytic workspace. In Oracle Database 11g this is achieved by the use of the CUBE_TABLE function that extracts multidimensional data from a cube in an analytic workspace and presents it to the relational SQL engine in the form of a two dimensional table, such as, a set of rows and columns. It provides a mapping between the cube in the analytic workspace and the rows and columns that the SQL sees.

Query Rewrite to Cube Organized Materialized Views

Oracle Utilities Data Model uses SQL to query the relational base tables and the optimizer transparently translates the SQL to access either the table materialized views or the cube materialized views (and hence the analytic workspace cubes and dimensions) depending upon which provides the better performance. This allows all of the benefits of the analytic workspace to be easily available to any product using regular SQL.

Oracle Utilities Data Model OLAP Dimensions

The dimensions section describes the detail information for all the dimensions. Each dimension includes the following information:

  • Levels

  • Hierarchies

  • Attributes and Attribute mappings

Table 8-1 lists the dimensions.

Account: ACCT

This dimension keeps all the account information.

Table 8-2 Account (ACCT) Levels and Hierarchies

Level Description Account Hierarchy (HACCT)

TACCT

Total Account

TACCT

ACCT

Account

ACCT


Attribute Name: Long Description(LONG_DESCRIPTION)

Table 8-3 Account Long Description Attribute Mapping

Level Mapping (Physical Column)

TACCT

'Total Account'

ACCT

DWR_ACCT.ACCT_DSCR


Attribute Name: Short Description(SHORT_DESCRIPTION)

Table 8-4 Account Short Description Attribute Mapping

Level Mapping (Physical Column)

TACCT

'Total Account'

ACCT

DWR_ACCT.ACCT_CD


Customer: CUST

This dimension keeps all the information of individual customers.

Table 8-5 Customer (CUST) Levels and Hierarchies

Level Description Customer Hierarchy (HCUST)

CUST

Customer

CUST

TCUST

Total customer

TCUST

CUSTYP

Customer Type

CUSTYP

ICUST

Individual Customer

ICUST


Attribute Name: Long Description(LONG_DESCRIPTION)

Table 8-6 Customer Long Description Attribute Mapping

Level Mapping (Physical Column)

CUST

DWR_CUST.LAST_NAME

TCUST

"Total Customer"

CUSTYP

DWL_CUST_TYP.CUST_TYP_NAME

ICUST

DWR_CUST.NAME


Attribute Name: Short Description(SHORT_DESCRIPTION)

Table 8-7 Customer Short Description Attribute Mapping

Level Mapping (Physical Column)

CUST

DWR_CUST.CUST_CD

TCUST

"Total Customer"

CUSTYP

DWL_CUST_TYP.CUST_TYP_CD

ICUST

DWR_CUST.CUST_CD


Geography Usage Point: GEOUP

This dimension keeps all the usage point information at lower levels with geography information at higher levels, such as city, state, and so on.

Table 8-8 Geography Usage Point (GEOUP) Levels and Attributes

Level Description Geography Usage Point Hierarchy (HGEOUP)

TGEOUP

Total Geographical Usage Point

TGEOUP

STATE

STATE

STATE

CITY

CITY

CITY

GUP

GEOGRAPHY USAGE POINT

GUP


Attribute Name: Long Description (LONG_DESCRIPTION)

Table 8-9 Geography Usage Point Long Description Attribute Mapping

Level Mapping (Physical Column)

TGEOUP

'Total Geography UsagePoint'

STATE

DWV_GEOGRAPHY_ZONES_DIM.GEO_STATE_NAME

CITY

DWV_GEOGRAPHY_ZONES_DIM.GEO_CITY_NAME

GUP

DWV_GEOGRAPHY_ZONES_DIM.USG_PNT_CD


Attribute Name: Short Description(SHORT_DESCRIPTION)

Table 8-10 Geography Usage Point Short Description Attribute Mapping

Level Mapping (Physical Column)

TGEOUP

'Total Geography UsagePoint'

STATE

DWV_GEOGRAPHY_ZONES_DIM.GEO_STATE_CD

CITY

DWV_GEOGRAPHY_ZONES_DIM.GEO_CITY_CD

GUP

DWV_GEOGRAPHY_ZONES_DIM.USG_PNT_CD


Manufacturer: MNFCTR

This dimension keeps the information of product asset model at lower level and manufacturer information at higher level.

Table 8-11 Manufacturer (MNFCTR) Levels and Hierarchies

Level Description Manufacturer Hierarchy (HMNFCTR)

TMNFCTR

Total Manufacturers

'TMNFCTR

MNFCTR

Manufacturer

MNFCTR

PRASTMDL

Product Asset Model

PRASTMDL


Attribute Name: Long Description (LONG_DESCRIPTION)

Table 8-12 Manufacturer Long Description Attribute Mapping

Level Mapping (Physical Column)

TMNFCTR

'Total Manufacturer'

MNFCTR

DWR_MNFCTR.NAME

PRASTMDL

DWR_PROD_ASST_MDL.ASST_MDL_USG_KIND_CD


Attribute Name: Short Description (SHORT_DESCRIPTION)

Table 8-13 Manufacturer Short Description Attribute Mapping

Level Mapping (Physical Column)

TMNFCTR

'Total Manufacturer'

MNFCTR

DWR_MNFCTR.MNFCTR_CD

PRASTMDL

DWR_PROD_ASST_MDL.ALS_NAME


Meter:MTR

This dimension keeps all the meter related information.

Table 8-14 Meter (MTR) levels and Hierarchies

Level Description Meter Hierarchy (HMTR)

TMTR

Total Meters

TMTR

MTR

Meter

MTR


Attribute Name: Long Description (LONG_DESCRIPTION)

Table 8-15 Meter Long Description Attribute Mapping

Level Mapping (Physical Column)

TMTR

'Total Meter'

MTR

DWR_MTR.NAME


Attribute Name: Short Description (SHORT_DESCRIPTION)

Table 8-16 Meter Short Description Attribute Mapping

Level Mapping (Physical Column)

TMTR

'Total Meter'

MTR

DWR_MTR.MTR_CD


Operational Usage Point: OPTUP

This dimension keeps information of usage point at lower level and electricity power operational information at higher levels. For example, transformer, feeder, and substation.

Table 8-17 Operational Usage Point (OPTUP) Levels and Hierarchies

Level Description Operational Usage Point Hierarchy (HOPTUP)

TOPTUP

Total Operational Usage Point

TOPTUP

SBSTN

Substation

SBSTN

FDR

Feeder

FDR

TRTK

Transformer Tank

TRTK

OPTUP

Operation Usage Point

OPTUP


Attribute Name: Long Description (LONG_DESCRIPTION)

Table 8-18 Operational Usage Point Long Description Attribute Mapping

Level Mapping (Physical Column)

TOPTUP

'Total Operational UsagePoint'

SBSTN

DWV_OPERATIONAL_DIM.SBSTN_NAME

FDR

DWV_OPERATIONAL_DIM.FEDR_NAME

TRTK

DWV_OPERATIONAL_DIM.TRNSFRMR_TANK_CD

OPTUP

DWV_OPERATIONAL_DIM.USG_PNT_CD


Attribute Name: Short Description (SHORT_DESCRIPTION)

Table 8-19 Operational Usage Point Short Description Attribute Mapping

Level Mapping (Physical Column)

TOPTUP

'Total Operational UsagePoint'

SBSTN

DWV_OPERATIONAL_DIM.SBSTN_CD

FDR

DWV_OPERATIONAL_DIM.FEDR_CD

TRTK

DWV_OPERATIONAL_DIM.TRNSFRMR_TANK_CD

OPTUP

DWV_OPERATIONAL_DIM.USG_PNT_CD


Regional Usage Point: RGUP

This dimension keeps information of usage point at lower level and regional information at higher levels. For example, sub-region and region.

Table 8-20 Regional Usage Point (RGUP) Levels and Hierarchies

Level Description Regional Usage Point Hierarchy (HRGUP)

TRGUP

Total Regional Usage Point

TRGUP

RG

Region

RG

SUBRG

Sub Region

SUBRG

RGUP

Regional Usage Point

RGUP


Attribute Name: Long Description (LONG_DESCRIPTION)

Table 8-21 Regional Usage Point Long Description Attribute Mapping

Level Mapping (Physical Column)

TRGUP

'Total Regional UsagePoint'

RG

DWV_REGIONAL_ZONES_DIM.GEO_RGN_DSCR

SUBRG

DWV_REGIONAL_ZONES_DIM.GEO_SB_RGN_DSCR

RGUP

DWV_REGIONAL_ZONES_DIM.USG_PNT_LOC_KEY


Attribute Name: Short Description (SHORT_DESCRIPTION)

Table 8-22 Regional Usage Point Short Description Attribute Mapping

Level Mapping (Physical Column)

TRGUP

'Total Regional UsagePoint'

RG

DWV_REGIONAL_ZONES_DIM.GEO_RGN_DSCR

SUBRG

DWV_REGIONAL_ZONES_DIM.GEO_SB_RGN_DSCR

RGUP

DWV_REGIONAL_ZONES_DIM.USG_PNT_LOC_KEY


Time: TIME

This dimension keeps all the information of time.

Table 8-23 Time (TIME) Levels and Hierarchies

Level Description Time Business Hierarchy (HTBSNS)

TTIME

Total Time

TTIME

BSNS_YR

Business Year

BSNS_YR

BSNS_HLF_YR

Business Half Year

BSNS_HLF_YR

BSNS_QTR

Business Quarter

BSNS_QTR

BSNS_MO

Business Month

BSNS_MO

CLNDR_YR

Calendar Year

CLNDR_YR

CLNDR_HLF_YR

Calendar Half Year

CLNDR_HLF_YR

CLNDR_QTR

Calendar Quarter

CLNDR_QTR

CLNDR_MO

Calendar Month

CLNDR_MO


Attribute Name: Long Description (LONG_DESCRIPTION)

Table 8-24 Time Long Description Attribute Mapping

Level Mapping (Physical Column)

TTIME

DWR_TIME_TOT.TOT_DSCR

BSNS_YR

DWR_BSNS_YR.BSNS_YR_DSCR

BSNS_HLF_YR

DWR_BSNS_HLF_YR.BSNS_HLF_YR_DSCR

BSNS_QTR

DWR_BSNS_QTR.BSNS_QTR_DSCR

BSNS_MO

DWR_BSNS_MO.BSNS_MO_DSCR

CLNDR_YR

DWR_CLNDR_YR.CLNDR_YR_DSCR

CLNDR_HLF_YR

DWR_CLNDR_HLF_YR.CLNDR_HLF_YR_DSCR

CLNDR_QTR

DWR_CLNDR_QTR.CLNDR_QTR_DSCR

CLNDR_MO

DWR_CLNDR_MO.CLNDR_MO_DSCR


Attribute Name: Short Description(SHORT_DESCRIPTION)

Table 8-25 Time Short Description Attribute Mapping

Level Mapping (Physical Column)

TTIME

DWR_TIME_TOT.TOT_CD

BSNS_YR

DWR_BSNS_YR.BSNS_YR_CD

BSNS_HLF_YR

DWR_BSNS_HLF_YR.BSNS_HLF_YR_CD

BSNS_QTR

DWR_BSNS_QTR.BSNS_QTR_CD

BSNS_MO

DWR_BSNS_MO.BSNS_MO_CD

CLNDR_YR

DWR_CLNDR_YR.CLNDR_YR_KEY

CLNDR_HLF_YR

DWR_CLNDR_HLF_YR.CLNDR_HLF_YR_KEY

CLNDR_QTR

DWR_CLNDR_QTR.CLNDR_QTR_KEY

CLNDR_MO

DWR_CLNDR_MO.CLNDR_MO_KEY


Attribute Name: Time Number (TIME_NBR)

Table 8-26 Time Time Number Attribute Mapping

Level Mapping (Physical Column)

TTIME

DWR_TIME_TOT.TOT_NBR

BSNS_YR

DWR_BSNS_YR.BSNS_YR_NBR

BSNS_HLF_YR

DWR_BSNS_HLF_YR.BSNS_HLF_YR_NBR

BSNS_QTR

DWR_BSNS_QTR.BSNS_QTR_NBR

BSNS_MO

DWR_BSNS_MO.BSNS_MO_NBR

CLNDR_YR

DWR_CLNDR_YR.CLNDR_YR_NBR

CLNDR_HLF_YR

DWR_CLNDR_HLF_YR.CLNDR_HLF_YR_NBR

CLNDR_QTR

DWR_CLNDR_QTR.CLNDR_QTR_NBR

CLNDR_MO

DWR_CLNDR_MO.CLNDR_MO_NBR


Attribute Name: Time Span (TIME_SPAN)

Table 8-27 Time Time Span Attribute Mapping

Level Mapping (Physical Column)

TTIME

DWR_TIME_TOT.TOT_TIMESPN

BSNS_YR

DWR_BSNS_YR.BSNS_YR_TIMESPN

BSNS_HLF_YR

DWR_BSNS_HLF_YR.BSNS_HLF_YR_TIMESPN

BSNS_QTR

DWR_BSNS_QTR.BSNS_QTR_TIMESPN

BSNS_MO

DWR_BSNS_MO.BSNS_MO_TIMESPN

CLNDR_YR

DWR_CLNDR_YR.CLNDR_YR_TIMESPN

CLNDR_HLF_YR

DWR_CLNDR_HLF_YR.CLNDR_HLF_YR_TIMESPN

CLNDR_QTR

DWR_CLNDR_QTR.CLNDR_QTR_TIMESPN

CLNDR_MO

DWR_CLNDR_MO.CLNDR_MO_TIMESPN


Attribute Name: Start Date(START_DATE)

Table 8-28 Time Start Date Attribute Mapping

Level Mapping (Physical Column)

TTIME

DWR_TIME_TOT.TOT_STRT_DT

BSNS_YR

DWR_BSNS_YR.BSNS_YR_STRT_DT

BSNS_HLF_YR

DWR_BSNS_HLF_YR.BSNS_HLF_YR_STRT_DT

BSNS_QTR

DWR_BSNS_QTR.BSNS_QTR_ STRT_DT

BSNS_MO

DWR_BSNS_MO.BSNS_MO_STRT_DT

CLNDR_YR

DWR_CLNDR_YR.CLNDR_YR_STRT_DT

CLNDR_HLF_YR

DWR_CLNDR_HLF_YR.CLNDR_HLF_YR_STRT_DT

CLNDR_QTR

DWR_CLNDR_QTR.CLNDR_QTR_STRT_DT

CLNDR_MO

DWR_CLNDR_MO.CLNDR_MO_STRT_DT


Attribute Name: End Date (END_DATE)

Table 8-29 Time End Date Attribute Mapping

Level Mapping (Physical Column)

TTIME

DWR_TIME_TOT.TOT_END_DT

BSNS_YR

DWR_BSNS_YR.BSNS_YR_END_DT

BSNS_HLF_YR

DWR_BSNS_HLF_YR.BSNS_HLF_YR_END_DT

BSNS_QTR

DWR_BSNS_QTR.BSNS_QTR_END_DT

BSNS_MO

DWR_BSNS_MO.BSNS_MO_END_DT

CLNDR_YR

DWR_CLNDR_YR.CLNDR_YR_END_DT

CLNDR_HLF_YR

DWR_CLNDR_HLF_YR.CLNDR_HLF_YR_END_DT

CLNDR_QTR

 

CLNDR_MO

DWR_CLNDR_MO.CLNDR_MO_END_DT


Usage Point: UP

Table 8-30 Usage Point (USGPNT) Levels and Hierarchies

Level Description Usage Point Hierarchy (HUSGPNT)

TUSGPT

Total Usage Point

TUSGPT

USGPT

Usage Point

USGPT


Attribute Name: Long Description(LONG_DESCRIPTION)

Table 8-31 Usage Point Long Description Attribute Mapping

Level Mapping (Physical Column)

TUSGPT

'Total UsagePoint'

USGPT

DWR_USG_PNT.USG_PNT_CD


Attribute Name: Short Description(SHORT_DESCRIPTION)

Table 8-32 Usage Point Short Description Attribute Mapping

Level Mapping (Physical Column)

TUSGPT

'Total UsagePoint'

USGPT

DWR_USG_PNT.USG_PNT_CD