Deploying Targets

Deploying Targets

Having defined object definitions in previous lessons, you are now ready to use the Deployment Manager in Warehouse Builder to implement your business intelligence system.

The Deployment Manager is the unified interface to access the runtime environment to create the object definitions. The Deployment Manager always runs connected to a runtime platform/runtime repository. The Runtime Repository Connections node on the console tree identifies the runtime repositories that are available in the Deployment Manager (for example a runtime repository connection for the development, one for the test, QA and production environment).

This lesson teaches you how to create a runtime repository and use Warehouse Builder's Deployment Manager to implement your business intelligence system.

Topics

This lesson will discuss the following:

Overview
Prerequisites
Creating a Runtime Repository Using Repository Assistant
Creating a Runtime Repository Connection
Connecting to Deployment Manager
Registering a Location
Generating and Deploying Objects
Executing a Mapping
Checking Execution Results with Runtime Audit Browser
Summary

This lesson will take approximately 60 minutes to complete.

Move your mouse over this icon to show all screenshots. You can also move your mouse over each individual icon to see only the screenshot associated with it.


Overview

This lesson will teach you how to create a runtime repository and use Deployment Manager to implement your system. You will use the OWB Runtime Assistant to create a runtime repository including a runtime owner, runtime access user, and target schema. You will use the OWB Deployment Manager to deploy the objects you defined in previous lessons.

Back to Topic List

Back to Topic List

In order for this lesson to work successfully, you will need to have performed the following:

1.

Completed Overview lesson.

2.

Completed Logging in to OWB lesson.

3.

Completed Importing Source Metadata lesson.

4.

Completed Defining Target Module lesson.

5.

Completed Dimensional Design using Oracle Warehouse Builder lesson.

6 .

Completed Designing ETL Data Flow Mapping lesson.

 

Creating a Runtime Repository using Repository Assistant

Back to Topic List

In Lesson 1, you used the OWB Repository Assistant to create a design client user. In this Lesson, you use the OWB Runtime Assistant to create a runtime repository environment including a runtime owner, runtime access user, and target schema.

Creating a Runtime Owner
Creating a Runtime Access User
Installing a Target Schema

Creating a Runtime Owner

1.

Select Start > Programs > {your Oracle - OWBclientHome}> Warehouse Builder > OWB Runtime Assistant.

The Runtime Assistant wizard's Welcome screen appears. Click Next.

Move your mouse over this icon to see the image

 

2.

In the Server and SYSDBA Information page, enter the User Name as sys, Password as <name of your sys password>, Hostname as localhost, Port Number 1521, and Oracle Service Name as obeowb or <your database service name>. Click Next.

Move your mouse over this icon to see the image

 

3.

In the Choose Option page, select Runtime Repository. Click Next.

Move your mouse over this icon to see the image

 

4.

In the Create or Drop page, select Create a new Warehouse Builder Runtime Repository. Click Next.

Move your mouse over this icon to see the image

 

5.

In the New or Existing User page, select Create and install into a new user schema. Click Next.

Move your mouse over this icon to see the image

 

6.

In the User Name and Password (New) page, enter the User Name as runtime_owner, Password as runtime_owner, and Reenter Password as runtime_owner. Click Next. A database configuration warning may appear. Click OK.

Move your mouse over this icon to see the image

 

7.

In the Tablespace page, accept the defaults and click Next.

Move your mouse over this icon to see the image

 

Creating a Runtime Access User

Back to SubTopic List

1.

The Runtime Access page explains that you should not connect directly to the Runtime Repository Owner. Instead, you should create an intermediary Runtime Access user. Select Create a new Runtime Access user. Click Next.

Move your mouse over this icon to see the image

 

2.

In the Runtime Access User (New) page, enter the User Name as connect_user, Password as connect_user, and Reenter Password as connect_user. Click Next.

Move your mouse over this icon to see the image

 

3.

In the Name and Address Port page, accept the default value and click Next.

Move your mouse over this icon to see the image

 

4.

In the Summary page, click Finish. An Installation Progress page appears. Installation may take several minutes.

Move your mouse over this icon to see the image

 

5.

An Installation Successful page appears, asking whether you want to install a target schema. Click Yes.

Move your mouse over this icon to see the image

 

Installing a Target Schema

Back to SubTopic List

1.

In the Choose Option page, select Target Schema. Click Next.

