Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 34

Building the Physical Layer of a Repository

Copyright 2008, Oracle. All rights reserved.

Objectives
After completing this lesson, you should be able to: Identify and describe the objects in the Physical layer of a repository Create the Physical layer of a repository

2-2

Copyright 2008, Oracle. All rights reserved.

Physical Layer
Contains objects representing the physical data sources to which Oracle BI Server submits queries May contain multiple data sources Is typically the first layer built in the repository

Data sources

2-3

Copyright 2008, Oracle. All rights reserved.

Physical Layer Objects


Are objects in the Physical layer, such as connection pools, folders, tables, columns, and keys Expand a database object to display the objects it contains.
Database Connection pool Schema folder Tables Columns

Key

2-4

Copyright 2008, Oracle. All rights reserved.

Database Object
Is the highest-level object in the Physical layer Defines the data source to which Oracle BI Server submits queries

Database object

2-5

Copyright 2008, Oracle. All rights reserved.

Database Object: General Properties


Click the General tab to view and set general properties for a database object.

Name

Type

2-6

Copyright 2008, Oracle. All rights reserved.

Database Object: Features


Click the Features tab to view and set the SQL features that Oracle BI Server uses with this data source.
Enable or disable feature

Default SQL features for this data source

2-7

Copyright 2008, Oracle. All rights reserved.

Connection Pool
Defines how Oracle BI Server connects to a data source Specifies the ODBC or native data source name Allows multiple users to share a pool of data source connections
Connection pool name

Maximum number of connections Data source name Shared logon username and password

Connection pooling enabled

2-9

Copyright 2008, Oracle. All rights reserved.

Schema Folder
Is an optional display folder that contains tables and columns for a physical schema To create a schema folder, right-click a database object and select New Object > Physical Schema.

Schema folder

2 - 10

Copyright 2008, Oracle. All rights reserved.

Physical Table
Is an object that corresponds to a table in a physical data source Is typically imported from a database or other data source Provides the metadata necessary for Oracle BI Server to access the tables with SQL requests

Physical table

2 - 11

Copyright 2008, Oracle. All rights reserved.

Physical Table Properties


Double-click a physical table object to view its properties:

Use tabs to create, view, or modify other properties. Name Table type

Cacheable

2 - 12

Copyright 2008, Oracle. All rights reserved.

Physical Table: Alias


Is a virtual physical table object that points to a physical table object Right-click a physical table and select New Object > Alias. Provide a name for the alias table. The alias table appears with an alias icon in the Physical layer.

Alias name

Source table

Alias synchronization is automatic.

2 - 13

Copyright 2008, Oracle. All rights reserved.

Physical Table: Select Table Type


Specifies that a physical table object is a SELECT statement

Table Type

Database specific SQL

SELECT statement

2 - 14

Copyright 2008, Oracle. All rights reserved.

Physical Table: View Deployment


Creates a corresponding database view for metadata views

Select Deploy View(s).

View created in database

2 - 15

Copyright 2008, Oracle. All rights reserved.

Physical Column
Is an object that corresponds to a column in a physical database

Columns

2 - 16

Copyright 2008, Oracle. All rights reserved.

Key Column
Defines relationships between tables Primary key:
Uniquely identifies a single row of data Consists of a column or set of columns Is identified by a key icon

Foreign key:
Refers to the primary key columns in another table Is composed of a column or set of columns

Key

2 - 17

Copyright 2008, Oracle. All rights reserved.

Joins
Represent the primary keyforeign key relationships between tables in the Physical layer
Join properties Physical Diagram

Double-click to view join properties.

Join expression
2 - 18

Copyright 2008, Oracle. All rights reserved.

ABC Scenario
Data for ABC resides in the SUPPLIER2 schema in an Oracle relational database, containing tables with: Invoice data Customer data Product data Period data Physical layer

Data source

SUPPLIER2

Import metadata using Administration Tool.

2 - 19

