Skip Headers
Oracle® Business Intelligence Applications Installation Guide
11g Release 1 (11.1.1.8.0)

E49132-01
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

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

B Generating DDL and Assigning Tablespaces to Tables and Indexes

This appendix describes how to generate DDL to deploy Business Analytics Warehouse tables and how to assign tablespaces to tables and indexes.

This appendix contains the following topics:

B.1 Overview

The Business Analytics Warehouse tables are automatically deployed during the installation process when the Business Analytics Applications Suite Repository Creation Utility (RCU) executes a shipped DDL script. The RCU does not prompt for which tablespace to assign to the individual tables and related indexes nor does it provide a mechanism for you to alter the shipped DDL. To introduce changes to the Business Analytics Warehouse data model, you use ODI to generate a new DDL script.

You may want to regenerate the Business Analytics Warehouse DDL for the following reasons:

You can make changes directly in the database but these changes need to be synchronized with the ODI Repository. This is done by running the Oracle BI Applications reverse knowledge module (RKM) to bring in the changes into ODI. If this RKM is not run, ODI will not be aware of these changes, which can lead to problems when populating the affected warehouse table.

B.2 Generating the Business Analytics Warehouse DDL

Follow this procedure to generate Business Analytics Warehouse DDL.

To generate Business Analytics Warehouse DDL:

  1. Launch ODI Studio, and display the Designer navigator.

  2. In the Projects editor, expand the following folders: Components, DW, Oracle, Generate DW DDL.

  3. Execute the GENERATE_DW_DDL scenario:

    Specify the following information:

    Option Description

    CREATE_SCRIPT_FILE

    If set to True, this will create a .sql file with the DDL script. This is useful to see what the changes are. If no value is provided for the SCRIPT_LOCATION option, the procedure will create a file in the oracledi directory named biappsddl.sql.

    REFRESH_MODE

    FULL or INCREMENTAL

    FULL will generate the DDL for the entire data warehouse using CREATE statements. The Table Mask option is ignored.

    INCREMENTAL will compare the ODI data stores with the tables in the database. This option should be used with the Table Mask option because this process can take a very long time comparing the entire data warehouse.

    CHARCLAUSE

    Provided for Unicode support. If set to True, the CHAR clause will be included in the DDL.

    RUN_DDL

    If set to True, the DDL will run against your warehouse.

    SCRIPT_LOCATION

    If you are creating a script, this field indicates the path where the script will be created.

    TABLE_MASK

    Default % will compare all tables. If you want to create DDL for a subset of tables only or just a single table, you can change this value. For instance, to create a diff script for dimension tables, you would set this value to W_%_D.


Keep the following in mind when introducing changes in ODI:

B.3 Patching Oracle BI Applications

Patching of Oracle BI Applications may require changes to database objects, such as modifying existing tables or introducing new tables. Oracle will provide a patch file that you will use to merge changes with the existing ODI Repository definition. These changes will then need to be deployed to the database. New tables, columns and indexes that you introduced are retained. Any changes you made to preconfigured tables, columns, and indexes must go through a conflict resolution process.

B.4 Assigning Tablespaces

Using the Designer navigator in Oracle Studio, you can assign default tablespaces for the data warehouse tables, such as the W_%_D and W_%_F tables, their associated indexes, and the staging tables, such as the W_%_DS and W_%_FS tables. Indexes are not created by this utility but are created during the ETL process and will reflect the tablespace assigned in ODI.

To assign tablespaces to data warehouse tables:

  1. Launch ODI Studio, and display the Designer navigator.

  2. In the Models editor, expand Oracle BI Applications model.

  3. Edit the Oracle BI Applications model and assign the OBI Tablespace flexfields with the tablespace values to be used for these objects. All data warehouse tables and indexes will use the tablespaces defined here.

  4. (Optional) Individual tables can be overridden to use a different tablespace from those assigned at the model level. Edit the particular data store and assign the OBI Tablespace flexfield with the tablespace to be used for this table.

  5. (Optional) To assign the tablespace for individual indexes, edit the constraint and assign the OBI Tablespace flexfield value to match the tablespace name to be used.