Move your mouse over this icon to see the image

 

2.

In the Create or Drop page, select Create a new Warehouse Builder Target Schema . Click Next.

Move your mouse over this icon to see the image

 

3.

In the Runtime Repository page, accept the default runtime_owner user name and password of the Runtime Repository Owner that you created earlier. Click Next.

Move your mouse over this icon to see the image

 

4.

In the New or Existing User page, select Create and install into an new user schema. Click Next.

Move your mouse over this icon to see the image

 

5.

In the User Name and Password (New) page, enter the User Name target_schema and Password target_schema. Click Next. A database configuration warning may appear. Click OK.

Move your mouse over this icon to see the image

 

6.

In the Tablespace page, accept the defaults and click Next.

Move your mouse over this icon to see the image

 

7.

In the Summary page, click Finish. Installation may take several minutes. When the Installation Successful page appears, click OK. The OWB Runtime Assistant automatically closes.

 

8.

Subsequent lesson activities make use of time dimension scripts that ship as part of Oracle Warehouse Builder. In order to make sure that all objects will be valid and can be deployed, you need to run 2 scripts. Log in to SQL*Plus as target_schema, and run the following scripts (in this specific order):

<OWB home>\owb\misc\time\owb_time_seq.sql

<OWB home>\owb\misc\time\owb_time.sql

These scripts will first try to drop objects that likely do not yet exist. This will cause error messages, but you can ignore these.

 

Back to SubTopic List

Creating a Runtime Repository Connection

Back to Topic List

Now that you have created a runtime repository including a runtime owner, runtime access user, and target schema, you will connect to the OWB Deployment Manager to deploy the objects you defined in previous lessons. To invoke the OWB Deployment Manager, you must first create a runtime repository connection.

1.

Expand the OWB10g_DEMO project, and right-click the Runtime Repository Connections node. Select Create Runtime Repository Connection.

Move your mouse over this icon to see the image

The New Runtime Repository Connection Wizard: Welcome page appears. Click Next.

Move your mouse over this icon to see the image

 

2.

The New Runtime Repository Connection Wizard: Name page appears. Enter the name obe_runtime_connection. Click Next.

Move your mouse over this icon to see the image

 

3.

In the wizard's Details page, enter the Host Name as localhost, leave the Port Number as 1521, enter the Service Name as obeowb, Connect As User as connect_user, and Runtime Repository Owner as runtime_owner. Click Next.

Move your mouse over this icon to see the image

 

4. Click Finish. This new connection appears under the Runtime Repository Connections node.

Connecting to Deployment Manager

Back to Topic List

Now that you have created a runtime repository connection, there are two ways you can connect to the Deployment Manager. You can either select from a menu or double-click the connection object. In this example, you select from a menu.

1.

From the Project menu, select Deployment Manager.

Move your mouse over this icon to see the image

 

2.

The Select Runtime Repository Connection window appears. In the Connection field, select OBE_RUNTIME_CONNECTION. Click OK.

Move your mouse over this icon to see the image

 

3.

The Connection Information dialog appears.

Most of the fields have pre-filled values, based on those you provided to the Runtime Assistant. The Connect As User is connect_user, Host Name is localhost, Port Number is 1521, Service Name is obeowb, and Runtime Repository Owner is runtime_owner.

Enter the Password as connect_user. Click OK.

Move your mouse over this icon to see the image

 

Registering a Location

Back to Topic List

Before you can deploy objects grouped within a location, you must register the location's physical details.

1.

Maximize the Deployment Manager window.

The Deployment Manager groups objects by physical location. The locations on the left hand tree are the locations you defined in the design tree.

Move your mouse over this icon to see the image

Deployment Manager is the interface to register locations in the runtime platform. What this means is that physical details for the location are stored in the runtime repository. This approach has a few advantages:

  • Users do not need to remember the exact physical details of the deployment location each time an object is deployed. The details are stored in the runtime platform (passwords are stored encrypted).
  • Users can use the exact same design and deploy it to multiple runtime platforms (e.g. development, test, QA, production) without making any change. The Deployment Manager keeps track of the latest deployment as well as the complete deployment history for each of the environments.

2.

Locations have to be registered as soon as they are used in a deployment action (that is, the first time they are used; for subsequent deployment actions the runtime platform already knows the details for the deployment location). You can explicitly register a location by right-clicking the location and selecting Register.

