104059052 course sg2 unlocked

448
Oracle BI 11g R1: Build Repositories Volume II - Student Guide D63514GC10 Edition 1.0 October 2010 D69304 Oracle Internal & Oracle Academy Use Only

Upload: ankit-gupta

Post on 19-Apr-2015

120 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 104059052 Course Sg2 Unlocked

Oracle BI 11g R1: Build RepositoriesVolume II - Student Guide

D63514GC10

Edition 1.0

October 2010

D69304

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 2: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or it affiliates. All rights reserved.

Disclaimer

This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle.

The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free.

Restricted Rights Notice

If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable:

U.S. GOVERNMENT RIGHTSThe U.S. Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract.

Trademark Notice

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

AuthorJim Sarokin

Technical Contributors and Reviewers

Marla AzrielRoger BolsiusBob ErtlAlan Lee Monica MooreKasturi ShekharAneel ShenkerScott SilbernickNick TusonKrishnan Viswanathan

Graphic Designer

Rajiv Chandrabhanu

Editors

Aju KumarDaniel MilneRichard Wallis

Publishers

Syed AliGiri Venugopal

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 3: 104059052 Course Sg2 Unlocked

iii

Contents

1 Course Introduction Lesson Agenda 1-2 Instructor and Class Participants 1-3 Training Site Information 1-4 Course Audience 1-5 Course Prerequisites 1-6 Course Goal 1-7 Course Objectives 1-8 Course Methodology 1-12 Course Materials 1-13 Course Agenda 1-14 Summary 1-19

2 Repository Basics Objectives 2-2 Oracle BI Server Architecture 2-3 Oracle BI Presentation Services 2-4 Oracle BI Server 2-5 Data Sources 2-6 Oracle BI Repository 2-7 Oracle BI Administration Tool 2-8 Physical Layer 2-9 Objects in the Physical Layer 2-10 Business Model and Mapping Layer 2-11 Objects in the Business Model and Mapping Layer 2-12 Business Model Mappings 2-13 Measures 2-15 Presentation Layer 2-16 Presentation Layer Mappings 2-17 Presentation Layer Defines the User Interface 2-18 Repository Directory 2-19 Repository Modes 2-20 Publishing a Repository 2-21 Using FMW Control to Manage OBI Components 2-22 Reloading Server Metadata 2-23 Sample Analysis Processing 2-24 Summary 2-25 Practice 2-1 Overview: Exploring an Oracle BI Repository 2-26

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 4: 104059052 Course Sg2 Unlocked

iv

3 Building the Physical Layer of a Repository Objectives 3-2 Physical Layer 3-3 Physical Layer Objects 3-4 Database Object 3-5 Database Object: General Properties 3-6 Database Object: Features 3-7 Connection Pool 3-9 Schema Folder 3-10 Physical Table 3-11 Physical Table Properties 3-12 Physical Column 3-14 Key Column 3-15 Physical Table: Alias 3-16 Joins 3-17 ABC Scenario 3-18 Implementation Steps 3-19 Create a New Repository File 3-20 Provide Repository Information 3-21 Select the Data Source 3-22 Select Metadata Types for Import 3-23 Select Metadata Objects for Import 3-24 Verify and Edit Connection Pool Properties 3-25 Verify Objects for Import 3-26 Verify Import in the Physical Layer 3-27 Verify Connectivity 3-28 Create Alias Tables 3-29 Define Keys and Joins 3-30 Defining Keys by Using the Table Properties Dialog Box 3-31 Opening the Physical Diagram 3-32 Defining Foreign Key Joins 3-33 Using the Joins Manager 3-34 Design Tips for the Physical Layer 3-35 Summary 3-36 Practice 3-1 Overview: ABC Business Scenario 3-37 Practice 3-2 Overview: Gathering Information to Build an Initial Business Model 3-38 Practice 3-3 Overview: Creating a Repository and Importing a Data Source 3-39 Practice 3-4 Overview: Creating Alias Tables 3-40 Practice 3-5 Overview: Defining Keys and Joins 3-41

4 Building the Business Model and Mapping Layer of a Repository Objectives 4-2 Business Model and Mapping (BMM) Layer 4-3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 5: 104059052 Course Sg2 Unlocked

v

Objects in the Business Model and Mapping Layer 4-4 Business Model Mappings 4-5 Objects in the Business Model and Mapping Layer 4-7 Business Model Object 4-8 Logical Tables 4-9 Logical Table Sources 4-10 Logical Table Source: Column Mappings 4-11 Logical Columns 4-12 Logical Primary Keys 4-13 Logical Joins 4-14 Measures 4-15 ABC Example 4-16 Implementation Steps 4-17 1. Create the Logical Business Model 4-18 2. Create the Logical Tables and Columns 4-19 3. Define the Logical Joins 4-20 4. Modify the Logical Tables and Columns 4-21 5. Define the Measures 4-22 Design Tips 4-23 Summary 4-24 Practice 4-1 Overview: Creating the Business Model 4-25 Practice 4-2 Overview: Creating Simple Measures 4-26

5 Building the Presentation Layer of a Repository Objectives 5-2 Presentation Layer 5-3 Subject Areas 5-4 Presentation Tables 5-5 Presentation Columns 5-6 Presentation Layer Mappings 5-7 Defining the User Interface in the Presentation Layer 5-8 Nesting Presentation Tables 5-9 Aliases 5-10 ABC Example 5-11 Implementation Steps 5-12 1. Create a New Subject Area 5-13 2. Rename Tables 5-14 3. Reorder Tables 5-15 4. Delete Columns 5-16 5. Rename Columns 5-17 6. Reorder Columns 5-18 Considerations 5-19 Design Tips 5-20

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 6: 104059052 Course Sg2 Unlocked

vi

Summary 5-21 Practice 5-1 Overview: Creating the Presentation Layer 5-22

6 Testing and Validating a Repository Objectives 6-2 Validating a Repository 6-3 ABC Example 6-4 Consistency Check 6-5 Checking Consistency 6-6 Consistency Check Manager 6-7 Marking a Business Model Available for Queries 6-8 Confirming a Consistent Repository 6-9 Publishing a Repository 6-10 Using FMW Control to Start OBI Components 6-11 Query Logging 6-12 Setting a Logging Level 6-13 Logging Levels 6-14 Validating by Using the Analysis Editor 6-15 Inspecting the Query Log 6-16 Oracle BI SELECT Statement: Syntax 6-17 Oracle BI SELECT Statement Compared with Standard SQL 6-18 Summary 6-19 Practice 6-1 Overview: Testing a Repository 6-20

7 Managing Logical Table Sources Objectives 7-2 Table Structures 7-3 Business Challenge 7-4 Business Solution 7-5 ABC Example: Adding Multiple Sources to a Logical Table Source (LTS) 7-6 Implementation Steps: Adding Multiple Sources to an LTS 7-7 1. Import Additional Product Tables 7-8 2. Create Aliases 7-9 3. Define Keys and Joins 7-10 4. Identify Physical Columns for Mappings 7-11 5. Adding Sources to an LTS 7-12 5a. Manual Method: Create New Logical Column 7-13 5a. Manual Method: Add New Physical Source 7-14 5a. Manual Method: Create Column Mapping 7-15 5a. Manual Method: End Result 7-16 5b. Drag Method 7-17 5b. Drag Method: Logical Columns Added 7-18 5b. Drag Method: Physical Tables Added 7-19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 7: 104059052 Course Sg2 Unlocked

vii

5b. Drag Method: Column Mappings Added 7-20 6. Rename Logical Columns 7-21 7. Add Columns to the Presentation Layer 7-22 ABC Example: Adding a New Logical Table Source 7-23 Implementation Steps: Adding a New Logical Table Source 7-24 1. Examine Existing Column Mappings 7-25 2. Identify a Single Table That Stores Both Columns 7-26 3. Add a New Logical Table Source 7-27 4. Define the Content of the Logical Table Source 7-28 5. Verify Your Work 7-29 Summary 7-30 Practice 7-1 Overview: Enhancing the Product Dimension 7-31 Practice 7-2 Overview: Creating Multiple Sources for a Logical Table Source (Manual) 7-32 Practice 7-3 Overview: Creating Multiple Sources for a Logical Table Source (Automated) 7-33 Practice 7-4 Overview: Adding a New Logical Table Source 7-34

8 Adding Calculations to a Fact Objectives 8-2 Business Problem 8-3 Business Solution 8-4 Creating Calculation Measures by Using Existing Logical Columns 8-5 1. Create a New Logical Column 8-6 2. Specify Logical Columns as the Source 8-7 3. Build a Formula 8-8 Creating Calculation Measures by Using Physical Columns 8-9 1. Create a New Logical Column 8-10 2. Map the New Column 8-11 3. Build the Formula 8-12 4. Specify an Aggregation Rule 8-13 Steps for Using the Calculation Wizard 8-14 1. Open the Calculation Wizard 8-15 2. Choose the Columns for Comparison 8-16 3. Select the Calculations 8-17 4. Confirm the Calculation Measures 8-18 5. New Calculation Measures Are Added 8-19 Add New Measures to the Presentation Layer 8-20 Examining a Query Using Physical Columns 8-21 Example: Using Physical Columns 8-22 Examining a Query Using Logical Columns 8-23 Example: Using Logical Columns 8-24 Examining a Query Using the Calculation Wizard 8-25 Using Functions to Create Expressions 8-26

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 8: 104059052 Course Sg2 Unlocked

viii

Summary 8-27 Practice 8-1 Overview: Creating Calculation Measures 8-28 Practice 8-2 Overview: Creating Calculation Measures by Using the Calculation Wizard 8-29 Practice 8-3 Overview: Creating a RANK Measure 8-30

9 Working with Logical Dimensions Objectives 9-2 Logical Dimensions 9-3 Logical Dimensions: Types 9-4 Level-Based Measures 9-5 Share Measures 9-6 Logical Dimension: Example 9-7 ABC Example 9-8 Creating a Level-Based Logical Dimension 9-9 1. Create a Logical Dimension Object 9-10 2. Add a Parent-Level Object 9-11 3. Add Child-Level Objects 9-12 4. Specify Level Columns 9-13 5. Create Level Keys 9-15 6. Set the Preferred Drill Path 9-16 7. Create Level-Based Measures 9-17 8. Create Additional Level-Based Measures 9-19 9. Create Share Measures 9-20 10. Add Measures to the Presentation Layer 9-21 11. Create Presentation Hierarchies 9-22 12. Test Measures and Hierarchies 9-23 Parent-Child Logical Dimensions 9-24 Parent-Child Hierarchy: Example 9-25 Parent-Child Logical Table 9-26 Parent-Child Relationship Table 9-27 Creating a Parent-Child Logical Dimension 9-28 1. Create a Logical Dimension Object 9-29 2. Set the Member Key 9-30 3. Set the Parent Column 9-31 4. Open the Parent-Child Relationship Table Settings Dialog Box 9-32 5. Enter Parent-Child Relationship Table Script Information 9-33 6. Enter Parent-Child Relationship Table Details 9-34 7. Preview Scripts 9-35 8. Confirm Parent-Child Relationship Table Settings 9-36 9. Confirm Changes to the BMM Layer 9-37 10. Confirm Changes to the Physical Layer 9-38 11. Modify the Physical Layer 9-39 12. Modify the BMM Layer 9-40

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 9: 104059052 Course Sg2 Unlocked

ix

13. Create the Presentation Hierarchy 9-41 14. Verify Your Work 9-42 Calculated Members 9-43 Summary 9-44 Practice 9-1 Overview: Creating Logical Dimension Hierarchies 9-45 Practice 9-2 Overview: Creating Level-Based Measures 9-46 Practice 9-3 Overview: Creating Share Measures 9-47 Practice 9-4 Overview: Creating Dimension-Specific Aggregation Rules 9-48 Practice 9-5 Overview: Creating Presentation Hierarchies 9-49 Practice 9-6 Overview: Creating Parent-Child Hierarchies 9-50 Practice 9-7 Overview: Using Calculated Members 9-51

10 Using Aggregates Objectives 10-2 Business Challenge 10-3 Business Solution: Aggregate Tables 10-4 Oracle BI Aggregate Navigation 10-5 Aggregated Facts 10-6 Modeling Aggregates 10-7 ABC Example 10-8 Steps to Implement Aggregate Navigation 10-9 1. Import Tables and Create Aliases 10-10 2. Create Joins 10-11 3. Create the Fact Logical Table Source and Mappings 10-12 4. Specify the Fact Aggregation Content 10-13 5. Specify Content for the Fact Detail Source 10-14 6. Create the Dimension Logical Table Source and Mappings 10-15 7. Specify the Dimension Aggregation Content 10-16 8. Specify Content for the Dimension Detail Source 10-17 9. Test Results for Levels Stored in Aggregates 10-18 10. Test Results for Data Above or Below Levels 10-19 Setting the Number of Elements 10-20 Aggregate Persistence Wizard 10-22 Aggregate Persistence Wizard Steps 10-23 1. Open the Aggregate Persistence Wizard 10-24 2. Specify a File Name and Location 10-25 3. Select the Business Model and Measures 10-26 4. Select Dimensions and Levels 10-27 5. Select the Connection Pool, Container, and Name 10-28 6. Review the Aggregate Definition 10-29 7. View the Complete Aggregate Script 10-30 8. Verify That the Script Is Created 10-31 9. Execute the Aggregate Creation Job 10-32 10. Verify Aggregates in the Physical Layer 10-33

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 10: 104059052 Course Sg2 Unlocked

x

11. Verify Aggregates in the BMM Layer 10-34 12. Verify Aggregates in the Database 10-35 13. Verify Your Work 10-36 Troubleshooting Aggregate Navigation 10-37 Considerations 10-38 Summary 10-39 Practice 10-1 Overview: Using Aggregate Tables 10-40 Practice 10-2 Overview: Setting the Number of Elements 10-41 Practice 10-3 Overview: Using the Aggregate Persistence Wizard 10-42

11 Using Partitions and Fragments Objectives 11-2 Business Challenge 11-3 Business Solution: Oracle BI Server 11-4 Partition 11-5 Partitioning by Fact 11-6 Partitioning by Value 11-7 Partitioning by Level 11-8 Complex Partitioning 11-9 ABC Example: Value Based (Order Date) 11-10 ABC Example: Fact Based (Quota) 11-11 Implementation Steps 11-12 Specify Fragmentation Content 11-13 Summary 11-14 Practice 11-1 Overview: Modeling a Value-Based Partition 11-15 Practice 11-2 Overview: Modeling a Fact-Based Partition 11-16 Practice 11-3 Overview: Using the Calculation Wizard to Create Derived Measures 11-17

12 Using Repository Variables Objectives 12-2 Variables 12-3 Variable Manager 12-4 Variable Types 12-5 Repository Variables 12-6 Static Repository Variables 12-7 Dynamic Repository Variables 12-8 Session Variables 12-9 System Session Variables 12-10 Non-System Session Variables 12-11 Initialization Blocks 12-12 Initialization Block: Example 12-13 Initialization Block Example: Edit Data Source 12-14 Initialization Block Example: Edit Data Target 12-15 ABC Example 12-16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 11: 104059052 Course Sg2 Unlocked

xi

Implementation Steps 12-17 1. Open the Variable Manager 12-18 2. Create an Initialization Block 12-19 3. Edit the Data Source 12-20 4. Edit the Data Target 12-21 5. Test the Initialization Block Query 12-22 6. Use the Variable to Determine Content 12-23 7. Verify the Initialization 12-24 8. Verify Your Work 12-25 Summary 12-26 Practice 12-1 Overview: Creating Dynamic Repository Variables 12-27 Practice 12-2 Overview: Using Dynamic Repository Variables as Filters 12-28

13 Modeling Time Series Data Objectives 13-2 Time Comparisons 13-3 Business Challenge: Time Comparisons 13-4 Oracle BI Solution: Model Time Comparisons 13-5 Time Dimensions 13-6 Time Series Functions 13-7 Time Series Grains 13-8 ABC Example 13-10 Steps to Model Time Series Data 13-11 1. Identify a Time Dimension and Chronological Keys 13-12 2. Create a Measure by Using the AGO Function 13-13 3. Use a Column with the AGO Function to Create Additional Measures 13-14 4. Create a Measure by Using the TODATE Function 13-15 5. Create a Measure by Using the PERIODROLLING Function 13-16 6. Add New Measures to the Presentation Layer 13-17 7. Test the Results 13-18 Summary 13-19 Practice 13-1 Overview: Creating Time Series Comparison Measures 13-20

14 Modeling Many-to-Many Relationships Objective 14-2 Business Challenge and Solution 14-3 Bridge Table 14-4 ABC Example 14-5 Steps to Model a Bridge Table 14-6 1. Import Tables 14-7 2. Create the Physical Model 14-8 3. Create the Logical Model 14-9 4. Map the Bridge Table 14-10 5. Create a Calculation Measure 14-11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 12: 104059052 Course Sg2 Unlocked

xii

6. Map Objects to the Presentation Layer 14-12 7. Verify the Results 14-13 Summary 14-14 Practice 14-1 Overview: Modeling a Bridge Table 14-15

15 Localizing Oracle BI Metadata Objective 15-2 Business Challenges and Solution 15-3 Oracle BI Multilingual Support 15-4 Configuring Oracle BI Metadata 15-5 WEBLANGUAGE Session Variable 15-6 LOCALE Configuration Setting 15-7 Changing Localization Preferences 15-8 ABC Example 15-9 Steps to Localize Metadata 15-10 1. Externalize Metadata Objects 15-11 2. Run the Externalize Strings Utility 15-12 3. Modify the Translation File 15-13 4. Load the Translation Table 15-14 5. Import the Translation Table 15-15 6. Create an Initialization Block 15-16 7. Modify My Account Preferences 15-17 8. Verify the Translations 15-18 Summary 15-19 Practice 15-1 Overview: Localizing Repository Metadata 15-20

16 Localizing Oracle BI Data Objective 16-2 Business Challenges and Solution 16-3 Oracle BI Multilingual Data Support 16-4 What Is Multilingual Data Support? 16-5 Required Translation Tables 16-6 Available Language Table 16-7 Lookup Tables 16-8 Designing Translation Lookup Tables 16-9 ABC Example 16-10 Steps for Localizing Data 16-11 1. Create a Physical Lookup Table 16-12 2. Create an Available Language Table 16-13 3. Import Tables into the Physical Layer 16-14 4. Create a Session Variable Initialization Block 16-15 5. Create a Logical Lookup Table 16-16 6. Set Keys for the Logical Lookup Table 16-17 7. Create a Logical Lookup Column 16-18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 13: 104059052 Course Sg2 Unlocked

xiii

8. Add the Logical Lookup Column to the Presentation Layer 16-19 9. Test Your Work 16-20 Summary 16-21 Practice 16-1 Overview: Localizing Oracle BI Data 16-22

17 Setting an Implicit Fact Column Objectives 17-2 Business Challenge: Dimension-Only Queries 17-3 Business Solution: Implicit Fact Column 17-4 ABC Example 17-5 Steps to Configure an Implicit Fact Column 17-6 1. Set an Implicit Fact Column 17-7 2. Verify the Results 17-8 3. Clear the Implicit Fact Column 17-9 Summary 17-10 Practice 17-1 Overview: Setting an Implicit Fact Column 17-11

18 Importing Metadata from Multidimensional Data Sources Objective 18-2 Overview 18-3 Multidimensional Versus Relational Data Sources 18-4 Overview: Importing Multidimensional Data Sources 18-5 ABC Example 18-6 Creating a Multidimensional Business Model 18-7 1. Set Up an Essbase Data Source 18-8 2. Import Metadata 18-9 3. Verify the Import 18-10 4. Choose Options to Control the Model 18-11 5. View Members and Update Member Count 18-12 6. Create the Business Model 18-13 7. Create the Presentation Layer 18-14 8. Verify the Results 18-15 Horizontal Federation 18-16 Vertical Federation 18-17 Summary 18-18 Practice 18-1: Importing a Multidimensional Data Source into a Repository 18-19 Practice 18-2: Incorporating Horizontal Federation into a Business Model 18-20 Practice 18-3: Incorporating Vertical Federation into a Business Model 18-21 Practice 18-4: Adding Essbase Measures to a Relational Model 18-22

19 Security Objectives 19-2 Business Challenge: Security Strategy 19-3 Business Solution: Oracle BI Security 19-4 Managing Oracle BI Security 19-5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 14: 104059052 Course Sg2 Unlocked

xiv

Oracle BI Default Security Model 19-6 Default Security Realm 19-7 Default Authentication Providers 19-8 Default Users 19-9 Default Groups 19-10 Default Application Roles 19-11 Default Application Policies 19-13 Default Security Settings in the Repository 19-14 Default Application Role Hierarchy: Example 19-15 ABC Example 19-16 Create Groups 19-17 Create Group Hierarchies 19-18 Create Users 19-19 Assign Users to Groups 19-20 Create Application Roles 19-21 Map Application Roles 19-22 Application Role Hierarchies 19-23 Verify Security Settings in Oracle BI 19-24 Verify Security Settings in the Repository 19-26 Set Up Object Permissions 19-27 Permission Inheritance 19-28 Permission Inheritance: Example 19-29 Set Row-Level Security (Data Filters) 19-30 Set Query Limits 19-31 Set Timing Restrictions 19-32 Summary 19-33 Practice 19-1 Overview: Exploring Default Security Settings 19-34 Practice 19-2 Overview: Creating Users and Groups 19-35 Practice 19-3 Overview: Creating Application Roles 19-36 Practice 19-4 Overview: Setting Up Object Permissions 19-37 Practice 19-5 Overview: Setting Row-Level Security (Data Filters) 19-38 Practice 19-6 Overview: Setting Query Limits and Timing Restrictions 19-39

20 Cache Management Objective 20-2 Business Challenge 20-3 Business Solution: Oracle BI Server Query Cache 20-4 Advantages of Caching 20-5 Costs of Caching 20-6 Query Cache: Architecture 20-7 Monitoring and Managing the Cache 20-8 Cache Management Techniques 20-9 Using Fusion Middleware Control to Configure Caching 20-10 Using NQSConfig.ini to Manually Edit Cache Parameters 20-11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 15: 104059052 Course Sg2 Unlocked

xv

Setting Caching and Cache Persistence for Tables 20-12 Using the Cache Manager 20-13 Inspecting SQL for Cache Entries 20-14 Modifying the Cache Manager Column Display 20-15 Inspecting Cache Reports 20-16 Purging Cache Entries Manually Using the Cache Manager 20-17 Purging Cache Entries Automatically 20-18 Using Event Polling Tables 20-19 Seeding the Cache 20-20 Cache Hit Conditions 20-21 Summary 20-22 Practice 20-1 Overview: Enabling Query Caching 20-23 Practice 20-2 Overview: Modifying Cache Parameters 20-24 Practice 20-3 Overview: Seeding the Cache 20-25

21 Managing Usage Tracking Objectives 21-2 Business Challenges 21-3 Business Solution: Oracle BI Usage Tracking 21-4 Oracle BI Usage Tracking Methods 21-5 ABC Example 21-6 Steps to Enable Usage Tracking 21-7 1. Create the Usage Tracking Table 21-8 2. Import the Usage Tracking Table 21-9 3. Build a Usage Tracking Business Model 21-10 4. Enable Usage Tracking 21-11 5. Enable Direct Insertion 21-12 6. Set the Physical Table Parameter 21-13 7. Set the Connection Pool Parameter 21-14 8. Set Additional Parameters 21-15 9. Test the Results 21-16 Analyzing Usage Tracking Data 21-17 Summary 21-18 Practice 21-1 Overview: Setting Up Usage Tracking 21-19

22 Setting Up and Using the Multiuser Development Environment Objectives 22-2 Business Challenge 22-3 Business Solution: Oracle BI Multiuser Development Environment (MUDE) 22-4 Oracle BI Repository Development Process 22-5 SCM Three-Way Merge Process 22-6 Oracle BI Repository Three-Way Merge Process 22-7 Multiuser Development Projects 22-8 Overview: Oracle BI Multiuser Development 22-9 ABC Example 22-10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 16: 104059052 Course Sg2 Unlocked

xvi

Steps to Set Up an Oracle BI MUDE 22-11 1. Create Projects 22-12 2. Edit Projects 22-13 3. Set Up a Shared Network Directory 22-14 4. Copy the Master Repository to the Shared Directory 22-15 Making Changes in an Oracle BI MUDE 22-16 1. Point to the Multiuser Directory 22-17 2. Check Out Projects 22-18 3. Administration Tool Tasks During Checkout 22-19 4. Change Metadata 22-20 5. Multiuser Options During Development 22-21 6. Merge Local Changes 22-22 7. Make Merge Decisions 22-23 8. Publish to Network 22-24 9. Track Project History 22-25 History Menu Options 22-26 Deleting History Items 22-27 Summary 22-28 Practice 22-1 Overview: Setting Up a Multiuser Development Environment 22-29 Practice 22-2 Overview: Using a Multiuser Development Environment 22-30

23 Configuring Write Back in Analyses Objectives 23-2 Write Back in Analyses 23-3 Steps to Configure Write Back 23-4 1. Create a Physical Table with Write Back Columns 23-5 2. Import the Write Back Table 23-6 3. Enable Write Back for the Connection Pool 23-7 4. Enable Write Back for Logical Columns 23-9 5. Set Write Back Permissions in the Presentation Layer 23-10 6. Enable Write Back in instanceconfig.xml 23-11 7. Create a Write Back XML Template 23-12 8. Store the Write Back Template 23-14 9. Grant Write Back Privileges 23-15 10. Create an Analysis with Columns Enabled for Write Back 23-16 11. Override Default Data Format 23-17 12. Enable Write Back in the Table View 23-18 13. Verify Results 23-19 Summary 23-20 Practice 23-1 Overview: Configuring Write Back 23-21

24 Performing a Patch Merge Objectives 24-2 Patch Merge 24-3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 17: 104059052 Course Sg2 Unlocked

xvii

Creating a Patch 24-4 Applying a Patch 24-5 Steps to Perform a Patch Merge 24-6 1. Compare Current and Original Repositories 24-7 2. Equalize Objects 24-8 3. Create a Patch 24-9 4. Apply the Patch 24-10 5. Make Merge Decisions 24-11 6. Verify Your Work 24-12 Summary 24-13 Practice 24-1 Overview: Performing a Patch Merge 24-14

25 Configuring Logical Columns for Multicurrency Support Objectives 25-2 Overview 25-3 Steps to Configure Multicurrency Support 25-4 1. Modify the User Preferences Currency File 25-5 2. Create a PREFERRED_CURRENCY Session Variable 25-6 3. Create Logical Columns with Currency Conversions 25-7 4. Edit a Logical Column to Use a Conversion Factor 25-8 4. Add Logical Column to the Presentation Layer 25-9 5. Verify the My Account Page 25-10 5. Verify Analysis Results 25-11 Summary 25-12 Practice 25-1 Overview: Defining User-Preferred Currency Options 25-13

26 Using Administration Tool Utilities Objectives 26-2 Wizards and Utilities 26-3 Accessing Wizards and Utilities 26-4 Managing Sessions 26-5 Querying Repository Metadata 26-6 Replacing Columns or Tables 26-7 Documenting a Repository 26-8 Generating a Metadata Dictionary 26-9 Creating an Event Table 26-10 Updating the Physical Layer 26-11 Removing Unused Physical Objects 26-12 Summary 26-13

27 Oracle BI 11g R1: Build Repositories – Quizzes

Appendix A: Optimizing Query Performance Objective A-2 Business Challenge A-3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 18: 104059052 Course Sg2 Unlocked

xviii

Business Solution A-4 Oracle BI Features That Optimize Performance A-6 Optimizing Query Performance A-7 Using Aggregates A-8 Using Aggregate Navigation A-9 Constraining Results by Using a WHERE Clause A-10 Caching A-11 Limiting the Number of Initialization Blocks A-12 Limiting Select Table Types A-13 Modeling Logical Dimension Hierarchies Correctly A-14 Turning Off Logging A-15 Setting Query Limits A-16 Pushing Calculations to the Database A-17 Exposing Materialized Views in the Physical Layer A-18 Using Database Hints A-19 Summary A-20

