Oracle® Retail Data Model Installation Guide 10g Release 2 (10.2) Part Number E10085-06 |
|
|
PDF · Mobi · ePub |
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:
OLAP Component Installation
OLAP Sample Installation
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.
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, seehttp://www.oracle.com/technology/products/bi/olap/collateral/olap_certification.html
.The certified version of Analytic Workspace Manager (AWM) are as follows:
Analytic Workspace Manager (AWM) 10g is installed as a standalone product; the latest version is available at the Oracle OLAP home page at http://www.oracle.com/technology/products/bi/olap/olap.html
Install AWM 10.2.0.3.0A patch number 6032088 from My Oracle Support http://metalink.oracle.com
.
Analytic Workspace Manager (AWM) 11g is installed as a standalone product; the latest version is available at the Oracle OLAP home page at http://www.oracle.com/technology/products/bi/olap/olap.html
.
Install the correct version of AWM for your Oracle database version as follows:
For Oracle Database 11g Release 1 (11.1.0.6), install AWM 11.1.0.6.0B patch number 6368282 from My Oracle Support http://metalink.oracle.com
.
For Oracle Database 11g Release 1 (11.1.0.7), install AWM 11.1.0.7.0B patch number 7705204 from My Oracle Support http://metalink.oracle.com
.
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)
This section describes the following topics:
The database and OLAP must be configured properly for OLAP and Oracle Retail Data Model to work properly. This section discusses the following topics:
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;
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:
rbia_olap_views_star_setup.sql
RBIA_OLAP_ETL_AW_LOAD.sql
rbia_olap_grants.sql
RBIA_OOS_EMPTY.EIF
oos_forecast_stock_sales_olap_dml.txt
oos_forecast_stock_inv_olap_dml.tx
t
ordm_olap_user_env_install_scr.sql
ordm_olap_install_scr.sql
ordm_olap_demo_install_scr.sql
RBIA_OOS_DEMO.EIF.gz
for OLAP Sample only
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.
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;
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:
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
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:
Datafile (full path) for ORDM OLAP USER Tablespace:
Enter full absolute path of filename required to create tablespace here.
Datafile (full path) for ORDM OLAP TEMP Tablespace:
Enter full absolute path for filename required to create temporary tablespace here.
Enter the password to use for bia_rtl_olap user creation:
Enter password for the user bia_rtl_olap here.
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/
User: bia_rtl, Password:
Enter password for ORDM Product Schema User here.
User: bia_rtl_olap, Password:
Enter password for bia_rtl_olap that was defined earlier.
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:
User:bia_rtl_olap, Password:
Enter password for user bia_rtl_olap created in step 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.
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.
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:
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
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:
The database and OLAP must be configured properly for OLAP and Oracle Retail Data Model to work properly. This section discusses the following topics:
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;
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:
ordm_olap_11g_dml_cmds.txt
oos_forecast_stock_sales_olap_cc_dml.txt
oos_forecast_stock_inv_olap_cc_dml.txt
rbia_olap_11g_views_star_setup.sql
rbia_olap_11g_etl_aw_load.sql
rbia_olap_11g_sql_main_schema.sql
PSLSINV.M10.XML
PSLSINV.M11.XML
ordm_olap_11g_user_env_install_scr.sql
ordm_olap_11g_install_scr.sql
Note:
The script fileordm_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:
Search for the string "PROMPT BEGIN Build of AW PSLSINV from Template" in script.
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).
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
--====================================================
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
--==================================================
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.
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;
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:
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
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:
Connecting as SYS (SYSDBA) database user...
conn sys as sysdba:
Enter sysdba password here.
Datafile (full path) for ORDM OLAP USER Tablespace:
Enter full absolute path for filename required to create tablespace here.
Datafile (full path) for ORDM OLAP TEMP Tablespace:
Enter full absolute path for filename required to create temporary tablespace here.
Enter the password to use for bia_rtl_olap user creation:
Enter password for user bia_rtl_olap here.
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/
User: bia_rtl, Password:
Enter password for ORDM Product Schema User here.
User: bia_rtl_olap, Password:
Enter password for bia_rtl_olap that was defined earlier.
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:
User:bia_rtl_olap, Password: (Enter password for user bia_rtl_olap created in Step 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.
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