Skip Headers
Oracle® Retail Data Model Installation Guide
10g Release 2 (10.2)

Part Number E10085-06
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

4 OLAP Installation and Configuration

Oracle Online Analytical Processing (OLAP) must be installed with the correction patches and must be appropriately configured to work with Oracle Retail Data Model. OLAP requirements depend on the release of Oracle database:, as described in AWM and Oracle OLAP Requirements.

Installation instructions depend on the database version:

There are two OLAP installations for each Oracle database release:

The Oracle Retail Data Model OLAP Component is the Oracle Retail Data Model OLAP data model installed at your location. The data model is loaded with your data through the Historical/Incremental Load processes (which include activities like loading Dimensions/Facts, generating Forecasts, aggregating Forecasted information, and so forth) and reflects your data in terms of the Oracle Retail Data Model OLAP model Dimensions and Facts.

The Oracle Retail Data Model OLAP Sample is the Oracle Retail Data Model OLAP data model pre-loaded with sample data. The sample data reflects the sample schema data in terms of the Oracle Retail Data Model OLAP model Dimensions and Facts.

You can install either the OLAP Component or the OLAP Sample, but not both.

AWM and Oracle OLAP Requirements

Oracle Retail Data Model OLAP component requires the correct version of Analytic Workspace Manager (AWM) described in AWM Certification and the correction version of Oracle OLAP described in Oracle OLAP Certification.

Note:

The recommended patches and software versions are accurate as of product release. For latest recommendations for database and Oracle OLAP for supported platforms, see http://www.oracle.com/technology/products/bi/olap/collateral/olap_certification.html.

AWM Certification

The certified version of Analytic Workspace Manager (AWM) are as follows:

Oracle OLAP Certification