Appendix B: Model First Development Methodology Model First Development Methodology: Overview B-2 Central Tenets of the Model First Development Methodology B-3 Baseline Performance Analysis B-4 Defining the Business Model: Dimensional Matrix B-6 Dimensional Matrix: Example B-7 Drill to Levels for More-Detailed Performance Requirements B-8 Focus on the Business Model B-9 Leverage Oracle BI “Legless” Applications B-10 Use Oracle BI Data Mart Automation B-11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 19: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Security

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 20: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objectives

After completing this lesson, you should be able to:• Identify and describe default security settings for Oracle BI• Create users and groups• Create application roles• Set up permissions for repository objects• Use query limits, timing restrictions, and filters to control

access to repository information

Oracle BI 11g R1: Build Repositories 19 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 21: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Challenge: Security Strategy

Security strategy designs for a business start with answers to these basic questions:• Who will have access to company data and business resources?• Under what conditions will access be limited or denied?• How will access be enforced?• How will users authenticate themselves?• Where will credentials be stored?

Business Challenge: Security StrategyAn organization’s business needs guide its security strategy. Every organization has unique information-protection requirements, and each security strategy must be individually designed to match. Many security strategy designs start with answers to the questions listed in the slide.

Oracle BI 11g R1: Build Repositories 19 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 22: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Solution: Oracle BI Security

Controls access to system resources:• Requires users to authenticate at login• Restricts users to only those resources for which they are

authorized• Manages user identities, credentials, and permission

grants

Business Solution: Oracle BI SecuritySecuring Oracle Business Intelligence can be divided into two broad areas: controlling access to the components within the BI domain (resource access security) and controlling access to business source data (data access security). Controlling access to system resources is achieved by requiring users to authenticate at login and by restricting users to only those resources for which they are authorized. The Oracle BI default security model is available for immediate implementation after installation. This model includes controls for managing user identities, credentials, and permission grants. This allows you to control system access by validating identity at login (authentication) and control access to specific Oracle BI components and features according to a user’s permission grants (authorization).Note: This course highlights the security components that relate to building and managing an Oracle BI repository. However, Oracle BI Security is a complex subject that involves installation and configuration tasks that are beyond the scope of this course. For more detailed information, please refer to the Security Guide for Oracle Business Intelligence Enterprise Edition.

Oracle BI 11g R1: Build Repositories 19 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 23: 104059052 Course Sg2 Unlocked

Managing Oracle BI SecurityOracle BI software integrates seamlessly with the Oracle Fusion Middleware platform. They share a common security framework and features. This common security configuration uses Oracle WebLogic Server as the default administration server. However, these implementation details are largely hidden while performing daily administrative tasks and are exposed only by the tools used to manage your Oracle BI security configuration.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Managing Oracle BI Security

Oracle BI integrates with Oracle Fusion Middleware’s security platform.• Oracle WebLogic Server Administration Console

– Management of users and groups for the embedded LDAP server that serves as the out-of-the-box default identity store

• Oracle Enterprise Manager Fusion Middleware Control– Management of policy store application roles that grant

permissions to users, groups, and other application roles• Oracle BI Administration Tool

– Management of permissions for Presentation layer objects and business model objects in the repository

Oracle BI 11g R1: Build Repositories 19 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 24: 104059052 Course Sg2 Unlocked

Oracle BI Default Security ModelThe security controls include:

• An embedded directory server functioning as an identity store designed to hold all user and group definitions that are required to control authentication

• A file-based policy store designed to hold the application-role and permission-grant mappings to users and groups that are required to control authorization

• A file-based credential store designed to hold user and system credentials When operating in a development or test environment, you may find it convenient to use the default security model because it comes preconfigured. You then add user definitions and credentials that are specific to your business as well as customize the default application roles and permission grants that your business security policies require. After the identity, policy, and credential stores are fully configured and populated with data that is specific to your business, they provide all user, policy, and credential information needed by the Oracle BI components during authentication and authorization. The following slides cover the key components of the default security model.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Oracle BI Default Security Model

During installation, three Oracle BI security controls are preconfigured with initial (default) values to form the default security model:• Identity store

– Contains the definitions of users, groups, and group hierarchies required to control authentication

• Policy store– Contains the definition of application roles, the permissions

granted to the roles, and the members (users, groups, and applications roles) of the roles

• Credential store– Stores security-related credentials, such as user name and

password combinations, for accessing an external system (such as a database or LDAP server)

Oracle BI 11g R1: Build Repositories 19 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 25: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Security Realm

BI domain

Default security realm

Select to view security realms.

Default Security RealmThe screenshot shows the default setting for the Oracle BI WebLogic security realm in the Oracle WebLogic Server Administration Console. Using a browser, you can access the Administration Console with the following URL: http://<machine name>:7001/console. On the left side of the console, under Domain Structure, notice that there is a single WebLogicdomain named bifoundation_domain into which all of the BI applications are deployed. Notice also that there is a single default security realm named myrealm. The OBI installer installs a single domain with a single security realm in it. A security realm is a container for the mechanisms that are used to protect WebLogicresources. This includes users, groups, security roles, security policies, and security providers. Whereas multiple security realms can be defined for the BI domain, only one can be active (that is, only one can be designated as the default realm at any given time).Click myrealm to view its default settings.

Oracle BI 11g R1: Build Repositories 19 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 26: 104059052 Course Sg2 Unlocked

Default Authentication ProvidersThis screenshot shows the default settings for authentication providers in the defaultmyrealm security realm. Note that there is a default WebLogic Authentication Provider. An authentication provider establishes the identity of users and system processes, transmits identity information, and serves as a repository from which components can retrieve identity information. Oracle BI is configured out of the box to use the directory server embedded in OracleWebLogic Server as the default security provider. When a user logs in to a system with a user name and password combination, Oracle WebLogic Server validates identity based on the combination provided. Alternative security providers can be used if desired and managed in the Oracle WebLogic Administration Console, but the WebLogic Authentication Provider is used by default. Note: There is a default WebLogic Identity Assertion Provider, which is used primarily for Single Sign On and is not covered in this training.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Authentication Providers

Default authentication

provider

Oracle BI 11g R1: Build Repositories 19 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 27: 104059052 Course Sg2 Unlocked

Default UsersThe default identity store contains user names that are specific to Oracle BI. These default user names are provided as a convenience so you can begin using the Oracle BI software immediately after installation, but you are not required to maintain the default names. In this example, the users are BISystemUser and weblogic.weblogic is the administrative user. After installation, a single administrative user is shared by Oracle BI and Oracle WebLogic Server. The same user name and password that were supplied during the installation process are used for both. The user name that is created during installation can be any desired name and does not need to be Administrator. The password is also provided during installation and afterward can be changed by using the administration interface for the identity store. In the default security configuration, an administrative user is a member of the BIAdministrators group and has all rights granted to the Oracle BI Administrator user in earlier releases, with the exception of impersonation. The administrative user cannot impersonate other users.Oracle BI system components now establish a connection to each other as BISystemUserinstead of as the Administrator (the latter being the practice in earlier releases). Using a trusted system account such as BISystemUser to secure communication between components enables you to change the password of your deployment’s system administrator account without affecting communication between these components. The name of this user is the default and can be changed, or a different user can be created for the purpose ofinterprocess communication. This is a highly privileged user whose credentials should be protected from nonadministrative users.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Users

Default user

Default user

Oracle BI 11g R1: Build Repositories 19 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 28: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Groups

Default groups

Default GroupsGroups are logically ordered sets of users. Creating groups of users who have similar needs for access to system resources enables easier security management. Managing a group is more efficient than managing a large number of users individually. Oracle recommends that you organize your users into groups for easier maintenance. Groups are then mapped to application roles in order to grant rights. Three default group names are provided as a convenience so you can begin using the Oracle BI software immediately after installation, but you are not required to maintain the default names.BIAdministrators group: Members have the equivalent permissions of the Administrator user of earlier releases with the exception of the ability to impersonate. The Administrator user of earlier releases could impersonate, but members of the BIAdministrators group cannot impersonate other users.BIAuthors group: Members have the permissions necessary to create content for other users to use (or to consume).BIConsumers group: Members have the permissions necessary to use (or consume) content created by other users. The BIConsumers group represents all users who have been authenticated by Oracle BI. By default, every Oracle BI authenticated user is part of theBIConsumers group and does not need to be explicitly added to the group. The BIConsumersgroup includes the Oracle WebLogic Server users group as a member.

Oracle BI 11g R1: Build Repositories 19 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 29: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Application Roles

Default application roles

Default Application RolesAn application role defines a set of permissions that are granted to a user or group. Application roles are defined in Fusion Middleware Control Enterprise Manager, which can be accessed via http://<machine name>:7001/em. To access the Application Roles page, right-click coreapplication in the left pane and select Security > Application Roles (not shown here).The file-based policy store contains a default application role hierarchy that includes preconfigured permissions grants and role membership definitions. Application role members can include users or groups from the identity store or other application roles from the policy store. Default application roles include:

• BISystem: Grants the permissions necessary to impersonate other users. This role is required by Oracle BI system components for intercomponent communication.

• BIAdministrator: Grants the administrative permissions necessary to configure and manage the Oracle BI installation. Any member of the BIAdministrators group is explicitly granted this role and implicitly granted the BIAuthor and BIConsumer roles.

• BIAuthor: Grants the permissions necessary to create and edit content for other users to use (or to consume). Any member of the BIAuthors group is explicitly granted this role and implicitly granted the BIConsumer role.

• BIConsumer: Grants the permissions necessary to use (or to consume) content created by other users

Oracle BI 11g R1: Build Repositories 19 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 30: 104059052 Course Sg2 Unlocked

Default Application Roles (continued)These default application roles map to default groups in the default WebLogic LDAP. The groups are listed in the Members column. Application roles are independent of LDAP groups. If you moved to a different LDAP server rather than the default WebLogic LDAP server, you could map these roles to groups in the new LDAP server. Application roles are in the policy store, whereas groups are in the identity store. The default naming convention is that application role names are singular and group names are plural.

Oracle BI 11g R1: Build Repositories 19 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 31: 104059052 Course Sg2 Unlocked

Default Application PoliciesApplication policies are the authorization policies that an application relies upon for controlling access to its resources. Application policies are defined in Fusion Middleware Control Enterprise Manager. To access the Application Policies page, right-click coreapplicationin the left pane and select Security > Application Policies (not shown here).The default file-based policy store contains the Oracle BI permissions. All Oracle BI permissions are provided; you cannot create additional permissions. These permissions are granted by the default application roles in the default security configuration. Each default application role has a predefined set of permissions. The screenshot shows only a partial list of permissions for the BIAdministrator application role. An example of a permission is oracle.bi.server.manageRepositories, which grants permission to open repositories in online mode in the Oracle BI Administration Tool. This permission is granted to the BIAdministrator role.Note: These policy store permissions are not the same as those used to define access to BI objects (metadata, dashboards, reports, and so on). Policy store permissions are used only to define the BI functionality that assigned roles can access. You learn more about object permissions later in this lesson.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Application Policies

Oracle BI 11g R1: Build Repositories 19 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 32: 104059052 Course Sg2 Unlocked

Default Security Settings in the RepositoryOpen the repository in online mode to see the default security settings. Repository security should be managed in online mode. Select Manage > Identity to open the Security Manager.Notice that on the Users tab you can see the same set of users as those listed in theWebLogic Server Administration Console. The key point is that users are no longer managed in the repository, as they were in prior releases. They are managed in the WebLogic LDAP, or whatever identify store your system is configured with. If you need to add a new user to the system, you must do it in the identity store, not the repository (as you learn later in this lesson).The Application Roles tab shows all application roles in the policy store. Later in this lesson you learn that you can use the application roles to set access control permissions for repository objects. The recommended practice is to use application roles, not individual users, to set access control permissions for repository objects.If you create new users in the identity store, or new application roles in the policy store, they appear in the repository after BI Server is restarted. The repository holds a cache of the identities, so users and application roles are visible in offline mode as well as online mode.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Security Settings in the Repository

Oracle BI 11g R1: Build Repositories 19 - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 33: 104059052 Course Sg2 Unlocked

Default Application Role Hierarchy: ExampleThis example is provided to illustrate the relationships among users, groups, application roles, and permissions. In Oracle BI, the members of a default application role include both groups and other application roles. The result is a hierarchical role structure in which permissions can be inherited in addition to being explicitly granted. A group that is a member of a role is granted both the permissions of the role and the permissions for all roles descended from that role. When you construct a role hierarchy, you should not introduce circular dependencies.The graphic in the slide shows these relationship among the default application roles and the ways in which permissions are granted to members. The result is that, because of the role hierarchy, a user who is a member of a particular group is granted both explicit permissions and any additional inherited permissions. Note that, by themselves, groups and group hierarchies do not allow a privilege to perform an action in an application. Those privileges are conveyed through the application roles and their corresponding permission grants. The table shows the role and permissions granted to all group members (users). The defaultBIAdministrator role is a member the BIAuthor role, and BIAuthor role is a member of theBIConsumer role. The result is that members of the BIAdministrators group are granted all the permissions of the BIAdministrator role, the BIAuthor role, and the BIConsumer role. In this example, only one of the permissions granted by each role is used for demonstration purposes.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Default Application Role Hierarchy: Example

Oracle BI 11g R1: Build Repositories 19 - 15

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 34: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

ABC Example

1. Create groups.2. Create group hierarchies.3. Create users.4. Assign users to groups.5. Create application roles.6. Assign groups and roles to application roles.7. Verify new users and application roles in Oracle BI.8. Set up object permissions.9. Set row-level security (data filters).

10. Set query limits and timing restrictions.

Oracle BI 11g R1: Build Repositories 19 - 16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 35: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Create Groups

Use the security realm in the WebLogic Server Administration Console to create groups.

Click the New button to add new groups.

Create GroupsYou use the WebLogic Server Administration Console to create groups. Groups are logical ordered sets of users. Managing a group is more efficient than managing a large number of users individually. Oracle recommends that you first organize all Oracle BI users into groups that make sense for your organization’s goals and map application roles to the groups to convey system privileges. The out-of-the-box identity store provided for managing users and groups is Oracle WebLogic Server’s embedded directory server. In this example, three new groups are added: SalesAssociatesGroup, SalesManagersGroup, and SalesSupervisorsGroup. When you click the New button, a dialog box opens to create a new group. The dialog box is not shown here.

Oracle BI 11g R1: Build Repositories 19 - 17

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 36: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Create Group Hierarchies

Add groups to other groups to create group hierarchies.

Settings for the group

The group is a member of this group.

Available groups to which the group can

be assigned

Click a group to open the Settings dialog box.

Create Group HierarchiesYou use the security realm in the WebLogic Server Administration Console to create group hierarchies. On the “Users and Groups” tab in the security realm, click a group on the Groupssubtab to view settings for the group. On the Membership subtab, you can assign groups to other groups. The Membership subtab shows the groups of which a group is already a member and available groups to which a group can be assigned. To assign a group, use the buttons to move a group (or groups) from the Available list to the Chosen list. The example in the slide shows the group membership settings for theSalesSupervisorsGroup group. The SalesSupervisorsGroup group is a member of theSalesAssociatesGroup group. This means that any privileges or permissions assigned to the Sales Associates group are inherited by the Sales Supervisors group.

Oracle BI 11g R1: Build Repositories 19 - 18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 37: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Create Users

Use the security realm in the WebLogic Server Administration Console to create users.

Click the New button to add new users.

Create UsersYou use the WebLogic Server Administration Console to create users. The out-of-the-box identity store provided for managing users is Oracle WebLogic Server’s embedded directory server. In this example, two new users are added: AZIFF and JCRUZ. When you click the New button, a dialog box opens to create a new user. In the dialog box, you provide the user name, description, and password. (The dialog box is not shown here.)

Oracle BI 11g R1: Build Repositories 19 - 19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 38: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Assign Users to Groups

Use the security realm in the WebLogic Server Administration Console to assign users to groups.

Settings for user

The user is a member of these groups.

Available groups to which the user can be assigned

Click a user to open the Settings dialog box.

Assign Users to GroupsOn the “Users and Groups” tab in the security realm, click a user on the Users subtab to view settings for the user. On the Groups subtab, you can assign users to groups. The Groupssubtab shows the groups of which a user is already a member and available groups to which a user can be assigned. The example in the slide shows the group settings for the JCRUZ user. JCRUZ is a member of the Sales Managers and Sales Supervisors groups.

Oracle BI 11g R1: Build Repositories 19 - 20

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 39: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Create Application Roles

Use Fusion Middleware Control Enterprise Manager to create application roles.

Click Create to create a new application role.

New application roles

Create Application RolesAn application role conveys its permission grants to the users, groups, and application roles that are mapped to that role. Being mapped to an application role establishes membership in the role. Binding the permission grants to the application role streamlines the process of granting system privileges. Once the application role and permission grant definitions are established, you control system rights by managing membership in each role. Oracle recommends that you map groups and other application roles to application roles and not to individual users. Once mapped, all members of the groups and roles are granted the same rights. Controlling membership in a group reduces the complexity of tracking access rights for multiple individual users.

Oracle BI 11g R1: Build Repositories 19 - 21

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 40: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Map Application Roles

Map application roles to groups or other application roles.

Click an application role to edit.

Application roles can be mapped to both groups and

other application roles.

Map Application RolesOnce an application role is created, you can map the application role to users or groups defined in the LDAP server, or you can map the application role to other application roles. In this example, the SalesAssociatesRole application role is mapped to the Sales Associates group, the Sales Managers application role, and the Sales Supervisors application role. This means that any user who is a member of the selected group or application role is mapped to this application role and receives any privileges or permissions assigned to the application role. It is possible to add individual users to a role, but a best practice is to add groups or application roles, not individual users, to application roles.

Oracle BI 11g R1: Build Repositories 19 - 22

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 41: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Application Role Hierarchies

Mapping application roles to other application roles creates application role hierarchies

Application Role HierarchiesSimilar to the groups you created in the WebLogic identity store, you now have an application role hierarchy in the policy store. Mapping application roles to other application roles creates application role hierarchies. In this example, this means that any privileges or permissions assigned to the Sales Associates application role are inherited by the Sales Supervisors role and the Sales Managers role. What is the difference between users and groups created in the identity store in the WebLogicLDAP Server and application roles created in the policy store in FMW Enterprise Manager? In the WebLogic LDAP server, you have users and groups. An application role is a logical role that can be used within the application to secure content in a way that is independent of any particular LDAP server and the users and groups within that LDAP server. Security rules are built using application roles. If the underlying LDAP environment changes, the security rules persist. In a different LDAP environment, where group or user names might be different, you could remap the application roles to different groups or users, and the BI security structure (built with application roles) would not be affected.

Oracle BI 11g R1: Build Repositories 19 - 23

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 42: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Verify Security Settings in Oracle BI

Restart Oracle BI Server to make policy store changes visible throughout Oracle BI.

Verify Security Settings in Oracle BITo make policy store changes visible throughout Oracle BI, you must restart Oracle BI Server. Typically, you have a steady set of application roles, so the frequency of adding and deleting application roles in the policy store should be quite low. What is more common is mapping those roles to new groups and users in the identity store, which does not require a server restart. Oracle BI Server must be restarted only when application roles are added or deleted.In this example, JCRUZ has logged in to Oracle BI and selected My Account. On the “Roles and Groups” tab, he sees all of the application roles to which he is assigned. Jose Cruz is a member of the Sales Managers group (which is a member of the Sales Managers application role) and a member of the Sales Supervisors group (which is a member of the Sales Supervisors application role). Because both of these roles are members of the Sales Associate role, he is also a member of that role. By default, all BI users are also members of the out-of-the-box application roles, AuthenticatedUser and BIConsumer.

Oracle BI 11g R1: Build Repositories 19 - 24

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 43: 104059052 Course Sg2 Unlocked

Verify Security Settings in Oracle BI (continued)Application roles serve a variety of purposes in both development and production environments. In a development environment, developers can be granted one or more of the roles. One approach is to build roles that are eventually used in production, and then map developers to those roles for administering, building, and testing the development environment. As you learn later in this lesson, you also use the logical application roles to secure access to repository objects and data. Therefore, application roles can be used to control access to both objects and functionality in the product. The value of using application roles comes from the fact that you can move the system you have built between environments without having to rewire all of the security. For example, you would not have to change security settings in your presentation catalog or repository. You can just remap your application roles to the target environment.

Oracle BI 11g R1: Build Repositories 19 - 25

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 44: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Verify Security Settings in the Repository

Verify Security Settings in the RepositoryAfter you restart Oracle BI Server, changes in security settings should be visible in the Security Manager in the repository.

Oracle BI 11g R1: Build Repositories 19 - 26

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 45: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Set Up Object Permissions

Set up object permissions in your repository to control access to Presentation layer and BMM layer objects.

1. Open object properties.

2. Click Permissions.

3. Set permissions.

4. User logs in.

5. User sees objects based on permissions.

Set Up Object PermissionsYou set object permissions by using the Administration Tool. There are two approaches to setting object permissions. You can set permissions for particular users or application roles in the Security Manager, or you can set permissions for individual objects in the Presentation layer. Setting up object permissions for individual users or application roles is useful when you want to define permissions for a large set of objects at one time. It is considered a best practice to set up object permissions for application roles rather than for individual users.In this example, permissions are set for the Customer presentation table object. Access to this object is restricted for the AuthenticatedUser, BIConsumer, and SalesAssociatesRoleapplication roles. The user AZIFF is a member of these application roles. Therefore, AZIFFdoes not have access to the Customer presentation table when he logs in to Oracle BI and selects the SupplierSales subject area.

Oracle BI 11g R1: Build Repositories 19 - 27

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 46: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Permission Inheritance

• Permissions granted explicitly to a user take precedence over privileges granted through application roles.

• Permissions granted explicitly to an application role take precedence over any privileges granted through other application roles.

• If security attributes conflict at the same level, a user or application role is granted the least-restrictive security attribute.

Permission Inheritance Users can have explicitly granted permissions. They can also have permissions granted through membership in application roles, which in turn can have permissions granted through membership in other application roles, and so on. Permissions granted explicitly to a user take precedence over permissions granted through application roles, and permissions granted explicitly to the application role take precedence over any permissions granted through other application roles. If there are multiple application roles acting on a user or application role at the same level with conflicting security attributes, the user or application role is granted the least-restrictive security attribute. Any explicit permissions acting on a user take precedence over any permissions on the same objects granted to that user through application roles. Filter definitions, however, are always inherited. For example, if User1 is a member of Role1 and Role2, and Role1 includes a filter definition but Role2 does not, the user inherits the filter definition defined in Role1.

Oracle BI 11g R1: Build Repositories 19 - 28

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 47: 104059052 Course Sg2 Unlocked

Permission Inheritance: Example • User1 is a direct member of Role1 and Role2, and is an indirect member of Role3,

Role4, and Role5.• Because Role5 is at a lower level of precedence than Role2, its denial of access to

TableA is overridden by the READ permission granted through Role2. The result is that Role2 provides READ permission on TableA.

• The resultant permissions from Role1 are NO ACCESS for TableA, READ for TableB, and READ for TableC.

• Because Role1 and Role2 have the same level of precedence and because the permission in each cancel the other out (Role1 denies access to TableA, Role2 allows access to TableA), the less-restrictive level is inherited by User1. That is, User1 has READ access to TableA.

• The total permissions granted to User1 are READ access for TableA, TableB, andTableC.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Permission Inheritance: Example

User 1

Member Role 1

Member Role 2

Role 1

NO ACCESS Table A

Member Role 3

Member Role 4

Role 2

READ Table A

Member Role 5

Role 3

READ Table B

Role 4

READ Table C

Role 5

NO ACCESS Table A

Oracle BI 11g R1: Build Repositories 19 - 29

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 48: 104059052 Course Sg2 Unlocked

Set Row-Level Security (Data Filters)Data filters are a security feature that provides a way to enforce row-level security rules in the repository. Data filters are set up in the repository using the Administration Tool and are applied for a particular user or application role. You do not set up data filters if you have implemented row-level security in the database, because in this case, your row-level security policies are being enforced by the database rather than by Oracle BI Server. Data filters can be set for objects in both the BMM layer and the Presentation layer. Applying a filter on a logical object affects all Presentation layer objects that use the object. If you set a filter on a Presentation layer object, it is applied in addition to any filters that might be set on the underlying logical objects.It is a best practice to set up data filters for particular application roles rather than for individual users.In this example, you set a filter on the Customer presentation table for theSalesSupervisorsRole application role so that customer data is visible for only those records in which Jose Cruz or his direct reports are the sales representatives. Jose Cruz is a member of the SalesSupervisorsRole application role. After setting this filter, if Jose Cruz creates and runs an analysis that includes the Sales Rep column, he sees only his records and those of his direct reports (in this example, Alan Ziff and Betty Newer).

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Set Row-Level Security (Data Filters)

"SupplierSales"."Dim-Customer"."Sales Rep" = 'JOSE CRUZ' OR

"SupplierSales"."Dim-Customer"."Sales Rep" = 'ALAN ZIFF' OR

"SupplierSales"."Dim-Customer"."Sales Rep" = 'BETTY NEWER'

Filter set on Sales Rep object for application role members

Oracle BI 11g R1: Build Repositories 19 - 30

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 49: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Set Query Limits

Use the Query Limits tab to:• Control the number of rows accessed by a user or role• Control the maximum query run time• Enable or disable Populate Privilege• Enable or disable Execute Direct Database Requests

Set Query Limits Oracle BI Server enables you to exercise varying degrees of control over the repository information that users and roles can access. You can manage the query environment by setting query limits (governors) in the repository for users or application roles. You can prevent queries from consuming too many resources by limiting how long a query can run and how many rows a query can retrieve. Note: It is a recommended practice to set query limits for application roles rather than for individual users. Use the Query Limits tab to control the following activities:

• Control runaway queries by limiting queries to a specific number of rows received by a user or role.

• Limit queries by maximum run time or to time periods for a user or role.• Allow or disallow the populate privilege (this is primarily used for Marketing applications

and is beyond the scope of this course).• Allow or disallow execution of direct database requests for specific database objects.

To access the Query Limits tab, open the Security Manager, click the Application Roles tab, double-click an application role to open the Application Role dialog box, and click Permissions.

Oracle BI 11g R1: Build Repositories 19 - 31

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 50: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Set Timing Restrictions

Restrict access to a database during particular time periods.

Set Timing RestrictionsYou can regulate when users can query databases to prevent users from querying when system resources are tied up with batch reporting, table updates, or other production tasks. To restrict access to a database during particular time periods, click the ellipsis (…) button in the Restrict column to open the Restrictions dialog box. Then perform the following steps:

1. To select a time period, click the start time and drag it to the end time.2. Access:

- To explicitly allow access, click Allow.- To explicitly disallow access, click Disallow.

Oracle BI 11g R1: Build Repositories 19 - 32

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 51: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to:• Identify and describe default security settings in Oracle BI• Create users and groups• Create application roles• Set up permissions for repository objects• Use query limits, timing restrictions, and filters to control

access to repository information

Oracle BI 11g R1: Build Repositories 19 - 33

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 52: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 19-1 Overview: Exploring Default Security Settings

This practice covers Oracle BI default security settings in the identity store, policy store, and credential store.

Practice 19-1 Overview: Exploring Default Security SettingsDuring installation, three Oracle BI security controls are preconfigured with initial (default) values to form the default security model. The security controls include:

• An embedded directory server functioning as an identity store designed to hold all user and group definitions that are required to control authentication

• A file-based policy store designed to hold the application role and permission grant mappings to users and groups that are required to control authorization

• A file-based credential store designed to hold all user and system credentials that are required to control authentication or authorization

Before you implement data access security in the Oracle BI repository, you explore these default security settings.

Oracle BI 11g R1: Build Repositories 19 - 34

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 53: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 19-2 Overview: Creating Users and Groups

This practice covers using the WebLogic Server Administration Console to create users and groups.

Practice 19-2 Overview: Creating Users and GroupsGroups are logical ordered sets of users. Managing a group is more efficient than managing a large number of users individually. Oracle recommends that you first organize all Oracle BI users into groups that make sense for your organization’s goals and map application roles to the groups to convey system privileges. The out-of-the-box identity store provided for managing users and groups is Oracle WebLogic Server’s embedded directory server. In this practice, you use the WebLogic Server Administration Console to create users and groups.

Oracle BI 11g R1: Build Repositories 19 - 35

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 54: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 19-3 Overview: Creating Application Roles

This practice covers using Enterprise Manager Fusion Middleware Control to create application roles in the policy store.

Practice 19-3 Overview: Creating Application RolesAn application role conveys its permission grants to the users, groups, and application roles mapped to that role. Being mapped to an application role establishes membership in the role. Binding the permission grants to the application role streamlines the process of granting system privileges. After the application role and permission grant definitions are established, you control system rights by managing membership in each role. Oracle recommends that you map groups to application roles and not to individual users. After they are mapped, all members of the group are granted the same rights. Controlling membership in a group reduces the complexity of tracking access rights for multiple individual users. In this practice, you use Enterprise Manager Fusion Middleware Control to create application roles.

Oracle BI 11g R1: Build Repositories 19 - 36

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 55: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 19-4 Overview: Setting Up Object Permissions

This practice covers setting up object permissions in the repository.

Practice 19-4 Overview: Setting Up Object PermissionsYou can set up object permissions in your repository to control access to Presentation layer and BMM layer objects. You set object permissions by using the Administration Tool. There are two approaches to setting object permissions. You can set permissions for particular users or application roles in the Security Manager, or you can set permissions for individual objects in the Presentation layer. In this practice you use both approaches. Setting up object permissions for individual users or application roles is useful when you want to define permissions for a large set of objects at one time. It is a best practice to set up object permissions for particular application roles rather than for individual users.

Oracle BI 11g R1: Build Repositories 19 - 37

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 56: 104059052 Course Sg2 Unlocked

Practice 19-5 Overview: Setting Row-Level Security (Data Filters) Data filters provide a way to enforce row-level security rules in the repository. Data filters are set up in the repository by using the Administration Tool and are applied for a particular user or application role.Data filters can be set for objects in both the BMM layer and the Presentation layer. Applying a filter on a logical object affects all Presentation layer objects that use the object. If you set a filter on a Presentation layer object, it is applied in addition to any filters that might be set on the underlying logical objects. It is a best practice to set up data filters for particular application roles rather than for individual users.In this practice, you set a filter on the Customer presentation table so that customer data is visible for only those records in which Jose Cruz or his direct reports are the sales representatives.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 19-5 Overview: Setting Row-Level Security (Data Filters)

This practice covers setting row-level security in the repository.

Oracle BI 11g R1: Build Repositories 19 - 38

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 57: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 19-6 Overview: Setting Query Limits and Timing Restrictions

This practice covers managing the query environment by setting query limits and timing restrictions in the repository.

Practice 19-6 Overview: Setting Query Limits and Timing Restrictions You can manage the query environment by setting query limits (governors) in the repository for users or application roles. You want to prevent queries from consuming too many resources by limiting how long a query can run and how many rows a query can retrieve. You also want to regulate when individual users can query databases to prevent users from querying when system resources are tied up with batch reporting, table updates, or other production tasks. In this practice, you set the maximum rows of any query to five rows, the maximum time of any query to one minute, and restricted access to a database on Sunday from 12:00 AM to 7:00 AM.

Oracle BI 11g R1: Build Repositories 19 - 39

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 58: 104059052 Course Sg2 Unlocked

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 59: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Cache Management

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 60: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objective

After completing this lesson, you should be able to manage the Oracle BI Server query cache.

Oracle BI 11g R1: Build Repositories 20 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 61: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Challenge

• Decision support systems require a large amount of database processing.

• Frequent trips to back-end databases to satisfy query requests can result in: – Increased query response time– Poor performance

Business ChallengeDecision support queries sometimes require a large amount of database processing. Requests for the same information require frequent trips to back-end databases to retrieve the query results. Such trips can increase query response time and result in poor performance from the user’s perspective.

Oracle BI 11g R1: Build Repositories 20 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 62: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Solution: Oracle BI Server Query Cache

Oracle BI Server can be configured to maintain a disk-based cache of query result sets (query cache):• Saves the results of queries in cache files• Enables Oracle BI Server to satisfy subsequent query

requests without having to access back-end databases• Improves query response time

Business Solution: Oracle BI Server Query CacheOracle BI Server can save the results of a query in cache files and then reuse them later when a similar query is requested. By using the cache, the database needs to be processed only once for the initial time a query is executed. For subsequent times that a similar query is executed, the results are satisfied by the cache and not the database.Oracle BI administrators can configure Oracle BI Server to maintain a local, disk-based cache of query result sets (the query cache). The query cache enables Oracle BI Server to satisfy many subsequent query requests without having to access back-end databases. This reduction in communication costs can dramatically decrease query response time.

Oracle BI 11g R1: Build Repositories 20 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 63: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Advantages of Caching

• Eliminates unnecessary database processing because pre-computed results are stored in a local cache

• Improves query performance by fulfilling a query from the cache rather than searching through the database

• Conserves network resources by avoiding a connection to the database server

Advantages of CachingThe fastest way to process a query is to skip the bulk of the processing and use a pre-computed answer. With query caching, Oracle BI Server stores the pre-computed results of queries in a local cache. If another query can use those results, all database processing for that query is eliminated. This can result in dramatic improvements in the average query response time. Not running the query on the database also frees the database server to do other work. In addition to improving performance, being able to answer a query from a local cache conserves network resources and processing time on the database server. Network resources are conserved because the intermediate results do not have to come over the network to Oracle BI Server. Administrators can take additional steps to improve caching performance. Such measures might include tuning and indexing databases, optimizing data source connectivity, leveraging aggregate tables, and constructing metadata efficiently.

Oracle BI 11g R1: Build Repositories 20 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 64: 104059052 Course Sg2 Unlocked

Costs of CachingDisk SpaceThe query cache requires dedicated disk space. The amount of space depends on the query volume, the size of the query result sets, and the amount of disk space you choose to allocate to the cache. For performance purposes, a disk should be used exclusively for caching, and it should be a high-performance, high-reliability disk system.Administrative TasksThere are a few administrative tasks associated with caching. You need to set the cache persistence time for each physical table appropriately, knowing how often data in that table is updated. When the frequency of the update varies, you need to keep track of when changes occur and purge the cache manually when necessary. Keeping the Cache Up to DateIf the cache entries are not purged when the data in the underlying databases changes, queries can potentially return results that are out of date. You need to evaluate whether this is acceptable. It might be acceptable to allow the cache to contain some stale data. You need to decide what level of stale data is acceptable and then set up (and follow) rules to reflect those levels. For applications in which data is updated yearly or quarterly, it may be acceptable to keep stale data in the cache. For applications in which data is updated frequently, it may be necessary to purge the cache more often. It is also possible to purge the entire cache as part of the extraction, transformation, and loading (ETL) process for rebuilding the data mart, making sure that there is no stale data in the cache.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Costs of Caching

• Disk space– The query cache requires dedicated disk space.

• Administrative tasks:– Set the cache persistence time appropriately.– Purge the cache when necessary.

• Keeping the cache up to date:– Evaluate what level of noncurrent information is acceptable.– Remove stale data.

Oracle BI 11g R1: Build Repositories 20 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 65: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Query Cache: Architecture

The query cache consists of: • Cache storage space• Cache metadata• Cache detection

Querycache

Serverdatabase

Cachemetadata

(cache hit?)Logical request

Yes

No

Resultssent touser.

Oracle BI ServerUser’s query request is translated into logical request.

The metadata is searched to identify a match (cache hit).

If it is a cache miss, the request is queried against

the database; results are stored in cache and sent

to the user.

If there is a match, results are retrieved from the cache and

sent to the user.

Query Cache: ArchitectureA query cache is a facility that stores the results from queries. If a query is fulfilled by the results stored in the cache, it is called a cache hit. A cache hit means that the server was able to use the cache to answer the query and did not go to the database at all.A cache is used to eliminate redundant queries. For example, if 10,000 users always look at the same dashboard, getting the data once and storing it in the cache helps with scalability.This graphic in the slide depicts the basic architecture of the query cache. The process of accessing the cache metadata occurs very quickly. If the metadata shows a cache hit, the bulk of the query processing is eliminated, and the results are immediately returned to the user. The process of adding the new results to the cache is independent of the results being returned to the user; the only effect on the running query is the resources consumed in the process of writing the cached results.

Oracle BI 11g R1: Build Repositories 20 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 66: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Monitoring and Managing the Cache

Requires an overall cache management strategy:• Invalidate the cache entries when underlying data has

changed.• Monitor, identify, and remove undesirable cache entries.

Monitoring and Managing the Cache Cache files always produce the same results, even after a database has been updated. Issues with retaining cache files may arise. For example, not purging outdated caches (known as stale caches) can potentially return inaccurate results over time and consume disk space.Therefore, you need a cache management strategy to manage changes to the underlying databases and to monitor cache entries. The choice of a cache management strategy depends on the volatility of the data in the underlying databases and the predictability of the changes that cause this volatility. It also depends on the number and types of queries that comprise your cache, as well as the usage those queries receive. Cache management techniques are provided in the following slides.

Oracle BI 11g R1: Build Repositories 20 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 67: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Cache Management Techniques

• Using Fusion Middleware Control to configure caching• Using NQSConfig.ini to manually edit cache

parameters• Setting caching and cache persistence for tables• Using the Cache Manager• Inspecting SQL for cache entries• Modifying the Cache Manager column display • Inspecting the cache reports• Purging cache entries manually using the Cache Manager• Purging cache entries automatically• Using event polling tables• Seeding the cache

Cache Management TechniquesThis slide lists some of the techniques you can use to manage the query cache. Each technique is discussed in detail in subsequent slides.

Oracle BI 11g R1: Build Repositories 20 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 68: 104059052 Course Sg2 Unlocked

Using Fusion Middleware Control to Configure CachingYou can use Fusion Middleware Control Enterprise Manager to enable or disable query caching. The query cache is enabled by default. To use Enterprise Manager to enable or disable query caching, go to the Business Intelligence Overview page, display the Performance tab of the Capacity Management page, click “Lock and Edit Configuration,” and select “Cache enabled.” To disable query caching, deselect “Cache enabled.” Apply and activate your changes.You also can use Fusion Middleware Control to set the maximum size for a single cache entry, as well as the maximum number of cache entries in the query cache. When the cache storage directories exceed the number specified in the Maximum cache entriesparameter, the entries that are least recently used (LRU) are discarded to make space for new entries. In a clustered environment, Oracle BI Server can be configured to access a shared cache that is referred to as the cluster-aware cache. This cluster-aware cache, residing on a shared file-system storage device, stores seeding and purging events as well as the result sets associated with the seeding events. You specify the physical location for storing cache entries shared across the cluster, as well as the maximum size for each global cache entry, using Fusion Middleware Control. The cluster-aware cache is not covered in greater detail in this course. For more information about caching in a clustered environment, see “About the Cluster-Aware Cache” in the System Administrator's Guide for Oracle Business Intelligence Enterprise Edition.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using Fusion Middleware Control to Configure Caching

Cache is enabled by default.

Maximum size for single cache entry

Maximum number of cache entries in query cache

Settings for cluster-aware cache

Oracle BI 11g R1: Build Repositories 20 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 69: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using NQSConfig.ini to Manually Edit Cache Parameters

Specifies directories for query cache storage

Controls maximum number of rows for any cache entry

Rolls up aggregate from a previously executed query

Using NQSConfig.ini to Manually Edit Cache ParametersCache parameters modified in Fusion Middleware Control are stored in the [CACHE] section of the NQSConfig.ini configuration file. You can set additional query cache parameters in the NQSconfig.ini file, including the following:DATA_STORAGE_PATHS : Specifies one or more directories for query cache storage, as well as the maximum size for each storage directory. These directories are used to store the cached query results and are accessed when a cache hit occurs. The cache storage directories should reside on high-performance storage devices, ideally devoted solely to cache storage. When the cache storage directories begin to fill up, the entries that are least recently used (LRU) are discarded to make space for new entries.MAX_ROWS_PER_CACHE_ENTRY: Controls the maximum number of rows for any cache entry. Limiting the number of rows is a useful way to avoid using up the cache space with runaway queries that return large numbers of rows. If the number of rows that a query returns is greater than the value specified in the MAX_ROWS_PER_CACHE_ENTRY parameter, the query is not cached.POPULATE_AGGREGATE_ROLLUP_HITS: Typically, if a query gets a cache hit from a previously executed query, the new query is not added to the cache. When set to YES, this parameter overrides this default when the cache hit occurs by rolling up an aggregate from a previously executed query.

Oracle BI 11g R1: Build Repositories 20 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 70: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Setting Caching and Cache Persistence for Tables

• Enable caching for a table so that any query involving the table is added to the cache.– All tables are cacheable

by default.• Set cache persistence

time to indicate how long entries for this table should be kept in the cache.

Make table cacheable.

Cache persistence

Setting Caching and Cache Persistence for TablesYou can set a cacheable attribute for each physical table, enabling you to specify whether queries for that table are added to the cache to answer future queries. If you enable caching for a table, any query involving the table is added to the cache. All tables are cacheable by default, but some tables may not be good candidates to include in the cache unless you use the cache persistence time settings. For example, suppose that you have a table that stores stock ticker data that is updated every minute. You can use the cache persistence time settings to purge the entries for that table every 59 seconds. You can also use the “Cache persistence time” field to specify how long the entries for this table should be kept in the query cache. This is useful for data sources that are updated frequently.In other cases, however, it may not make sense to produce a cache at all when a table is queried against. In this case, an administrator can indicate that a table is non-cacheable by deselecting the Cacheable check box. With a table that is non-cacheable, any query against that table is not added to the cache. Defining tables as non-cacheable is generally done only when there are tables that change very frequently (such as a real-time subject area).

Oracle BI 11g R1: Build Repositories 20 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 71: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using the Cache Manager

• View information about the entire query cache or individual cache entries.

• Show, save, or copy cache SQL.• Manually purge the cache entries.• Open by selecting Manage > Cache in online mode.

Cache entries

View cache by repository,

business model, or user.

Right-click to show, save, or copy SQL or to purge the entry.

Cache hit

Using the Cache Manager The Cache Manager can be viewed in online mode only. Select Manage > Cache to open the Cache Manager.The Cache Manager provides Oracle BI Server administrators the ability to view information about the entire query cache, as well as information about individual entries in the query cache associated with the open repository. It also provides the ability to select specific cache entries and perform various operations on those entries (such as viewing and saving the cached SQL call) or purge them.Click the Cache tab at the bottom of the left pane (not shown here) to view the cache entries for the current repository, business models, and users. The associated cache entries are reflected in the right pane, with the total number of entries shown in the View-Only field at the top. Cache hits are shown in the “Last used” column.

Oracle BI 11g R1: Build Repositories 20 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 72: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Inspecting SQL for Cache Entries

The Cache Manager provides the ability to view the SQL for cache entries in a separate window to:• Evaluate SQL of queries that receive frequent hits• Search and troubleshoot SQL

Right-click cache entry and select

Show SQL.

Search or copy SQL.

Inspecting SQL for Cache EntriesThe Cache Manager provides the ability to view the SQL for a cache entry in a separate window. To see the logical SQL used by the query, right-click the cache entry and select Show SQL or select the cache entry and select SQL > Show from the menu. The Find button and Find Again button enable you to search and troubleshoot complex queries. The SQL for a request can assist in evaluating cache statistics. For example, you realize that a cache entry has fulfilled 90 other requests, and you may want to know the SQL behind this entry to seed the cache requests that are just as effective.

Oracle BI 11g R1: Build Repositories 20 - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 73: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Modifying the Cache Manager Column Display

1. Select Edit > Options.2. Deselect a column to remove it from the display.3. Use the Up and Down buttons to change the column order.

Change the column order.

Select or deselect columns.

Modifying the Cache Manager Column DisplayYou can alter how the Cache Manager displays information. The Options window allows you to choose the columns that you want the Cache Manager to display by selecting or deselecting the check boxes for the columns. You can also use the Up and Down buttons to set the order in which columns are displayed.

Oracle BI 11g R1: Build Repositories 20 - 15

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 74: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Inspecting Cache Reports

Select Action > Show Info to display global cache information:• Query information• Storage information• NQSConfig.ini cache settings

Number of queries satisfied or not satisfied

from cache

NQSConfig settings

Number of entries

Storage information

Inspecting Cache ReportsIn the Cache Manager, select Action > Show, or right-click in the right pane and select Show to display global cache information. This includes information such as:

• Number of entries currently in the cache• Number of queries satisfied by the cache• Number of queries not satisfied

The report also includes cache settings, such as:• Maximum allowable number of entries in the cache• Storage space information• Maximum allowable number of rows per cache entry result set

Administrators can use this information to monitor cache performance. For example, if a large number of queries are not being satisfied by the cache, this could affect overall performance.

Oracle BI 11g R1: Build Repositories 20 - 16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 75: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Purging Cache Entries Manually Using the Cache Manager

Purging is the process of deleting entries from the query cache.

Cache mode: Purge entries associated with repository, business model, or user.

Physical mode: Purge entries for tables associated with database,

schema, catalog, or specific table.

Purging Cache Entries Manually Using the Cache ManagerPurging cache is the process of deleting entries from the query cache. There are two methods for manually deleting cache entries:

• Cache mode: Purge one or more selected cache entries associated with the open repository, a specified business model, or a specified user within a business model.

• Physical mode: Purge all cache entries for tables associated with one or more selected databases, one or more selected catalogs, one or more selected schemas, or all cache entries associated with one or more selected tables.

To purge cache entries, select the entries and then right-click and select purge, or select Edit > Purge.Purging cache entries manually gives the administrator the highest level of control over purging but is not necessarily the most efficient method. Automated methods for purging cache are discussed in the next slide.

Oracle BI 11g R1: Build Repositories 20 - 17

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 76: 104059052 Course Sg2 Unlocked

Purging Cache Entries Automatically As you learned earlier in this lesson, cache is automatically purged if certain conditions are met. You can set cache persistence time to indicate how long entries for this table should be kept in cache. You can also use cache parameters in NQSConfig.ini, such as MAX_CACHE_ENTRIES, to limit the total number of cache entries. When cache storageexceeds the specified number, entries that are least recently used are discarded, which essentially purges the cache.Another technique for automatically purging the cache is the use of event polling tables. This is discussed in more detail in the next slide.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Purging Cache Entries Automatically

Cache entries can also be purged automatically by:• Setting the Cache persistence time field for a physical

table• Filling up the allotted cache storage space• Setting up an event polling table

Oracle BI 11g R1: Build Repositories 20 - 18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 77: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using Event Polling Tables

• Event polling tables store information about updates in the underlying databases.

• Oracle BI Server polls tables at set intervals and purges any stale cache entries that reference the updated tables.

• Using event polling tables can be the sole method of cache management or can be used with other cache-management techniques.

• Event tables require a fixed schema.Caution: Because there is a polling interval in which the cache is not completely up to date, there is always the potential for stale data in the cache.

Using Event Polling TablesAn application (such as an application that loads data into a data mart) can be configured to add rows to an event polling table each time a database table is updated. Oracle BI Server polls this table at set intervals and purges any stale cache entries that reference the tables. The event table is a physical table that resides on a database accessible to Oracle BI Server. Regardless of where it resides—in its own database or in a database with other tables—it requires a fixed schema. It is normally exposed only in the Physical layer of the Administration Tool, where it is identified in the Physical Table dialog box as being an Oracle BI Server event table.The use of event tables is one of the most accurate ways of invalidating stale cache entries, and it is probably the most reliable method. It does, however, require the event table to be populated each time a database table is updated. Also, because there is a polling interval in which the cache is not completely up to date, there is always the potential for stale data in the cache.Note: Setting up polling tables is beyond the scope of this course.

Oracle BI 11g R1: Build Repositories 20 - 19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 78: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Seeding the Cache

Seeding is the process of pre-populating the cache with queries that are known to generate cache hits.• Helps improve query performance

– Use queries that heavily consume database processing and are likely to be reused.

• Is performed by running prebuilt queries during off hours or immediately after purging– Manually by using the Oracle BI user interface– Automatically by using the Oracle BI scheduler to schedule

queries to run at a specified time

Seeding the CacheOne of the main advantages of seeding the cache is the improvement of query performance. A good strategy, therefore, is to seed the cache during off hours by running queries and caching their results. A good seeding strategy requires knowing when cache hits occur so that you can seed the cache with the appropriate queries. The best queries for seeding the cache are queries that heavily consume database processing resources or that are likely to be reused. For example, seed the cache with queries that have many joins or a great deal of sorting, or with queries that are used frequently throughout the business day. Be careful not to seed the cache with simple queries that return many rows and require very little database processing.

Oracle BI 11g R1: Build Repositories 20 - 20

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 79: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Cache Hit Conditions

A cache hit occurs only when certain conditions are met, such as the following:• Query WHERE clause constraints need to be equivalent to

the cached results or to a subset of the results.• All the columns in the SELECT list of a new query must

exist in the cached query or they must be able to be calculated from the columns in the query.

• Join conditions must be equivalent.• Queries that request an aggregated level of information

can use cached results at a lower level of aggregation.

Cache Hit ConditionsWhen caching is enabled, each query is evaluated to see if it qualifies for a cache hit. A cache hit means that Oracle BI Server was able to use the cache to answer the query and did not go to the database. The slide contains only a partial list of cache hit conditions. For a full list, see the System Administrator's Guide for Oracle Business Intelligence Enterprise Edition.

Oracle BI 11g R1: Build Repositories 20 - 21

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 80: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to manage the Oracle BI Server query cache.

Oracle BI 11g R1: Build Repositories 20 - 22

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 81: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 20-1 Overview: Enabling Query Caching

This practice covers the following topics:• Enabling query caching• Using the Cache Manager• Using the query log to verify cache hits and non-hits

Practice 20-1 Overview: Enabling Query CachingYou use Fusion Middleware Control to enable query caching and to create and run analyses. You then use the Cache Manager and the query log to inspect cache entries and analyze cache hits and non-hits.

Oracle BI 11g R1: Build Repositories 20 - 23

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 82: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 20-2 Overview: Modifying Cache Parameters

This practice covers the following topics:• Modifying cache parameters• Making tables non-cacheable• Modifying Cache Manager display options• Purging cache entries manually

Practice 20-2 Overview: Modifying Cache ParametersYou use the Cache Manager to inspect the cache parameters. You then modify the number of rows per cache as well as the number of cache entries allowed. In addition to modifying cache parameters, you make certain tables non-cacheable.

Oracle BI 11g R1: Build Repositories 20 - 24

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 83: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 20-3 Overview: Seeding the Cache

This practice covers the following topics:• Creating a query to seed the cache• Creating, scheduling, and delivering an agent to seed the

cache

Practice 20-3 Overview: Seeding the CacheYou have identified requests that are used frequently by sales representatives. To improve performance, you want to seed the cache with this data. In this practice, you create and save a query to populate the cache and then you create an agent to seed the cache. During this process, you use a programmatic ODBC call to purge the cache.

Oracle BI 11g R1: Build Repositories 20 - 25

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 84: 104059052 Course Sg2 Unlocked

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 85: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Managing Usage Tracking

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 86: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objectives

After completing this lesson, you should be able to:• Identify the need for usage tracking• Set up and administer Oracle BI usage tracking

Oracle BI 11g R1: Build Repositories 21 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 87: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Challenges

• When it is first deployed, Oracle BI may not be optimized for the querying that actually occurs:– End-user queries may not match what is expected, so the

cache is not seeded with appropriate queries.– Additional aggregate tables may need to be created to speed

up query processing.• Your company may need to track database usage on a

user or departmental level:– Users may be charged for database use.– Regulatory requirements may require usage tracking.

Oracle BI 11g R1: Build Repositories 21 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 88: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Solution: Oracle BI Usage Tracking

• Tracks and stores Oracle BI Server usage at the detailed query level

• Supports the accumulation of usage tracking statistics that can be used in a variety of ways, such as:– Database performance optimization– Aggregation strategies– Billing users or departments based on the resources they

consume• Provides ability to analyze usage results with end-user

reporting tools

Oracle BI 11g R1: Build Repositories 21 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 89: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Oracle BI Usage Tracking Methods

There are two methods for enabling usage tracking:• Direct insertion (recommended approach)

– Oracle BI Server inserts statistics for every query directly into a relational database table.

• Log file– Oracle BI Server inserts statistics for every query into a log

file.

Oracle BI Usage Tracking Methods When you enable usage tracking, statistics for every query are inserted into a database table or are written to a usage tracking log file. If you use direct insertion, Oracle BI Server directly inserts the usage tracking data into a relational database table. It is recommended that you use direct insertion to write statistics to a database table. Only the direct insertion method is discussed in this lesson. For more information about setting up a log file to collect usage tracking information, see the System Administrator’s Guide for Oracle Business Intelligence Enterprise Edition.

Oracle BI 11g R1: Build Repositories 21 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 90: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

ABC Example

Set up Oracle BI usage tracking to track and store usage statistics at the detailed query level.

Username Date Logical SQL Row countSubject areaTime

Oracle BI 11g R1: Build Repositories 21 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 91: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Steps to Enable Usage Tracking

1. Create the usage tracking table.2. Import the usage tracking table.3. Build a usage tracking business model.4. Enable usage tracking.5. Enable direct insertion.6. Set the physical table parameter.7. Set the connection pool parameter.8. Set additional parameters.9. Test the results.

Steps to Enable Usage TrackingThe steps in the following slides enable usage tracking using the direct insertion method.

Oracle BI 11g R1: Build Repositories 21 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 92: 104059052 Course Sg2 Unlocked

1. Create the Usage Tracking TableThe following folder contains CREATE TABLE scripts for Oracle, DB2, SQL Server, and Teradata:<ORACLE_INSTANCE>\bifoundation\OracleBIServerComponent\coreapplication_obis1\schema

The sample scripts set the usage tracking table name to S_NQ_ACCT. For sites that have Oracle BI Applications, this is the name used in the Oracle BI repository. Sites that build their own repositories may change the name of the usage tracking table. The table name must match the name used in the corresponding repository.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

1. Create the Usage Tracking Table

• Use the provided SAACCT.<db>.sql script to create the S_NQ_ACCT usage tracking table.

• This table stores the usage tracking data when queries are run against Oracle BI Server.

Oracle BI 11g R1: Build Repositories 21 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 93: 104059052 Course Sg2 Unlocked

2. Import the Usage Tracking TableUse known techniques to import the S_NQ_ACCT usage tracking table into the Physical layer of the repository. As shown in the screenshot, you can create a new database object, connection pool, and schema for usage tracking.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

2. Import the Usage Tracking Table

Import the usage tracking table into the Physical layer.

Oracle BI 11g R1: Build Repositories 21 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 94: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

3. Build a Usage Tracking Business Model

Build a usage tracking business model using the columns in the S_NQ_ACCT table:

Oracle BI 11g R1: Build Repositories 21 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 95: 104059052 Course Sg2 Unlocked

4. Enable Usage TrackingThe ENABLE parameter in the USAGE_TRACKING section of the NQSConfig.ini file enables or disables collection of usage tracking statistics. Valid values are YES and NO. The default value is NO. When it is set to NO, statistics are not accumulated. When it is set to YES, statistics are accumulated for each logical query.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

4. Enable Usage Tracking

Modify the NQSConfig.ini file to enable usage tracking.

Oracle BI 11g R1: Build Repositories 21 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 96: 104059052 Course Sg2 Unlocked

5. Enable Direct Insertion In the NQSConfig.ini file, the DIRECT_INSERT parameter specifies whether statistics are inserted directly into a database table or written to a local file. When DIRECT_INSERT is set to NO, data is written to a flat file. When DIRECT_INSERT is set to YES, data is inserted into a table. Note that this parameter is operative only if ENABLE = YES. Direct insertion into a database table is recommended; therefore, the default value is YES.When DIRECT_INSERT is set to YES, the following other parameters in NQSConfig.ini become valid: PHYSICAL_TABLE_NAME, CONNECTION_POOL, BUFFER_SIZE, BUFFER_TIME_LIMIT_SECONDS, NUM_INSERT_THREADS, and MAX_INSERTS_PER_TRANSACTION. These parameters are discussed in detail in the following slides.When DIRECT_INSERT is set to NO, the following other parameters in NQSConfig.ini become valid: STORAGE_DIRECTORY, CHECKPOINT_INTERVAL_MINUTES, FILE_ROLLOVER_INTERVAL_MINUTES, and CODE_PAGE. These parameters are relevant only when the log file method of usage tracking is enabled; they are not discussed in this course. For more information about them, see the System Administrator’s Guide for Oracle Business Intelligence Enterprise Edition.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

5. Enable Direct Insertion

Set the DIRECT_INSERT parameter to YES to specify that statistics are inserted directly into a database table.

Oracle BI 11g R1: Build Repositories 21 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 97: 104059052 Course Sg2 Unlocked

6. Set the Physical Table ParameterIn the NQSConfig.ini file, scroll to the “Parameters used for inserting data into a table” section and locate the PHYSICAL_TABLE_NAME parameter. To insert query statistics information into a table, you must provide the fully qualified physical table name of the table. The fully qualified physical table name consists of up to four components (database name, catalog name, schema name, and table name). Each component is surrounded by double quotes (") and separated by a period (.). This fully qualified physical table name must match a table name in the physical layer of the loaded repository.Two format options are provided for the PHYSICAL_TABLE_NAME parameter. One has three components and one has four components. In the example in the slide, the fully qualified path to the usage tracking physical table consists of three components: a database component (ABCUsage Tracking), a schema component (ABC Usage Tracking Schema), and a physical table (S_NQ_ACCT).

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

6. Set the Physical Table Parameter

• Set the PHYSICAL_TABLE_NAME parameter to specify the table into which to insert records corresponding to the query statistics.

• The table name is the fully qualified name as it appears in the Physical layer of the Administration Tool.

Oracle BI 11g R1: Build Repositories 21 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 98: 104059052 Course Sg2 Unlocked

7. Set the Connection Pool ParameterIn the NQSConfig.ini file, set the CONNECTION_POOL parameter to specify the connection pool to use for inserting records into the usage tracking table. The fully-specified connection pool name has two parts: database object name and connection pool name. Each part is surrounded by double quotes (") and separated by a period (.). In the example in the slide the parameter is the following:“ABC Usage Tracking".“ABC Usage Tracking Connection Pool“;

The fully qualified connection pool name should match a connection pool name in the physical layer of the loaded repository. For Usage Tracking inserts to succeed, the connection pool must be configured with a user ID that has write access to the back-end database.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

7. Set the Connection Pool Parameter

• Set the CONNECTION_POOL parameter to specify the connection pool to use for inserting records into the usage tracking table.

• The connection pool is the fully qualified name as it appears in the Physical layer of the Administration Tool.

Oracle BI 11g R1: Build Repositories 21 - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 99: 104059052 Course Sg2 Unlocked

8. Set Additional Parameters• BUFFER_SIZE specifies the amount of memory that is used to temporarily store insert

statements. The buffer allows the insert statements to be issued to the usage tracking table independently of the query that produced the statistics to be inserted. When the buffer is full, subsequent query statistics are discarded until insert threads service the buffer entries. Example: BUFFER_SIZE = 10 MB ;

• BUFFER_TIME_LIMIT_SECONDS specifies the maximum amount of time that an insert statement remains in the buffer before it is issued to the usage tracking table. This time limit ensures that Oracle BI Server issues the insert statements in a timely manner even during periods of extended quiescence. Example: BUFFER_TIME_LIMIT_SECONDS = 5 ;

• NUM_INSERT_THREADS specifies the number of threads that remove insert statements from the buffer and issues them to the usage tracking table. The number of threads should not exceed the total number of threads assigned to the connection pool. Example: NUM_INSERT_THREADS = 5 ;

• MAX_INSERTS_PER_TRANSACTION specifies the number of records to group together as a single transaction when inserting into the usage tracking table. Increasing the number may slightly increase performance, but it also increases the possibility of inserts being rejected due to deadlocks in the database. Example: MAX_INSERTS_PER_TRANSACTION = 1 ;

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

8. Set Additional Parameters

• BUFFER_SIZE

– Amount of memory that is used to store insert statements temporarily

• BUFFER_TIME_LIMIT_SECONDS

– Maximum amount of time that an insert statement remains in the buffer before it is issued to the usage tracking table

• NUM_INSERT_THREADS

– Number of threads that remove insert statements from the buffer and issue them to the usage tracking table

• MAX_INSERTS_PER_TRANSACTION

– Number of records to group together as a single transaction when inserting into the usage tracking table

Oracle BI 11g R1: Build Repositories 21 - 15

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 100: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

9. Test the Results

Use the Usage Tracking subject area to build and run queries:

Oracle BI 11g R1: Build Repositories 21 - 16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 101: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Analyzing Usage Tracking Data

• Watch for long-running queries (typically ad hoc):– End users may need training.– You might need to assign query blocking or restrictions on

how long queries can run or how many records are returned.– The database may require additional indexes or tuning.

• Perform usage audits for:– Regulatory compliance– Security

• Determine whether a query should be used to seed the cache or be removed from the cache-seeding queries.

• Identify aggregation strategies.• Bill users or departments based on the resources that they

consume.

Analyzing Usage Tracking Data Why do you want to track usage?It is helpful from an administrative and maintenance perspective to be able to identify:

• Users who may need training• Better ways to bullet-proof the use of the application• Candidate columns for indexing

Some organizations have strict security guidelines that require the ability to know who queried the data warehouse and when it was queried. In some cases, this information can be used to monitor and enforce regulatory compliance.Queries that are being run and rerun may be candidates for cache seeding.

Oracle BI 11g R1: Build Repositories 21 - 17

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 102: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to:• Identify the need for usage tracking• Set up and administer Oracle BI usage tracking

Oracle BI 11g R1: Build Repositories 21 - 18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 103: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 21-1 Overview: Setting Up Usage Tracking

This practice covers setting up and administering usage tracking.

Practice 21-1 Overview: Setting Up Usage TrackingOracle BI Server supports the accumulation of usage tracking statistics that can be used in a variety of ways such as database optimization, aggregation strategies, or billing users or departments based on the resources they consume. Oracle BI Server tracks usage at the detailed query level. In this practice, ABC wants to monitor the queries generated by users to help identify performance improvement areas. You use the recommended usage tracking approach, which is to track statistics by loading them directly into a database table rather than a log file. You use a provided script to create the necessary database table, modify the NQSConfig.ini file to support usage tracking, and test the results.

Oracle BI 11g R1: Build Repositories 21 - 19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 104: 104059052 Course Sg2 Unlocked

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 105: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Setting Up and Using the Multiuser Development Environment

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 106: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objectives

After completing this lesson, you should be able to:• Set up an Oracle BI multiuser development environment • Describe the multiuser development environment

functionality• Develop a repository with multiple developers

Oracle BI 11g R1: Build Repositories 22 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 107: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Challenge

By default, the Oracle BI repository development environment is not set up for multiple users.• Multiple developers working in online mode lock each

other out as they check out objects.• This causes inefficiency and potential conflicts while other

developers wait for access to the repository.

Business ChallengeBy default, the Oracle BI repository development environment is not set up for multiple users. Online editing makes it possible for multiple developers to work simultaneously. However, if they are working on the same business model, they lock each other out as they check out objects for editing. This is an inefficient approach to repository development and can result in conflicts as developers may potentially overwrite each other’s work. A more efficient development environment would permit developers to modify a repository simultaneously and then check in changes.

Oracle BI 11g R1: Build Repositories 22 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 108: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Solution: Oracle BI MultiuserDevelopment Environment (MUDE)

• The Oracle BI MUDE permits multiple users to work with the repository simultaneously:– Users edit local copies of the repository.– Changes are saved locally and then merged to the master

repository.• The MUDE breaks the repository into manageable pieces

known as projects.– Multiple users can work on the same or different projects.– Single users can improve efficiency by working on smaller

subsets of the repository.

Business Solution: Oracle BI Multiuser Development Environment (MUDE)Oracle BI enables multiple developers to work on repository objects from the same repository during group development of Oracle BI applications. For example, after completing an implementation, the administrator might want to deploy Oracle BI to other functional areas of the company. In this example, multiple developers need to work concurrently on subsets of the metadata and merge these subsets back into a master repository without conflicts in the developers’ work. In another example, a single developer might manage all development. For simplicity and performance, this developer might want to use an Oracle BI MUDE to maintain metadata code in smaller chunks instead of in a large repository. In both situations, this is accomplished by creating projects in the repository file in the Administration Tool and then copying this repository file to a shared network directory. Developers can check out projects, make changes, and then merge the changes into the master repository.

Oracle BI 11g R1: Build Repositories 22 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 109: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Oracle BI Repository Development Process

Adheres to the classic Software Configuration Management (SCM) process:• It is conceptually and functionally analogous to processes

found in pure-play source control systems.• Developers can check out, work on, and merge from the

master code repository.• Oracle BI enables and manages checkout, merging,

conflict resolution, logging, code compares, version backups, and so on.

Oracle BI Repository Development ProcessDevelopers can work simultaneously on repository development, managing the process with utilities and interfaces in the Administration Tool.

Oracle BI 11g R1: Build Repositories 22 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 110: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

SCM Three-Way Merge Process

• Manages concurrent development– Highly restrictive alternative is serial development.

• Permits changes to the same file by multiple developers• Requires merging and reconciliation:

– Most merging is automatic; changes generally do not conflict.– Conflicts require manual intervention.

• Creates a fourth “merged” file based on two changed files, which are base-lined against a common parent file

Original file

Merged fileFile version 1 + File version 2

File version 2File version 1

SCM Three-Way Merge ProcessThe classic Software Configuration Management (SCM) process uses a three-way merge to manage concurrent development. This permits changes to the same file by multiple developers. Changes are managed by merge and reconciliation.

Oracle BI 11g R1: Build Repositories 22 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 111: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Oracle BI Repository Three-Way Merge Process

Conceptually identical to classic SCM three-way merge:• Oracle BI repository is stored as a file (.rpd).• Merge is managed by using the Administration Tool.

Original.rpd

Merged.rpd

Current.rpd + Modified.rpd

Modified.rpdCurrent.rpd

Oracle BI Repository Three-Way Merge ProcessThe Oracle BI repository is stored as a file. Developers check out the file and make changes locally. Changes are then merged into a final, merged repository file.

Oracle BI 11g R1: Build Repositories 22 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 112: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Multiuser Development Projects

• Projects:– Are subsets of repository metadata– Consist of Presentation layer subject areas and their

associated logical facts, dimensions, application roles, users, variables, and initialization blocks

– Can overlap with other projects• The recommended practice is to create projects of

manageable size based on individual logical star schemas in the business model.

Oracle BI 11g R1: Build Repositories 22 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 113: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Overview: Oracle BI Multiuser Development

The developer:1. Checks out projects from

the master repository2. Makes changes in the

local (current) repository3. Merges the local changes4. Publishes to the network

Original.rpd

Merged.rpd

Current.rpd + Modified.rpd

Modified.rpdCurrent.rpd

Original Master.rpd

New Master.rpd

1

23

4

Overview: Oracle BI Multiuser DevelopmentThe Oracle BI multiuser development process follows a purposeful three-way merge. The developer performs the following steps:

1. Check out projects from the master repository, which is stored in the shared multiuserdirectory. An unalterable copy of the checked out repository (original.rpd) is automatically retained by the system for use during the merge.

2. Make changes in the local (current) version of the repository. The modified repository contains changes by other developers between checkout and merge.

3. Merge the local changes. The original master repository may have changed through concurrent development since checkout. A copy of the latest master repository (modified) is automatically retrieved by the system and compared with the current and original repositories in a three-way merge. The modified master repository is automatically locked by the system to prevent issues during merge. If there are any configuration conflicts during the merger, the developer resolves them manually.

4. Publish the new master repository to the network. The system automatically moves the merged repository to the shared multiuser directory and removes the locks. The merged repository is the new master repository.

This slide provides an overview of the process. Each step is covered in detail later in this lesson.

Oracle BI 11g R1: Build Repositories 22 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 114: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

ABC Example

ABC wants multiple developers to be able to modify objects in the SupplierSales subject area simultaneously.

Oracle BI 11g R1: Build Repositories 22 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 115: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Steps to Set Up an Oracle BI MUDE

1. Create projects.2. Edit projects.3. Set up a shared network directory.4. Copy the master repository to the shared directory.

Steps to Set Up an Oracle BI MUDE This slide identifies the high-level steps for setting up an Oracle BI multiuser development environment (MUDE). Each step is covered in detail in the following slides.

Oracle BI 11g R1: Build Repositories 22 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 116: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

1. Create Projects

Select Manage > Projects to open the Project Manager. Then select Action > New Project.

Select business models, subject areas or logical fact tables in the subject areas.

Selected objects are added to the project.

1. Create ProjectsTo create projects in the Administration Tool, select Manage > Projects to open the Project Manager. Then select Action > New Project. The left pane contains the objects that are available to be placed in a project. The right pane contains the objects that you select to be part of the project. Enter a name for the project. Build the project by adding subject areas or logical fact tables to the project. You can group facts by subject area or by business model. You can select one or more logical fact tables in the business model that are related to the subject area and then click Add. Or you can select a subject area and then click Add. The Administration Tool adds all the logical fact tables automatically.Adding a subject area includes all fact tables and dependencies in the subject area. Adding a logical fact table includes the subject area containing the table. In both cases, logical dimension tables joined to the logical fact tables are implicitly included, even though they do not appear in the right pane. In the example in the slide, a new project called SupplierSales Project is created. TheSupplierSales subject area and the related fact table, Fact-Sales, are added to the project.

Oracle BI 11g R1: Build Repositories 22 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 117: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

2. Edit Projects

• Remove unwanted objects from the project.• Add other metadata (such as users, initialization blocks, or

variables) to the project.

Remove unwanted objects.

Add other metadata to the project.

2. Edit ProjectsTo remove objects from the project, select the object in the right pane and then click Remove. To add additional metadata objects, select the object in the left pane and click Add, or double-click the object in the left pane. Add additional subject areas, application roles, users, variables, or initialization blocks needed for the project.

Oracle BI 11g R1: Build Repositories 22 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 118: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

3. Set Up a Shared Network Directory

The administrator must identify or create a shared network directory that all developers can access.

All developers must have access to the shared directory.

3. Set Up a Shared Network DirectoryThe administrator must identify or create a shared network directory that all developers can access and then copy the appropriate repository files to that location. This shared network directory is used only for multiuser development for the master repository. This directory typically contains copies of master repositories that multiple developers access during check in and check out. Developers create a pointer to this directory when they set up the Administration Tool on their machines. This directory must be accessible to all developers and repository servers.Note: The administrator must set up a separate, shared network directory that is dedicated tomultiuser development. If it is not set up and used as specified, critical repository files can be unintentionally overwritten and repository data can be lost. In the practices for this lesson, the shared directory is a local directory, D:\RPD. This is the example used in the remaining slides.

Oracle BI 11g R1: Build Repositories 22 - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 119: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

4. Copy the Master Repository to the Shared Directory

Copy the master repository file and paste it in the directory that you have dedicated to multiuser development.

Copy the master repository to the shared directory.

4. Copy the Master Repository to the Shared DirectoryCopy the master repository file and paste it in the directory that you have dedicated tomultiuser development. Projects from this master repository are extracted and downloaded by the developers, who make changes and then merge them back into the master repository. After you copy the repository to the shared network directory, you can notify developers that the multiuser development environment is ready for use.

Oracle BI 11g R1: Build Repositories 22 - 15

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 120: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Making Changes in an Oracle BI MUDE

1. Point to the multiuser directory.2. Check out projects.3. Tasks performed by Administration Tool during checkout4. Change metadata.5. Multiuser options during development6. Merge local changes.7. Make merge decisions.8. Publish to network.9. Track project history.

Making Changes in an Oracle BI MUDE This slide identifies the high-level steps and processes that occur when you make changes in an Oracle BI multiuser development environment. Each step is covered in detail in the following slides.

Oracle BI 11g R1: Build Repositories 22 - 16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 121: 104059052 Course Sg2 Unlocked

1. Point to the Multiuser DirectorySelect Tools > Options and then click the Multiuser tab.The “Multiuser development directory” field is mandatory. It must be completed by any user who wants to use the multiuser development (MUD) feature and must be set to the directory on the network shared with other MUD developers. Use the Browse button to navigate to the directory or enter the directory path. The Administration Tool stores this path in a hidden Windows registry setting on the developer’s workstation and uses it during checkout and check in.The “Full name” field is optional. If a user enters a name here, the value is used by default in the “Full name” field of the repository Lock Information dialog box (discussed later). For convenience and tracking, each MUD developer should enter a full name. The value is stored in the HKEY_CURRENT_USER part of the registry and is, therefore, unique for each login.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

1. Point to the Multiuser Directory

Before checking out projects, each developer must set up the Administration Tool application to point to the multiuserdevelopment directory.

Shared directory

User name

Oracle BI 11g R1: Build Repositories 22 - 17

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 122: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

2. Check Out Projects

Select File > Multiuser > Checkout and select the desired project or projects.

3. Provide name for extracted repository.1. Enter password

for shared repository.

4. Extracted repository is displayed with subset of metadata.

2. Select project.

2. Check Out ProjectsAfter setting up a pointer to the multiuser development default directory, a developer can check out the desired projects.

• To check out projects, select File > Multiuser > Checkout. The Checkout option is available only when there is a multiuser development directory defined on the Multiusertab of the Options dialog box.

• The developer is presented with a dialog box asking for the repository password.• After entering the password, the developer is presented with a dialog box to select the

project or projects to import. If there is only one project in the master repository, it is chosen by default and no dialog box is presented to the user. In this example, there are two projects.

• After selecting a project or projects, the user must enter the name of the new, extracted repository, which is stored in the user’s local directory.

• The extracted repository is displayed with the subset of metadata from theSupplierSales Project. Note that it contains only the SupplierSales subject area and business model. The other ABC subject areas and business models are not shown. Note also that the SupplierSales subject area and business model contain only the Fact-Sales fact table.

Oracle BI 11g R1: Build Repositories 22 - 18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 123: 104059052 Course Sg2 Unlocked

3. Administration Tool Tasks During CheckoutDuring checkout, the Administration Tool performs the following tasks:

• In the developer’s local \coreapplication_obis1\repository directory, the Administration Tool saves a local copy of the selected projects in a new repository. In this example, the new repository is named JCRUZ.rpd. The developer makes metadata changes in this file.

• In the developer’s local \coreapplication_obis1\repository directory, the Administration Tool saves a second local copy of the new repository, adding originalas the prefix, to enable changed projects to be compared with original projects locally. In this example, the local copy is named originalJCRUZ.rpd.

All changes are tracked in the log, which is SharedABC.rpd.Log in this example.Caution: When a developer selects and saves projects to a local repository file, the Administration Tool does not place a lock on the projects in the master repository on the shared network drive. Therefore, nothing physically prevents others from working on the same project. To determine if a project has been checked out, you need to check the multiuserdevelopment log in the log viewer (discussed later in this lesson).

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

3. Administration Tool Tasks During Checkout

• Saves a local copy of the selected projects in a new repository in the local directory

• Saves a second local copy of projects in the new repository in the local directory with original as the prefix

• Tracks transactions in a log

Local copy of new repository

Local directory after extract

Second copy of new repository with original prefix

Log

Oracle BI 11g R1: Build Repositories 22 - 19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 124: 104059052 Course Sg2 Unlocked

4. Change MetadataMost changes that can be made to standard repository files are also supported for local repository files. Developers can add new logical columns, logical tables, change table definitions, logical table sources, and so on. In this example, the Customer presentation table is deleted. Developers may also work simultaneously on the same project locally. It is important to note, however, that Oracle BI assumes that the individual developer understands the implications that these changes might have on the master repository. For example, if a developer deletes an object in a local repository, this change is propagated to the master repository without a warning prompt.Physical connection settings should not be modified in a local repository. To prevent developers from overwriting passwords and other important objects in the master repository, the physical connection settings, security settings, and database feature table changes are not retained in a multiuser development merge.After making changes to a local repository, the developer can load the modified repository and test the edited metadata. Note: All repository connection information specified in the repository metadata (ODBC, OCI, and so on) must also exist on the developer’s workstation.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

4. Change Metadata

Change metadata as you would during single-user development, with the exception of physical connection settings.

Oracle BI 11g R1: Build Repositories 22 - 20

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 125: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

5. Multiuser Options During Development

The following multiuser options are enabled when the local, extracted repository is open:• Compare with Original

– Launches a dialog box that compares the local version of the original repository with the subset repository

• Discard Local Changes– Discards changes to the local repository without checking in

• Merge Local Changes– Launches a dialog box to merge local changes with the

master repository

5. Multiuser Options During DevelopmentWhen a developer opens the local version of the extracted repository, the following multiuseroptions are enabled:

• Compare with Original launches a compare repositories dialog box, which compares the local version of original repository with the subset repository.

• Discard Local Changes closes the repository and discards any changes to the local repository without checking in changes.

• Merge Local Changes first presents a Lock Information dialog box to lock the masterrepository in the shared directory, and then opens the standard Merge dialog box.

Oracle BI 11g R1: Build Repositories 22 - 21

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 126: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

6. Merge Local Changes

1. Select Merge Local Changes.

2. Provide lock information.

3. Provide description of changes.

4. Local copy of master repository opens.

5. CSV file with changes

6. Subset of changes to master

6. Merge Local ChangesAfter making changes to the local repository, the developer begins the check-in process by selecting Multiuser > Merge Local Changes. When the check-in process begins, the following actions occur:

• The Administration Tool determines whether the master repository is currently locked. If not, it locks the master repository (preventing other developers from performing a merge until the current merge is complete) and records the lock in the log. For other developers, the Multiuser Development > Merge Local Changes option on the File menu is unavailable until the current check-in process has been successfully completed.

• If there had been any conflicts, the Merge Repository Wizard would have opened and displayed the Define Merge Strategy window. You would then make merge decisions about whether to include or exclude objects by choosing Current or Modified from the Decision list. You learn more about this process later in this lesson.

• A local version of the master repository opens.• The Administration Tool automatically creates a comma-separated value file in the local

repository directory on the developer’s machine. This file lists changes made to the master repository during the merge.

• A new file is created in the shared master repository directory with a modified subset of the master repository.

Oracle BI 11g R1: Build Repositories 22 - 22

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 127: 104059052 Course Sg2 Unlocked

7. Make Merge DecisionsIf there are conflicts when a developer selects File > Multiuser > Merge Local Changes, the developer has to make decisions about what to do with the changes.If there are conflicts, the Merge Repository Wizard opens and compares the original repository, the modified repository, and the local version of the current shared repository, which was opened when the developer selected Merge Local Changes. In this example, the original and modified repositories have a Customer presentation table that is not in the current shared repository. This means that the first developer made this change and checked in the project while the second developer had the project checked out. At this point, a decision must be made about how to proceed with the merge.The dialog box gives the developer the option of accepting or not accepting the changes in the master repository. Selecting Modified means that the developer retains the changes in the modified repository and overwrites other developers’ work in the current repository. Selecting Current means that the developer accepts the changes by other developers in the current local version of the master repository. The developer must select either Current or Modified. Changes cannot be combined. Thus, if two developers modify the same object at the same time, one developer’s changes are lost.In this example, the second developer selects Modified, which means that the Customertable is added back to the master repository.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

7. Make Merge Decisions

Merge decision

Customer table exists in the original and modified repositories but not in the current repository.

Oracle BI 11g R1: Build Repositories 22 - 23

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 128: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

8. Publish to Network

Select File > Multiuser > “Publish to Network” to commit changes to the master repository.

8. Publish to Network.The next step is to commit changes to the master repository. To commit changes to the master repository in the multiuser development directory, select File > Multiuser > “Publish to Network,” and then click OK. The local copy of the master repository closes and the master repository in the multiuser development directory is overwritten with the copy of the repository containing the developer's changes. Notice that you also have the option to discard local changes or undo merge at this point.

Oracle BI 11g R1: Build Repositories 22 - 24

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 129: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

9. Track Project History

Project history is stored in a log viewer.

a. File > Multiuser > Historyb. Select master repository.

d. Multi User History dialog box

c. Repository password

9. Track Project HistoryAll project log events are stored in a log viewer:

a. The viewer is accessed by selecting File > Multiuser > History. This menu item is available only when the Oracle BI Administration Tool is open with no repository file open.

b. When this menu item is selected, the user sees the Multiuser Development History dialog box. This dialog box lists all master repositories in the shared MultiuserDevelopment Directory specified in the Options dialog box. If no directory is specified in the Options dialog box, the History menu item is disabled. If the directory contained only one master repository, it would be selected by default and no Multiuser Development History dialog box would be presented to the user.

c. After the repository has been selected, the user is prompted to fill in the user ID and the password for the latest version of the master repository.

d. After successful login, the Multi User History dialog box is displayed with the different versions of the projects listed.

Oracle BI 11g R1: Build Repositories 22 - 25

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 130: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

History Menu Options

Use menu options to navigate and view history.

Details

History Menu Options• View > Repository loads the selected master version of the repository to the

Administration Tool in read-only mode.• View > Prior to Merge > Projects loads the selected version of the modified subset

repository to the Administration Tool in read-only mode.• View > Prior to Merge > Changes compares the modified subset repository of a

selected version with the original subset repository. It opens the modified subset of the shared repository and displays the Compare Repositories dialog box with all changes made by the user in the selected version.

• View > Details displays the detail log for the selected version or multiple selected versions, or all details if no version is selected. The slide shows an example.

• View > Conflict Resolution loads all necessary repositories of the selected version and shows the Merge dialog box in read-only mode with all selected decisions as they were during the Merge Local Changes activity at that time. The Conflict Resolution check box must be selected in the dialog box for this menu item to be enabled. Otherwise, there is nothing to show because there were no decisions made by the user.

Oracle BI 11g R1: Build Repositories 22 - 26

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 131: 104059052 Course Sg2 Unlocked

Deleting History ItemsThe Delete menu item is available only to an administrator. Administrators are defined in a special hidden option file in the MUD directory. The file has to have a hidden flag. The file can have network access privileges set to be accessed only by the MUD administrator(s). The file must have the same base name as the master repository, but the extension is .opt. For example, for \network\RPD\SharedABC.rpd, the administrator can create the hidden file named \network\RPD\SharedABC.opt.The option file is a normal text file in the following format:[Options]

Admin=admin1;admin2

Administrators are defined by their network login name. There may be more than one administrator. In this case, administrator names are separated by semicolons.Example:[Options]

Admin=Administrator;MWEST;JMEYER

An administrator can delete the whole MUD history or the oldest 1 to n versions. It is not possible to delete version(s) in the middle of the history. For example, an administrator cannot delete version 3 if there are versions 2 and 1. If an administrator deletes the entire MUD history, version counting restarts from version 1. If an administrator leaves one or more versions in the history, the version number remains the same as it was last time.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Deleting History Items

The Delete menu item is available only to administrators who are defined in a hidden option file in the MUD directory.

Hidden option file Stored in MUD directory

Oracle BI 11g R1: Build Repositories 22 - 27

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 132: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to:• Set up an Oracle BI multiuser development environment• Describe multiuser development environment functionality• Develop a repository with multiple developers

Oracle BI 11g R1: Build Repositories 22 - 28

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 133: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 22-1 Overview: Setting Up a Multiuser Development Environment

This practice covers the following topics:• Creating projects• Copying a master repository to a shared directory• Setting a multiuser shared directory

Practice 22-1 Overview: Setting Up a Multiuser Development Environment ABC is accustomed to using multiuser development environments for its developers. You prepare the development platform to support multiuser development and then configure two users to act as developers to test the environment.

Oracle BI 11g R1: Build Repositories 22 - 29

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 134: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 22-2 Overview: Using a Multiuser Development Environment

This practice covers the following topics:• Checking out projects• Modifying project metadata• Checking in projects• Publishing changes to the network• Merging changes• Checking project history

Practice 22-2 Overview: Using a Multiuser Development Environment In this practice, two developers, JCRUZ and AZIFF, work in the Oracle BI multiuserdevelopment environment and modify the same project simultaneously, including checking out and checking in projects and merging metadata. This requires you to have two instances of the Oracle BI Administration Tool running at the same time.

Oracle BI 11g R1: Build Repositories 22 - 30

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 135: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Configuring Write Back in Analyses

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 136: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objectives

After completing this lesson, you should be able to configure write back in analyses.

Oracle BI 11g R1: Build Repositories 23 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 137: 104059052 Course Sg2 Unlocked

Write Back in AnalysesUsers of a dashboard page or an analysis have the ability to modify the data that they see in a table view. This ability is often referred to as write back. In the example in the slide, the DOLLARScolumn is enabled for write back. As a repository developer, you assist the system administrator and content designer in configuring write back for users.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Write Back in Analyses

Provides users of a dashboard page or an analysis with the ability to modify the data that they see in a table view

DOLLARS column is enabled for write back.

Oracle BI 11g R1: Build Repositories 23 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 138: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Steps to Configure Write Back

1. Create a physical table with write back columns.2. Import the write back table.3. Enable write back for the connection pool.4. Enable write back for logical columns.5. Set write back permissions in the Presentation layer.6. Enable write back in instanceconfig.xml.7. Create a write back template.8. Store the write back template.9. Grant write back privileges.

10. Create an analysis with columns enabled for write back.11. Override the default data format.12. Enable write back in the table view.13. Verify results.

Oracle BI 11g R1: Build Repositories 23 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 139: 104059052 Course Sg2 Unlocked

1. Create a Physical Table with Write Back ColumnsIn this example, you create a D1_FORECAST table in the SUPPLIER2 schema. You then configure the DOLLARS column to be the write back column.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

1. Create a Physical Table with Write Back Columns

• Create a physical table in the database that has a column for each write back field needed.

• For optimum security, store write back database tables in a unique database instance.

Oracle BI 11g R1: Build Repositories 23 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 140: 104059052 Course Sg2 Unlocked

2. Import Write Back TableUsing the Administration Tool, import the write back table into the Physical layer of the repository. Disable the Cacheable property for the physical table. This ensures that data written back to the database is displayed to the user and is not a cached value.In this example, the Cacheable object is deselected for the D1_FORECAST table in the Physical layer of the repository.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

2. Import the Write Back Table

• Import the write back table into the Physical layer of the repository.

• Disable the Make Table Cacheable property for the physical table.

Oracle BI 11g R1: Build Repositories 23 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 141: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

3. Enable Write Back for the Connection Pool

Set properties on the Write Back tab in the Connection Pool dialog box.

3. Enable Write Back for the Connection PoolIn the Physical layer, double-click the connection pool to open the Connection Pool dialog box. Click the Write Back tab. If you are using an Oracle data source, you can accept the defaults, which are shown in the screenshot: TT is selected for the temporary table prefix, buffer size = 32, and transaction boundary = 10. Prefix: When the Oracle BI Server creates a temporary table, these are the first two characters in the temporary table name. The default value is TT.Owner: Table owner name that is used to qualify a temporary table name in a SQL statement (for example, to create the owner.tablename table). If this field is blank, the user name specified in the writeable connection pool is used to qualify the table name, and the Shared Logon field on the General tab should also be set.Database name: Database where the temporary table is created. This property applies only to IBM OS/390 because IBM OS/390 requires the database name qualifier to be part of the CREATE TABLE statement.

Oracle BI 11g R1: Build Repositories 23 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 142: 104059052 Course Sg2 Unlocked

3. Enable Write Back for the Connection Pool (continued)Tablespace name: Tablespace where the temporary table is created. This property applies only to OS/390 because OS/390 requires the tablespace name qualifier to be part of the CREATE TABLE statement.Buffer size (KB): Used for limiting the number of bytes each time data is inserted in a database table. For optimum performance, consider setting this parameter to 128.Transaction boundary: Controls the batch size for an insert in a database table. For optimum performance, consider setting this parameter to 1000.Unicode database type: Select this option when working with columns of an explicit Unicode data type (such as NCHAR) in a Unicode database. This ensures that the binding is correct and data is inserted correctly.

Oracle BI 11g R1: Build Repositories 23 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 143: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

4. Enable Write Back for Logical Columns

In the BMM layer, enable write back for logical columns that will be used for write back in an analysis.

4. Enable Write Back for Logical ColumnsOpen the Logical Column dialog box and select Writeable on the General tab. In this example, you are enabling write back for the DOLLARS column in the FORECAST logical table in the Write Back business model.

Oracle BI 11g R1: Build Repositories 23 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 144: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

5. Set Write Back Permissionsin the Presentation Layer

Select the Read/Write permission for any application roles or users who should have write back permission for an object in the Presentation layer.

5. Set Write Back Permissions in the Presentation LayerIn this example, you give Read/Write permission to the BIAdministrator application role for the DOLLARS presentation column.

Oracle BI 11g R1: Build Repositories 23 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 145: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

6. Enable Write Back in instanceconfig.xml

Set the LightWriteback parameter to true.

6. Enable Write Back in instanceconfig.xml

Navigate to the following location:<ORACLE_INSTANCE>\config\OracleBIPresentationServicesComponent\coreapplication_obips1

Open instanceconfig.xml in an editor.In the ServiceInstance section, set the LightWriteback parameter to true by entering <LightWriteback>true</LightWriteback>.

Oracle BI 11g R1: Build Repositories 23 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 146: 104059052 Course Sg2 Unlocked

7. Create a Write Back TemplateYou can create multiple write back templates, customizing each one for the fields used in each specific analysis. In the analysis properties, you specify the name of the write back template to use. If a user has the “Write Back to Database” privilege, the write back fields in their analyses appear as editable fields. If the user does not have this privilege, the write back fields appear as normal fields.Requirements for the Write Back TemplateNotice that the WebMessage name element is SetForecast. To ensure that write back works correctly, in the WebMessage element of the file you must include the name of the SQL template that you will specify when you create the write back table (described later in this lesson). The name is arbitrary.To meet security requirements, you must specify the connection pool along with the SQL commands to insert and update records. In this example. the connection pool is set to SUPPLIERCP.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

7. Create a Write Back XML Template

The write back template is an XML-formatted file that contains SQL statements that are needed to insert and update records in the write back table and columns that you have created.

Oracle BI 11g R1: Build Repositories 23 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 147: 104059052 Course Sg2 Unlocked

7. Create a Write Back Template (continued)The SQL commands reference the values passed in the write back schema to generate the SQL statements to modify the database table. Values can be referenced either by position (such as @1, @3) or by column ID (@{c0}, @{c2}). Column positions start numbering with 1, whereas column IDs start with c0. In this example, values will be inserted or updated for the TYPECODE, MONTHCODE, and DOLLARS columns in the D1_FORECAST table.You can include <insert> and <update> elements in the template. The insert tag is necessary only if there are null values in the write back physical column. This example shows both elements. Oracle BI Server chooses between update or insert depending on whether the column is null. If you do not want to include SQL commands in the elements, you can insert a blank space between the opening and closing tags, as in the following example:<insert> </insert>

If a parameter's data type is not an integer or real number, add single quotes around it.

Oracle BI 11g R1: Build Repositories 23 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 148: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

8. Store the Write Back Template

Store the write back template files in the customMessagesfolder.

8. Store the Write Back TemplateThe system can have multiple customMessages folders, such as ORACLE_ HOME\Web\msgdb\customMessages. This is primarily to persist these files during upgrades. Although XML message files that affect a language-specific user interface must be localized, in most cases the XML file that is used for configuring a write back template is not translated, because it is language independent. The write back template files can have any name of your choosing, because the system reads all XML files in the customMessages folder. To ensure that write back works correctly, include in theWebMessage element of the file the name of the SQL template that you specify when you create the write back table (described later in this lesson). You can have multiple WebMessage elements in one file, with each element specifying one SQL template.For more information about Web messages, refer to the System Administrator’s Guide for Oracle Business Intelligence Enterprise Edition.

Oracle BI 11g R1: Build Repositories 23 - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 149: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

9. Grant Write Back Privileges

Use the Oracle BI Presentation Services Administration screen to set the “Write Back to Database” privilege that users need for modifying values in analyses.

9. Grant Write Back PrivilegesThe “Write Back to Database” privilege enables the user interface controls for write back (editable fields and appropriate buttons) and also enables the server call that writes data back to the data source. In this example, the “Write Back to Database” privilege is granted to the BIAdministratorapplication role.

Oracle BI 11g R1: Build Repositories 23 - 15

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 150: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

10. Create an Analysis with Columns Enabled for Write Back

• Create an analysis that contains a table view with the columns configured for write back.

• For each write back column, select the Enable Write Back check box on the Write Back tab in Column Properties.

10. Create an Analysis with Columns Enabled for Write BackFor each write back column in the analysis, display the Column Properties dialog box. On the Write Back tab, select the Enable Write Back check box. This example shows an analysis with write back enabled for the DOLLARS column. You can modify the text-field width for the write back column.

Oracle BI 11g R1: Build Repositories 23 - 16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 151: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

11. Override Default Data Format

Override the default data format on the Data Format tab to remove values that will not write back to the database.

11. Override Default Data FormatIn some cases, it might be necessary to override the default data format on the Data Format tab for the column that has write back enabled. For example, data does not correctly write back to the database if commas or other text values (such as currency symbols) are included in the DOLLARSdata value.

Oracle BI 11g R1: Build Repositories 23 - 17

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 152: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

12. Enable Write Back in the Table View

Enter the template name on the Write Back tab.

2. Click Table View Properties.

1. Click the edit button for table view.

3. Enter the template name.

12. Enable Write Back in the Table ViewOn the Results tab, click the edit button (pencil icon) for the table view. Then click the Table View Properties button to open the Table Properties dialog box. On the Write Back tab, enter the template name. In this example, the template name isSetForecast. Recall that this is the Web message name in the template. Enable Write Back should be enabled by default. At this point, you can modify the names of the Apply, Revert, and Done buttons, and you can change button positions. Toggle Table Mode enables you to switch between write back mode and the default table view.

Oracle BI 11g R1: Build Repositories 23 - 18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 153: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

13. Verify Results

Verify that you can enter data in the expected fields and that data is written back to the database.

Click Update to make fields editable.

Modify one or more records.

Apply changes or revert to

original data.

13. Verify ResultsClick the Update button to make the write back fields editable. Modify the data in one or more rows. Click Apply to apply the changes. Click Revert to revert to the original data. Click Done to return to the default table view.

Oracle BI 11g R1: Build Repositories 23 - 19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 154: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to configure write back in analyses.

Oracle BI 11g R1: Build Repositories 23 - 20

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 155: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 23-1 Overview: Configuring Write Back

This practice covers setting up and configuring write back for Oracle BI dashboards and analyses.

Practice 23-1 Overview: Configuring Write BackConfiguring write back involves steps that span Oracle BI components. This includes setting up write back in the repository, granting write back permissions, and enabling columns for write back in analyses.

Oracle BI 11g R1: Build Repositories 23 - 21

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 156: 104059052 Course Sg2 Unlocked

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 157: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Performing a Patch Merge

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 158: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objectives

After completing this lesson, you should be able to perform a repository patch merge.

Oracle BI 11g R1: Build Repositories 24 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 159: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Patch Merge

Provides the capability of generating an XML patch file that contains only the changes made to a repository• Useful for development-to-production scenarios• Provides a means to upgrade a repository

Patch MergeThe patch can be applied to the original version of the repository to create a new version. This is very useful for development-to-production scenarios and can also be used for Oracle BI Applications customers to upgrade their repository. This lesson explains how to generate a patch that contains the differences between two repositories and then apply the patch to a repository file.

Oracle BI 11g R1: Build Repositories 24 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 160: 104059052 Course Sg2 Unlocked

Creating a PatchIn a patch merge, you create a patch that contains the differences between the current repository file and the original repository file. Then you apply the patch file to the modified repository file. In a development-to-production scenario, you have an original parent file, a current file that contains the latest development changes, and a modified file that is the deployed copy of the original file. To generate a patch, you open the current file, select the original file, and then create the patch. The example in the slide shows how to create a patch in a development-to-production scenario. The original repository (original.rpd) is the repository initially created during development and then rolled out to production (modified.rpd). Typically, before the patch is applied, the original repository and the production repository are identical. The development repository (current.rpd) is the repository that contains the changes you want to put in the patch. Assume that this is a repository you have updated after rolling out the original repository (original.rpd) to production (modified.rpd).In an Oracle BI Applications repository upgrade scenario, the current file is the latest version of the repository shipped by Oracle, and the original file is the original repository shipped by Oracle. The modified file is the file that contains the customizations you made to the original file.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Creating a Patch

Originalrepository

(original.rpd)

Developmentrepository

(current.rpd)

Productionrepository

(modified.rpd)

Patchfile

Customize

Createpatch

Deploy

Oracle BI 11g R1: Build Repositories 24 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 161: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Applying a Patch

Originalrepository

(original.rpd)

Productionrepository

(modified.rpd)

Patchfile

Applypatch

Applying a PatchTo apply a patch, you open the modified file, select the original file, and then apply the patch. The example in the slide shows how to apply a patch in a development-to-production scenario. The process is the same in an upgrade scenario. Again, in an Oracle BI Applications repository upgrade scenario, the current file is the latest version of the repository shipped by Oracle, and the original file is the original repository shipped by Oracle. The modified file is the file that contains the customizations you made to the original file.Detailed steps for this process are shown in the following slides.

Oracle BI 11g R1: Build Repositories 24 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 162: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Steps to Perform a Patch Merge

1. Compare current and original repositories.2. Equalize objects.3. Create a patch.4. Apply the patch.5. Make merge decisions.6. Verify your work.

Steps to Perform a Patch MergeThis slide shows the high-level steps needed to perform a patch merge. Each step is covered in more detail on subsequent slides.

Oracle BI 11g R1: Build Repositories 24 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 163: 104059052 Course Sg2 Unlocked

1. Compare Current and Original RepositoriesIn the Administration Tool, open the current Oracle BI repository in offline mode. In other words, open the updated repository that contains the changes you want to put in the patch. Assume that this is a repository you have updated after rolling out the original repository (original.rpd) to production (modified.rpd). Select File > Compare and select the original Oracle BI repository. The “Compare repositories” dialog box appears, compares the two repositories, and marks objects as created, deleted, or modified.Created: Object was created in the current repository and doesn’t exist in the original repository. Deleted: Object exists in the original repository but is deleted from the current repository. Modified: Object exists in the original repository but is modified in the current repository.In this example, the changes are the following:

• A Rank Dollars logical column has been created and added to the Fact-Saleslogical table in the BMM layer.

• A Rank Dollars presentation column has been created and added to the Fact-Sales presentation table in the Presentation layer.

• The Net Weight Shipped presentation column has been deleted from the Fact-Sales presentation table in the Presentation layer.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

1. Compare Current and Original Repositories

Current repository Original repository

Oracle BI 11g R1: Build Repositories 24 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 164: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

2. Equalize Objects

Units Ordered is marked as both Deleted and Created.

Use the Equalize Objects dialog box to equalize object IDs.

2. Equalize ObjectsUse the Equalize Objects dialog box in the “Compare repositories” option to compare and equalize repositories. Objects may need to be equalized because the Administration Tool tracks the history of each repository object by using the upgrade ID of the object. Sometimes the upgrade ID can change because of user actions or during merge. When this occurs and a subsequent comparison is done, the Administration Tool treats the new upgrade ID as a new object and the missing original upgrade ID as a deleted object. In this example, the modified repository is compared to the original repository. Notice that the Units Ordered presentation column is marked as both deleted and created. This is because the object was deleted and then re-created in the modified repository. The Fact-Salespresentation table is marked as modified because the Units Ordered presentation column is in this table. Notice also that only Presentation Column is available in the drop-down list, because only presentation columns have been deleted in this example. If more object types had been deleted, they would be displayed in this list (Logical Table, Logical Column, and so forth).You use the Equalize Objects dialog box to preview changes that are made if you equalize objects by using the equalizerpds utility, which equalizes the objects in both repositories so that the object upgrade IDs are consistent. When objects are equalized, you receive a message that the repositories are identical. Not all steps are shown in this slide.

Oracle BI 11g R1: Build Repositories 24 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 165: 104059052 Course Sg2 Unlocked

3. Create a PatchIn the “Compare repositories” dialog box, review the changes between the repositories. Then click Create Patch. In the Create Patch dialog box (not shown here), enter a name for the XML patch file and click Save. By default, the file is saved to the repository directory. When the file is saved, the “Compare repositories” dialog box closes automatically.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

3. Create a Patch

Click Create Patch and save the patch file.

Oracle BI 11g R1: Build Repositories 24 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 166: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

4. Apply the Patch

Open the repository on which you want to apply the patch.

Select File > Merge to open the Merge Repository Wizard.

Select original master repository.

Modified repository is open.

Select patch file.

Save as

4. Apply the PatchTo apply the patch, open the repository on which you want to apply the patch. In this example, the repository is named modified.rpd. Select File > Merge to open the Merge Repository Wizard. For Merge Type, select Patch Repository Merge. Then select the original master repository. Note that the original repository cannot be the same as the modified repository, which is currently open. Select the saved patch file. You can enter an optional name (“Save as”) for the merged repository that is created by applying the patch. If you do not enter a name, the system selects one for you. When you are finished making your selections, click Next (not shown in the screenshot) to open the Merge Repository Wizard.

Oracle BI 11g R1: Build Repositories 24 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 167: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

5. Make Merge Decisions

Object Description of conflict Decision

Deleted objectDeleted object

5. Make Merge DecisionsIn the Merge Repository Wizard, you must make decisions for any conflicts between the repositories. Under Conflicts, notice that the description of the conflict for Net Weight Shipped is “Deleted from Current.”There are two decision choices available in the Decision field: Current: Keeps the repository as it is without adding the object to the merged repositoryModified (A): Adds the object into the merged repository In this example, you select Current because Net Weight Shipped was deliberately deleted from the current repository and you do not want it added to the merged repository.Click Finish (not shown here) to close the Merge Repository Wizard and open the merged repository.

Oracle BI 11g R1: Build Repositories 24 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 168: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

6. Verify Your Work

Rank Dollarslogical column is

added.

Rank Dollars presentation column is added.

Net Weight Shippedpresentation column is deleted.

6. Verify Your WorkVerify that the expected changes have been applied. In this example, a Rank Dollarslogical column and presentation column have been created, and the Net Weight Shippedpresentation column has been deleted.

Oracle BI 11g R1: Build Repositories 24 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 169: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to perform a repository patch merge.

Oracle BI 11g R1: Build Repositories 24 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 170: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 24-1 Overview: Performing a Patch Merge

This practice covers performing a patch merge in a development-to-production scenario.

Practice 24-1 Overview: Performing a Patch MergeIn a patch merge, you create a patch that contains the differences between the current repository file and the original repository file. Then you apply the patch file to the modified repository file. In a development-to-production scenario, you have an original parent file, a current file that contains the latest development changes, and a modified file that is the deployed copy of the original file. To generate a patch, you open the current file, select the original file, and then create the patch. To apply the patch, you open the modified file, select the original file, and then apply the patch.

Oracle BI 11g R1: Build Repositories 24 - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 171: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Configuring Logical Columns for Multicurrency Support

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 172: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objectives

After completing this lesson, you should be able to configure logical columns for multicurrency support.

Oracle BI 11g R1: Build Repositories 25 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 173: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Overview

You can configure logical columns so that Oracle BI users can select the currency in which they prefer to view currency columns in analyses and dashboards.

Currency drop-down list with preferred currencies

OverviewYou can set up this feature so that all users see the same static list of currency options, or you can provide a dynamic list of currency options that changes based on a logical SQL statement that you specify. This lesson shows you how to define user-preferred currency options by using a static list of currency options.

Oracle BI 11g R1: Build Repositories 25 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 174: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Steps to Configure Multicurrency Support

1. Modify the user preferences currency file.2. Create a PREFERRED_CURRENCY session variable.3. Create logical columns with currency conversions.4. Edit a logical column to use a conversion factor.5. Verify your work.

Oracle BI 11g R1: Build Repositories 25 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 175: 104059052 Course Sg2 Unlocked

1. Modify the User Preferences Currency FileIn the Currency box on the Preferences tab of the My Account dialog box, Oracle Business Intelligence users can select the currency in which they prefer to view currency columns in analyses and dashboards. You use the userpref_currencies.xml file to define the currency options that users see in the Currency box. Navigate to <ORACLE_INSTANCE>\config\OracleBIPresentationServicesComponent\coreapplication_obips1 and open the userpref_currencies.xml file for editing. Locate theUserCurrencyPreferences element and remove the comment markers <!-- and --> to enable currency preferences.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

1. Modify the User Preferences Currency File

Modify userpref_currencies.xml to enable currency preferences.

Oracle BI 11g R1: Build Repositories 25 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 176: 104059052 Course Sg2 Unlocked

2. Create a PREFERRED_CURRENCY Session VariableMake sure to select “Enable any user” to set the value when you create the session variable (not shown in the slide). Note: When you use session variables in an expression for Oracle BI Presentation Services, you must preface their names with NQ_SESSION.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

2. Create a PREFERRED_CURRENCYSession Variable

Create a session variable named PREFERRED_CURRENCY, along with an initialization block to use the variable.

Oracle BI 11g R1: Build Repositories 25 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 177: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

3. Create Logical Columns with Currency Conversions

Typically currency conversion is calculated as part of an extraction, transformation, and loading (ETL) process.

Oracle BI 11g R1: Build Repositories 25 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 178: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

4. Edit a Logical Column to Use a Conversion Factor

Use the PREFERRED_CURRENCY session variable to edit any logical columns that display currency values to use the appropriate conversion factor.

4. Edit a Logical Column to Use a Conversion FactorDouble-click the appropriate logical column in the BMM, click the Column Source tab, and create a derived expression that uses the PREFERRED_CURRENCY variable. In this example, the Preferred Currency logical column expression uses the value of the NQ_SESSION.PREFERRED_CURRENCY variable to switch between the different currency columns. Note that the currency columns are expected to have the appropriate converted values.

Oracle BI 11g R1: Build Repositories 25 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 179: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

4. Add Logical Column to the Presentation Layer

Add the logical column with the preferred currency expression to the Presentation layer.

Oracle BI 11g R1: Build Repositories 25 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 180: 104059052 Course Sg2 Unlocked

5. Verify the My Account PageSign in to Oracle BI and click My Account. Confirm that you can see a drop-down list for Currency with the preferred currencies listed. In this example, the preferred currency is set to Euro.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

5. Verify the My Account Page

Sign in and select My Account.

Currency drop-down list with preferred currencies

Oracle BI 11g R1: Build Repositories 25 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 181: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

5. Verify Analysis Results

Create an analysis with the Preferred Currency

column.

Set Currency Symbol to User’s Preferred Currency.

Result displays the user’s preferred currency.

5. Verify Analysis ResultsCreate a new analysis with the Preferred Currency column. Select Column Properties > Data Format, override the default data format, and set Currency Symbol to User’s Preferred Currency. When you run the analysis, the Preferred Currency column displays the preferred currency that you selected on the My Account page (in this example, the results are displayed in euros).

Oracle BI 11g R1: Build Repositories 25 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 182: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to configure logicalcolumns for multicurrency support.

Oracle BI 11g R1: Build Repositories 25 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 183: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Practice 25-1 Overview: Defining User-Preferred Currency Options

This practice covers defining user-preferred currency options by using a static mapping.

Practice 25-1 Overview: Defining User-Preferred Currency OptionsOracle Business Intelligence users can select the currency in which they prefer to view currency columns in analyses and dashboards in the Currency box on the Preferences tab of the My Account dialog box. You define the currency options that are to be displayed in the Currency box in the userpref_currencies.xml file.

Oracle BI 11g R1: Build Repositories 25 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 184: 104059052 Course Sg2 Unlocked

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 185: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using Administration Tool Utilities

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 186: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objectives

After completing this lesson, you should be able to:• Describe the various wizards and utilities in the Oracle BI

Administration Tool• Use the Administration Tool wizards and utilities to

manage, maintain, and enhance repositories

Oracle BI 11g R1: Build Repositories 26 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 187: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Wizards and Utilities

This lesson describes the following utilities and wizards:• Session Manager• Query Repository• Replace Columns and Tables• Repository Documentation• Generate Metadata Dictionary• Oracle BI Event Tables• Update Physical Layer• Remove Unused Physical Objects

Wizards and UtilitiesIn the process of building the SupplierSales and Inventory business models in this course, you had a chance to interact with a number of features of the Administration Tool. In this lesson, you are introduced to additional Administration Tool utilities and wizards that can aid in the development, maintenance, and administration of repositories.

Oracle BI 11g R1: Build Repositories 26 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 188: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Accessing Wizards and Utilities

• Select Manage > Sessions to access the Sessions Manager.

• Select Tools > Query Repository to access the Query Repository utility.

• Select Tools > Utilities to access remaining utilities.

Accessing Wizards and UtilitiesUse the Manage and Tools menus to access Administration Tool wizards and utilities. You can also right-click objects in the repository to access some utilities and wizards, such as the Query Repository utility and the Calculation Wizard.

Oracle BI 11g R1: Build Repositories 26 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 189: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Managing Sessions

Use the Session Manager to monitor session activity in online mode.

Sessions

Requests

Managing SessionsThe Session Manager is used in online mode to monitor session activity. The Session Manager shows all users logged in to the session, all current query requests for each user, and variables and their values for a selected session. Additionally, the Oracle BI Server administrator can disconnect any user and kill any query request with the Session Manager. How often the Session Manager data refreshes depends on the amount of activity on the system. To refresh the display at any time, click Refresh.Using the Session ManagerThe Session Manager contains upper and lower windows. The top window, the Session window, shows users currently logged in to Oracle BI Server. To control the update speed, select Normal, High, or Low from the Update Speed drop-down list. Select Pause to keep the display from being refreshed. The bottom window contains two tabs. The Request tab shows active query requests for the user selected in the Session window. The Variables tab shows variables and their values for a selected session. You can click the column headers to sort the data.

Oracle BI 11g R1: Build Repositories 26 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 190: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Querying Repository Metadata

Use the Query Repository tool to query for objects in the repository.

Object type

Filter

Results

Querying Repository MetadataYou can query for objects in the repository by using the Query Repository tool. If you query using the All Types option, you see a listing of the exposed object types in the repository. The list does not contain objects such as aggregate rules, logical source folders, privilege packages, and other objects that are considered to be internal objects.You can use repository queries to help manage the repository metadata in the following ways:

• Examine and update the internal structure of the repository. For example, you can query a repository for objects in the repository based on name, type (such as Catalog, Complex Join, Key, and LDAP Server), or a combination of name and type. You can then edit or delete objects that appear in the Results list. You can also create new objects and view parent hierarchies.

• Query a repository and view reports that show such items as all tables mapped to a logical source, all references to a particular physical column, content filters for logical sources, initialization blocks, and security and user permissions. For example, you might want to run a report prior to making any physical changes in a database that might affect the repository. You can save the report to a file in comma-separated value (CSV) format or tab-delimited format.

When you save results, the encoding options are ANSI, Unicode, and UTF-8.

Oracle BI 11g R1: Build Repositories 26 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 191: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Replacing Columns or Tables

Use the “Replace Column or Table” utility to automate the process of replacing physical columns and tables in logical table sources.

Replacing Columns or TablesThe “Replace Column or Table” utility automates the process of replacing physical columns andtables in logical table sources by enabling the Oracle BI Server administrator to select the sources from those displayed. The wizard prompts the administrator to replace columns as well as tables.

Oracle BI 11g R1: Build Repositories 26 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 192: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Documenting a Repository

Use the Repository Documentation utility to document mappings from presentation columns to the corresponding logical and physical columns.

Save in comma-separated, tab-delimited, or XML formats.

Documenting a RepositoryThe documentation also includes conditional expressions associated with the columns. If a presentation column derives from several physical columns, there is one row in the document for each physical column.

Oracle BI 11g R1: Build Repositories 26 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 193: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Generating a Metadata Dictionary

Use the Generate Metadata Dictionary utility to create a set of static XML documents that describe each metadata object, including its properties and its relationships with other metadata objects.

Metadata object

Location

Description

Relationship with other objects

Generating a Metadata DictionaryThis utility provides a user-friendly interface for navigating a repository to help users better understand metadata-object relationships.

Oracle BI 11g R1: Build Repositories 26 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 194: 104059052 Course Sg2 Unlocked

Creating an Event TableAn event polling table is a way to notify Oracle BI Server that one or more physical tables have been updated. Each row that is added to an event table describes a single update event. The cache system reads rows from―or polls―the event table, extracts the physical table information from the rows, and purges cache entries that reference those physical tables. The SQL for creating an event table can be found in the Oracle BI\server\Schema folder.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Creating an Event Table

Use the Oracle BI Event Tables utility to identify a table as anOracle BI event polling table.

Oracle BI 11g R1: Build Repositories 26 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 195: 104059052 Course Sg2 Unlocked

Updating the Physical LayerThis wizard is not available for repositories that are opened in read-only mode, because they are not available for updating. When the wizard processes the update, the server running the Administration Tool connects to each back-end database. The objects in the Physical layer are compared with those in the back-end database. Explanatory text alerts you to differences betweenobjects defined in the database in the Physical layer and objects defined in the back-end database (such as data type-length mismatches and objects that are no longer found in the back-end database). For example, if an object exists in the database in the Physical layer of the repository but not in the back-end database, the following text is displayed: “Object does not exist in the database.”The wizard does not add columns or tables to the repository if they exist in the back-end database but not in the repository. Additionally, the wizard does not update column key assignments. It checks that there is a column in the repository that matches the column in the database, and then, if the values do not match, the wizard updates the type and length of the column in the repository.The connection pool settings for each database need to match the connection pool settings used when the objects were last imported into the Physical layer from the back-end database. For example, for Oracle, the connection pool may be set to native Oracle Call Interface (OCI), but an Oracle ODBC source must be used for the update. In this case, you would set the connection pool to the Oracle ODBC setting used for the import.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Updating the Physical Layer

Use the Update Physical Layer Wizard to update database objects in the Physical layer of a repository based on their current definitions in the back-end database.

Oracle BI 11g R1: Build Repositories 26 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 196: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Removing Unused Physical Objects

Use the Remove Unused Physical Objects utility to remove objects that are no longer needed in a repository.

Removing Unused Physical ObjectsLarge repositories use more memory on the server and are harder to maintain. Additionally, development activities take longer on a large repository. The Remove Unused Physical Objects utility enables you to remove objects that you no longer need in your repository. You can remove databases, initialization blocks, physical catalogs, and variables.

Oracle BI 11g R1: Build Repositories 26 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 197: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this lesson, you should have learned how to:• Describe the various wizards and utilities contained in the

Oracle BI Administration Tool• Use the Administration Tool wizards and utilities to

manage, maintain, and enhance repositories

Oracle BI 11g R1: Build Repositories 26 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 198: 104059052 Course Sg2 Unlocked

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 199: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Oracle BI 11g R1: Build Repositories

Quizzes

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 200: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 2: Repository Basics

Oracle BI 11g R1: Build Repositories 27 - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 201: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the correct statement about the Oracle BI Server architecture.1. Oracle BI Server is a set of query clients that display the

results of analyses.2. Oracle BI Presentation Services stores the metadata used

by Oracle BI Server.3. Oracle BI Server generates dynamic SQL to query data in

physical data sources.4. Oracle BI Repository can be in multiple formats.

Oracle BI 11g R1: Build Repositories 27 - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 202: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the correct statement about the Oracle BI Server architecture.1. Oracle BI Server is a set of query clients that display the

results of analyses.2. Oracle BI Presentation Services stores the metadata used

by Oracle BI Server.3. Oracle BI Server generates dynamic SQL to query data in

physical data sources.4. Oracle BI Repository can be in multiple formats.

Oracle BI 11g R1: Build Repositories 27 - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 203: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the incorrect statement about the Oracle BI Repository.1. Stores the metadata used by Oracle BI Server2. Is accessed and configured using the Oracle BI

Administration Tool3. Imports metadata from databases and other data sources4. Is set of graphical tools used to view, build, and modify

analyses

Oracle BI 11g R1: Build Repositories 27 - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 204: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the incorrect statement about the Oracle BI Repository.1. Stores the metadata used by Oracle BI Server2. Is accessed and configured using the Oracle BI

Administration Tool3. Imports metadata from databases and other data sources4. Is a set of graphical tools used to view, build, and modify

analyses

Oracle BI 11g R1: Build Repositories 27 - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 205: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the incorrect statement about the Oracle BI Repository.1. The Business Model and Mapping layer objects define the

interface that users see to query data from data sources.2. The Physical layer contains objects representing the

physical data sources to which Oracle BI Server submits queries.

3. The Presentation layer contains objects that provide a customized view of a business model to users.

4. The Business Model and Mapping layer is where physical schemas are simplified and reorganized to form the basis of the users’ view of the data.

Oracle BI 11g R1: Build Repositories 27 - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 206: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the incorrect statement about the Oracle BI Repository.1. The Business Model and Mapping layer objects define the

interface that users see to query data from data sources.2. The Physical layer contains objects representing the

physical data sources to which Oracle BI Server submits queries.

3. The Presentation layer contains objects that provide a customized view of a business model to users.

4. The Business Model and Mapping layer is where physical schemas are simplified and reorganized to form the basis of the users’ view of the data.

Oracle BI 11g R1: Build Repositories 27 - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 207: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

A repository can be opened for editing only in offline mode.• True• False

Oracle BI 11g R1: Build Repositories 27 - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 208: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

A repository can be opened for editing only in offline mode.• True• False. You can open a repository for editing in online or

offline mode. You can perform different tasks based on the mode in which you open the repository.

Oracle BI 11g R1: Build Repositories 27 - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 209: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 3: Building the Physical Layer of a Repository

Oracle BI 11g R1: Build Repositories 27 - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 210: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about the Physical layer.1. May contain multiple data sources2. Is typically the last layer built in the repository3. Contains objects representing the physical data sources to

which Oracle BI Server submits queries4. Is populated by importing metadata from databases and

other data sources

Oracle BI 11g R1: Build Repositories 27 - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 211: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about the Physical layer.1. May contain multiple data sources2. Is typically the last layer built in the repository3. Contains objects representing the physical data sources to

which Oracle BI Server submits queries4. Is populated by importing metadata from databases and

other data sources

Oracle BI 11g R1: Build Repositories 27 - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 212: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the correct statement about the connection pool.1. Is the highest-level object in the Physical layer2. Defines the features that Oracle BI Server uses with a data

source3. Is an optional display folder that contains tables and

columns for a physical schema4. Defines how Oracle BI Server connects to a data source

Oracle BI 11g R1: Build Repositories 27 - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 213: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the correct statement about the connection pool.1. Is the highest-level object in the Physical layer2. Defines the features that Oracle BI Server uses with a data

source3. Is an optional display folder that contains tables and

columns for a physical schema4. Defines how Oracle BI Server connects to a data source

Oracle BI 11g R1: Build Repositories 27 - 15

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 214: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Physical joins must be defined in a data source prior to import into the Physical layer.• True• False

Oracle BI 11g R1: Build Repositories 27 - 16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 215: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Physical joins must be defined in a data source prior to import into the Physical layer.• True• False. Physical joins need not be defined in a data source

prior to import into the Physical layer. Joins that already exist in the physical data sources are imported automatically into the Physical layer when you select keys and foreign keys in the Import Metadata Wizard. All other physical joins need to be explicitly defined in the Physical layer.

Oracle BI 11g R1: Build Repositories 27 - 17

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 216: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Alias tables must be defined for all physical tables in the Physical layer.• True• False

Oracle BI 11g R1: Build Repositories 27 - 18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 217: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Alias tables must be defined for all physical tables in the Physical layer.• True• False. Creating alias tables is not a required step.

However, it is recommended that you use table aliases frequently in the Physical layer to eliminate extraneous joins and to include best-practice naming conventions for physical table names.

Oracle BI 11g R1: Build Repositories 27 - 19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 218: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 4: Building the Business Model and Mapping Layer of a Repository

Oracle BI 11g R1: Build Repositories 27 - 20

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 219: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the correct statement about business models.1. There can be only one business model in the Business

Model and Mapping layer.2. Business model objects always map to only one object in

the Physical layer.3. A business model object is the highest-level object in the

Business Model and Mapping layer.4. Business models can be created only by dragging objects

from the Physical layer.

Oracle BI 11g R1: Build Repositories 27 - 21

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 220: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the correct statement about business models.1. There can be only one business model in the Business

Model and Mapping layer.2. Business model objects always map to only one object in

the Physical layer.3. A business model object is the highest-level object in the

Business Model and Mapping layer.4. Business models can be created only by dragging objects

from the Physical layer.

Oracle BI 11g R1: Build Repositories 27 - 22

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 221: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the incorrect statement about logical table sources.1. Logical table sources always map to only one physical

source.2. Logical tables can have multiple logical table sources.3. Logical table sources define the mappings from a logical

table to a physical table.4. Logical table sources are created automatically when you

drag a table from the Physical layer to a business model.

Oracle BI 11g R1: Build Repositories 27 - 23

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 222: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the incorrect statement about logical table sources.1. Logical table sources always map to only one physical

source.2. Logical tables can have multiple logical table sources.3. Logical table sources define the mappings from a logical

table to a physical table.4. Logical table sources are created automatically when you

drag a table from the Physical layer to a business model.

Oracle BI 11g R1: Build Repositories 27 - 24

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 223: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

For a valid repository, logical primary keys are required for all logical tables in a business model.

• True• False

Oracle BI 11g R1: Build Repositories 27 - 25

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 224: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

For a valid repository, logical primary keys are required for all logical tables in a business model.

• True• False. Logical primary keys are required only for each

logical dimension table, not for logical fact tables.

Oracle BI 11g R1: Build Repositories 27 - 26

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 225: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Logical joins are not required in a business model.• True• False

Oracle BI 11g R1: Build Repositories 27 - 27

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 226: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Logical joins are not required in a business model.• True• False. Logical joins express the cardinality relationships

between logical tables and are a requirement for a valid business model. Specifying logical table joins is required so that Oracle BI Server has the necessary metadata to translate logical requests against the business model into SQL queries against the physical data sources.

Oracle BI 11g R1: Build Repositories 27 - 28

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 227: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 5: Building the Presentation Layer of a Repository

Oracle BI 11g R1: Build Repositories 27 - 29

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 228: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about the Presentation layer.1. Provides a way to present a customized view of a business

model to users2. Exposes only the data that is meaningful to users3. Organizes the data in a way that aligns with the way users

think about the data4. Uses the same object names as those in the Business

Model and Mapping layer

Oracle BI 11g R1: Build Repositories 27 - 30

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 229: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about the Presentation layer.1. Provides a way to present a customized view of a business

model to users2. Exposes only the data that is meaningful to users3. Organizes the data in a way that aligns with the way users

think about the data4. Uses the same object names as those in the Business

Model and Mapping layer

Oracle BI 11g R1: Build Repositories 27 - 31

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 230: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the correct statement about subject areas.1. A single subject area must be populated with content from

multiple business models.2. Multiple subject areas cannot reference the same business

model.3. Subject areas organize and simplify a business model for a

set of users.4. Subject areas must map directly to tables in the Physical

layer.

Oracle BI 11g R1: Build Repositories 27 - 32

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 231: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the correct statement about subject areas.1. A single subject area must be populated with content from

multiple business models.2. Multiple subject areas cannot reference the same business

model.3. Subject areas organize and simplify a business model for a

set of users.4. Subject areas must map directly to tables in the Physical

layer.

Oracle BI 11g R1: Build Repositories 27 - 33

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 232: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the incorrect statement about presentation tables.1. Organize presentation columns into categories that make

sense to the users2. May contain columns from one or more logical tables3. Can be modified independently of logical tables4. Can be created only by dragging logical tables from the

BMM layer

Oracle BI 11g R1: Build Repositories 27 - 34

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 233: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the incorrect statement about presentation tables.1. Organize presentation columns into categories that make

sense to the users2. May contain columns from one or more logical tables3. Can be modified independently of logical tables4. Can be created only by dragging logical tables from the

BMM layer

Oracle BI 11g R1: Build Repositories 27 - 35

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 234: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

A presentation table has a one-to-one mapping to a logical table.• True• False

Oracle BI 11g R1: Build Repositories 27 - 36

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 235: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

A presentation table has a one-to-one mapping to a logical table.• True• False. A presentation table does not necessarily have a

one-to-one mapping to a logical table. Presentation tables are used for organizing columns and can be organized and structured differently from logical tables in the BMM layer.

Oracle BI 11g R1: Build Repositories 27 - 37

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 236: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 6: Testing and Validating a Repository

Oracle BI 11g R1: Build Repositories 27 - 38

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 237: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Which of the following is not a requirement for a consistent repository?1. All logical columns are mapped directly or indirectly to one

or more physical columns.2. All logical dimension tables have a logical key.3. All logical tables have a logical join relationship to another

logical table.4. Logging must be enabled for at least one user.5. A subject area exists for the business model.

Oracle BI 11g R1: Build Repositories 27 - 39

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 238: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Which of the following is not a requirement for a consistent repository?1. All logical columns are mapped directly or indirectly to one

or more physical columns.2. All logical dimension tables have a logical key.3. All logical tables have a logical join relationship to another

logical table.4. Logging must be enabled for at least one user.5. A subject area exists for the business model.

Oracle BI 11g R1: Build Repositories 27 - 40

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 239: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Best Practices consistency messages must be fixed before publishing a repository.• True• False

Oracle BI 11g R1: Build Repositories 27 - 41

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 240: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Best Practices consistency messages must be fixed before publishing a repository.• True• False. Best Practice messages provide information about

conditions but do not indicate an inconsistency.

Oracle BI 11g R1: Build Repositories 27 - 42

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 241: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the incorrect statement about publishing a repository.1. You use Fusion Middleware Control Enterprise Manager to

publish a repository.2. Publishing a repository enables Oracle BI Server to load

the repository into memory at startup.3. Publishing a repository makes the repository available for

queries by end users.4. You need to check consistency after a repository is

published.

Oracle BI 11g R1: Build Repositories 27 - 43

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 242: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the incorrect statement about publishing a repository.1. You use Fusion Middleware Control Enterprise Manager to

publish a repository.2. Publishing a repository enables Oracle BI Server to load

the repository into memory at startup.3. Publishing a repository makes the repository available for

queries by end users.4. You need to check consistency after a repository is

published.

Oracle BI 11g R1: Build Repositories 27 - 44

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 243: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Identify the incorrect statement about query logging.1. Oracle BI Server provides a facility for logging query

activity at the individual user level.2. Logging is intended for quality assurance testing,

debugging, and use by Oracle Technical Support.3. Logging levels are typically set to 6 or above for Oracle BI

administrators.4. Query logging is normally disabled in production mode.

Oracle BI 11g R1: Build Repositories 27 - 45

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 244: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Identify the incorrect statement about query logging.1. Oracle BI Server provides a facility for logging query

activity at the individual user level.2. Logging is intended for quality assurance testing,

debugging, and use by Oracle Technical Support.3. Logging levels are typically set to 6 or above for Oracle BI

administrators.4. Query logging is normally disabled in production mode.

Oracle BI 11g R1: Build Repositories 27 - 46

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 245: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 7: Managing Logical Table Sources

Oracle BI 11g R1: Build Repositories 27 - 47

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 246: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

You should add a new logical table source if data is duplicated across physical tables.• True• False

Oracle BI 11g R1: Build Repositories 27 - 48

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 247: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

You should add a new logical table source if data is duplicated across physical tables.• True• False

Oracle BI 11g R1: Build Repositories 27 - 49

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 248: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Dragging physical columns to an existing logical table source automatically creates logical columns in a business model.• True• False

Oracle BI 11g R1: Build Repositories 27 - 50

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 249: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Dragging physical columns to an existing logical table source automatically creates logical columns in a business model.• True• False

Oracle BI 11g R1: Build Repositories 27 - 51

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 250: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Dragging physical columns to a logical table source automatically adds physical table mappings to the logical table source.• True• False

Oracle BI 11g R1: Build Repositories 27 - 52

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 251: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Dragging physical columns to a logical table source automatically adds physical table mappings to the logical table source.• True• False

Oracle BI 11g R1: Build Repositories 27 - 53

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 252: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

You should add multiple sources to a logical table source if data is not duplicated across tables.• True• False

Oracle BI 11g R1: Build Repositories 27 - 54

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 253: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

You should add multiple sources to a logical table source if data is not duplicated across tables.• True• False

Oracle BI 11g R1: Build Repositories 27 - 55

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 254: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 8: Adding Calculations to a Fact

Oracle BI 11g R1: Build Repositories 27 - 56

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 255: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Which of the following is not a method for creating calculation measures in an Oracle BI business model?1. Use the Expression Builder to create calculation measures

by using existing logical columns as objects in a formula.2. Use the Expression Builder to create calculation measures

by using physical columns as objects in the formula.3. Use the Calculation Wizard to create calculation measures

derived from existing presentation columns.

Oracle BI 11g R1: Build Repositories 27 - 57

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 256: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Which of the following is not a method for creating calculation measures in an Oracle BI business model?1. Use the Expression Builder to create calculation measures

by using existing logical columns as objects in a formula.2. Use the Expression Builder to create calculation measures

by using physical columns as objects in the formula.3. Use the Calculation Wizard to create calculation measures

derived from existing presentation columns.

Oracle BI 11g R1: Build Repositories 27 - 58

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 257: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

You use physical columns for calculations that require an aggregation rule to be applied after the calculation.• True• False

Oracle BI 11g R1: Build Repositories 27 - 59

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 258: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

You use physical columns for calculations that require an aggregation rule to be applied after the calculation.• True• False

Oracle BI 11g R1: Build Repositories 27 - 60

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 259: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

You use logical columns for calculation formulas that require anaggregation rule that is applied before the calculation.• True• False

Oracle BI 11g R1: Build Repositories 27 - 61

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 260: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

You use logical columns for calculation formulas that require anaggregation rule that is applied before the calculation.• True• False

Oracle BI 11g R1: Build Repositories 27 - 62

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 261: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

The Calculation Wizard uses physical columns as objects in its calculations. As a result, aggregation rules are applied after the calculation.• True• False

Oracle BI 11g R1: Build Repositories 27 - 63

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 262: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

The Calculation Wizard uses physical columns as objects in its calculations. As a result, aggregation rules are applied after the calculation.• True• False. The Calculation Wizard uses logical columns as

objects in its calculations, so aggregation rules are applied before the calculation.

Oracle BI 11g R1: Build Repositories 27 - 64

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 263: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 9: Creating Logical Dimensions

Oracle BI 11g R1: Build Repositories 27 - 65

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 264: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about logical dimensions.1. Introduce formal hierarchies into a business model2. Establish levels for data groupings and calculations3. Are columns whose values are calculated to a specific

level of aggregation 4. Provide paths for drill down

Oracle BI 11g R1: Build Repositories 27 - 66

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 265: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about logical dimensions.1. Introduce formal hierarchies into a business model2. Establish levels for data groupings and calculations3. Are columns whose values are calculated to a specific

level of aggregation 4. Provide paths for drill down

Oracle BI 11g R1: Build Repositories 27 - 67

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 266: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Level-based hierarchies are those in which members of the same type occur only at a single level.• True• False

Oracle BI 11g R1: Build Repositories 27 - 68

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 267: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Level-based hierarchies are those in which members of the same type occur only at a single level.• True• False

Oracle BI 11g R1: Build Repositories 27 - 69

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 268: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the incorrect statement about parent-child logical dimensions.1. A parent-child logical dimension is a hierarchy where

members of the same type occur only at a single level.2. The most common real-life occurrence of a parent-child

hierarchy is an organizational reporting hierarchy.3. A parent-child hierarchy is typically based on a single

logical table (for example, the Employees table.4. For each Oracle BI Server parent-child hierarchy defined

on a relational table, you must explicitly define the inter-member relationships in a separate parent-child relationship table.

Oracle BI 11g R1: Build Repositories 27 - 70

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 269: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the incorrect statement about parent-child logical dimensions.1. A parent-child logical dimension is a hierarchy where

members of the same type occur only at a single level.2. The most common real-life occurrence of a parent-child

hierarchy is an organizational reporting hierarchy.3. A parent-child hierarchy is typically based on a single

logical table (for example, the Employees table).4. For each Oracle BI Server parent-child hierarchy defined

on a relational table, you must explicitly define the inter-member relationships in a separate parent-child relationship table.

Oracle BI 11g R1: Build Repositories 27 - 71

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 270: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

For logical dimensions that contain multiple logical hierarchies, multiple separate presentation hierarchies are created when you drag a logical dimension hierarchy from the BMM layer to a table in the Presentation layer.• True• False

Oracle BI 11g R1: Build Repositories 27 - 72

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 271: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

For logical dimensions that contain multiple logical hierarchies, multiple separate presentation hierarchies are created when you drag a logical dimension hierarchy from the BMM layer to a table in the Presentation layer.• True• False

Oracle BI 11g R1: Build Repositories 27 - 73

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 272: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 10: Using Aggregates

Oracle BI 11g R1: Build Repositories 27 - 74

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 273: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about aggregate tables.1. Aggregate tables store pre-computed measures that have

been aggregated over a set of dimensional attributes.2. Using aggregate tables is a popular technique for speeding

up response time.3. An aggregate table should have more rows than the non-

aggregate table.

Oracle BI 11g R1: Build Repositories 27 - 75

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 274: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about aggregate tables.1. Aggregate tables store pre-computed measures that have

been aggregated over a set of dimensional attributes.2. Using aggregate tables is a popular technique for speeding

up response time.3. An aggregate table should have more rows than the non-

aggregate table.

Oracle BI 11g R1: Build Repositories 27 - 76

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 275: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Oracle BI Server allows queries to use the information stored inaggregate tables automatically, without query authors or query tools having to specify aggregate tables in their queries. • True• False

Oracle BI 11g R1: Build Repositories 27 - 77

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 276: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Oracle BI Server allows queries to use the information stored inaggregate tables automatically, without query authors or query tools having to specify aggregate tables in their queries. • True• False

Oracle BI 11g R1: Build Repositories 27 - 78

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 277: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the key difference between modeling aggregate tables and modeling other source data.1. You must create a data source connection in the Physical

layer.2. You must add sources to logical tables.3. You must import physical sources.4. You must specify aggregation content on the Content tab

of a logical table source.

Oracle BI 11g R1: Build Repositories 27 - 79

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 278: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the key difference between modeling aggregate tables and modeling other source data.1. You must create a data source connection in the Physical

layer.2. You must add sources to logical tables.3. You must import physical sources.4. You must specify aggregation content on the Content tab

of a logical table source.

Oracle BI 11g R1: Build Repositories 27 - 80

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 279: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

If a user queries for a level lower than the aggregation contentlevels specified on the Content tab, Oracle BI Server accesses the detail tables.• True• False

Oracle BI 11g R1: Build Repositories 27 - 81

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 280: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

If a user queries for a level lower than the aggregation contentlevels specified on the Content tab, Oracle BI Server accesses the detail tables.• True• False

Oracle BI 11g R1: Build Repositories 27 - 82

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 281: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 11: Using Partitions and Fragments

Oracle BI 11g R1: Build Repositories 27 - 83

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 282: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about a partition.1. Is a database element that contains part of the data for a

fact or a dimension2. Must include quota or sales data3. Combines with other data fragments as necessary 4. May be fact based, value based, level based, or complex

Oracle BI 11g R1: Build Repositories 27 - 84

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 283: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about a partition.1. Is a database element that contains part of the data for a

fact or a dimension2. Must include quota or sales data3. Combines with other data fragments as necessary 4. May be fact based, value based, level based, or complex

Oracle BI 11g R1: Build Repositories 27 - 85

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 284: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Data is partitioned by fact when the data is split into separatetables according to the levels of the data.• True• False

Oracle BI 11g R1: Build Repositories 27 - 86

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 285: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Data is partitioned by fact when the data is split into separatetables according to the levels of the data.• True• False. Data is partitioned by fact when different fact data is

stored in different tables.

Oracle BI 11g R1: Build Repositories 27 - 87

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 286: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

When a logical table source does not contain the entire set of data at a given level, you use the “Fragmentation content” edit box on the Content tab of the Logical Table Source window to specify the portion, or fragment, of the set of data that it contains.• True• False

Oracle BI 11g R1: Build Repositories 27 - 88

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 287: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

When a logical table source does not contain the entire set of data at a given level, you use the “Fragmentation content” edit box on the Content tab of the Logical Table Source window to specify the portion, or fragment, of the set of data that it contains.• True• False

Oracle BI 11g R1: Build Repositories 27 - 89

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 288: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 12: Using Repository Variables

Oracle BI 11g R1: Build Repositories 27 - 90

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 289: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about variables.1. Contain values in memory that are used by Oracle BI

Server during its processing2. Are created and managed using the Variable Manager

feature in the Administration Tool 3. Cannot be used to modify metadata content dynamically to

adjust to a changing data environment. 4. Consist of two classes: session and repository

Oracle BI 11g R1: Build Repositories 27 - 91

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 290: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about variables.1. Contain values in memory that are used by Oracle BI

Server during its processing2. Are created and managed using the Variable Manager

feature in the Administration Tool3. Cannot be used to modify metadata content dynamically to

adjust to a changing data environment 4. Consist of two classes: session and repository

Oracle BI 11g R1: Build Repositories 27 - 92

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 291: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the incorrect statement about initialization blocks.1. Are used to initialize system and non-system session

variables, as well as dynamic repository variables2. Must always determine the latest dates contained in the

source data3. Specify SQL to be run to populate one or more variables

by accessing data sources4. Are invoked at Oracle BI Server startup and are

periodically rerun to refresh values for dynamic variables according to an established schedule

Oracle BI 11g R1: Build Repositories 27 - 93

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 292: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the incorrect statement about initialization blocks.1. Are used to initialize system and non-system session

variables, as well as dynamic repository variables2. Must always determine the latest dates contained in the

source data3. Specify SQL to be run to populate one or more variables

by accessing data sources4. Are invoked at Oracle BI Server startup and are

periodically rerun to refresh values for dynamic variables according to an established schedule

Oracle BI 11g R1: Build Repositories 27 - 94

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 293: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Dynamic repository variables persist only while a user’s session is active.• True• False

Oracle BI 11g R1: Build Repositories 27 - 95

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 294: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Dynamic repository variables persist only while a user’s session is active.• True• False

Oracle BI 11g R1: Build Repositories 27 - 96

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 295: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Repository variables can be used instead of literals or constants in the Expression Builder in the Administration Tool.• True• False

Oracle BI 11g R1: Build Repositories 27 - 97

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 296: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Repository variables can be used instead of literals or constants in the Expression Builder in the Administration Tool.• True• False

Oracle BI 11g R1: Build Repositories 27 - 98

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 297: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 13: Modeling Time Series Data

Oracle BI 11g R1: Build Repositories 27 - 99

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 298: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

The best way to make time comparisons is with SQL statements sent directly to the database.• True• False

Oracle BI 11g R1: Build Repositories 27 - 100

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 299: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

The best way to make time comparisons is with SQL statements sent directly to the database.• True• False. There is no direct way to make time comparisons

in SQL.

Oracle BI 11g R1: Build Repositories 27 - 101

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 300: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the correct statement about Oracle BI time series functions.1. AGO aggregates a measure attribute from the beginning of

a specified time period to the currently displayed time.2. TODATE calculates aggregated value as of some time

period shifted from the current time. 3. PERIODROLLING performs an aggregation across a

specified set of query grain periods, rather than within a fixed time series grain.

Oracle BI 11g R1: Build Repositories 27 - 102

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 301: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the correct statement about Oracle BI time series functions.1. AGO aggregates a measure attribute from the beginning of

a specified time period to the currently displayed time.2. TODATE calculates aggregated value as of some time

period shifted from the current time. 3. PERIODROLLING performs an aggregation across a

specified set of query grain periods, rather than within a fixed time series grain.

Oracle BI 11g R1: Build Repositories 27 - 103

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 302: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Compared to modeling an ordinary dimension, the time dimension requires which two additional steps? 1. Creating a measure by using the AGO function2. Selecting the Time option in the Logical Dimension dialog

box3. Identifying the time series grain4. Designating a chronological key for every level of every

dimension hierarchy

Oracle BI 11g R1: Build Repositories 27 - 104

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 303: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Compared to modeling an ordinary dimension, the time dimension requires which two additional steps: 1. Creating a measure by using the AGO function2. Selecting the Time option in the Logical Dimension dialog

box3. Identifying the time series grain4. Designating a chronological key for every level of every

dimension hierarchy

Oracle BI 11g R1: Build Repositories 27 - 105

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 304: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Identify the correct statement about query grain.1. It is the grain at which the aggregation or offset is

requested for both the AGO and the TODATE functions.2. It is the grain of the source.3. It is the lowest time grain of the request.

Oracle BI 11g R1: Build Repositories 27 - 106

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 305: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Identify the correct statement about query grain.1. It is the grain at which the aggregation or offset is

requested for both the AGO and the TODATE functions.2. It is the grain of the source.3. It is the lowest time grain of the request.

Oracle BI 11g R1: Build Repositories 27 - 107

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 306: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 14: Modeling Many-to-Many Relationships

Oracle BI 11g R1: Build Repositories 27 - 108

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 307: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about a bridge table.1. Resolves many-to-many relationships between dimension

tables and fact tables2. Stores multiple records corresponding to a fact3. Contains a weight factor column representing the ratio of

the many-to-many relationship4. Stores multiple records corresponding to a dimension

Oracle BI 11g R1: Build Repositories 27 - 109

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 308: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about a bridge table.1. Resolves many-to-many relationships between dimension

tables and fact tables2. Stores multiple records corresponding to a fact3. Contains a weight factor column representing the ratio of

the many-to-many relationship4. Stores multiple records corresponding to a dimension

Oracle BI 11g R1: Build Repositories 27 - 110

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 309: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

When modeling a bridge table, you should map the fact logical table source to the bridge table.• True• False

Oracle BI 11g R1: Build Repositories 27 - 111

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 310: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

When modeling a bridge table, you should map the fact logical table source to the bridge table.• True• False

Oracle BI 11g R1: Build Repositories 27 - 112

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 311: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 15: Localizing Oracle BI Metadata

Oracle BI 11g R1: Build Repositories 27 - 113

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 312: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Which of the following are necessary steps when configuring Oracle BI metadata?1. Using a translation table to store language-specific names

and descriptions for metadata2. Configuring database data, such as product names3. Using initialization blocks and variables to select the

preferred language of the user and the corresponding names and descriptions

4. Configuring chart labels

Oracle BI 11g R1: Build Repositories 27 - 114

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 313: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Which of the following are necessary steps when configuring Oracle BI metadata?1. Using a translation table to store language-specific names

and descriptions for metadata2. Configuring database data such as product names3. Using initialization blocks and variables to select the

preferred language of the user and the corresponding names and descriptions

4. Configuring chart labels

Oracle BI 11g R1: Build Repositories 27 - 115

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 314: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

The WEBLANGUAGE session variable is populated when a user selects a language during login.• True• False

Oracle BI 11g R1: Build Repositories 27 - 116

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 315: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

The WEBLANGUAGE session variable is populated when a user selects a language during login.• True• False

Oracle BI 11g R1: Build Repositories 27 - 117

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 316: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Localization preferences are set in the Administration Tool.• True• False

Oracle BI 11g R1: Build Repositories 27 - 118

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 317: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Localization preferences are set in the Administration Tool.• True• False. Users can change their localization preferences by

selecting Settings > My Account in the Oracle BI user interface.

Oracle BI 11g R1: Build Repositories 27 - 119

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 318: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Which of the following is not a step to localize metadata?1. Externalize metadata objects.2. Run the Externalize Strings utility.3. Modify the translation file.4. Load the translation table.5. Export the translation table.

Oracle BI 11g R1: Build Repositories 27 - 120

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 319: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Which of the following is not a step to localize metadata?1. Externalize metadata objects.2. Run the Externalize Strings utility.3. Modify the translation file.4. Load the translation table.5. Export the translation table.

Oracle BI 11g R1: Build Repositories 27 - 121

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 320: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 16: Localizing Oracle BI Data

Oracle BI 11g R1: Build Repositories 27 - 122

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 321: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Which tables are required for data translation?1. Language table with a list of available languages2. Administration table with a list of administrative users3. Lookup table with translations4. Product tables in French and English

Oracle BI 11g R1: Build Repositories 27 - 123

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 322: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Which tables are required for data translation?1. Language table with a list of available languages2. Administration table with a list of administrative users3. Lookup table with translations4. Product tables in French and English

Oracle BI 11g R1: Build Repositories 27 - 124

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 323: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

What are two common techniques for designing translation lookup tables in a multilingual schema?

1. Lookup table for each product table2. Lookup table for each physical table3. Lookup table for each base table4. Lookup table for each translated field

Oracle BI 11g R1: Build Repositories 27 - 125

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 324: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

What are two common techniques for designing translation lookup tables in a multilingual schema?

1. Lookup table for each product table2. Lookup table for each physical table3. Lookup table for each base table4. Lookup table for each translated field

Oracle BI 11g R1: Build Repositories 27 - 126

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 325: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the correct statement about a logical lookup column.1. Defines the necessary metadata for a translation lookup

table2. Populates a variable with a language code based on user

log in3. Includes the lookup function to return a translated value4. Defines the language when a user logs in to Oracle BI

server

Oracle BI 11g R1: Build Repositories 27 - 127

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 326: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the correct statement about a logical lookup column.1. Defines the necessary metadata for a translation lookup

table2. Populates a variable with a language code based on user

log in3. Includes the lookup function to return a translated value4. Defines the language when a user logs in to Oracle BI

server

Oracle BI 11g R1: Build Repositories 27 - 128

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 327: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

The lookup table must be added to the Presentation layer.• True• False

Oracle BI 11g R1: Build Repositories 27 - 129

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 328: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

The lookup table must be added to the Presentation layer.• True• False

Oracle BI 11g R1: Build Repositories 27 - 130

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 329: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 17: Setting an Implicit Fact Column

Oracle BI 11g R1: Build Repositories 27 - 131

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 330: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about an implicit fact column.1. Is a column that is added automatically to dimension-only

queries2. Is a column that is included in the query and shown in the

analysis results3. Provides the ability to set a fact table source for a subject

area to ensure the expected results for dimension-only queries

4. Forces Oracle BI Server to select a predetermined fact table source even if it is not the most economical source

5. Specifies a default join path between dimension tables when there are several possible alternatives

Oracle BI 11g R1: Build Repositories 27 - 132

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 331: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about an implicit fact column.1. Is a column that is added automatically to dimension-only

queries2. Is a column that is included in the query and shown in the

analysis results3. Provides the ability to set a fact table source for a subject

area to ensure the expected results for dimension-only queries

4. Forces Oracle BI Server to select a predetermined fact table source even if it is not the most economical source

5. Specifies a default join path between dimension tables when there are several possible alternatives

Oracle BI 11g R1: Build Repositories 27 - 133

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 332: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

You use the Presentation Column properties box to set an implicit fact column.• True• False

Oracle BI 11g R1: Build Repositories 27 - 134

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 333: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

You use the Presentation Column properties box to set an implicit fact column.• True• False. You use the Subject Area properties box to set an

implicit fact column.

Oracle BI 11g R1: Build Repositories 27 - 135

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 334: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 18: Importing Metadata from Multidimensional Data Sources

Oracle BI 11g R1: Build Repositories 27 - 136

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 335: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

The primary differences between setting up multidimensionaldata sources and setting up relational data sources are in theBusiness Model and Mapping layer.• True• False

Oracle BI 11g R1: Build Repositories 27 - 137

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 336: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

The primary differences between setting up multidimensionaldata sources and setting up relational data sources are in theBusiness Model and Mapping layer.• True• False. The primary differences between setting up

multidimensional data sources and setting up relational data sources are in the Physical layer.

Oracle BI 11g R1: Build Repositories 27 - 138

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 337: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Data from multidimensional sources such as Essbase cannotbe used in analyses and Oracle BI interactive dashboards.• True• False

Oracle BI 11g R1: Build Repositories 27 - 139

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 338: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Data from multidimensional sources such as Essbase cannotbe used in analyses and Oracle BI interactive dashboards.• True• False

Oracle BI 11g R1: Build Repositories 27 - 140

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 339: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Horizontal federation provides the ability to create reports that can display data from both multidimensional and relational data sources.• True• False

Oracle BI 11g R1: Build Repositories 27 - 141

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 340: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Horizontal federation provides the ability to create reports that can display data from both multidimensional and relational data sources.• True• False

Oracle BI 11g R1: Build Repositories 27 - 142

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 341: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 19: Security

Oracle BI 11g R1: Build Repositories 27 - 143

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 342: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

During installation, which three Oracle BI security controls arepreconfigured with initial (default) values to form the default security model?1. Identity store2. Policy store3. Authentication store4. Credential store

Oracle BI 11g R1: Build Repositories 27 - 144

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 343: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

During installation, which three Oracle BI security controls arepreconfigured with initial (default) values to form the default security model?1. Identity store2. Policy store3. Authentication store4. Credential store

Oracle BI 11g R1: Build Repositories 27 - 145

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 344: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the correct statement about the Oracle WebLogicServer Administration Console.1. Manages policy store application roles that grant

permissions to users, groups, or other application roles2. Manages permissions for Presentation layer objects and

business model objects in the repository3. Manages users and groups for the embedded LDAP

server that serves as the out-of-the-box default identity store

Oracle BI 11g R1: Build Repositories 27 - 146

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 345: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the correct statement about the Oracle WebLogicServer Administration Console.1. Manages policy store application roles that grant

permissions to users, groups, or other application roles2. Manages permissions for Presentation layer objects and

business model objects in the repository3. Manages users and groups for the embedded LDAP

server that serves as the out-of-the-box default identity store

Oracle BI 11g R1: Build Repositories 27 - 147

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 346: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify three default application roles.1. BIAdministrator2. BIAuthor3. BIManager4. BISupervisor5. BIConsumer

Oracle BI 11g R1: Build Repositories 27 - 148

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 347: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify three default application roles.1. BIAdministrator2. BIAuthor3. BIManager4. BISupervisor5. BIConsumer

Oracle BI 11g R1: Build Repositories 27 - 149

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 348: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Which tool do you use to set repository object permissions?1. Fusion Middleware Control Enterprise Manager2. WebLogic Administration Console3. Analysis Editor4. Administration Tool

Oracle BI 11g R1: Build Repositories 27 - 150

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 349: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Which tool do you use to set repository object permissions?1. Fusion Middleware Control Enterprise Manager2. WebLogic Administration Console3. Analysis Editor4. Administration Tool

Oracle BI 11g R1: Build Repositories 27 - 151

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 350: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 5

Which tool do you use to create application roles?1. Fusion Middleware Control Enterprise Manager2. WebLogic Administration Console3. Analysis Editor4. Administration Tool5. Interactive Dashboard

Oracle BI 11g R1: Build Repositories 27 - 152

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 351: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 5: Solution

Which tool do you use to create application roles?1. Fusion Middleware Control Enterprise Manager2. WebLogic Administration Console3. Analysis Editor4. Administration Tool5. Interactive Dashboard

Oracle BI 11g R1: Build Repositories 27 - 153

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 352: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 20: Cache Management

Oracle BI 11g R1: Build Repositories 27 - 154

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 353: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about the Oracle BI Server query cache.1. Saves the results of queries in cache files2. Enables Oracle BI Server to satisfy subsequent query

requests without having to access back-end databases3. Improves query performance by fulfilling a query from the

database as opposed to searching through the cache4. Conserves network resources by avoiding a connection to

the database server

Oracle BI 11g R1: Build Repositories 27 - 155

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 354: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about the Oracle BI Server query cache.1. Saves the results of queries in cache files2. Enables Oracle BI Server to satisfy subsequent query

requests without having to access back-end databases3. Improves query performance by fulfilling a query from the

database as opposed to searching through the cache4. Conserves network resources by avoiding a connection to

the database server

Oracle BI 11g R1: Build Repositories 27 - 156

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 355: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Which tool is used to configure the cache?1. WebLogic Administration Console2. Analysis Editor3. Presentation Services Catalog4. Fusion Middleware Control Enterprise Manager

Oracle BI 11g R1: Build Repositories 27 - 157

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 356: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Which tool is used to configure the cache?1. WebLogic Administration Console2. Analysis Editor3. Presentation Services Catalog4. Fusion Middleware Control Enterprise Manager

Oracle BI 11g R1: Build Repositories 27 - 158

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 357: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Which file is used to set cache parameters?1. Nqsquery.ini

2. Nqsserver.ini

3. Nqsconfig.ini

4. Nqscache.ini

Oracle BI 11g R1: Build Repositories 27 - 159

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 358: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Which file is used to set cache parameters?1. Nqsquery.ini

2. Nqsserver.ini

3. Nqsconfig.ini

4. Nqscache.ini

Oracle BI 11g R1: Build Repositories 27 - 160

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 359: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Identify the incorrect statement about the Cache Manager.1. View information about the entire query cache or individual

cache entries.2. Show, save, or copy cache SQL.3. Manually purge the cache entries.4. It must be opened in offline mode.

Oracle BI 11g R1: Build Repositories 27 - 161

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 360: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Identify the incorrect statement about the Cache Manager.1. View information about the entire query cache or individual

cache entries.2. Show, save, or copy cache SQL.3. Manually purge the cache entries.4. It must be opened in offline mode.

Oracle BI 11g R1: Build Repositories 27 - 162

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 361: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 5

Identify the incorrect statement about seeding the cache.1. It is the process of pre-populating the cache with queries

that are known to generate cache misses.2. It is the process of pre-populating the cache with queries

that are known to generate cache hits.3. It is performed by running prebuilt queries during off hours

or immediately after purging.4. It helps improve query performance.

Oracle BI 11g R1: Build Repositories 27 - 163

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 362: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 5: Solution

Identify the incorrect statement about seeding the cache.1. It is the process of pre-populating the cache with queries

that are known to generate cache misses.2. It is the process of pre-populating the cache with queries

that are known to generate cache hits.3. It is performed by running prebuilt queries during off hours

or immediately after purging.4. It helps improve query performance.

Oracle BI 11g R1: Build Repositories 27 - 164

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 363: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 21: Managing Usage Tracking

Oracle BI 11g R1: Build Repositories 27 - 165

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 364: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about Oracle BI usage tracking.1. Tracks and stores Oracle BI Server usage at the detailed

query level2. Supports the accumulation of statistics that can be used in

database performance optimization3. Supports the accumulation of statistics that can be used in

global appreciation strategies4. Provides ability to analyze usage results by using end-user

reporting tools

Oracle BI 11g R1: Build Repositories 27 - 166

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 365: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about Oracle BI usage tracking.1. Tracks and stores Oracle BI Server usage at the detailed

query level2. Supports the accumulation of statistics that can be used in

database performance optimization3. Supports the accumulation of statistics that can be used in

global appreciation strategies4. Provides ability to analyze usage results by using end-user

reporting tools

Oracle BI 11g R1: Build Repositories 27 - 167

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 366: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Oracle recommends using which usage-tracking method?1. Rotation files2. Direct insertion3. Log file4. Aggregation strategy

Oracle BI 11g R1: Build Repositories 27 - 168

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 367: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Oracle recommends using which usage-tracking method?1. Rotation files2. Direct insertion3. Log file4. Aggregation strategy

Oracle BI 11g R1: Build Repositories 27 - 169

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 368: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the correct statement about the S_NQ_ACCT table.1. Uploads the usage-tracking data when queries are run

against Oracle BI Server2. Downloads the usage-tracking data when queries are run

against Oracle BI Server3. Purges the usage-tracking data when queries are run

against Oracle BI Server4. Stores the usage-tracking data when queries are run

against Oracle BI Server

Oracle BI 11g R1: Build Repositories 27 - 170

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 369: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the correct statement about the S_NQ_ACCT table.1. Uploads the usage-tracking data when queries are run

against Oracle BI Server2. Downloads the usage-tracking data when queries are run

against Oracle BI Server3. Purges the usage-tracking data when queries are run

against Oracle BI Server4. Stores the usage-tracking data when queries are run

against Oracle BI Server

Oracle BI 11g R1: Build Repositories 27 - 171

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 370: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Which of the following is not a usage-tracking parameter or setting in the NQSConfig.ini file?1. ENABLE

2. DIRECT_INSERT

3. PHYSICAL_TABLE_NAME

4. USAGE_TRACKING_BUFFER

5. CONNECTION_POOL

Oracle BI 11g R1: Build Repositories 27 - 172

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 371: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Which of the following is not a usage tracking parameter or setting in the NQSConfig.ini file?1. ENABLE

2. DIRECT_INSERT

3. PHYSICAL_TABLE_NAME

4. USAGE_TRACKING_BUFFER

5. CONNECTION_POOL

Oracle BI 11g R1: Build Repositories 27 - 173

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 372: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 22: Setting Up and Using theMultiuser Development Environment

Oracle BI 11g R1: Build Repositories 27 - 174

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 373: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about the Oracle BI multiuserdevelopment environment.1. Permits multiple users to work with the repository

simultaneously2. Breaks the repository into manageable pieces known as

concurrent repositories3. Changes are saved locally and then merged to the master

repository.4. Adheres to the classic Software Configuration

Management (SCM) process

Oracle BI 11g R1: Build Repositories 27 - 175

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 374: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about the Oracle BI multiuserdevelopment environment.1. Permits multiple users to work with the repository

simultaneously2. Breaks the repository into manageable pieces known as

concurrent repositories3. Changes are saved locally and then merged to the master

repository.4. Adheres to the classic Software Configuration

Management (SCM) process

Oracle BI 11g R1: Build Repositories 27 - 176

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 375: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Identify the incorrect statement about multiuser development projects.

1. Projects are subsets of repository metadata.2. Projects consist of Presentation layer subject areas and

their associated logical facts, dimensions, application roles, users, variables, and initialization blocks.

3. Projects cannot overlap with other projects.

Oracle BI 11g R1: Build Repositories 27 - 177

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 376: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Identify the incorrect statement about multiuser development projects.

1. Projects are subsets of repository metadata.2. Projects consist of Presentation layer subject areas and

their associated logical facts, dimensions, application roles, users, variables, and initialization blocks.

3. Projects cannot overlap with other projects.

Oracle BI 11g R1: Build Repositories 27 - 178

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 377: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Before checking out projects, each developer must set up the Administration Tool application to point to the multiuserdevelopment directory.• True• False

Oracle BI 11g R1: Build Repositories 27 - 179

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 378: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Before checking out projects, each developer must set up the Administration Tool application to point to the multiuserdevelopment directory.• True• False

Oracle BI 11g R1: Build Repositories 27 - 180

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 379: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

Which multiuser option commits changes to the master repository?1. Compare with Original 2. Discard Local Changes3. Publish to Network4. Merge Local Changes

Oracle BI 11g R1: Build Repositories 27 - 181

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 380: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

Which multiuser option commits changes to the master repository?1. Compare with Original 2. Discard Local Changes3. Publish to Network4. Merge Local Changes

Oracle BI 11g R1: Build Repositories 27 - 182

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 381: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 23: Configuring Write Back in Analyses

Oracle BI 11g R1: Build Repositories 27 - 183

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 382: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Which of the following is not a step to configure write back?1. Enable write back for the connection pool.2. Enable write back for logical columns.3. Enable write back for presentation columns.4. Set write back permissions in the Presentation layer.5. Enable write back in instanceconfig.xml.6. Create a write back template.

Oracle BI 11g R1: Build Repositories 27 - 184

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 383: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Which of the following is not a step to configure write back?1. Enable write back for the connection pool.2. Enable write back for logical columns.3. Enable write back for presentation columns.4. Set write back permissions in the Presentation layer.5. Enable write back in instanceconfig.xml.6. Create a write back template.

Oracle BI 11g R1: Build Repositories 27 - 185

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 384: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Which permission must be set in the Presentation layer to provide write back for application roles or users?1. Write Back2. Default3. Read/Write4. Everyone

Oracle BI 11g R1: Build Repositories 27 - 186

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 385: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Which permission must be set in the Presentation layer to provide write back for application roles or users?1. Write Back2. Default3. Read/Write4. Everyone

Oracle BI 11g R1: Build Repositories 27 - 187

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 386: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Identify the incorrect statement about the write back template.1. The write back template is an XML-formatted file that

contains SQL statements that are needed to insert and update records in the write back table and columns.

2. To ensure that write back works correctly, you must include (in the WebMessage element of the file) the name of the SQL template that you will specify when you create the write back table.

3. You can create only one write back template for each Oracle BI Server instance.

4. You must specify the connection pool along with the SQL commands to insert and update records.

Oracle BI 11g R1: Build Repositories 27 - 188

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 387: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Identify the incorrect statement about the write back template.1. The write back template is an XML-formatted file that

contains SQL statements that are needed to insert and update records in the write back table and columns.

2. To ensure that write back works correctly, you must include (in the WebMessage element of the file) the name of the SQL template that you will specify when you create the write back table.

3. You can create only one write back template for each Oracle BI Server instance.

4. You must specify the connection pool along with the SQL commands to insert and update records.

Oracle BI 11g R1: Build Repositories 27 - 189

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 388: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

All columns in an analysis are automatically enabled for write back by default.• True• False

Oracle BI 11g R1: Build Repositories 27 - 190

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 389: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

All columns in an analysis are automatically enabled for write back by default.• True• False

Oracle BI 11g R1: Build Repositories 27 - 191

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 390: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 24: Performing a Patch Merge

Oracle BI 11g R1: Build Repositories 27 - 192

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 391: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Identify the incorrect statement about creating a patch.1. In a patch merge, you create a patch that contains the

differences between the current repository file and the original repository file.

2. You apply the patch file to the current repository file. 3. In a development-to-production scenario, you have an

original parent file, a current file that contains the latest development changes, and a modified file that is the deployed copy of the original file.

4. To generate a patch, you open the current file, select the original file, and then create the patch.

Oracle BI 11g R1: Build Repositories 27 - 193

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 392: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Identify the incorrect statement about creating a patch.1. In a patch merge, you create a patch that contains the

differences between the current repository file and the original repository file.

2. You apply the patch file to the current repository file. 3. In a development-to-production scenario, you have an

original parent file, a current file that contains the latest development changes, and a modified file that is the deployed copy of the original file.

4. To generate a patch, you open the current file, select the original file, and then create the patch.

Oracle BI 11g R1: Build Repositories 27 - 194

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 393: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Which of the following is not a step to perform a patch merge?1. Compare current and original repositories.2. Equalize objects.3. Compare current and modified repositories.4. Create a patch.5. Apply the patch.6. Make merge decisions.

Oracle BI 11g R1: Build Repositories 27 - 195

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 394: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Which of the following is not a step to perform a patch merge?1. Compare current and original repositories.2. Equalize objects.3. Compare current and modified repositories.4. Create a patch.5. Apply the patch.6. Make merge decisions.

Oracle BI 11g R1: Build Repositories 27 - 196

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 395: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

You create a patch file in the Merge Repositories dialog box.• True• False

Oracle BI 11g R1: Build Repositories 27 - 197

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 396: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

You create a patch file in the Merge Repositories dialog box.• True• False. You create a patch file by clicking the Create Patch

button in the “Compare repositories” dialog box.

Oracle BI 11g R1: Build Repositories 27 - 198

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 397: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

You apply a patch by using the Merge Repository Wizard.• True• False

Oracle BI 11g R1: Build Repositories 27 - 199

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 398: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

You apply a patch by using the Merge Repository Wizard.• True• False

Oracle BI 11g R1: Build Repositories 27 - 200

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 399: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 25: Configuring Logical Columns for Multicurrency Support

Oracle BI 11g R1: Build Repositories 27 - 201

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 400: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

You can configure presentation columns so that Oracle BI users can select the currency in which they prefer to view currency columns in analyses and dashboards.• True• False

Oracle BI 11g R1: Build Repositories 27 - 202

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 401: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

You can configure presentation columns so that Oracle BI users can select the currency in which they prefer to view currency columns in analyses and dashboards.• True• False. You can configure logical columns so that Oracle BI

users can select the currency in which they prefer to view currency columns in analyses and dashboards.

Oracle BI 11g R1: Build Repositories 27 - 203

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 402: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Which of the following is not a step in configuring multicurrency support?• Modify the user preferences currency file.• Create a PREFERRED_CURRENCY session variable.• Create presentation columns with currency conversions.• Edit a logical column to use a conversion factor.

Oracle BI 11g R1: Build Repositories 27 - 204

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 403: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Which of the following is not a step in configuring multicurrency support?• Modify the user preferences currency file.• Create a PREFERRED_CURRENCY session variable.• Create presentation columns with currency conversions.• Edit a logical column to use a conversion factor.

Oracle BI 11g R1: Build Repositories 27 - 205

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 404: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

If multicurrency conversion is configured correctly, a Currency drop-down list is visible in My Account.• True• False

Oracle BI 11g R1: Build Repositories 27 - 206

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 405: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

If multicurrency conversion is configured correctly, a Currency drop-down list is visible in My Account.• True• False

Oracle BI 11g R1: Build Repositories 27 - 207

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 406: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

To create an analysis with the user’s preferred currency, set Currency Symbol to User’s Preferred Currency on the Data Format tab in Column Properties.• True• False

Oracle BI 11g R1: Build Repositories 27 - 208

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 407: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

To create an analysis with the user’s preferred currency, set Currency Symbol to User’s Preferred Currency on the Data Format tab in Column Properties.• True• False

Oracle BI 11g R1: Build Repositories 27 - 209

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 408: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Lesson 26: Using Administration Tool Utilities

Oracle BI 11g R1: Build Repositories 27 - 210

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 409: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1

Which task cannot be performed using the Query Repository utility?1. Examine and update the internal structure of the

repository.2. Query for objects in the repository based on object type .3. Edit or delete objects.4. Monitor repository session activity.

Oracle BI 11g R1: Build Repositories 27 - 211

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 410: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 1: Solution

Which task cannot be performed using the Query Repository utility?1. Examine and update the internal structure of the

repository.2. Query for objects in the repository based on object type .3. Edit or delete objects.4. Monitor repository session activity.

Oracle BI 11g R1: Build Repositories 27 - 212

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 411: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2

Why do you use the Repository Documentation utility?1. To automate the process of replacing physical columns or

tables in logical table sources2. To view reports that show such items as all tables mapped

to a logical source, all references to a particular physical column, content filters for logical sources, initialization blocks, and security and user permissions

3. To document mappings from presentation columns to the corresponding logical and physical columns

4. To show variables and their values for a selected session

Oracle BI 11g R1: Build Repositories 27 - 213

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 412: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 2: Solution

Why do you use the Repository Documentation utility?1. To automate the process of replacing physical columns or

tables in logical table sources2. To view reports that show such items as all tables mapped

to a logical source, all references to a particular physical column, content filters for logical sources, initialization blocks, and security and user permissions

3. To document mappings from presentation columns to the corresponding logical and physical columns

4. To show variables and their values for a selected session

Oracle BI 11g R1: Build Repositories 27 - 214

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 413: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3

Why do you use the Generate Metadata Dictionary utility?1. To document mappings from presentation columns to the

corresponding logical and physical columns2. To automate the process of replacing physical columns or

tables in logical table sources3. To create a set of static XML documents that describe

each metadata object, including its properties and its relationships with other metadata objects

4. To identify a table as an Oracle BI event polling table

Oracle BI 11g R1: Build Repositories 27 - 215

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 414: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 3: Solution

Why do you use the Generate Metadata Dictionary utility?1. To document mappings from presentation columns to the

corresponding logical and physical columns2. To automate the process of replacing physical columns or

tables in logical table sources3. To create a set of static XML documents that describe

each metadata object, including its properties and its relationships with other metadata objects

4. To identify a table as an Oracle BI event polling table

Oracle BI 11g R1: Build Repositories 27 - 216

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 415: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4

The Update Physical Layer Wizard enables you to update database objects in the Physical layer of a repository based on their current definitions in the back-end database.• True• False

Oracle BI 11g R1: Build Repositories 27 - 217

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 416: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Question 4: Solution

The Update Physical Layer Wizard enables you to update database objects in the Physical layer of a repository based on their current definitions in the back-end database.• True• False

Oracle BI 11g R1: Build Repositories 27 - 218

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 417: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Optimizing Query Performance

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 418: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Objective

After completing this appendix, you should be able to identify techniques to optimize Oracle BI query performance.

Oracle BI 11g R1: Build Repositories A - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 419: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Challenge

Poor query performance of BI tools is the biggest obstacle to end-user adoption and satisfaction:• Business users expect near-instantaneous query

responses. • Users waiting for results for more than 5–10 seconds seek

other alternatives.• Users are more tolerant when results are valuable or rare.• Most users do not overtly complain and silently defect.• Users may defect even if there is no other credible source

and may rely on soft, fallible data, instinct, or best guess.• Exponential growth of data adds to the challenge of

maintaining performance.

Business ChallengeThe biggest obstacle to end-user adoption of any business intelligence (BI) tool is the inability to ensure consistently strong query performance. Business users have high expectations of near-instantaneous query responses and low tolerance when their expectations are not met. Additionally, users are not very sympathetic to the technical challenges inherent in servicing dynamic, ad hoc BI environments.Users are generally more tolerant of performance with particularly compelling or exclusive content than with the ordinary. Frustrated users generally do not complain, but they choose not to return over time. This “quiet defection” is particularly apt in BI tool deployments, in which business users tend to be highly creative with multiple back-door channels to information. BI users move quickly and silently to softer, more fallible data when their needs are not being met. This is especially true when query performance expectations are not being met. Compounding the challenge of maintaining performance is the exponential growth of stored data. Some analysts estimate that application data volume will increase by 125% per year. While it is necessary to make this data accessible, the majority of data is not actively used. In fact, as the historical data itself ages, the need for elaborate details diminishes increasingly.

Oracle BI 11g R1: Build Repositories A - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 420: 104059052 Course Sg2 Unlocked

Business SolutionOne key to managing end-user query performance is establishing realistic expectations. Business users will always demand instantaneous query performance. However, the actual difference between sub-second and sub-five-second query response times is often negligible to the majority of end users. Conversely, the perceived difference between five-second and ten-second response times can be profound.BI tools are most effective when supporting “speed of thought” analysis, meaning that the performance latency results for one analysis should not negatively affect subsequent analysis accessed via drilling. Business users are generally accustomed to the latency built into refreshing browser pages while surfing the Web. Faster is almost always better, but four-second to five-second refresh rates are a reasonable performance cap goal for most BI content.Another important step is to monitor end-user query habits. A warning sign of defection from end-user adoption is an increased use of requests returning large numbers of records. This indicates that users are running “extracts,” building and consolidating offline information silos (spreadsheet applications, departmental data marts, and so on) outside the approved, consistent, and centralized information repository.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Business Solution

• Establish realistic performance expectations.– Four-second to five-second refresh rates are a reasonable

performance cap goal for most BI content.• Monitor end-user query habits.

– Requests returning large numbers of records indicate that users are running “extracts” and building offline information silos.

• Be proactive with performance.– Include an overtly specified, comprehensive performance

optimization stage in every implementation project.

Oracle BI 11g R1: Build Repositories A - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 421: 104059052 Course Sg2 Unlocked

Business Solution (continued)It is also best to be proactive when addressing performance needs. Perhaps the most effective means of proactively managing query performance is to mandate and budget tasks solely targeted at query-performance optimization in all release cycles. Many integrators claim their methodologies seamlessly thread performance tasks throughout requirements, design, and build stages. However, performance issues are too often considered at the end of the process or as an afterthought. In these cases, query performance issues become apparent only after end users have experienced problems. This can cause project slippage and negative first impressions that are difficult to overcome. Project plans without explicitly called-out performance optimization tasks should be treated with a great deal of skepticism.

Oracle BI 11g R1: Build Repositories A - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 422: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Oracle BI Features That Optimize Performance

Embedded Oracle BI features and functions optimize end-user query performance:• Intelligent query generation• Aggregate navigation• Data source function shipping• Multipass SQL generation• Platform-specific SQL/MDX optimization• Clustering• Query caching

Oracle BI Features That Optimize Performance The Oracle BI Enterprise Edition suite of tools is built with attention given to optimizing end-user query performance. Many performance optimization features and functions exist in the platform, including (but not limited to) those listed in the slide.If Oracle BI EE metadata is configured correctly, end-user query issues are generally bound by the technical limitations of the underlying data sources. Therefore, the most effective means of optimizing end-user query performance is to deploy a comprehensive aggregate summarization process. This performance optimization technique and others are discussed in the following slides.

Oracle BI 11g R1: Build Repositories A - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 423: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Optimizing Query Performance

• Using aggregates• Using aggregate navigation• Constraining results using a WHERE clause• Caching• Limiting the number of initialization blocks• Limiting select table types• Modeling dimension hierarchies correctly • Turning off logging• Setting query limits• Pushing calculations to the database• Exposing materialized views in the Physical layer• Using database hints

Optimizing Query Performance: RepositoryThere are many query performance optimization steps that can be taken during and after an Oracle BI implementation. Most of these steps have already been covered in this course. The purpose of this appendix is to revisit and explain these topics in the context of query performance optimization. Each topic is discussed in this context in subsequent slides.Note: The topics discussed in this appendix concern only those steps that can be taken in Oracle BI EE. They do not address issues related to hardware memory; back-end databases; extraction, transformation, and loading (ETL) software; network bandwidth; or the impact of various computing architectures, topologies, memory sizes, CPUs, and so on.

Oracle BI 11g R1: Build Repositories A - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 424: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using Aggregates

Improves performance by enabling Oracle BI Server to generate queries against smaller, summarized tables

Sales (fact) aggregated to Sales Rep, Product Type, and Month levels

Customer (dimension) aggregated to

Sales Rep level

Product (dimension) aggregated to

Type level

Time (dimension) aggregated to Month level

Using AggregatesUsing aggregate tables is the one of the most important strategies for boosting the query performance in the Oracle BI environment. While the need for creating and maintaining aggregates is easy to understand, using aggregates is often not effectively implemented or not implemented at all for various reasons. Because aggregates are summaries of the detailed fact tables at higher levels along the dimension hierarchies, aggregate tables have fewer rows than the base tables, resulting in improved query performance when Oracle BI Server uses the aggregate (smaller) table to satisfy the query. Because the fact table can join with multiple dimension tables, it is possible to create aggregates at a variety of levels. Creating the right amount of aggregates with appropriate levels is a trial and error exercise that requires you to analyze the nature of queries, including how results are reported and what levels. Having too many aggregates is as bad as having none. Typically, the aggregate tables should compress the detailed fact table data by a significant degree and should not result in significant storage need or process need to populate the aggregate tables.

Oracle BI 11g R1: Build Repositories A - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 425: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using Aggregate Navigation

Improves performance by enabling Oracle BI Server to transparently intercept queries and rewrite them to optimized data sources

Use the logical table source Content tab to

define aggregation content.

Oracle BI Server chooses the most economical source when

there are several sources from which to choose.

Using Aggregate Navigation Aggregate summarization is the process of aggregating and storing records into smaller and more efficient data structures optimized for query processing. Performance gains can be realized with the right aggregate summarization deployment by reducing the time it takes to process any given query request. Aggregate navigation is the ability of Oracle BI Server to transparently intercept queries and rewrite them to optimized data sources built through an aggregate summarization process. Every fact logical table source needs to be defined with aggregation content to ensure that Oracle BI Server chooses the most economical source when there are several sources to choose from. The aggregation content allows Oracle BI Server to pick the aggregate table (if there is one) instead of the detailed fact table without the need to explicitly specify the table name in the query. If there is more than one logical table source with identical aggregation contents, the most economical source is determined by the logical size of the fact table source, which is determined by the combined “number of elements at this level” property of the levels of the aggregate content. If a logical table source does not contain aggregation content, Oracle BI Server assumes that the logical table source is at the lowest (detailed) level. In that case, it is good practice to define aggregation content for the logical tables source at the detail level. Although it is possible to define the aggregation content by logical level or by column, you should always define the aggregation content by logical level.

Oracle BI 11g R1: Build Repositories A - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 426: 104059052 Course Sg2 Unlocked

Constraining Results by Using a WHERE Clause If a logical table source contains unwanted data or data that you would not typically use in a report, use the WHERE clause filter on the Content tab of the logical table source to limit the rows returned from the database. Because constraints in the WHERE clause are made on the physical tables on the source, it is helpful if indexes are defined on the columns that are used as constraints in the WHERE clause.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Constraining Results by Using a WHERE Clause

Improves performance by limiting the rows returned from a data source

Use the WHERE clause filter on the Content tab of the logical table source to limit the rows returned from the database.

Oracle BI 11g R1: Build Repositories A - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 427: 104059052 Course Sg2 Unlocked

CachingCaching is one of the most important strategies you can use to improve query performance and reduce computing resource demand of Oracle BI Server. Caching eliminates unnecessary database processing because pre-computed results are stored in a local cache. It improves query performance by fulfilling a query from the cache, as opposed to searching through the database. It also conserves network resources by avoiding a connection to the database server.Caching does not guarantee a solution to all performance problems; it should therefore not be relied on to overcome the limitations of a poorly designed repository. Caching is meant for Oracle BI Server to reuse cache results from a large number of small queries. Caching should be enabled and configured in the production environment. For best performance, the cache storage directories should reside on the local disk or dedicated drives. Set the maximum number of rows for any cache entry (MAX_ROWS_PER_CACHE_ENTRY) and the maximum number of cache entries (MAX_CACHE_ENTRIES) parameters to avoid using up the cache space with runaway queries that return large number of rows. Cache management strategies should be in place, including pre-populating the cache using cache-seeding techniques (such as iBots) provided by Oracle BI Server and keeping the cache up to date using cache-purging techniques.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Caching

Improves performance by fulfilling a query from a local cache as opposed to processing the query through a data source

Querycache

Serverdatabase

Cachemetadata

(cache hit?)Logical request

Yes

No

Resultssent to

the user

Oracle BI Server1. User’s query request is translated into logical request.

2. The metadata is searched to identify a match (cache hit).

4. If there is a cache miss, the request is queried against the

database. Results are stored in the cache

and sent to the user.

3. If there is a match, results are retrieved from the cache

and sent to the user.

Oracle BI 11g R1: Build Repositories A - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 428: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Limiting the Number of Initialization Blocks

Improves performance because initialization block queries are executed when Oracle BI Server is started and when users log in to the server

Limiting the Number of Initialization BlocksInitialization blocks are the only means to initialize dynamic repository, system session, and non-system session variables, but care should be taken not to create too many of them. In the case of dynamic repository variables, the SQL in the initialization blocks is executed every time the server is started or periodically if a schedule is set up to refresh the value of the variable. In the case of system and non-system session variables, the initialization blocks are executedevery time a user logs in to the server. Initialization blocks for repository variables can also have a refresh interval that adds a recurrent overhead.

Oracle BI 11g R1: Build Repositories A - 12

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 429: 104059052 Course Sg2 Unlocked

Limiting Select Table TypesSelect table types (opaque views) in the Physical layer can perform a vital function in some cases. However, when defining a table as a Select type, avoid long SQL statements that may affect performance. It is also a good idea to limit the number of Select tables in the Physical layer because the associated SELECT statement is executed every time by the server, which could affect overall performance. The Select table type can be replaced with a physical table or view in the database.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Limiting Select Table Types

Improves performance because it: • Reduces the number of SELECT statements executed by

Oracle BI Server• May avoid lengthy SQL queries

Oracle BI 11g R1: Build Repositories A - 13

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 430: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Modeling Logical Dimension Hierarchies Correctly

Improves performance by ensuring that Oracle BI Server chooses the most economical source

With multiple aggregate sources, specify the

number of elements for each level.

The number does not have to be exact, but ratios of numbers from one parent to child logical level should be accurate.

Modeling Logical Dimension Hierarchies Correctly Logical dimension hierarchies must be modeled accurately to ensure that the Oracle BI optimizer chooses the most economical source. When there are multiple aggregate logical table sources, the number of elements for each level must be specified. The number does not have to be exact, but ratios of number from one parent to child logical level should be accurate. All levels except the Grand Total level need to be defined with at least one column from the dimension table. However, it is not necessary to explicitly associate all the columns from the dimension table with logical levels. Columns that are not associated with a logical level are automatically associated with the lowest level in the dimension that corresponds to that dimension table.

Oracle BI 11g R1: Build Repositories A - 14

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 431: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Turning Off Logging

Improves performance in a production environment because Oracle BI Server does not generate log files

Logging level

Turning Off LoggingThe logging facility is disabled by default because it can affect the performance of Oracle BI Server and can create large log files. Although logging can be used to test and troubleshoot problematic queries, it should not be enabled in a production environment, especially for the Administrator user, because repository variable initialization blocks are logged to the Administrator. If you decide to enable logging, consider creating a separate Administrator user with a logging level of 2, which allows the user to debug using the query log and should provide enough logging information in most cases. Logging levels greater than 2 should not be used because of the possibility of a severe impact on query performance in a large user environment. Logging levels greater than 2 are typically used only by Oracle technical support.

Oracle BI 11g R1: Build Repositories A - 15

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 432: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Setting Query Limits

Improves performance by enabling Oracle BI Server to track and cancel runaway queries

Setting Query LimitsIn addition to limiting the maximum number of rows being returned by Oracle BI Presentation Services, you can also enable Oracle BI Server to track and cancel runaway queries by placing various limits on the repository for a given user or application role. For each user or application role, it is possible to limit queries by varying conditions:

• Maximum number of rows that a query can retrieve from a database• Maximum time that a query can run on a database• Restricting access to a database during particular time periods from Oracle BI Server

Note that limits can be set by user or application role and by database. Oracle recommends setting limits by application role. Note that with some “databases” such as Excel, more processing may have to be done by Oracle BI Server because fewer operations can be function-shipped to the database. This means that limits should not be made too low.

Oracle BI 11g R1: Build Repositories A - 16

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 433: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Pushing Calculations to the Database

Improves performance by automatically pushing certain operations to the database based on database feature entries

Pushing Calculations to the DatabaseOracle BI Server is intelligently designed to take maximum advantage of a database’s processing resources when it knows that the database can process certain operations more efficiently than it can process the same operations. Oracle BI Server automatically determines this based on database feature table entries, compensates for the database’s lack of functionality, and pulls back appropriate data for postprocessing before returning the result set to the user. By modeling the repository accurately and adjusting the default database feature table entries for a database, you should be able to achieve a combined optimal performance of both Oracle BI Server and the database.

Oracle BI 11g R1: Build Repositories A - 17

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 434: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Exposing Materialized Views in the Physical Layer

Improves performance because exposing materialized views explicitly guarantees that Oracle BI Server chooses the most economical table source to satisfy a query

Exposing Materialized Views in the Physical LayerMaterialized views are schema objects that are used to compute and store aggregated data such as sums and averages. If materialized views are used in the database, they should be exposed in the Physical layer of the repository and modeled as regular aggregate tables. Because materialized views are hidden objects, Oracle BI Server has to rely on the query optimizer of the database for query rewrites to use correct materialized views. Exposing them explicitly guarantees that Oracle BI Server chooses the most economical table source to satisfy a query.

Oracle BI 11g R1: Build Repositories A - 18

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 435: 104059052 Course Sg2 Unlocked

Using Database HintsHints are instructions placed within a SQL statement that tell the data source query optimizer the most efficient way to execute the statement. Hints override the optimizer's execution plan, so you can use hints to improve performance by forcing the optimizer to use a more efficient plan. Hints are supported for Oracle Database data sources only.Using the Administration Tool, you can add hints to a repository, in both online and offline modes, to optimize the performance of queries. When you add a hint to the repository, you associate it with Physical layer objects. When the object associated with the hint is queried, Oracle BI Server inserts the hint into the SQL statement.Hints that are well researched and planned can result in significantly better query performance. However, hints can also negatively affect performance if they result in a suboptimal execution plan. Use the following guidelines to create hints to optimize query performance:

• Add hints to a repository only after you have tried to improve performance in the following ways:

- Added physical indexes (or other physical changes) to the Oracle database - Made modeling changes within the server

• Avoid creating hints for physical table and join objects that are queried often. If you drop or rename a physical object that is associated with a hint, you must alter the hints accordingly.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Using Database Hints

Improves performance because hints force the database query optimizer to execute the statement in a more efficient way

Oracle BI 11g R1: Build Repositories A - 19

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 436: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Summary

In this appendix, you should have learned how to identify techniques to optimize Oracle BI query performance.

SummaryConsult the Oracle Business Intelligence documentation for more information about the topics covered in this appendix.

Oracle BI 11g R1: Build Repositories A - 20

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 437: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Model First Development Methodology

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 438: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Model First Development Methodology: Overview

• Recommended approach for developing Oracle BI repositories

• Driven by business analysis and usage history• Iterative, top-down approach that focuses on the

consolidation and abstraction of core business requirements irrespective of the underlying physical architecture:– Build business model first.– Integrate with underlying physical architecture.– Quickly deploy baseline to end users.– Pursue iterative development based on user feedback.

Model First Development Methodology: OverviewDevelopers using a top-down, model first approach start with the business requirements, prioritize actual business use cases, and then methodically drill down to the technical details. This top-down approach is generally regarded as a macro view of the issues related to development, based on business drivers and users, and driven by business analysis. This is opposed to bottom-up analysis, which starts at the physical sources, catalogues technical details (databases, tables, columns, and so on), and then rationalizes the details into categories that attempt to match historical end-user usage patterns and business activities. Bottom-up analysis is an appropriate performance analysis technique for highly repeatable, static events, but it falls short in dynamic, ad hoc environments in which usage is less predictable. It is entirely possible for a thorough performance optimization process driven by a bottom-up analysis to become obsolete within days or weeks as the business adapts to differing views of the data.The main objective of the model first development approach is to build the desired business model first. This ensures that functional and inherent performance requirements are addressed by the logical integration and augmentation of the physical architecture. This approach enables developers to quickly get a reasonable baseline business model in front of users, and then pursue iterative development based on user feedback.

Oracle BI 11g R1: Build Repositories A - 2

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 439: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Central Tenets of the Model First Development Methodology

• Rapid prototyping– Leverage actual subsets or fictitious physical data stores and

manageable data volumes to reduce performance issues during development.

• Iterative development and user feedback– Leverage prototypes for demos and hands-on sandboxes.– Rollout augmented models frequently.– Demonstrate responsiveness to feedback.

• Gap analysis– Map the business model to actual physical sources.– Manage scope and expectations accordingly.

• Gather performance requirements along the way– Identify patterns of use, data granularity, user groups, and

security constraints.

Central Tenets of Model First Development MethodologyA model first methodology should employ rapid prototyping of the repository business model by leveraging actual subsets or fictitious physical data sources and manageable data volumes. This helps eliminate performance issues during development. After a prototype is built and delivered to users, iterative development should continue based on user feedback. This iterative development should ensure that augmented business models are rolled out frequently and that they demonstrate responsiveness to user feedback. During this process, developers must perform gap analysis to map the business model to actual physical data sources. Since there will be gaps, it is important to manage project scope and expectations accordingly. Developers should also gather performance requirements along the way by identifying patterns of use, data granularity, user roles and groups, and security constraints.

Oracle BI 11g R1: Build Repositories A - 3

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 440: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Baseline Performance Analysis

Enables you to analyze performance requirements better and discuss them with business users:• Catalog and enumerate all users, roles, job titles, and

objectives.• Obtain a detailed organization chart of the business

intelligence (BI) users and organizations.• Identify mandated security model guidelines.• Collect row counts for all tables (facts and dimensions) as

well as dimension-level cardinality.

Baseline Performance Analysis It is important to perform a baseline performance analysis. The output of a top-down performance optimization analysis is a rationalized and prioritized framework of dimensions, levels, and measures from which to build and map aggregate summary objects. Upfront analysis of the key data points in the slide prepares you to discuss performance requirements with users better.From these four straightforward data inputs, it is often possible to pull together a workable framework that can be implemented across large user bases. Natural groupings become apparent from the user, role, title, and objectives profile. Groups are easily organized via similar objectives. Key dimensions and levels can quickly surface. Organization charts, when held up to user groups, often overtly expose key dimension and levels such as geographic or product alignments and provide candidates for summaries.

Oracle BI 11g R1: Build Repositories A - 4

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 441: 104059052 Course Sg2 Unlocked

Baseline Performance Analysis (continued)Security requirements show the required dimensionality for record filtering and can even eliminate entire groups from aggregate summary analysis due to highly restrictive data access requirements.Records counts and cardinality are instrumental in calculating record compression and validating aggregate summary prototypes. Without significant compression, the aggregate summaries may prove too time-intensive to build or not worth the effort.

Oracle BI 11g R1: Build Repositories A - 5

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 442: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Defining the Business Model: Dimensional Matrix

Create a dimensional matrix that places business processes (facts) along one axis and dimensionality along the other.

Fact 1Fact 2Fact 3Fact 4Fact 5

Dim

ensi

on 5

Dim

ensi

on 4

Dim

ensi

on 3

Dim

ensi

on 2

Dim

ensi

on 1

Bus

ines

s pr

oces

ses

Defining the Business Model: Dimensional MatrixOne of the most usable tools in rationalizing BI users’ requirements is a dimensional matrix. This is a simple two-dimensional matrix that places business processes (facts) along one axis and dimensionality along the other. It provides a visual medium to ground discussions. Before beginning development, you gather business requirements in terms of dimensions and measures, identify business processes, and determine key performance indicators. The output of a top-down analysis is a rationalized and prioritized framework of dimensions, levels, and measures from which to build and map aggregate summary objects.

Oracle BI 11g R1: Build Repositories A - 6

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 443: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Dimensional Matrix: Example

A business model is a completed matrix that resembles the following graphic, with X denoting key dimensions for a given business process and O denoting minor dimensionality.

Bus

ines

s pr

oces

ses

X O X X XX X X OX X O X XX X O X OX X O O

SalesForecastServiceOrders

ActivitiesG

eogr

aphy

Pro

duct

Org

aniz

atio

n

Acc

ount

Tim

e

X

O

Frequently

Sometimes

Never

Oracle BI 11g R1: Build Repositories A - 7

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 444: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Drill to Levels for More-Detailed Performance Requirements

Each business process is individually rationalized against the dimensional hierarchies and the user roles to which they apply.

X X X O X X X X X O X X O OX X X X X X X X X

Sales

Forecast

Cou

ntry

Leve

l 3 P

ositi

on

Day

Qua

rter

Yea

r

Mon

th

Leve

l 2 P

ositi

on

Leve

l 1 P

ositi

on

Leve

l 0 P

ositi

on

Prod

uct L

ine

SKU

Reg

ion

Sta

te

City

Time Organization Product Geography

Sales Manager Role

Drill to Levels For More detailed Performance RequirementsEach business process is individually rationalized against the dimensional hierarchies and the user roles to which it applies. Matrix tools such as this are highly useful in keeping performance requirements focused on key aspects and ultimately providing a concise, documented design for an aggregate summary model.

Oracle BI 11g R1: Build Repositories A - 8

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 445: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Focus on the Business Model

Focus on the business model rather than the presentation: • Ad hoc reports are typically used once and are not

pervasive.• Existing reports are useful only when abstracted for their

dimension and measure objects.

Oracle BI 11g R1: Build Repositories A - 9

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 446: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Leverage Oracle BI “Legless” Applications

• Oracle BI Applications are complete, prebuilt BI solutions:– The prebuilt Oracle BI Applications repository contains

business models that can be mapped to different physical data sources.

– Value can be realized without Oracle Business Analytic Warehouse and ETL components.

• Redefine the Oracle BI Application Physical layer objects by using the “opaque view” feature:– Use SELECT statements.– Deploy opaque views via BI Server Administrator as

necessary.– Materialize as required.

Leverage Oracle BI “Legless” Applications Oracle Business Intelligence Applications are complete, prebuilt BI solutions that deliver intuitive, role-based intelligence for everyone in an organization to enable better decisions, actions, and business processes. Based on best practices, these solutions enable you to gain greater insight and value from a range of data sources and applications, including Oracle E-Business Suite, PeopleSoft, Siebel, and third-party systems such as SAP.Oracle BI Applications are built on the Oracle BI platform. Thus, the prebuilt Oracle BI Applications repository contains prebuilt business models that can be mapped to different physical data sources. These “legless” applications enable organizations to realize the value of a packaged BI application, such as rapid deployment, lower total cost of ownership (TCO), and built-in best practices, while also being able to extend those solutions easily to meet specific needs. You also have the option to build completely custom BI applications, as you did in this course, all on one common BI foundation.

Oracle BI 11g R1: Build Repositories A - 10

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 447: 104059052 Course Sg2 Unlocked

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

Use Oracle BI Data Mart Automation

The Aggregate Persistence Wizard automates the aggregate summary process. • Use this wizard-driven utility in the Administration Tool to

define, populate, store, and map aggregated data stores:– Choose the measures that should be aggregated.– Choose the dimensions and levels to be aggregated to.– Select the data sources in which to physically store the

aggregate summaries.• Create query performance improvement over normalized,

transaction-level physical schemas.

Use Oracle BI Data Mart AutomationAs you saw in the lesson titled “Using Aggregates,” the Aggregate Persistence Wizard automates the aggregate summary process. On completion of the wizard, a template is generated to be deployed and scheduled with the Oracle BI Scheduler or the customer’s scheduling tool of preference. Aggregate summaries are the most effective and scalable way to pervasively manage end-user query performance.

Oracle BI 11g R1: Build Repositories A - 11

Oracle In

ternal & O

racle Aca

demy

Use O

nly

Page 448: 104059052 Course Sg2 Unlocked

Oracle In

ternal & O

racle Aca

demy

Use O

nly