Skip Headers

Oracle9i Warehouse Builder User's Guide
Release 2 (v9.0.2)

Part Number A95949-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

10
Managing Loads and Updates

This chapter describes how to load and refresh a data warehouse using scheduling and dependency management tools. After you generate and deploy scripts, register them as jobs with Oracle Enterprise Manager or another scheduling tool. You can use a dependency management tool such as Oracle Workflow to run multiple job processes with dependencies. Schedule these Workflow processes to load or update the warehouse. The Warehouse Builder Workflow Queue Listener monitors the processes and ensures that dependencies are handled in the correct order. After the processes have completed, view the results using the Warehouse Builder Runtime Audit Viewer.

For information about Oracle Workflow, see the Oracle Workflow Guide. For more information about Oracle Enterprise Manager, see the Oracle Enterprise Manager Administrator's Guide.

This chapter includes the following topics:

Registering Tcl Scripts

After the target warehouse module is deployed, the warehouse is created and the Tcl or mapping scripts are stored there. In order to run the Tcl scripts and load the warehouse, first register the scripts with Enterprise Manager or another scheduling tool.

To schedule jobs with Enterprise Manager, the following steps must be completed:

For more information, see the Oracle9i Warehouse Builder Installation Guide.

To register deployed scripts with Enterprise Manager:

  1. From the Generated Scripts dialog, select the deployed scripts and click Save as File. Use the Control Key to select multiple scripts.

    The scripts must be saved before you register them.

  2. Select the Tcl script you want to register with Enterprise Manager and click OEM Register. You can only register Tcl scripts with Enterprise Manager.

    Warehouse Builder connects with Enterprise Manager, registers the load scripts, and displays a confirmation list.

Figure 10-1 OEM Registration Results Dialog

Text description of wmedploe.gif follows.

Text description of the illustration wmedploe.gif

After the scripts have been registered with Enterprise Manager, you can either:

These processes can then also be scheduled with Enterprise Manager. Workflow processes are effective because they contain all the job dependencies and ensure that the warehouse is loaded and refreshed in the correct sequence.

When you load data or update existing data into a data warehouse, you must run the scripts in strict sequence to ensure that all foreign key references are satisfied. The referenced tables must be loaded before the tables making the reference.

For example, dimension tables must be loaded before the related fact table. A materialized view cannot be refreshed until the related fact table and referenced dimensions have been loaded.


Note:

If you modify the configuration of a warehouse module or mapping definition after the scripts have been deployed to the Generation Directories or registered with Enterprise Manager, you must:

  • Re-generate the scripts.

  • Re-deploy the scripts to the Generation Directories.

  • Re-register the scripts with Enterprise Manager. You cannot register a job with Enterprise Manager if that job already exists in the Enterprise Manager Job Library. To update an existing job, remove the job from the Job Library first.


Creating an Oracle Workflow

You can create multiple job processes by defining a Workflow process in Oracle Workflow. When you schedule the processes, the Workflow server ensures that the jobs run in the proper sequence. If an exception occurs, the Workflow server terminates the process.

To define a Workflow process, the following steps must be completed:

Deploying Scripts to the Workflow Server

After you register the Tcl scripts as jobs with Enterprise Manager, you can deploy the scripts to the Workflow server using the Workflow Deployment Wizard.

To deploy scripts to the Workflow server:

  1. From the Tools menu, select Wizards, and then Workflow Deployment Wizard or expand the wizard drawer and click the Workflow Deployment Wizard icon.

    The Workflow Deployment Wizard Welcome page displays.

  2. Click Next.

    The Workflow Login page displays.

Figure 10-2 Workflow Deployment Wizard Login Page

Text description of owf_wiz_.gif follows.

Text description of the illustration owf_wiz_.gif

  1. Specify the following connection information:

    • User name: User name for the Workflow schema where the mappings are deployed.

    • Password: Password for the Workflow schema where the mappings are deployed.

    • Host name: Computer that the Workflow schema is located on.

    • Port number: Port number that connects to the Workflow schema.

    • SID: SID for the database instance of the Workflow server.

    Warehouse Builder uses this information to establish a session with the Workflow server.

  2. Click Next.

    The Maps page displays a list of available mappings to be deployed.

Figure 10-3 Workflow Deployment Wizard Maps Page

Text description of owf_wiza.gif follows.

Text description of the illustration owf_wiza.gif

  1. Select the maps you want to process. Use the arrow buttons to move the maps to Selected maps.

  2. Click Next.

    The wizard displays the Functions page, which shows the function names assigned to the mappings.

Figure 10-4 Workflow Deployment Wizard Functions Page

Text description of owf_wizb.gif follows.

Text description of the illustration owf_wizb.gif

Figure 10-5 Workflow Deployment Wizard Item Type Page

Text description of owf_wizc.gif follows.

Text description of the illustration owf_wizc.gif


Go to previous page Go to next page
Oracle
Copyright © 1996, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index