Right-click TARGET_LOC and select Register.

.Move your mouse over this icon to see the image

 

3.

A Location Registration dialog appears. For Schema Name, enter the warehouse target you created using Runtime Assistant: target_schema. For Password, enter target_schema. For Service Name, enter obeowb. For Host name, enter localhost. Click OK.

Move your mouse over this icon to see the image

 

Generating and Deploying Objects

Back to Topic List

The Deployment Manager supports the creation of objects, the deployment of objects, and the execution of executable objects such as mappings and process flows.

1.

Expand the location TARGET_LOC and expand the module WH.

Move your mouse over this icon to see the image

For every deployment, the Deployment Manager will show the Details on the right hand side, providing a History tab to view the history of deployments for a specific object.

You can see all objects that were defined in the console and you have access to the editors and configuration properties for the objects from the Deployment Manager window. Just use the right mouse button or double click the object to access these.

 

2.

Click the module WH in the left hand tree. Look on the right hand side. As you would expect, none of the objects have been deployed. Their Design Status is New and their Deploy Action is None.

Move your mouse over this icon to see the image

 

3.

Click the Default Action button at the bottom of Deployment Manager. Notice that the Deploy Action for all objects has changed from None to Create. Click the Reset button to change the Deploy Action for all objects back to None.

Move your mouse over this icon to see the image

Deployment Manager provides knowledge-based deployment in the sense that if you use the Default Action button, Deployment Manager will determine the most appropriate deployment action for you.

 

4.

In the left hand tree, with both the location TARGET_LOC and the module WH still expanded, expand the Dimensions node and select PRODUCT. With PRODUCT still selected, hold down the Ctrl key and select the T_TIME and WAREHOUSE dimensions.

Move your mouse over this icon to see the image

Click the Default Action button to change the Deploy Action for these three objects from None to Create.

 

5.

Click the Generate/Deploy button on the toolbar (or from the File menu, select Generate/Deploy), to generate the code for the three chosen objects.

Move your mouse over this icon to see the image

You are prompted to commit or cancel changes before deploying. Click Commit.

 

6.

Before the actual code generation, Warehouse Builder again validates the definitions to make sure the code can be generated. The Pre Deployment Generation Results window pops up showing the objects that were selected for deployment including the Validation and Generation result.

Move your mouse over this icon to see the image

To create the objects, click Deploy at the bottom of the Pre Deployment Generation Results window.

By selecting individual objects you can access the scripts, save scripts to file and even save the entire deployment specification to file (which enables deployment elsewhere by taking the code somewhere else and executing the deployment specification.)

During deployment, Warehouse Builder displays a progress bar.

 

7.

After deployment, Warehouse Builder shows the Deployment Results for each of the objects, including Deploy Status, number of Errors and number of Warnings.

Move your mouse over this icon to see the image

 

8.

Verify the deployment results and click OK to close the window. The Deploy Status for each object is updated based on the latest deployment result.

Move your mouse over this icon to see the image

 

9.

Now that you deployed the three dimensions, you can deploy the cube containing foreign key references to these dimensions. In the left hand tree, with both the location TARGET_LOC and the module WH still expanded, expand the Cubes node and select INVENTORIES.

Move your mouse over this icon to see the image

Click the Default Action button to change the Deploy Action from None to Create.

 

10.

Click the Generate/Deploy button on the toolbar (or from the File menu, select Generate/Deploy), to generate the code for the cube.

 

11.

The Pre Deployment Generation Results window pops up showing the cube that was selected for deployment including the Validation and Generation result.

Move your mouse over this icon to see the image

To create the cube, click Deploy at the bottom of the Pre Deployment Generation Results window. After deployment, Warehouse Builder shows the Deployment Results, including Deploy Status, number of Errors and number of Warnings. Verify the deployment results and click OK to close the window.

 

Executing a Mapping

Back to Topic List

So far, you have practiced generating and deploying dimensions and a cube to the target. Now you will switch to a mapping, and execute the mapping to load data into a target dimension.

Before you can execute a mapping, you must generate and deploy all of the objects used in the mapping. For the MAP_CHANNEL mapping in this example, you will first generate and deploy the connector, source external table, and target dimension used in the mapping. You will then deploy and execute the mapping itself.

