1 Copyright © 2009, Oracle. All rights reserved. Administrative Tasks in Warehouse Builder
Copyright © 2009, Oracle. All rights reserved Objectives After completing this lesson, you should be able to: Set up and manage multiple named configurations Use configuration templates Describe OWB configurations in RAC environments Schedule ETL jobs
Copyright © 2009, Oracle. All rights reserved Lesson Agenda Set up and manage multiple named configurations –Explain the concept of multi-configuration –Relate locations, control centers, and named configurations –Describe how to apply multi-configuration to a Dev-QA-Prod scenario –Use OWB configuration user interface to easily inspect and manage multiple configurations Use configuration templates Describe OWB configurations in RAC environments Schedule ETL jobs
Copyright © 2009, Oracle. All rights reserved Enterprise ETL License Extends Core In-Database ETL OWB In-Database Integrated with Oracle Database 11g R2 Design ETL mappings View HTML metadata reports Perform data cleansing Use GUI or scripting language Data Profiling & Quality ODI-EE license Application Adapters Data Watch & Repair Integrate with Oracle MDM: Siebel Universal Customer Master Product Information Management Data Hub Customer Data Hub Create new metadata types Promote from Dev>QA>PROD Navigate lineage & impact Propagate metadata changes Create advanced mappings and process flows logic Create pluggable mappings Apply Slowly changing dimensions type 2 and 3 Deploy XML file targets Use transportable modules Design in RAC environment Access to data and metadata in: SAP R/3 E-Business Suite PeopleSoft Siebel Profile tables, files, applications Detect or create data rules Audit incoming data Correct data Oracle Warehouse Builder
Copyright © 2009, Oracle. All rights reserved
Copyright © 2009, Oracle. All rights reserved Scenario Requiring Multiple Configurations Problem: How do I configure and transition among development, QA, and production environments? Development Physical implementation QA Physical implementation Production Physical implementation - No logging - Nonparallel - Tablespace: dev_data - Table EMP Location: loc1 - No logging - Parallel - Tablespace: prod_data - Table EMP Location: loc2 Required development settings Required production settings
Copyright © 2009, Oracle. All rights reserved Loose Coupling of Metadata with Physical Implementations OWB supports one logical model and multiple physical run times: Configuration 1: Its control center points to the Development run-time location. Configuration 2: Its control center points to the QA run-time location. Configuration 3: Its control center points to the Production run-time location. Development Physical implementation QA Physical implementation Production Physical implementation
Copyright © 2009, Oracle. All rights reserved Each Configuration Records the Physical Settings of Its Target Environment Named configurations for multiple deployments No need to write scripts to change logging, tablespace names, and so on Physical configuration: Development - No logging - Nonparallel - Tablespace: dev_data - Table EMP Location: loc1 - No logging - Parallel - Tablespace: prod_data - Table EMP Location: loc2 Physical configuration: Production Single logical design
Copyright © 2009, Oracle. All rights reserved Multiple Named Configurations: Why and How Why should I use multiple named configurations? –To maintain a single design for objects –To change the generated code per target database –To deploy, without hard-coding and writing scripts, to different repositories in a controlled way How do I use multiple named configurations? –Separate logical from physical with a loose coupling of logical design and physical implementation. — Define named configurations (holding physical information for objects) for each of your run times. — Active configuration substitutes physical properties into generated code. –Deploy code into its targeted database.
Copyright © 2009, Oracle. All rights reserved Deploying a Selected Configuration A single logical design can be deployed to different repositories by applying different configurations. Development Physical implementation QA Physical implementation Production New software release Generate Deploy Code Apply Dev configuration. Apply QA configuration. Apply Prod configuration. Single repository Select an active configuration. Generate Deploy Code Generate Deploy Code
Copyright © 2009, Oracle. All rights reserved Configurations, Control Centers, and Locations Control center Locations 1 n Named configuration 1 1 Configuration points to one control center. One “active” configuration 1 Control center can point to multiple source and target locations. 2 3
Copyright © 2009, Oracle. All rights reserved Creating Additional Configurations and Control Centers Control center agents are required only in code template-based mappings, taught in a later lesson.
Copyright © 2009, Oracle. All rights reserved Setting the Active Configuration Only one configuration can be active at a time. There are two ways to set the active configuration. To quickly check which configuration is active, examine the Design Center status bar. 1 2
Copyright © 2009, Oracle. All rights reserved Configuring Objects Across All Configurations Highlight differences
Copyright © 2009, Oracle. All rights reserved Cloning a Database to Create Identical Dev-QA-Prod Systems In contrast to deploying different versions, if you want to rapidly roll out a set of identical systems, you should consider cloning the database. The process of cloning typically changes host names and service names. The host names and service names are stored in the control center repository in each target repository schema. You need to change their persisted values after cloning. Clone and then change host and service names. Design repository Host name: A svce. Name: A schema: A Development Host name: X svce. Name: X schema: A Production Host name: Z svce. Name: Z schema: A QA Host name: Y svce. Name: Y schema: A
Copyright © 2009, Oracle. All rights reserved
Copyright © 2009, Oracle. All rights reserved Practice 1-1 Overview: Using Multiple Named Configurations This practice covers the following topics: Defining multiple configurations Comparing an object’s differing values across different configurations
Copyright © 2009, Oracle. All rights reserved Lesson Agenda Set up and manage multiple named configurations Use configuration templates Describe OWB configurations in RAC environments Schedule ETL jobs
Copyright © 2009, Oracle. All rights reserved Configuration Templates Configuration template Control center Config props Object Physical system Location Logical system Module AssociatesOwns Sets/overwrites Owns Implemented in
Copyright © 2009, Oracle. All rights reserved
Copyright © 2009, Oracle. All rights reserved Creating a New Configuration Template Configuration template has a column called “Seeded Default” that contains the default repository values. The column to the right of the defaults contains the property values for a different configuration template.
Copyright © 2009, Oracle. All rights reserved Associating a Configuration Template with a Configuration Create Configuration Wizard lets you select a different configuration template if you want to override the system’s default configuration values. The Configurations drop-down list is now on the toolbar, and is therefore easily visible and accessible. Select Create New Configuration to create a new configuration.
Copyright © 2009, Oracle. All rights reserved Overriding Default Configuration Settings If DEFAULT_CONFIGURATION is active, note that the CHANNELS table configuration shows default settings. When PRD_CONFIG is active, the settings you applied for the PARALLEL property of the Tables object type is effective. So the CHANNELS table uses the new configuration settings.
Copyright © 2009, Oracle. All rights reserved Practice 1-2 Overview: Using Configuration Templates In the hands-on practice, you will perform the following: Create a new configuration template Associate the new template with a new configuration
Copyright © 2009, Oracle. All rights reserved Lesson Agenda Set up and manage multiple named configurations Use configuration templates Describe OWB configurations in RAC environments Schedule ETL jobs
Copyright © 2009, Oracle. All rights reserved Control Center Service Control Center Service Failover on RAC 1.Control Center Service (CCS) node fails. 2.CCS goes down. 3.CCS comes up on a different node of the RAC. 4.CCS resumes activities. Control center Single logical instance
Copyright © 2009, Oracle. All rights reserved Design repository Control center Control center Single logical instance RAC Deployment Locations are defined using net service names, not host:port:service.
Copyright © 2009, Oracle. All rights reserved Supported and Unsupported RAC Features Load balancing –Connection load balancing based on server (supported) –Client-side load balancing (not supported) Failover types –Connect failover: node, listener, instance down (supported with properly configured tnsnames.ora ) –Transparent Application Failover (not supported) –Multiple concurrent Control Center Services (not supported)
Copyright © 2009, Oracle. All rights reserved Steps for Setting Up OWB in a RAC Environment Install OWB. Configure database and OWB. Monitor nodes. Troubleshoot. 1. Decide whether to use OWB with shared storage or with nonshared local disks on each RAC node. Same path for each OWB install. 2. Choose Cluster or Local Installation; run root.sh on each node. 4. Use Runtime Assistant on other nodes to register the repository. 3. Install OWB repository only once, to one node. If using a shared disk, install repository there. 6. Replicate RTREPOS.PROPERTIES and TNSNAMES.ORA on each node. 7. Define OWB locations with TNS names, not host:port:service. 8. Use OWB Browser to monitor, enable, or disable Control Center Service on a node. 9. Search logs on nodes, run helpful utilities, avoid common mistakes. 5. On the database, set MAX_COMMIT_PROPAGATION_DELAY to 0.
Copyright © 2009, Oracle. All rights reserved Lesson Agenda Set up and manage multiple named configurations Use configuration templates Describe OWB configurations in RAC environments Schedule ETL jobs
Copyright © 2009, Oracle. All rights reserved Scheduling Concepts Schedule_Module 1 EVERY_2_HOURS MONTHLY_SALES SALES_EVERY_30_MIN Schedule_Module 2 HOURLY_LOAD
Copyright © 2009, Oracle. All rights reserved Creating a Schedule Module
Copyright © 2009, Oracle. All rights reserved Creating a Schedule
Copyright © 2009, Oracle. All rights reserved Create Schedule Wizard: Name and Description
Copyright © 2009, Oracle. All rights reserved Create Schedule Wizard: Start and End Time
Copyright © 2009, Oracle. All rights reserved Create Schedule Wizard: Frequency and Repeat Interval
Copyright © 2009, Oracle. All rights reserved Monthly Schedule Monthly frequency Repeat interval Day of month
Copyright © 2009, Oracle. All rights reserved Editing a Schedule Schedule preview Schedule runs at 9 AM, 11 AM, 1 PM, 3 PM, 5 PM Specifications from the wizard Additional advanced specifications in the editor
Copyright © 2009, Oracle. All rights reserved Run One Week into the Next Quarter Run quarterly Run on the 8 th day after each quarter
Copyright © 2009, Oracle. All rights reserved Associating an Executable Object with a Schedule Associate executable with a schedule. Deploy SCHEDULE - Start date and time - Schedule frequency - Repeat interval - End date and time EXECUTABLE OBJECT - Mapping - Transformation - Process flow Database scheduler
Copyright © 2009, Oracle. All rights reserved Assigning a Schedule to an Executable Object A schedule assigned to the LOAD_SALES mapping Sales_Quarter mapping configuration
Copyright © 2009, Oracle. All rights reserved Quiz Which of the following statements are true? a.OWB supports one logical model and multiple physical run times. b.A single logical design can be deployed to different targets by applying different configurations. c.Only one configuration can be active at a time. d.The Create Configuration Wizard lets you select a different configuration template if you want to override the system’s default configuration values.
Copyright © 2009, Oracle. All rights reserved Summary In this lesson, you should have learned how to: Set up and manage multiple named configurations Use configuration templates Describe OWB configurations in RAC environments Schedule ETL jobs
Copyright © 2009, Oracle. All rights reserved Practice 1-3 Overview: Creating a Schedule This practice covers the following topics: Using the scheduling wizard a schedule that activates every two hours Editing the schedule to define more advanced scheduling capabilities Attaching the schedule to a process flow