| Oracle9i Warehouse Builder Installation and Configuration Guide Release 9.2.0.3 Part Number B11000-02 |
|
This chapter provides instructions for upgrading an existing system that was built using a prior version of Warehouse Builder to Oracle9i Warehouse Builder Release 9.2.0.3. Upgrading to the current version consists of three main tasks: upgrading your software, upgrading your metadata, and migrating your runtime system. Test the new installation before you deinstall the previous Warehouse Builder version and its repositories.
This chapter includes the following topics:
ORACLE_HOME after reading the instructions in Section 3.2, "Installing Warehouse Builder in a Separate ORACLE_HOME".
For detailed installation instructions, refer to Chapter 2, "Installing Oracle9i Warehouse Builder Components" of this manual. These instructions also guide you through the creation of a new Design Repository, Runtime Repository, and one or more Target Schemas. You will need these new repositories and schema(s) for the migration, unless you are upgrading from Warehouse Builder Release 9.0.4, in which case you can choose not to create a new Design Repository (refer to Section 3.4, "Importing Design Metadata" for more information on this choice).
When you mount the installation CD, specify the source file locations and your ORACLE_HOME destination. Install the new version of the Warehouse Builder software in a separate ORACLE_HOME. For more information on ORACLE_HOMEs, refer to Section 1.7, "Coexistence: ORACLE_HOME Considerations".
If you are using your Warehouse Builder 9.0.4 Runtime Access User as your Warehouse Builder 9.2 Runtime Access User, leave the Runtime Access User Name blank in the Runtime Assistant.
If you plan to use a new Runtime Access User as your Warehouse Builder 9.2 Runtime Access User, enter the Runtime Access User Name in the Runtime Assistant.
Keep your previous repository until the entire upgrade process has been performed and tested. Export each project or collection you want to migrate to Metadata Loader (MDL) files. For more information on exporting metadata, see the Oracle9i Warehouse Builder User's Guide.
To export existing metadata into an MDL file:
The Metadata Loader assigns a path and file name to the exported MDL file. Make a note of the path and filename for all data you export. For more information on exporting metadata, refer to the Oracle9i Warehouse Builder User's Guide.
After having installed the new software, you must import and upgrade your design metadata into the new version of Warehouse Builder. For more information on importing metadata, see the Oracle9i Warehouse Builder User's Guide.
|
Note: Warehouse Builder upgrade does not support files that were exported or imported using back end database commands. |
If the file is from the current version of Warehouse Builder, the Metadata Import Progress panel displays. This dialog displays the object types and the number of each type that were imported or skipped. For a detailed view of the import process, click View Log File.
If Warehouse Builder detects that the file is from a prior version of Warehouse Builder, the Metadata Upgrade Confirmation dialog displays. In this case, Warehouse Builder automatically upgrades the MDL file to the current version and then imports it.
Migrated File Name: Specify the path and name of the new, upgraded MDL file. Use the Browse button to specify the destination of the file.
Log File: Specify the path and name of the log that MDL creates during the upgrade process. Use the Browse button to specify the destination of the file.
Click OK to continue the upgrade and import.
Click Cancel to stop the upgrade and import of the file. You can upgrade the file manually by using the MDL File Upgrade utility. For more information, refer to Appendix C, "Upgrading Metadata with the MDL File Upgrade Utility".
This step applies only if you are upgrading from Warehouse Builder Release 9.0.4 to the current release. If you are upgrading from an earlier release, skip this section and continue to Section 3.6, "Migrating Data to Your New Target Schemas".
Warehouse Builder includes a script that upgrades your Target Schema and migrates the audit data from your Release 9.0.4 Runtime Repository to a Release 9.2.0.3 Runtime Repository. This script migrates all the audit data, including the deployment audit data. This means that the Deployment Manager in your new Runtime Repository will show the correct status for objects you deployed using the previous version of Warehouse Builder. Additionally, you will have access to audit data from previous runs that you performed in Oracle9i Warehouse Builder Release 9.0.4.
For this step, you can either use a new Runtime Access User or specify an existing Release 9.0.4 Runtime Access User. The upgrade script converts all users associated with the Release 9.0.4 Runtime Repository to be associated with the Release 9.2.0.3 Runtime Repository.
To migrate audit data from Release 9.0.4 to a Release 9.2.0.3 Runtime Repository:SYS account as SYSDBA. For example:
connect sys/password@db_connect_stringas sysdba;
For Windows: ORACLE_HOME\owb\rtp\sql\upgrade_9_0_4_runtime_repos_to_9_2.sql 904_repository_schema 92_repository_schema
For UNIX: ORACLE_HOME/owb/rtp/sql/upgrade_9_0_4_runtime_repos_to_9_2.sql 904_repository_schema 92_repository_schema
In this statement, ORACLE_HOME is the path of the ORACLE_HOME in which you installed Warehouse Builder Release 9.2.0.3.
For example, if your Release 9.0.4 Runtime Repository schema was RTR904 and your new schema is RTR92, then run the following script:
ORACLE_HOME\owb\rtp\sql\upgrade_9_0_4_runtime_repos_to_9_2.sql RTR904 RTR92
For UNIX, replace each backward slash (\) with a forward slash (/).
Once you have migrated the data, the Release 9.0.4 Target Schema and (if you selected) the Runtime Access User are associated with the Release 9.2.0.3 Runtime Repository. All deployment and execution data is migrated to this new repository, and you can browse it using the Release 9.2.0.3 Runtime Audit Browser.
The migration instructions depend on the version of Warehouse Builder from which you are upgrading:
Option 1. Regenerate Database Objects Using the Warehouse Builder Interface
Option 2. Export and Import Database Objects in the Oracle Database Server
Option 3. Create Synonyms for Original Objects in the New Target Schema
In this method, consider using the Warehouse Builder interface for a one-time migration. This method is recommended for beginning and intermediate users of Warehouse Builder, provided that your old Warehouse Builder environment does not stray from the recommended setup.
Table 3-1 describes the advantages and drawbacks of this method.
| Outcome | Description |
|---|---|
|
Advantages |
|
|
Drawbacks |
For more instructions on registering locations, creating source and target modules, and creating and executing mappings, refer to the Oracle9i Warehouse Builder User's Guide.
This method is recommended for advanced users of Warehouse Builder. You perform the data migration in the back end by exporting and importing the appropriate Warehouse Builder database objects.
Table 3-2 describes the advantages and drawbacks of this method.
| Outcome | Description |
|---|---|
|
Advantages |
|
|
Drawbacks |
|
Follow instructions in the Oracle Database Server documentation to export and import database objects.
Make sure that you are only working with database objects that you created yourself, and not with Warehouse Builder objects generated by Warehouse Builder. To this end, consider simply migrating the data and then regenerating the constraints, indexes, dimensions, and other objects you can generate in the database.
Examples of objects you should not export or import follow:
WB. These objects are generated by Warehouse Builder.
After the data migration, regenerate all mappings.
This method is a shortcut in which you create synonyms pointing to your original database objects in your new Target Schema. Instead of actual data, your new Target Schema will contain only the regenerated mappings and the pointers to the database objects containing the data.
Table 3-3 describes the advantages and drawbacks of this method.
| Outcome | Description |
|---|---|
|
Advantages |
|
|
Drawbacks |
|
Follow instructions in the Oracle Database Server documentation to create synonyms in your new Target Schema that point to existing database objects in your old environment.
Make sure that you are only working with database objects that you created yourself, and not with Warehouse Builder objects generated by Warehouse Builder. To this end, simply create synonyms for the data objects and then regenerate the mappings.
For example, do not create synonyms for audit tables or packages. If your old Warehouse Builder environment does not stray from the standard, then the tables and packages related to audit data are in your Runtime Schema.
If you are upgrading from Oracle9i Warehouse Builder Release 9.0.4 and followed the instructions in Section 3.5, "Upgrading Target Schema and Audit Data from Release 9.0.4", you can choose to skip this step.
If you are upgrading from Oracle9i Warehouse Builder Release 9.0.3 or earlier, you must redeploy your mappings. With the upgraded version of Warehouse Builder, the runtime architecture has changed. To propagate these changes into your generated code, redeploy your mappings. After you have redeployed your mappings, do not use the old mappings again.
For example, redeployment ensures that your mappings refer to the correct auditing packages. Additionally, redeploying allows you to take advantage of new code generation features available in the new version of Warehouse Builder.
For instructions on deploying mappings, refer to the Oracle9i Warehouse Builder User's Guide. After redeploying, test your mappings to ensure that they still work.
After redeploying your mappings, update the configuration of each mapping to benefit from the new features available in the upgraded version of Warehouse Builder.
Use the following criteria to determine whether you can skip this section:
You can update the mapping configuration either by using the Warehouse Builder interface, or by running a script to update all the mappings in the Oracle Metabase (OMB) Plus scripting utility.
To update the configuration of each mapping using the Warehouse Builder interface:
Delete the contents of the Schema configuration parameters field.
Delete the contents of the DB Links configuration parameters field.
Alternatively, you can update all your mappings by running the script provided for this purpose on the Oracle Technology Network. The update script is called UpdMapConfig.tcl.
UpdMapConfig.tcl file from http://otn.oracle.com/sample_code/products/warehouse/content.html.
At the OMB Plus prompt, type source, followed by the location of the script enclosed in double quotes. For every backward slash, enter a second backward slash to escape the first. For example, if your script is located in c:\temp, type:source "c:\\temp\\UpdMapConfig.tcl"
owb_reset_mapping_conns
OMBCOMMIT
Repeat this step by navigating to other target modules using the OWBCC command and running the owb_reset_mapping_conns command again.
You can gradually phase out your old system once your upgrade has been tested and is working. You can perform this step in parallel with Section 3.8, "Updating Mapping Configuration to Benefit from New Features".
|
Note: Do not indiscriminately remove your old system if you followed "Option 3. Create Synonyms for Original Objects in the New Target Schema" in the "Migrating Data to Your New Target Schemas" step. Do not remove the database objects to which the synonyms your created are pointing. |
|
|
![]() Copyright © 1996, 2003 Oracle Corporation. All Rights Reserved. |
|