The OLAP component of Oracle Retail Data Model is certified with the following patches based on the version of the Database upon which the database runs:

  • Oracle Database 10g Release 2 (10.2.0.3) with OLAP A (Patch #5746153)

  • Oracle Database 10g Release 2 (10.2.0.4) with OLAP A Patch (Patch #7195088)

  • Oracle Database 11g Release 1 (11.1.0.6) with OLAP B (Patch #6459753 )

  • Oracle Database 11g Release 1 (11.1.0.6 - Linux 64 bit) with OLAP B Patch (Patch #6992921)

  • Oracle Database 11g Release 1 (11.1.0.7) with OLAP B Patch (Patch #8641931)

OLAP for Oracle Database 10g Release 2 (10.2.0.3 or Higher)

This section describes the following topics:

Database and OLAP Preparation

The database and OLAP must be configured properly for OLAP and Oracle Retail Data Model to work properly. This section discusses the following topics:

OLAP and Database Configuration

To set up a working OLAP environment, you must configure the database with the following parameter and configuration settings:

  • Set SGA_TARGET to 35% of available memory.

  • Set PGA_AGGREGATE_TARGET to 35% of available memory.

  • Set OLAP_PAGE_POOL_SIZE=0 to make page pool size dynamic.

  • Set _olap_page_pool_hi=30, lower than default of 50.

  • Turn off Parallel Update for AW by setting set _olap_parallel_update_threshold and _olap_parallel_update_small_threshold to a high value, such as ~2Gb..2147483647.

The following commands show how to make all of these required changes:

alter system set sga_target=1365M scope=spfile;
alter system set pga_aggregate_target=1365M scope=spfile;
alter system set olap_page_pool_size=0 scope=spfile;
alter system set "_olap_parallel_update_small_threshold"=2147483647 scope=spfile;
alter system set "_olap_page_pool_hi"=30 scope=spfile;
alter system set job_queue_processes=5 scope=spfile;
shutdown immediate;
startup;

OLAP Installation Directory Setup

The files required for the installation of the Oracle Retail Data Model (OLAP Component and also OLAP Sample) on Oracle Database 10g Release 2 are in the following directories:

  • ORACLE_HOME/ORDM/PDM/OLAP/Install/10gR2_ALL for the OLAP Component installation

  • ORACLE_HOME/ORDM/Sample/OLAP/Install/10gR2_ALL for the OLAP Sample installation

Verify that the following files are present in the directory:

  1. rbia_olap_views_star_setup.sql

  2. RBIA_OLAP_ETL_AW_LOAD.sql

  3. rbia_olap_grants.sql

  4. RBIA_OOS_EMPTY.EIF

  5. oos_forecast_stock_sales_olap_dml.txt

  6. oos_forecast_stock_inv_olap_dml.txt

  7. ordm_olap_user_env_install_scr.sql

  8. ordm_olap_install_scr.sql

  9. ordm_olap_demo_install_scr.sql

  10. RBIA_OOS_DEMO.EIF.gz for OLAP Sample only

Edit Forecast Programs for Object Installation

Note:

This step is not required for Sample Installation.

For the OLAP Component installation, edit the forecast programs in the files oos_forecast_stock_sales_olap_dml.txt and oos_forecast_stock_inv_olap_dml.txt.

The section of program to be customized in the two text files is marked by BEGIN/END as follows:

**********BEGIN: Forecast Initialization section **************
...
**********END: Forecast Initialization section **************

By default, the forecast programs run at the Store/SKU Item/Day level using data for two business years (BY 2005 and BY 2006) as input and forecast the data for the third business year (BY 2007).

Change the following lines:

  • v_time_yr1_dsc = 'BY 2005'

    This value depends on the year being forecast. The value should be the forecast year minus 2, that is, 2 years before the forecast year. The value must be in the format BY YYYY.

  • v_time_yr2_dsc = 'BY 2006'

    This value depends on the year being forecast. The value should be the forecast year minus 1, that is, 1 year before the forecast year. The value must be in the format BY YYYY.

  • v_time_yr3_dsc = 'BY 2007'

    This value depends on the year being forecast. The value should be the forecast year. The value must be in the format BY YYYY.

The forecast programs are run as part of the Historical Load. After the programs are run, the Historical load aggregates the Forecast Cubes so that the forecasted information is available across all levels of the cube.

Clean Up an Existing Oracle Retail Data Model OLAP User Schema

If you re-install Oracle Retail Data Model, you must re-create the OLAP user environment again from the beginning. Use the following SQL commands to clean up the OLAP schema before re-running the installation scripts:

SQL> drop user BIA_RTL_OLAP cascade;
SQL> drop tablespace BIA_RTL_OLAP including contents and datafiles;
SQL> drop tablespace BIA_RTL_OLAP_TEMP including contents and datafiles;

Install the Oracle Retail Data Model OLAP Component or the OLAP Sample

You can install either the OLAP Component or the OLAP Sample but not both.

Follow these steps to install the Oracle Retail Data Model OLAP Component or the OLAP Sample:

  1. Check that the OLAP option is installed in the Oracle Data. Log in as DBA and then base the following query:

    select * from v$option where parameter = 'OLAP';
    

    If OLAP is installed you see the following output.

    PARAMETER      VALUE
    ---------------------
    OLAP            TRUE
    
  2. To create an OLAP User, tablespaces, and directory, log in as DBA and run the script ordm_olap_user_env_install_scr.sql.

    SQL> @ordm_olap_user_env_install_scr.sql
    

    The following are the recommended tablespace sizes used by the script:

    • bia_rtl_olap Tablespace = 6 Gb autoextend on size 40Mb

    • bia_rtl_olap_temp Tablespace = 4 Gb autoextend on size 30Mb

    ordm_olap_user_env_install_scr.sql has the following dialog:

    1. Datafile (full path) for ORDM OLAP USER Tablespace:

      Enter full absolute path of filename required to create tablespace here.

    2. Datafile (full path) for ORDM OLAP TEMP Tablespace:

      Enter full absolute path for filename required to create temporary tablespace here.

    3. Enter the password to use for bia_rtl_olap user creation:

      Enter password for the user bia_rtl_olap here.

    4. ORDM OLAP Directory (full path including ending /):

      Enter the correct path here as follows:

      • For the OLAP Component Installation, ORACLE_HOME/ORDM/PDM/OLAP/Install/10gR2_ALL/

      • For the OLAP Sample Installation, ORACLE_HOME/ORDM/Sample/OLAP/Install/10gR2_ALL/

    5. User: bia_rtl, Password:

      Enter password for ORDM Product Schema User here.

    6. User: bia_rtl_olap, Password:

      Enter password for bia_rtl_olap that was defined earlier.

  3. To install the OLAP Component, run ordm_olap_install_scr.sql:

    SQL> @ordm_olap_install_scr.sql
    

    Initially, this script uses the bia_rtl account created in the earlier script.

    ordm_olap_install_scr.sql has the following dialog:

    1. User:bia_rtl_olap, Password:

      Enter password for user bia_rtl_olap created in step 2.

    2. HISTORICAL Load Start Date:

      Enter the Historical Load Start Date in the format YYYY-MM-DD. Read the description of the requirements for Historical Start Date carefully.

    3. HISTORICAL Load End Date:

      Enter the Historical Load End Date in the format YYYY-MM-DD. Read the description of the requirements for Historical Start Date carefully.

  4. To install the OLAP Sample, go to the directory ORACLE_HOME/ORDM/Sample/OLAP/Install/10gR2_ALL. Unzip the sample EIF (.gz) file RBIA_OOS_DEMO.EIF.gz:

    gunzip RBIA_OOS_DEMO.EIF.gz
    

    Run the script ordm_olap_demo_install_scr.sql

    SQL> @ ordm_olap_demo_install_scr.sql
    

    ordm_olap_demo_install_scr.sql has the following dialog:

    1. User:bia_rtl_olap, Password: (Enter password for user bia_rtl_olap.)

    The following Historical Start/End Date values were used to create the sample database:

    • Historical Start Date: 2004-01-01

    • Historical End Date: 2007-01-21

OLAP for Oracle Database 11g Release 1 and Oracle Database 11g Release 2

This section describes OLAP installation for OLAP for Oracle Database 11g Release 1 (11.1.0.6 or Higher) and OLAP installation for Oracle Database 11g Release 2 (11.2.0.1.0).

This section describes the following topics:

Database and OLAP Preparation

The database and OLAP must be configured properly for OLAP and Oracle Retail Data Model to work properly. This section discusses the following topics:

OLAP and Database Configuration

To set up a working OLAP environment, you must configure the database with the following parameter and configuration settings:

  • Set SGA_TARGET to 35% of available memory.

  • Set PGA_AGGREGATE_TARGET to 35% of available memory.

  • Set OLAP_PAGE_POOL_SIZE=0 to make page pool size dynamic.

  • Set _olap_page_pool_hi=30, lower than default of 50.

  • Turn off Parallel Update for AW by setting set _olap_parallel_update_threshold and _olap_parallel_update_small_threshold to a high value, such as ~2Gb..2147483647.

Set memory_target to a value greater than the SGA and PGA setting. This is maximum memory used by the database for both SGA and PGA. The SGA and PGA settings specified are the minimum settings. If you do not set memory_target, instance startup fails. The next time these settings are validated failure occurs if spfile had an older and distinct setting for memory_target.

The following commands show how to make all of these required changes:

alter system set sga_target=1365M scope=spfile;
alter system set pga_aggregate_target=1365M scope=spfile;
alter system set olap_page_pool_size=0 scope=spfile;
alter system set "_olap_parallel_update_small_threshold"=2147483647 scope=spfile;
alter system set "_olap_page_pool_hi"=30 scope=spfile;
alter system set job_queue_processes=5 scope=spfile;
shutdown immediate;
startup;

OLAP Installation Directory Setup

The files required for the installation of Oracle Retail Data Model (OLAP Component and also OLAP Samples) on Oracle Database 11g Release 1, Oracle Database 11g Release 2 are in the following directories:

  • ORACLE_HOME/ORDM/PDM/OLAP/Install/11gR1_ALL for the OLAP Component installation

  • ORACLE_HOME/ORDM/Sample/OLAP/Install/11gR1_ALL for the OLAP Sample installation

Verify that the following files are present in the directory:

  1. ordm_olap_11g_dml_cmds.txt

  2. oos_forecast_stock_sales_olap_cc_dml.txt

  3. oos_forecast_stock_inv_olap_cc_dml.txt

  4. rbia_olap_11g_views_star_setup.sql

  5. rbia_olap_11g_etl_aw_load.sql

  6. rbia_olap_11g_sql_main_schema.sql

  7. PSLSINV.M10.XML

  8. PSLSINV.M11.XML

  9. ordm_olap_11g_user_env_install_scr.sql

  10. ordm_olap_11g_install_scr.sql

    Note:

    The script file ordm_olap_11g_user_env_install_scr.sql has two separate sections of code: one section for Oracle Database 11g Release 1 (11.1.0.6) and another for Oracle Database 11g Release 1 (11.1.0.7 or higher) as well as Oracle Database 11g Release 2 (11.2.0.1.0). By default, the script works for Oracle Database 11g Release 1 (11.1.0.7 or higher) as well as Oracle Database 11g Release 2 (11.2.0.1.0).

    To install OLAP Component on Oracle Database 11.1.0.6, edit the script as follows:

    1. Search for the string "PROMPT BEGIN Build of AW PSLSINV from Template" in script.

    2. PSLSINV.M10.XML is file to be used for Oracle Database 11.1.0.6 and PSLSINV.M11.XML is the file to be used for Oracle Database 11g Release 1 (11.1.0.7 or higher) as well as Oracle Database 11g Release 2 (11.2.0.1.0).

    3. Uncomment the PL/SQL block for 11.1.0.6. This block is marked by the following comments in script file:

      --====================================================

      - Database version: 11.1.0.6, OLAPI Metadata version: 1.0

      --====================================================

    4. Comment out the PL/SQL block for 11.1.0.7 and higher. This block is marked by the following comments in script file.

      --====================================================

      -- Database version: 11.1.0.7 higher, OLAPI Metadata version: 1.1

      --==================================================

Edit Forecast Programs

Note:

This step is not required for Sample Reports.

For the OLAP Component install, edit the forecast programs in the files oos_forecast_stock_sales_olap_dml.txt and oos_forecast_stock_inv_olap_dml.txt.

The section of program to be customized in the two text files is marked by BEGIN/END as follows:

**********BEGIN: Forecast Initialization section **************
...
**********END: Forecast Initialization section **************

By default, the forecast programs run at the Store/SKU Item/Day level using data for two business years (BY 2005 and BY 2006) as input and forecast the data for the third business year (BY 2007).

Change the following lines:

  • v_time_yr1_dsc = 'BY 2005'

    This value depends on the year being forecast. The value should be the forecast year minus 2, that is, 2 years before the forecast year. The value must be in the format BY YYYY.

  • v_time_yr2_dsc = 'BY 2006'

    This value depends on the year being forecast. The value should be the forecast year minus 1, that is, 1 year before the forecast year. The value must be in the format BY YYYY.

  • v_time_yr3_dsc = 'BY 2007'

    This value depends on the year being forecast. The value should be the forecast year. The value must be in the format BY YYYY.

The forecast programs are run as part of the Historical Load. After the programs are run, the Historical load aggregates the Forecast Cubes so that the forecasted information is available across all levels of the cube.

Clean Up an Existing Oracle Retail Data Model OLAP User Schema

If you re-install Oracle Retail Data Model, you must re-create the OLAP user environment again from the beginning. Use the following SQL commands to clean up the OLAP schema before re-running the installation scripts:

SQL> drop user BIA_RTL_OLAP cascade;
SQL> drop tablespace BIA_RTL_OLAP including contents and datafiles;
SQL> drop tablespace BIA_RTL_OLAP_TEMP including contents and datafiles;

Install the Oracle Retail Data Model OLAP Component or OLAP Sample

The Oracle Retail Data Model OLAP Component refers to the ORDM OLAP data model installed at your location. The data model is loaded with your data through the Historical/Incremental Load processes (which include activities like loading Dimensions/Facts, generating Forecasts, aggregating Forecasted information, and so forth) and reflects your data in terms of the Oracle Retail Data Model OLAP model Dimensions and Facts.

Follow these steps to install the OLAP Component or the OLAP Sample:

  1. Check that the OLAP option is installed in the Oracle Data. Log in as DBA and then base the following query:

    select * from v$option where parameter = 'OLAP';
    

    If OLAP is installed you see the following output.

    PARAMETER      VALUE
    ---------------------
    OLAP            TRUE
    
  2. To create OLAP User, tablespaces, and directory, log in as DBA and run the script ordm_olap_11g_user_env_install_scr.sql.

    SQL> @ordm_olap_11g_user_env_install_scr.sql
    

    The following are the recommended tablespace sizes used by the script:

    • bia_rtl_olap Tablespace = 3 Gb autoextend on size 40Mb

    • bia_rtl_olap_temp Tablespace = 2 Gb autoextend on size 30Mb

    ordm_olap_11g_user_env_install_scr.sql has the following dialog:

    1. Connecting as SYS (SYSDBA) database user...

      conn sys as sysdba:

      Enter sysdba password here.

    2. Datafile (full path) for ORDM OLAP USER Tablespace:

      Enter full absolute path for filename required to create tablespace here.

    3. Datafile (full path) for ORDM OLAP TEMP Tablespace:

      Enter full absolute path for filename required to create temporary tablespace here.

    4. Enter the password to use for bia_rtl_olap user creation:

      Enter password for user bia_rtl_olap here.

    5. ORDM OLAP Directory (full path including ending /):

      Enter the correct path as follows:

      • For the OLAP Component Installation ORACLE_HOME/ORDM/PDM/OLAP/Install/11gR1_ALL/

      • For the OLAP Sample Installation ORACLE_HOME/ORDM/Sample/OLAP/Install/11gR1_ALL/

    6. User: bia_rtl, Password:

      Enter password for ORDM Product Schema User here.

    7. User: bia_rtl_olap, Password:

      Enter password for bia_rtl_olap that was defined earlier.

  3. Run ordm_olap_11g_install_scr.sql:

    SQL> @ordm_olap_11g_install_scr.sql
    

    Initially, the script uses the bia_rtl_olap account created in earlier steps.

    ordm_olap_11g_user_env_install_scr.sql, has the following dialog:

    1. User:bia_rtl_olap, Password: (Enter password for user bia_rtl_olap created in Step 2.)

    2. HISTORICAL Load Start Date:

      Enter the Historical Load Start Date in the format YYYY-MM-DD. Read the description of the requirements for Historical Start Date carefully.

    3. HISTORICAL Load End Date:

      Enter the Historical Load End Date in the format YYYY-MM-DD. Read the description of the requirements for Historical Start Date carefully.

    For a sample installation, use following Historical Start/End Date values:

    • Historical Start Date: 2004-01-01

    • Historical End Date: 2007-01-21