Copyright 2008, Oracle. All rights reserved.

Implementation Steps
1. 2. 3. 4. 5. 6. Import the physical schema. Select tables and columns for import. Import keys and joins. Check the import. Edit connection pool properties. Define physical keys and joins.

2 - 20

Copyright 2008, Oracle. All rights reserved.

1. Import the Physical Schema


Use the Oracle BI Administration Tool to import the physical schema.
Select connection type.

Select File > Import > from Database.

2 - 21

Copyright 2008, Oracle. All rights reserved.

2. Select Tables and Columns for Import


Select the tables and columns needed to support the business model.

Filter tables for import.

Select schema, tables, or columns for import.

Select metadata for import.

2 - 22

Copyright 2008, Oracle. All rights reserved.

3. Import Keys and Joins


Keys, foreign keys, and corresponding joins are imported automatically only if they are already defined in the data source.

2 - 23

Copyright 2008, Oracle. All rights reserved.

4. Check the Import


Ensure that the correct schema, tables, columns, and keys were imported. Use Update Row Count and View Data features to check the connection.
Schema

Tables

Columns

Key

2 - 24

Copyright 2008, Oracle. All rights reserved.

5. Edit Connection Pool Properties


After import, check or modify the connection pool properties using the Connection Pool properties dialog box.

Connection pool name Call interface Maximum number of connections Shared logon username and password Data source name

Connection pooling enabled

2 - 25

Copyright 2008, Oracle. All rights reserved.

6. Define Physical Keys and Joins


The Administration Tool allows you to define physical keys and joins that were not imported automatically. Define keys using the Physical Table properties dialog box. Define joins and keys using the Physical Diagram.

2 - 26

Copyright 2008, Oracle. All rights reserved.

Defining Keys Using the Table Properties Dialog Box


Open the Physical Table properties dialog box to view or define keys.
Select the Keys tab. Check the appropriate check box to define the key.

Click New.

2 - 27

Copyright 2008, Oracle. All rights reserved.

Using the Physical Diagram


Use the Physical Diagram to view or define keys and joins.

Click the Physical Diagram icon ... ... or right-click the objects to open the Physical Diagram.

Double-click a link to open the Joins properties dialog box.

2 - 28

Copyright 2008, Oracle. All rights reserved.

Defining Foreign Key Joins


1. Select New Foreign Key.

2. Select one table in relationship.

5. Select key columns.

3. Select "many table in relationship.

4. The Physical Foreign Key dialog box opens. 6. Join expression: first table selected maintains primary key; second table selected maintains foreign key to first table.

2 - 29

Copyright 2008, Oracle. All rights reserved.

Summary
In this lesson, you should have learned how to: Identify and describe the objects in the Physical layer of a repository Create the Physical layer of a repository

2 - 30

Copyright 2008, Oracle. All rights reserved.

Practice 2-1 Overview: ABC Business Scenario


This practice covers the ABC business scenario.

2 - 31

Copyright 2008, Oracle. All rights reserved.

Practice 2-2 Overview: Gathering Information to Build an Initial Business Model


This practice covers the following topics: Gathering and analyzing the business requirements of the ABC company Determining the structure of the initial business model

2 - 32

Copyright 2008, Oracle. All rights reserved.

Practice 2-3 Overview: Creating a Repository and Importing a Data Source


This practice covers the following topics: Creating a new repository Importing tables into the Physical layer of the repository

2 - 33

Copyright 2008, Oracle. All rights reserved.

Practice 2-4 Overview: Defining Keys and Joins


This practice covers defining the primary keys, foreign keys, and joins in the Physical layer using the Administration Tool.

2 - 34

Copyright 2008, Oracle. All rights reserved.

Practice 2-5 Overview: Creating Alias and Select Tables


This practice covers the following topics: Creating an alias table Creating a select table Deploying a view

2 - 35

Copyright 2008, Oracle. All rights reserved.

You might also like