Generating and Deploying the Connector
Generating and Deploying the Source External Table
Generating and Deploying the Target Dimension
Generating, Deploying, and Executing the Mapping

Generating and Deploying the Connector

1.

Before executing the MAP_CHANNEL mapping, you must first deploy several objects referenced in the mapping. You will first deploy the connector used by the mapping. In Deployment Manager, expand the location TARGET_LOC, expand target module WH and expand the Connectors node and select TARGET_LOC_SRC_FILES_LOC.

Click the Default Action button to change the Deploy Action for this connector from None to Create.

Move your mouse over this icon to see the image

 

2.

Click the Generate/Deploy button on the toolbar (or from the File menu, select Generate/Deploy), to generate the connector.

If you are prompted to commit or cancel changes before deploying, click Commit.

You are prompted to register the SRC_FILES_LOC location. Leave the User Name and Password fields blank. For Host Name, enter localhost. For Root Path, enter C:\OWB-OBE\sourcefiles\ or whatever path in which you placed the sourcefiles subdirectory. Click OK.

Move your mouse over this icon to see the image

 

3.

The Pre Deployment Generation Results window pops up showing the connector that was selected for deployment, including the Validation and Generation result.

Move your mouse over this icon to see the image

To deploy the connector, click Deploy at the bottom of the Pre Deployment Generation Results window.

During deployment, Warehouse Builder displays a progress bar.

 

4.

After deployment, Warehouse Builder shows the Deployment Results for the connector, including Deploy Status, number of Errors and number of Warnings.

Move your mouse over this icon to see the image

 

5.

Verify the deployment results and click OK to close the window.

Move your mouse over this icon to see the image

 

Back to SubTopic List

Generating and Deploying the Source External Table

1.

Before executing the MAP_CHANNEL mapping, you will deploy the mapping's source external table. In Deployment Manager, expand the location TARGET_LOC and expand the module WH. Expand the External Tables node and select CHANNELS_EXT.

Click the Default Action button to change the Deploy Action for this external table from None to Create.

Move your mouse over this icon to see the image

 

2.

Click the Generate/Deploy button on the toolbar (or from the File menu, select Generate/Deploy), to generate the external table.

If you are prompted to commit or cancel changes before deploying, click Commit.

 

3.

The Pre Deployment Generation Results window pops up showing the external table that was selected for deployment, including the Validation and Generation result.

Move your mouse over this icon to see the image

To deploy the external table, click Deploy at the bottom of the Pre Deployment Generation Results window.

During deployment, Warehouse Builder displays a progress bar.

 

4.

After deployment, Warehouse Builder shows the Deployment Results for the external table, including Deploy Status, number of Errors and number of Warnings.

Move your mouse over this icon to see the image

 

5.

Verify the deployment results and click OK to close the window.

 

Back to SubTopic List

Generating and Deploying the Target Dimension

1.

Before executing the MAP_CHANNEL mapping, you will deploy the mapping's target dimension. In Deployment Manager, expand the location TARGET_LOC and expand the module WH. Expand the Dimensions node and select CHANNEL.

Click the Default Action button to change the Deploy Action for this dimension from None to Create.

Move your mouse over this icon to see the image

 

2.

Click the Generate/Deploy button on the toolbar (or from the File menu, select Generate/Deploy), to generate the dimension.

If you are prompted to commit or cancel changes before deploying, click Commit.

 

3.

The Pre Deployment Generation Results window pops up showing the dimension that was selected for deployment, including the Validation and Generation result.

Move your mouse over this icon to see the image

To deploy the dimension, click Deploy at the bottom of the Pre Deployment Generation Results window.

During deployment, Warehouse Builder displays a progress bar.

 

4.

After deployment, Warehouse Builder shows the Deployment Results for the dimension, including Deploy Status, number of Errors and number of Warnings.

Move your mouse over this icon to see the image

 

5.

Verify the deployment results and click OK to close the window.

 

Back to SubTopic List

Generating, Deploying, and Executing the Mapping

1.

Now that you have deployed the mapping's source external table, the target dimension, and the connector, you can deploy the mapping itself. In Deployment Manager, expand the Mappings node and select MAP_CHANNEL.

Click the Default Action button to change the Deploy Action for this mapping from None to Create.

Move your mouse over this icon to see the image

 

2.

