| Oracle9i Warehouse Builder User's Guide Release 9.2 Part Number B10996-01 |
|
After you design and configure the logical definitions of your target system, you can deploy and create the physical instance of your target. You can then execute deployed mapping and process flow scripts to load or update your data. If you are working with a previously deployed system, you can view deployment history and plan an upgrade. All of these processes are all managed by a component in Warehouse Builder called the Runtime Platform Service.
This chapter contains the following topics:
Deployment is the process of creating your target system from the logical design or model. The process includes generating scripts such as DDL that create data objects such as tables, views, and dimensions. The process also includes generating PL/SQL and SQL*Loader scripts that load data into data objects. The Runtime Repository stores detailed information about every deployment. This information determines default deployment actions for future deployments. For example, when you deploy a set of objects that already exists in the target system, upgrade is the default action. You can also access deployment data reports using the Runtime Audit Browser. For more information, see Chapter 14, "Auditing Deployment and Execution".
When you deploy or upgrade a target system using Warehouse Builder, you can either use the Deployment Manager or you can deploy objects directly from the navigation tree. The Deployment Manager offers a comprehensive deployment console that allows you to view and manage all aspects of deployment including configuration and validation. The Deployment Manager also allows you to view the deployment history of an object to determine how you want to deploy the object. These options are not available if you deploy objects from the navigation tree.
Prior to deployment, you must ensure the following:
You can define runtime repository connections, locations, and connectors at anytime prior to deployment. These objects are necessary for deployment as they define the connection information for data sources and target as well as the connection between these locations. After these are defined, you can proceed to deploying to your target system.
Runtime Repository Connections describe a connection to the Runtime Repository that represents the collection of systems and tools that comprise the target system you design. The Runtime Repository also helps to manage deployments to this collection and collects all of the audit data. These connections represent connections to the Runtime Repositories that were installed using the Runtime Assistant. For more information about the Runtime Repository, see the Oracle9i Warehouse Builder Installation and Configuration Guide.
When you deploy objects, you must select a Runtime Repository Connection. The physical details of the logical locations are registered within a Runtime Repository. The Runtime Repository dispatches the generated scripts to the appropriate physical location during the deployment operation. Audit data created during the deployment operation is stored in the Runtime Repository and can be displayed by using the Runtime Audit Browser. Before you can use deployment, you must install Runtime Repositories, and create Runtime Repository Connections in the navigation tree.
The Runtime Repository Connection Wizard Welcome page displays.
The Name Page displays. Use this page to define the following information for the runtime repository connection:
There are no pre-assigned default values assigned to a new runtime repository connection.
The Details Page displays. Use this page to define the following information for the runtime repository:
The Finish Page displays. Use this page to verify the definition of the new runtime repository. This page lists the name, host name, port number, service name, user name, and runtime repository name.
The runtime repository connection is created and added under the Runtime Repository Connections node.
To edit a runtime repository connection, right-click the runtime repository connection from the navigation tree and select Properties. Warehouse Builder displays the properties window as shown in Figure 13-1.
This page displays the properties of the selected runtime repository connection. Use the following two tabs to view and edit the properties. Click OK to save changes or Cancel to close the window.
When you are ready to deploy objects, you can either use the Deployment Manager or you can select and deploy objects from the navigation tree. Deploying objects from the navigation tree is a very simple, quick process of deployment. This method is beneficial if you want Warehouse Builder to use the default deployment actions and you do not need to view the script prior to deployment. The default deployment action is determined by changes to the object design since the object was last deployed. For example, if you deploy an altered object, the default action will be upgrade.
The Deployment Manager offers a comprehensive deployment console and allows for more flexibility in deployment options. For more information, see "Using the Deployment Manager".
To deploy objects from the navigation tree:
The Select Runtime Repository Connection dialog displays.
Warehouse Builder generates the scripts for the selected objects and the Pre-Deployment Generation Results window displays.
Warehouse Builder deploys the object using the default deployment settings. The Runtime Repository you select stores the data about the deployment.
The Deployment Manager offers the most flexible way to deploy objects using Warehouse Builder. When you open the Deployment Manager, you can access the design objects that exist in your current project. After the Deployment Manager is open, you can select objects from the tree and set them for deployment. Special icons appear on the tree next to these objects. After you have selected the objects and set their deployment action you can then use the Deploy button to validate the objects and generate the scripts based on their current design. These results display in the generation preview screen. You can confirm the objects you want to deploy as well as catch any errors. Complete the deployment by deploying the scripts to the target locations using the current Runtime Repository Connection.
A dialog displays asking for you to select a Runtime Repository Connection.
The Connection Information dialog for the Runtime Repository you have selected displays.
The first time you connect to a specific Runtime Repository, you must verify the password. The password is then stored and you can access the repository during the Warehouse Builder session without entering it again.
The Deployment Manager opens with the current project displayed in the left window, as shown in Figure 13-2.
The Deployment Manager has the following components:
When you open the Deployment Manager, the deployment tree is on the left side. The tree is initially collapsed into a list of Locations and Collections which can be expanded to display their contents, as shown in Figure 13-3. You can use this tree to register locations, select objects for deployment, and view deployment history. Modules that do not have an associated location do not display in the Deployment Manager.
When you select an object in the tree, the deployable objects within that object are displayed on the right. You can select multiple objects from the deployment tree by using the Control or Shift keys.
Select a view from the drop-down list above the deployment tree to limit the objects displayed. Table 13-1 describes the columns displayed in the view selector.
The Details Tab, located on the right side of the Deployment Manager, displays a summary of information relevant to the object or set of objects selected in the deployment tree. As the status of an object changes, the Details tab reflects those changes. You can also use the buttons on the bottom of the tab to alter the Deploy Action status. The Default Action button changes the Deploy Action, and the Reset button resets the Deploy Action columns back to None if an changes have been made. Figure 13-4 shows the Deployment Window with the Details Tab displayed.
Table 13-2 describes the columns displayed in the Details tab.
The Default Action button automatically updates the action for the objects you select. The default action is determined by the data stored in the design and runtime repositories. The details for the objects are shown in the Details tab. The following rules are used to determine the default action:
The History tab displays the deployment history for the selected objects, as shown in Table 13-5.
Table 13-3 describes the columns displayed in the History tab.
The toolbar, as shown in Table 13-6, is located in the upper left side of the Deployment Manager contains shortcuts to a few tasks.
Table 13-4 describes these tools.
Before objects can be deployed successfully, all of the location being used must be registered. When you create locations during the design process, you create logical definitions which are limited to only the name, type, and version of the location. This logical information is stored and used to determine which objects can be deployed. All modules must have locations assigned to them in order for them to be used during deployment. This includes the target as well as any sources or files.
When you register locations, you specify the connection information that will be used during deployment to connect to the various data sources and targets. You only have to supply this information the first time you use the location during a deployment. The same connection information is used for future deployments unless you change it.
Database locations can be defined using either Host Name, Port Number and Service Name or by Net Service Name and Service Name. Net Service Name is a name that is defined in your tnsnames.ora file. A Net ServiceName should be defined in the appropriate Oracle Home. For example, to deploy to a location identified by Net Service Name the name should be defined in the Oracle Home of the Runtime Platform Service.
Database links are generated in the form <service-name>@<connector-name>. If you have global-names set to true, it is important that the service-name you specify for the location matches the global-name of the database you want to link to.
For RAC systems the service-name is typically the cluster-service name. To use RAC it is advisable that you use Net Service Names since this will give you control over some of the RAC features in the tnsnames definition, such as client-side load balancing.
The Location Registration window appears. Depending on the type of location, there are different connection information requirements. There are no pre-assigned default values.
Select either Net Service Name or Host Name and provide the following connection details:
Select either Net Service Name or Host Name and provide the following connection details:
Select either Net Service Name or Host Name and provide the following connection details:
Select either Net Service Name or Host Name and provide the following connection details:
The Deployment Manager displays a collapsed view of the project tree in the left pane of the window.
If this is not you initial deployment you can select another action. Actions include Create, Upgrade, Drop and Replace.
Alternatively, you can click Default Action. This will change the Deploy Action for each object to a default value. If the object has not been previously deployed, the default action is Create.
The Deployment Manager allows you to view the deployment history of objects within the project. This can be useful when making decisions about upgrades.
To view deployment history:
After you have selected the objects you want to deploy, there are a few steps to complete the deployment.
To complete deployment:If this is the first time you are deploying objects to a Location, you will be asked for physical details of the Location.
The Pre Deployment Generation Results page displays.
You can view the generated script by selecting the script in the lower half of the dialog and clicking View Code.
The deployment is completed and the Deployment Results display.
The deployment is now finalized. The deployment action and status for the objects you deployed are updated in the Deployment Manager.
In some cases you may find it helpful to save all deployment scripts for a given deployment. You can do that using the Deployment Manager.
To save deployment scripts:When you are deploying objects, a Deployment Preview page displays prior to deployment completion. From this page, you can save the individual file or the entire deployment specification.
You can execute two types of objects after deployment: mappings and process flows. The most direct way to execute mappings and process flows designed and deployed using Warehouse Builder is to use the Deployment Manager. After you deploy process flows or mappings to your target system, they are available for execution. You can select a mapping or process flow from the project tree within the Deployment Manager and then execute it.
The Deployment Manager displays an expanded view of the project tree in the left pane of the window. All objects are listed under their assigned Locations. Expand the locations node to view objects.
This limits the objects displayed on the deployment tree to only objects that have been deployed.
The selected object displays in Detail tab on the right side of the Deployment Manager.
The Execution Dialog displays.
The execution is performed and the results display.
This completes the execution and you can proceed to execute other mappings or process flows.
With Warehouse Builder, you have two main options for executing process flows: you can execute them from within Warehouse Builder using the Deployment Manager as described above, or you can execute them from Oracle Workflow. In addition, you can use Warehouse Builder to integrate with Oracle Enterprise Manager to schedule these process flow executions.
For information about Oracle Workflow, see the Oracle Workflow Guide. For information about Oracle Enterprise Manager, see the Oracle Enterprise Manager Administrator's Guide.
In addition to running mappings and process flows from Warehouse Builder, you can use Warehouse Builder to create jobs in Oracle Enterprise Manager (OEM) that you can schedule to run at specific times or schedules.
Before you can begin scheduling, the following must be complete:
The deployment status should be Successful.
The Create Job window opens and displays 5 tabs.
Use the Add button to move the selected target to the Selected Targets column.
You can either import the script oem_exec_template that is provided as part of the Oracle Warehouse Builder or you can copy and paste the content of the script.
The script is located in: <OWB home>\owb\rtp\sql
The script has to run under the runtime access user. These can be set as preferred credentials. Make sure you have the right credentials.
|
|
![]() Copyright © 2001, 2003 Oracle Corporation. All Rights Reserved. |
|