OBIEE Repository Basics by BISP

56
Created By : Hitesh Mankar Reviewed By: Amit Sharma Contact Point :[email protected] Oracle BI Creating Repository

Transcript of OBIEE Repository Basics by BISP

Page 1: OBIEE Repository Basics by BISP

Created By : Hitesh Mankar

Reviewed By: Amit Sharma

Contact Point :[email protected]

Oracle BI Creating Repository

Page 2: OBIEE Repository Basics by BISP

Contents

1.Repository Basics (Oracle BI Architecture Components )

2.Building the Physical Layer of a Repository

3.Building the Business Model and Mapping Layer of a Repository

4.Building the Presentation Layer of a Repository

5.Testing and Validating a Repository

Page 3: OBIEE Repository Basics by BISP

Oracle BI Architecture Components

Relationships between architecture components

1. Clients2. Oracle BI Presentation Services3. Oracle BI Server4. Oracle BI repository5. Data sources

ClientsOracle BI

Presentation Services

Oracle BI Server

Data Source

Page 4: OBIEE Repository Basics by BISP

1.ClientsProvide access to business intelligence informationOracle BI Answers

Oracle BI Interactive Dashboards

Oracle BI Administration Tool

Data SourceClients

OBI Answers

OBI Interactive Dashboards

OBI Administration Tool

Oracle BI Presentation

Services

Oracle BI Server

Page 5: OBIEE Repository Basics by BISP

Oracle BI Answers and Oracle BI Interactive Dashboards are examples of clients that provide access to business intelligence information via a Web browser. Oracle BI Administration Tool is a Windows-based application.

Clients

Oracle BI Answers is the only report building interface that OBIEE provides.It is used for the construction of both Queries (the data) and Reports (the presentation) .It provides full ad hoc analysis, pivot tables and report creation.

a)Oracle BI Answers

Page 6: OBIEE Repository Basics by BISP

c)Oracle BI Administration Tool

Administration tool is a windows based client tool or interface to develop/create and manage Metadata repository and the logical star-schemas.Metadata Repository (semantic layer) file contains the Business logic, connections, security configurations etc .It uses ODBC connectivity to connect to data sources

Dashboards are the standard interface for the majority of users and simply containers for reports and other content. It allows multiple reports to be displayed in a tabbed interface. They are Fully interactive, graphical, secure, personalized information dashboards. Guided Analytics capabilities provide intelligent links to aid users in their path to discovery and action.

b)Oracle BI Interactive Dashboards

Page 7: OBIEE Repository Basics by BISP

2.Oracle BI Presentation Services

Oracle BI Presentation Services makes a request to Oracle BI Server to retrieve the requested data by the user. It formats the data and sends it to the client or user.Provides the processing to visualize the information for client consumption Is implemented as an extension to a Web serverUses a catalog to store saved contentReceives data from Oracle BI Server and provides it to the client that requested it.

ClientsOracle BI

Presentation Services

Oracle BI Server

Data Source

Page 8: OBIEE Repository Basics by BISP

3.Oracle BI Server

It is an analysis server providing a calculation and aggregation engine that integrates data from multiple relational, unstructured, OLAP, and other sources. The core server behind Oracle Business Intelligence. Oracle BI Server receives the data from the data sources and processes and passes the data to Oracle BI Presentation Services.

ClientsOracle BI

Presentation Services

Oracle BI Server

Data Source

Page 9: OBIEE Repository Basics by BISP

4.Oracle BI Repository

ClientsOracle BI

Presentation Services

Data Source

Oracle BI Server

Repository

Repository is a place where data are stored and maintained. Each metadata repository can store multiple business models and metadata used by Oracle BI Server. Is accessed and configured using the Oracle BI Administration Tool, which you use to:- Import metadata from databases and other data sources.Simplify and reorganize the metadata into business models.Structure the business model for presentation to users who request information.

Page 10: OBIEE Repository Basics by BISP

ClientsOracle BI

Presentation Services

Oracle BI Server

Data Sources

5.Data Sources

It contain the business data that users want to analyze which is accessed by Oracle BI Server.

Data Sources can be in any format accessed by BI Server such as:Relational databasesOnline analytical processing (OLAP) databasesFlat filesSpreadsheetsXML for Analysis (XMLA)

Page 11: OBIEE Repository Basics by BISP

Data Sources

Data sources are the physical sources where the business data is stored. A connection to the data source is created and then used by Oracle BI. The data source connection can be defined to use native drivers or Open Database Connectivity (ODBC). The method, or protocol, used to access a data source depends on the type of data source.

Page 12: OBIEE Repository Basics by BISP

1.User views a Dashboard or submits an Answer request

2.The Oracle BI Presentation Services makes a request to the Oracle BI Server to retrieve the requested data

3.The Oracle BI Server, using the .rpd file, optimizes functions to request the data from the data sources

4.The Oracle BI Server receives the data from the data sources and processes as necessary

5.The Oracle BI Server passes the data to the Oracle BI Presentation Services

6.The Oracle BI Presentation Server formats the data and sends it to the client

Sample Request Processing

ClientsOracle BI

Presentation Services

Oracle BI Server

Data Source

1 2 3

456

Page 13: OBIEE Repository Basics by BISP

Sample Request Processing

This is a simplified example of how an Oracle BI request is processed. A user accesses a dashboard or submits a request in Answers. The request is received by Oracle BI Presentation Services, which routes the request to Oracle BI Server. Oracle BI Server uses the repository to determine the best way to access the requested data. Then it sends the SQL or other requests to the sources and combines the results or provides further processing.

The Oracle BI Server then sends the data back to Oracle BI Presentation Services, which formats the data as appropriate and sends it to the client for display.

Page 14: OBIEE Repository Basics by BISP

Oracle BI Administration Tool

The Administration Tool is a Windows application that allows the Oracle BI Administrator to create and edit repositories. Exposes the Oracle BI repository as three separate panes, called layers:

Physical layer

Business Model and Mapping layer

Presentation layer

The Administration Tool is a Windows application that allows the Oracle BI Administrator to create and edit repositories. Exposes the Oracle BI repository as three separate panes, called layers:

Physical layer

Business Model and Mapping layer

Presentation layer

Page 15: OBIEE Repository Basics by BISP

Oracle BI Repository

Oracle BI Server stores metadata in repositories.

The Oracle BI Administration Tool has a graphical user interface that allows server administrators to set up these repositories. An Oracle BI Server repository consists of three layers. Each layer appears in a separate pane in the Oracle BI Administration Tool user interface and has a tree structure. You can expand each object to see a list of its components. These layers are not visible to the end user.

Page 16: OBIEE Repository Basics by BISP

Creating Repository and Building Physical layer

To build or create a new Repository you should use the Oracle BI Administration Tool.By importing metadata from databases and other data sources Physical layer is populate and The data sources can be of the same or different varieties. You can import schemas or portions of schemas from existing data sources. During the import process many of the properties of the data sources are configured automatically based on the information gathered.

Page 17: OBIEE Repository Basics by BISP

From start menu you can use the Administration Tool

Start Administration Tool

Page 18: OBIEE Repository Basics by BISP

Write name for new

Repository and save it

Click on file menu and

choose New

Page 19: OBIEE Repository Basics by BISP

When you save the new repository it opens in Administration Tool window which displays the empty layers Presentation Layer, Business Model & Mapping layer and Physical layer and don’t close it.

The name of repository will appear here

Page 20: OBIEE Repository Basics by BISP

After this you need to Create an ODBC Data Source to import schema information about a data source into an Oracle BI Server repository.

So you need to follow these steps.

Click on start menu

1.Start 3.Control Panel 4.Administrative Tools

5.Data Sources (ODBC) where you can select the data sources

Page 21: OBIEE Repository Basics by BISP

Open the ODBC Data Source Administrator and click on system DSN and then Add button to create new data source.

Page 22: OBIEE Repository Basics by BISP

Choose Your Data Source

In the Create New Data Source dialog box, select the Oracle driver Oracle in XE (for oracle Express Edition) and finish it.

Page 23: OBIEE Repository Basics by BISP

Write Your data

Source Name

Configure the data source in Oracle ODBC Driver Configuration dialog box enter a Data Source Name and select the appropriate TNS Service Name from the drop down list then click Test Connection to open the Oracle ODBC Driver Connect dialog box .

Page 24: OBIEE Repository Basics by BISP

In the Oracle ODBC Driver Connect dialog box enter the user name and password and click OK.

Enter User name and Password

to connect with

database

Page 25: OBIEE Repository Basics by BISP

"Testing Connection" message indicating the connection is successful. You need to see the message Connection Successful.

Page 26: OBIEE Repository Basics by BISP

Now it shows your data source

Now it shows your data source which you have chosen Close Oracle ODBC Driver Configuration dialogue box and ODBC Data Source Administrator

Page 27: OBIEE Repository Basics by BISP

Now you should back on the Administrative tool and click on File choose Import from database to get your data source.

Page 28: OBIEE Repository Basics by BISP

Now in select data source dialog box select your data source name and Enter username and password click ok

Page 29: OBIEE Repository Basics by BISP

So after selecting the data source you will get the import dialog box to select the database/databases and expand it.

Page 30: OBIEE Repository Basics by BISP

Select the tables with Ctrl + Click and click on the import button When the Import process completes, click Close to close the Import dialog box .

You Should Check that only the Tables and Keys checkboxes are selected, which is the default

Page 31: OBIEE Repository Basics by BISP

Now the database imported to the physical layer of repository and check that the tables which imported were correct.

Tables which are selected and imported to physical layer you can see .

Page 32: OBIEE Repository Basics by BISP

In the Physical layer of the repository Create Physical Joins right click the Sales schema folder and select Physical Diagram ----> Object (s) and All Joins.

Page 33: OBIEE Repository Basics by BISP

In physical diagram rearrange the tables so they are all visible in the Physical Diagram.

Page 34: OBIEE Repository Basics by BISP

Click the New Foreign Key button on the toolbar Click the Product table and then the FACT_SALES table. The Physical Foreign Key dialog box opens. Continue to create the joins.

Primary key

Foreign key

Check the join expression is: CHANNELS.CHANNEL_ID = SALES.CHANNEL_ID

Page 35: OBIEE Repository Basics by BISP

It matters which table you click first the join is creating 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. The Administration Tool automatically determines which columns should be included in the join.

Click OK to close the Physical Foreign Key dialog box. The join between Product and FACT_SALES is displayed in the Physical Diagram.

Page 36: OBIEE Repository Basics by BISP

Check that relationship between dimension table and FACT table is always one-to-many (1:N). And check that more than one fact tables are not in the physical layer. This diagram in the snow flake schema.

This is Physical Diagram of Schema Fact_Sales

Page 37: OBIEE Repository Basics by BISP

Select File to Save or click the Save button on the toolbar to save the repository and don`t check the global consistency.

Page 38: OBIEE Repository Basics by BISP

Leave the Administration Tool and the SALES repository open for the next modeling

So your new

repository is created

Page 39: OBIEE Repository Basics by BISP

To Build the Business Model and Mapping Layer of a Repository Drag and drop the schema from physical layer to Business model and Mapping layer

Page 40: OBIEE Repository Basics by BISP

Check that all the tables were same as Physical layer and specially fact table

Fact Table

Page 41: OBIEE Repository Basics by BISP

Right click on the table sales select Business Model Diagram -----> Whole Diagram

Page 42: OBIEE Repository Basics by BISP

In this layer you can customize the database and tables you can add more tables or delete those tables which are not required for modeling. Here in the SALES schema Region table is merged into STORE table.

Region Table Merged into Store Table

Page 43: OBIEE Repository Basics by BISP

So this is the look of Logical Table Diagram for the Business modeling and Mapping layer

So after joining both tables shown together in sources in the logical table Dialog Box

Page 44: OBIEE Repository Basics by BISP

Building the Presentation Layer of Repository

Drag the SALES business model from the Business Model and Mapping layer to the Presentation layer to create the SALES catalog in the Presentation layer.

Page 45: OBIEE Repository Basics by BISP

Expand the SALES catalog in the Presentation layer. Notice that the tables and columns in the Presentation layer exactly match the tables and columns in the Business Model and Mapping layer. Save the repository and Do not check global consistency

Page 46: OBIEE Repository Basics by BISP

Testing and Validating a Repository After Building the business model and Presentation layer you need to test the repository begin by checking the repository for errors using the Check Global Consistency option.

Run a Consistency Check

Click on the File Menu go to Check Global Consistency and click on it

Page 47: OBIEE Repository Basics by BISP

The Consistency Check Manager displays three types of messages

1.Error messages indicate errors that need to be fixed to make the repository consistent.

2.Warning messages indicate conditions that may or may not be errors, depending upon the intent of the Oracle BI Server administrator.

3.Best Practices messages provide information about conditions but do not indicate an inconsistency.

Page 48: OBIEE Repository Basics by BISP

The Consistency Check ManagerFor each message the Consistency Check Manager identifies the message type, the object type , the object and provides a detailed description of the message. There are options to display only selected message types, display results using qualified names check all objects in the repository and copy the results to another file.

Page 49: OBIEE Repository Basics by BISP

Before Global Consistency Check the red mark appear on the schema in Business Model and mapping Layer

After Global Consistency Check the red mark disappear on the schema in Business Model and mapping Layer means consistency check Completed

Page 50: OBIEE Repository Basics by BISP

To test your RPD its necessary to write your RPD file name in the NQSConfig.ini file which located in \OBIEE_SERVER\server\Config and save it

Here you need to write / change

your RPD name in NQSConfig.ini file

as shown

This is the NQSConfig file in which you need

to write your rpd name

Page 51: OBIEE Repository Basics by BISP

Use Oracle BI Answers to Execute Queries

Start >

Programs >

Oracle Business Intelligence >

Presentation Services.

You need to start or restart all your services Oracle BI Server, Oracle BI Presentation Server and Oracle BI Java Host services and also your data source properly.

Page 52: OBIEE Repository Basics by BISP

Log in to Oracle Business Intelligence as Administrator

Page 53: OBIEE Repository Basics by BISP

After login to OBI Click the Answers link in the Dashboard

Click on SALES in the subject areas it shows your RPD

Page 54: OBIEE Repository Basics by BISP

Click on the column name in selection pane to select the column

Selected Columns appear here

Page 55: OBIEE Repository Basics by BISP

This is the Result for those Columns which are selected

Click on the Results tab to get result for selected columns

Column Name which are selected

Page 56: OBIEE Repository Basics by BISP

THANK YOU

To learn more about OBIEE http://learnhyperion.wordpress.com