Download presentation
Presentation is loading. Please wait.
Published byGodfrey George Modified over 8 years ago
1
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository
2
Copyright © 2008, Oracle. All rights reserved. 2 - 2 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
3
Copyright © 2008, Oracle. All rights reserved. 2 - 3 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
4
Copyright © 2008, Oracle. All rights reserved. 2 - 4 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
5
Copyright © 2008, Oracle. All rights reserved. 2 - 5 Database Object Is the highest-level object in the Physical layer Defines the data source to which Oracle BI Server submits queries Database object
6
Copyright © 2008, Oracle. All rights reserved. 2 - 6 Database Object: General Properties Click the General tab to view and set general properties for a database object. Name Type
7
Copyright © 2008, Oracle. All rights reserved. 2 - 7 Database Object: Features Click the Features tab to view and set the SQL features that Oracle BI Server uses with this data source. Default SQL features for this data source Enable or disable feature
8
Copyright © 2008, Oracle. All rights reserved. 2 - 8
9
Copyright © 2008, Oracle. All rights reserved. 2 - 9 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 Data source name Connection pooling enabled Shared logon username and password Maximum number of connections Connection pool name
10
Copyright © 2008, Oracle. All rights reserved. 2 - 10 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
11
Copyright © 2008, Oracle. All rights reserved. 2 - 11 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
12
Copyright © 2008, Oracle. All rights reserved. 2 - 12 Physical Table Properties Double-click a physical table object to view its properties: Name Table type Cacheable Use tabs to create, view, or modify other properties.
13
Copyright © 2008, Oracle. All rights reserved. 2 - 13 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.
14
Copyright © 2008, Oracle. All rights reserved. 2 - 14 Physical Table: Select Table Type Specifies that a physical table object is a SELECT statement Table Type SELECT statement Database specific SQL
15
Copyright © 2008, Oracle. All rights reserved. 2 - 15 Physical Table: View Deployment Creates a corresponding database view for metadata views Select Deploy View(s). View created in database
16
Copyright © 2008, Oracle. All rights reserved. 2 - 16 Physical Column Is an object that corresponds to a column in a physical database Columns
17
Copyright © 2008, Oracle. All rights reserved. 2 - 17 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
18
Copyright © 2008, Oracle. All rights reserved. 2 - 18 Joins Represent the primary key–foreign key relationships between tables in the Physical layer Double-click to view join properties. Physical Diagram Join properties Join expression
19
Copyright © 2008, Oracle. All rights reserved. 2 - 19 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 Import metadata using Administration Tool. SUPPLIER2 Data source Physical layer
20
Copyright © 2008, Oracle. All rights reserved. 2 - 20 Implementation Steps 1.Import the physical schema. 2.Select tables and columns for import. 3.Import keys and joins. 4.Check the import. 5.Edit connection pool properties. 6.Define physical keys and joins.
21
Copyright © 2008, Oracle. All rights reserved. 2 - 21 1. Import the Physical Schema Use the Oracle BI Administration Tool to import the physical schema. Select connection type. Select File > Import > from Database.
22
Copyright © 2008, Oracle. All rights reserved. 2 - 22 2. Select Tables and Columns for Import Select the tables and columns needed to support the business model. Select schema, tables, or columns for import. Select metadata for import. Filter tables for import.
23
Copyright © 2008, Oracle. All rights reserved. 2 - 23 3. Import Keys and Joins Keys, foreign keys, and corresponding joins are imported automatically only if they are already defined in the data source.
24
Copyright © 2008, Oracle. All rights reserved. 2 - 24 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
25
Copyright © 2008, Oracle. All rights reserved. 2 - 25 5. Edit Connection Pool Properties After import, check or modify the connection pool properties using the Connection Pool properties dialog box. Data source name Connection pooling enabled Shared logon username and password Maximum number of connections Connection pool name Call interface
26
Copyright © 2008, Oracle. All rights reserved. 2 - 26 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.
27
Copyright © 2008, Oracle. All rights reserved. 2 - 27 Defining Keys Using the Table Properties Dialog Box Open the Physical Table properties dialog box to view or define keys. Select the Keys tab. Click New. Check the appropriate check box to define the key.
28
Copyright © 2008, Oracle. All rights reserved. 2 - 28 Using the Physical Diagram Use the Physical Diagram to view or define keys and joins. Double-click a link to open the Joins properties dialog box. Click the Physical Diagram icon...... or right-click the objects to open the Physical Diagram.
29
Copyright © 2008, Oracle. All rights reserved. 2 - 29 Defining Foreign Key Joins 6. Join expression: first table selected maintains primary key; second table selected maintains foreign key to first table. 5. Select key columns. 1. Select New Foreign Key. 2. Select “one” table in relationship. 3. Select "many” table in relationship. 4. The Physical Foreign Key dialog box opens.
30
Copyright © 2008, Oracle. All rights reserved. 2 - 30 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
31
Copyright © 2008, Oracle. All rights reserved. 2 - 31 Practice 2-1 Overview: ABC Business Scenario This practice covers the ABC business scenario.
32
Copyright © 2008, Oracle. All rights reserved. 2 - 32 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
33
Copyright © 2008, Oracle. All rights reserved. 2 - 33 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
34
Copyright © 2008, Oracle. All rights reserved. 2 - 34 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.
35
Copyright © 2008, Oracle. All rights reserved. 2 - 35 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
36
Copyright © 2008, Oracle. All rights reserved. 2 - 36
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.