View
224
Download
0
Category
Preview:
Citation preview
8/6/2019 1390 03 10 OBIEE Repository Basics
1/56
Created By : Hitesh Mankar
Reviewed By: Amit Sharma
Contact Point :bisp.consulting@gmail.com
Oracle BI Creating Repository
8/6/2019 1390 03 10 OBIEE Repository Basics
2/56
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
8/6/2019 1390 03 10 OBIEE Repository Basics
3/56
Oracle BI Architecture Components
Relationships between architecture components
1. Clients
2. Oracle BI Presentation Services
3. Oracle BI Server
4. Oracle BI repository5. Data sources
Clients
Oracle BI
PresentationServices
Oracle BI
ServerData
Source
8/6/2019 1390 03 10 OBIEE Repository Basics
4/56
1.Clients
Provide 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
8/6/2019 1390 03 10 OBIEE Repository Basics
5/56
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
8/6/2019 1390 03 10 OBIEE Repository Basics
6/56
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
8/6/2019 1390 03 10 OBIEE Repository Basics
7/56
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 server
Uses a catalog to store saved content
Receives data from Oracle BI Server and provides it to the client that
requested it.
Clients
Oracle BI
Presentation
Services
Oracle BI
Server
Data
Source
8/6/2019 1390 03 10 OBIEE Repository Basics
8/56
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.
Clients
Oracle BI
Presentation
Services
Oracle BI
Server
Data
Source
8/6/2019 1390 03 10 OBIEE Repository Basics
9/56
4.Oracle BI Repository
Clients
Oracle 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.
8/6/2019 1390 03 10 OBIEE Repository Basics
10/56
Clients
Oracle 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) databases
Flat files
Spreadsheets
XML for Analysis (XMLA)
8/6/2019 1390 03 10 OBIEE Repository Basics
11/56
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.
8/6/2019 1390 03 10 OBIEE Repository Basics
12/56
1.User views a Dashboard or submits an Answer request2.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 tothe client
Sample Request Processing
Clients
Oracle BI
Presentation
Services
Oracle BI
Server
Data
Source
1 2 3
456
8/6/2019 1390 03 10 OBIEE Repository Basics
13/56
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 todetermine 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 BIPresentation Services, which formats the data as appropriate and
sends it to the client for display.
8/6/2019 1390 03 10 OBIEE Repository Basics
14/56
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
8/6/2019 1390 03 10 OBIEE Repository Basics
15/56
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 BIServer 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.
8/6/2019 1390 03 10 OBIEE Repository Basics
16/56
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 ordifferent 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.
8/6/2019 1390 03 10 OBIEE Repository Basics
17/56
From start menu you can use the Administration Tool
Start Administration Tool
8/6/2019 1390 03 10 OBIEE Repository Basics
18/56
Write name
for new
Repository
and save it
Click on file
menu and
choose New
8/6/2019 1390 03 10 OBIEE Repository Basics
19/56
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 dont close
it.
The name of repository will
appear here
8/6/2019 1390 03 10 OBIEE Repository Basics
20/56
After this you need to Create an ODBC Data Source to import
schema information about a data source into an Oracle BI Serverrepository.
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
8/6/2019 1390 03 10 OBIEE Repository Basics
21/56
Open the ODBC Data Source Administrator and click on system
DSN and then Add button to create new data source.
8/6/2019 1390 03 10 OBIEE Repository Basics
22/56
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.
8/6/2019 1390 03 10 OBIEE Repository Basics
23/56
Write Your
data
SourceName
Configure the data source in Oracle ODBC Driver Configuration
dialog box enter a Data Source Name and select the appropriate TNSService Name from the drop down list then clickTest Connection to
open the Oracle ODBC Driver Connect dialog box .
8/6/2019 1390 03 10 OBIEE Repository Basics
24/56
In the Oracle ODBC Driver Connect dialog box enter the user
name and password and click OK.
Enter User
name andPassword
to connect
with
database
8/6/2019 1390 03 10 OBIEE Repository Basics
25/56
"Testing Connection" message indicating the connection is
successful. You need to see the message ConnectionSuccessful.
8/6/2019 1390 03 10 OBIEE Repository Basics
26/56
Now it
shows your
data source
Now it shows your data source which you have chosen Close
Oracle ODBC Driver Configuration dialogue box and ODBCData Source Administrator
8/6/2019 1390 03 10 OBIEE Repository Basics
27/56
Now you should back on the Administrative tool and click on
File choose Import from database to get your data source.
8/6/2019 1390 03 10 OBIEE Repository Basics
28/56
Now in select data source dialog box select your data
source name and Enter username and password click ok
8/6/2019 1390 03 10 OBIEE Repository Basics
29/56
So after selecting the data source you will get the import
dialog box to select the database/databases and expand it.
8/6/2019 1390 03 10 OBIEE Repository Basics
30/56
Select the tables with Ctrl + Click and click on the import button
When the Import process completes, click Close to close theImport dialog box .
You Should Check that only
the Tables and Keys
checkboxes are selected,
which is the default
8/6/2019 1390 03 10 OBIEE Repository Basics
31/56
Now the database imported to the physical layer of
repository and check that the tables which imported werecorrect.
Tables which are
selected andimported to physical
layer you can see .
8/6/2019 1390 03 10 OBIEE Repository Basics
32/56
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.
8/6/2019 1390 03 10 OBIEE Repository Basics
33/56
In physical diagram rearrange the tables so they are all visible
in the Physical Diagram.
8/6/2019 1390 03 10 OBIEE Repository Basics
34/56
Click the New Foreign Key button
on the toolbar Click the Producttable 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
8/6/2019 1390 03 10 OBIEE Repository Basics
35/56
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 PhysicalDiagram.
8/6/2019 1390 03 10 OBIEE Repository Basics
36/56
Check that relationship between dimension table and FACT table isalways 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
8/6/2019 1390 03 10 OBIEE Repository Basics
37/56
Select File to Save or click the Save button on the toolbar to save
the repository and don`t check the global consistency.
8/6/2019 1390 03 10 OBIEE Repository Basics
38/56
Leave the Administration Tool and the SALES repository
open for the next modeling
So your
new
repository
is created
8/6/2019 1390 03 10 OBIEE Repository Basics
39/56
To Build the Business Model and Mapping Layer of a
Repository Drag and drop the schema from physical layer toBusiness model and Mapping layer
8/6/2019 1390 03 10 OBIEE Repository Basics
40/56
Check that all the tables were same as Physical layer and
specially fact table
Fact Table
8/6/2019 1390 03 10 OBIEE Repository Basics
41/56
Right click on the table sales select Business Model Diagram
-----> Whole Diagram
8/6/2019 1390 03 10 OBIEE Repository Basics
42/56
In this layer you can customize the database and tables you
can add more tables or delete those tables which are notrequired for modeling. Here in the SALES schema Region
table is merged into STORE table.Region
Table
Merged
into StoreTable
8/6/2019 1390 03 10 OBIEE Repository Basics
43/56
So this is the look of Logical Table Diagram for the Business
modeling and Mapping layer
So after joining
both tables
showntogether in
sources in the
logical table
Dialog Box
8/6/2019 1390 03 10 OBIEE Repository Basics
44/56
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.
8/6/2019 1390 03 10 OBIEE Repository Basics
45/56
Expand the SALES catalogin the Presentation layer.
Notice that the tables and
columns in the
Presentation layer exactly
match the tables andcolumns in the Business
Model and Mapping layer.
Save the repository and
Do not check global
consistency
8/6/2019 1390 03 10 OBIEE Repository Basics
46/56
Testing and Validating a Repository
After Building the business model and Presentation layer youneed 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 onit
8/6/2019 1390 03 10 OBIEE Repository Basics
47/56
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 messagesindicate 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.
8/6/2019 1390 03 10 OBIEE Repository Basics
48/56
The Consistency Check Manager
For each message theConsistency Check
Manager identifies the
message type, the object
type , the object and
provides a detaileddescription of the
message. There are
options to display only
selected message types,
display results usingqualified names check all
objects in the repository
and copy the results to
another file.
8/6/2019 1390 03 10 OBIEE Repository Basics
49/56
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
8/6/2019 1390 03 10 OBIEE Repository Basics
50/56
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
8/6/2019 1390 03 10 OBIEE Repository Basics
51/56
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, OracleBI Presentation Server and Oracle BI Java Host services and also
your data source properly.
8/6/2019 1390 03 10 OBIEE Repository Basics
52/56
Log in to Oracle Business Intelligence asAdministrator
8/6/2019 1390 03 10 OBIEE Repository Basics
53/56
After login to OBI Click theAnswers link in the Dashboard
Click on SALES in the subject areas it shows your RPD
8/6/2019 1390 03 10 OBIEE Repository Basics
54/56
Click on the column name in selection pane to select the column
Selected Columns appear here
8/6/2019 1390 03 10 OBIEE Repository Basics
55/56
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
8/6/2019 1390 03 10 OBIEE Repository Basics
56/56
THANK YOU
To learn more about OBIEE
http://learnhyperion.wordpress.com
Recommended