Click the Generate/Deploy button on the toolbar (or from the File menu, select Generate/Deploy), to generate the code for the mapping.

You are prompted to commit or cancel changes before deploying. Click Commit.

 

3.

The Pre Deployment Generation Results window pops up showing the mapping that was selected for deployment including the Validation and Generation result. You can ignore the warning that "Column length of CHANNEL_CLASS is longer than the target column length."

Move your mouse over this icon to see the image

To deploy the code for the mapping, click Deploy at the bottom of the Pre Deployment Generation Results window.

During deployment, Warehouse Builder displays a progress bar. After deployment, Warehouse Builder shows the Deployment Results, including Deploy Status, number of Errors and number of Warnings.

 

4.

After deployment, Warehouse Builder shows the Deployment Results, including Deploy Status, number of Errors and number of Warnings.

Move your mouse over this icon to see the image

Verify the deployment results and click OK to close the window.

 

5.

Click the Execute button on the toolbar (or from the File menu, select Execute), to run this mapping that populates the CHANNELS dimension.

Deployment Manager presents an Execution Parameters dialog box to customize the execution.

Move your mouse over this icon to see the image

Accept all of the default values and click Execute. A progress bar appears while the execution is in progress.

 

6.

When execution finishes, an Execution Results window appears. It shows audit data about the number of records inserted, updated, deleted, and merged. A message log is also shown.

Move your mouse over this icon to see the image

All audit details are also stored in the runtime repository accessible through the Runtime Audit Browser, which is covered in the next topic.

 

Back to SubTopic List

Checking Execution Results with Runtime Audit Browser

Back to Topic List

Now that you have deployed a dimension and populated it by executing a mapping, you can monitor the results of object deployments and mapping executions by using OWB Runtime Audit Browser. Before invoking OWB Runtime Audit Browser, you must start an OC4J instance.

1.

Select Start > Programs > {your Oracle - OWBclientHome}> Warehouse Builder > Start OWB OC4J Instance.

 

2.

A window is displayed. Wait for the following text to appear:

Oracle9iAS containers for J2EE Initialized

Move your mouse over this icon to see the image

Minimize (do not close) the window.

 

3.

Select Start > Programs > {your Oracle - OWBclientHome}> Warehouse Builder > OWB Runtime Audit Browser.

 

4.

A browser window appears, and eventually presents a login window with the local address:

http://127.0.0.1:8999/owbb/RABLogin.uix

If the browser does not take you automatically to the login window after about one minute, then enter the above address manually.

Move your mouse over this icon to see the image

 

5.

The browser window asks for run-time connection information. Enter the following information:

Select Role: Warehouse Engineer
Runtime Repository: runtime_owner
Password:   runtime_owner
Host Address: localhost
Host Port Number: 1521
Host Service Name: obeowb

Click View Deployment Report.

 

6.

The Runtime Audit Browser shows a Deployment Schedule report listing all past deployments.

Expand each deployment instance, and you should see deployments of your connector, your external table, your dimension, and your mapping.

Move your mouse over this icon to see the image

 

7.

Near the upper left corner of the report window, note that the Deployment Schedule tab is highlighted. Click the Object Summary tab. This report lists all deployments sorted by object type.

Click the MAP_CHANNEL deployment.

 

8.

Near the upper right corner of the report window, note that the Deployment tab is highlighted.

Move your mouse over this icon to see the image

Click the Execution tab. Examine the details of the mapping’s execution. How many records were merged?

 

9. In the View Execution Report column at the right, click the eyeglass icon to view the detailed execution report. Scroll through the report. What was the elapsed time of the mapping execution?
10.

Spend a few minutes navigating through some other reports. Then, click Log Out in the upper right corner, and close the browser.

Stop the OWB OC4J Instance - Select Start > Programs > {your Oracle - OWBclientHome}> Warehouse Builder > Stop OWB OC4J Instance.

 

Summary

Back to Topic List

The Deployment Manager provides the unified interface to deploy code to target platforms. The user-friendly interface provides knowledge-based deployment as well as full of deployment actions per runtime platform. Managing deployment and execution is made easy by using the Deployment Manager.

In this module you should have learned how to:

Create a runtime repository including runtime owner, connect user, and target
Use Deployment Manager to instantiate your data warehouse target
Use Runtime Audit Browser to check your execution results

Move your mouse over this icon to hide all screenshots

 

 

 

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy