obiee_building the physical layer

35
Oracle BIEE 11g Page 1 Oracle Business Intelligence 11g Enterprise Edition Hands-On Workshop Student Handbook Administration Tool (Building the Physical Layer of a Repository)

Upload: zeeshansamikhan

Post on 17-Jan-2016

12 views

Category:

Documents


4 download

DESCRIPTION

OBIEE 11g Administration01 Building the Physical Layer

TRANSCRIPT

Page 1: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 1

Oracle Business Intelligence 11g

Enterprise Edition

Hands-On Workshop

Student Handbook

Administration Tool

(Building the Physical Layer of a Repository)

Page 2: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 2

Table of Contents

Purpose ..................................................................................................................................................... 3

Overview ................................................................................................................................................... 4

Prerequisites ............................................................................................................................................. 5

Building the Physical Layer of a Repository.............................................................................................. 6

Create a New Repository......................................................................................................... 6 Import Metadata ....................................................................................................................... 9 Verify Connection................................................................................................................... 19 Create Aliases........................................................................................................................ 23 Create Keys and Joins ........................................................................................................... 27

Page 3: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 3

Purpose

This tutorial covers using the Oracle Business Intelligence (BI) Administration Tool to build, modify, enhance, and manage an Oracle BI repository.

Page 4: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 4

Overview

This tutorial shows you how to build an Oracle BI metadata repository using the Oracle BI Administration Tool. You learn how to import metadata from databases and other data sources, simplify and reorganize the imported metadata into a business model, and then structure the business model for presentation to users who request business intelligence information via Oracle BI user interfaces.

Page 5: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 5

Prerequisites

Before starting this tutorial, you should:

1. Have access to or have Installed Oracle Business Intelligence Enterprise Edition 11g.

2. Have access to or have installed the Sample Application schema (BISAMPLE) that ships with

Oracle Business Intelligence 11g. You can access the BISAMPLE schema and installation

instructions here.

If you are interested in downloading and installing the latest version of the entire Sample

Application, you can access it here on the Oracle Technical Network (OTN). Please note,

however, that only the BISAMPLE schema is required to complete this tutorial.

Before getting started, you have to do the following:

To activate Administration Tool, we need to do the following:

• Copy “tnsnames.ora” from “C:\oracle\product\11.1.0\db_1\NETWORK\ADMIN”

• Paste in “C:\mw_home\Oracle_BI1\network\admin”

• Go to

“C:\mw_home\instances\instance1\bifoundation\OracleBIApplication\coreapplication\setu

p” and edit “user.cmd”

o ���� set TNS_ADMIN = C:\mw_home\Oracle_BI1\network\admin

Page 6: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 6

Building the Physical Layer of a Repository

In this topic you use the Oracle BI Administration Tool to build the Physical layer of a repository.

The Physical layer defines the data sources to which Oracle BI Server submits queries and the relationships between physical databases and other data sources that are used to process multiple data source queries. The recommended way to populate the Physical layer is by importing metadata from databases and other data sources. The data sources can be of the same or different varieties. You can import schemas or portions of schemas from existing data sources. Additionally, you can create objects in the Physical layer manually.

When you import metadata, many of the properties of the data sources are configured automatically based on the information gathered during the import process. After import, you can also define other attributes of the physical data sources, such as join relationships, that might not exist in the data source metadata. There can be one or more data sources in the Physical layer, including databases, flat files, XML documents, and so forth. In this example, you import and configure tables from the BISAMPLE schema included with the Oracle BI 11g Sample Application.

To build the Physical layer of a repository, you perform the following steps:

• Create a New Repository

• Import Metadata

• Verify Connection

• Create Aliases

• Create Physical Keys and Joins

Create a New Repository

1. Select Start > Programs > Oracle Business Intelligence > BI Administration to open the

Administration Tool.

Page 7: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 7

2. Select File > New Repository.

3. Enter a name for the repository. In this tutorial the repository name is BISAMPLE.

Page 8: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 8

4. Leave the default location as is. It points to the default repository directory.

5. Leave Import Metadata set to Yes.

6. Enter and retype a password for the repository. In this tutorial BISAMPLE is the repository

password.

Page 9: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 9

7 . Click Next.

Import Metadata

1 . Change the Connection Type to OCI 10g/11g. The screen displays connection fields based on

the connection type you selected.

Page 10: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 10

2 . Enter a data source name. In this example the data source name is orcl. This name is the same as

the tnsnames.ora entry for this Oracle database instance.

Page 11: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 11

3 . Enter a user name and password for the data source. In this example the username and password

are bothBISAMPLE. Recall that BISAMPLE is the name of the user/schema you created in the

prerequisite section.

Page 12: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 12

4 . Click Next.

5 . Accept the default metadata types and click Next.

Page 13: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 13

6 . In the Data source view, expand the BISAMPLE schema.

7 . Use Ctrl+Click to select the following tables:

SAMP_ADDRESSES_D

SAMP_CUSTOMERS_D

SAMP_PRODUCTS_D

SAMP_REVENUE_F

SAMP_TIME_DAY_D

Page 14: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 14

8 . Click the Import Selected button to add the tables to the Repository View.

Page 15: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 15

9 . The Connection Pool dialog box appears. Accept the defaults and click OK.

Page 16: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 16

10 . The Importing message appears.

Page 17: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 17

11 . When import is complete, expand BISAMPLE in the Repository View and verify that the five

tables are visible.

Page 18: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 18

12 . Click Finish to open the repository.

Page 19: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 19

13 . Expand orcl > BISAMPLE and confirm that the five tables are imported into the Physical layer

of the repository.

Verify Connection

1 . Select Tools > Update All Row Counts.

Page 20: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 20

2 . When update row counts completes, move the cursor over the tables and observe that row count

information is now visible, including when the row count was last updated.

Page 21: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 21

3 . Expand tables and observe that row count information is also visible for individual columns.

4 . Right-click a table and select View Data to view the data for the table.

Page 22: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 22

5 . Close the View Data dialog box when you are done. It is a good idea to update row counts or

view data after an import to verify connectivity. Viewing data or updating row count, if

successful, tells you that your connection is configured correctly.

Page 23: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 23

Create Aliases

1 . 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.

Right-click SAMP_TIME_DAY_D and selectNew Object > Alias to open the Physical Table

dialog box.

2 . Enter D1 Time in the Name field.

Page 24: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 24

3 . In the Description field, enter Time Dimension Alias at day grain. Stores one record for each

day.

Page 25: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 25

4 . Click the Columns tab. Note that alias tables inherit all column definitions from the source table.

Page 26: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 26

5 . Click OK to close the Physical Table dialog box.

6 . Repeat the steps and create the following aliases for the remaining physical tables.

SAMP_ADDRESSES_D = D4 Address

SAMP_CUSTOMERS_D = D3 Customer

SAMP_PRODUCTS_D = D2 Product

SAMP_REVENUE_F = F1 Revenue

Page 27: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 27

Create Keys and Joins

1 . Select the five alias tables in the Physical layer.

2 . Right-click one of the highlighted alias tables and select Physical Diagram > Selected

Object(s) Only to open the Physical Diagram. Alternatively, you can click the Physical Diagram

button on the toolbar.

Page 28: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 28

3 . Rearrange the alias table objects so they are all visible. If desired, right-click in the white space

of the diagram and select Zoom to change the size of the objects in the Physical Diagram.

Page 29: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 29

4 . Click the New Foreign Key button on the toolbar.

5 . Click the D1 Time table, and then click the F1 Revenue table. The Physical Foreign Key dialog

box opens. It matters which table you click first. The join creates a one-to-many (1:N)

relationship that joins the key column in the first table to a foreign key column in the second

table.

Page 30: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 30

6 . Select the D1 Time. CALENDAR_DATE column, and then select F1

Revenue.BILL_DAY_DT to join the tables. Ensure that the Expression edit box (at the bottom)

contains the following expression:

"orcl".""."BISAMPLE"."D1 Time"."CALENDAR_DATE" = "orcl".""."BISAMPLE"."F1 Revenue"."BILL_DAY_DT"

Page 31: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 31

7 . Click OK to close the Physical Foreign Key dialog box. The join is visible in the Physical

Diagram.

Page 32: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 32

8 . Repeat the steps to create joins for the remaining tables. Use the following expressions as a

guide:

"orcl".""."BISAMPLE"."D2 Product"."PROD_KEY" = "orcl".""."BISAMPLE"."F1

Revenue"."PROD_KEY"

"orcl".""."BISAMPLE"."D4 Customer"."CUST_KEY" = "orcl".""."BISAMPLE"."F1

Revenue"."CUST_KEY"

"orcl".""."BISAMPLE"."D5 Address"."ADDRESS_KEY" = "orcl".""."BISAMPLE"."D4

Customer"."ADDRESS_KEY"

Page 33: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 33

9 . Click the X in the upper right corner to close the Physical Diagram.

10 . Select File > Save or click the Save button on the toolbar to save the repository.

11 . Click No when prompted to check global consistency. Checking Global Consistency checks for

errors in the entire repository. Some of the more common checks are done in the Business Model

and Mapping layer and Presentation layer. Since these layers are not defined yet, bypass this

check until the other layers in the repository are built. You learn more about consistency check

later in this tutorial.

12 . Leave the Administration Tool and the repository open for the next topic.

Congratulations! You have successfully created a new repository, imported a table schema from

an external data source into the Physical layer, created aliases, and defined keys and joins.

Page 34: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 34

In the next topic you learn how to build the Business Model and Mapping layer of a repository.

Page 35: OBIEE_Building the Physical Layer

Oracle BIEE 11g Page 35