RPD Modeling

Embed Size (px)

Citation preview

  • 7/31/2019 RPD Modeling

    1/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    ContentsTable of Contents

    Contents .................................................................................................................... 1 Prerequisites ............................................................................................................... 2

    Oracle BI Server: Overview .............................................................................................. 2

    Oracle BI Server: Repository............................................................................................. 3

    Oracle BI Server: (Accessing BI Server Information by other Applications) ..................................... 3

    Oracle BI Administration Tool ........................................................................................... 7

    Summary .................................................................................................................. 69

    Thank You ................................................................................................................. 69

  • 7/31/2019 RPD Modeling

    2/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Purpose

    This tutorial shows you how to use the Oracle BI Administration Tool to build, modify,enhance, and manage an Oracle BI repository.

    Duration

    8 Hours

    Sections Covered in this Presentation

    The following topics are covered in this presentation:

    Oracle BI Server OverviewRepositoryOracle BI Administration Tool

    o Physical Layer o Business Model and Mapping Layer o Presentation Layer

    Summary

    Prerequisites

    - Access to the OBIEE Administration Tool on the OBIEE server machine oncompany Domain or Amazon Instance.

    - Access to OBIEE Answers and Dashboards on OBIEE server machine oncompany Domain or Amazon Instance.

    Oracle BI Server: Overview

  • 7/31/2019 RPD Modeling

    3/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Oracle BI Server provides the common business model and abstraction layer for the analytics applications like BI Answers and Dashboards.

    It supports access to multiple data sources, including relational databases(Oracle, SQL Server, and so on), OLAP sources (Analysis Services, OracleOLAP) and offline sources (Excel, XML, and so on).It performs two primary functions:

    1 Compiling incoming Logical query requests into executable physicalquery

    2 Returning the results from the physical sources back to analyticsapplications

    Clients of Oracle BI Server see a logical schema view independent of the sourcephysical database schemas.It exposes its services through a standard

    ODBC 2.0 compliant interface.It also has necessary server infrastructure such as session and querymanagement, cancellation, statistics logging, monitoring, and other server administration functions.

    Oracle BI Server: Repository

    The Oracle BI Server stores metadata in repositories. This provides acentralized, consistent definition of measures for all users.The repository is the output file of Oracle BI Server Administration Tool. The repository is read into memory by Oracle BI Server upon startup and itprovides the hints and rules to optimize the SQL generated by Oracle BI Server.

    Oracle BI Server: (Accessing BI Server Information by otherApplications)

    Oracle BI Server presents itself to other applications as an ODBC 2.0 datasource.This means that virtually any ODBC-capable report writer or query tool can useOracle Analytics as if it were a database.

    Oracle BI Server: Basic Configuration Files and settings

    Location of Repository (.rpd) file:\OracleBI\server\Repository\

  • 7/31/2019 RPD Modeling

    4/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    In our case, we will be creating a new rpd file called samplesales_ex.rpd

    Location of NQSConfig.INI file (BI Server Configuration file):

    \OracleBI\server\Config\ NOTE: In the NQSConfig.INI file, you specify the active rpd file. Open this file in aNotepad as follows:

    In the [REPOSITORY], section, you see that samplesales_ex.rpd is the default rpd, asall other rpd files have been commented out by the # symbol at the beginning of theline.

    NOTE2: If you change the active rpd in this file, you will have to restart the BI server for it to take effect. You can do this as follows:

    Click Windows Start -> Control Panel -> Administrative Tools -> Services . You willget the Services window as follows:

  • 7/31/2019 RPD Modeling

    5/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Locate the Oracle BI Server service and click on Restart the service on the left side.

    Location of Web Catalog Folder:\OracleBIData\server\Repository\

    In our case, the folder will be called samplesales_ex

    Location of instanceconfig.xml file (BI Presentation Services Configuration file):\OracleBIData\web\Config\

    NOTE: In the instanceconfig.xml file, you specify the active presentation Web CatalogFolder. Open this file in a Notepad as follows:

  • 7/31/2019 RPD Modeling

    6/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Here, in the element, you specify the location of the Web Catalog to beused. In this case, the folder is samplesales_ex as shown above.

    NOTE2: If you change the active Web Catalog Folder in this file, you will have to restartthe BI Presentation services for it to take effect. You can do this as follows:

    Click Windows Start -> Control Panel -> Administrative Tools -> Services . You willget the Services window as follows:

  • 7/31/2019 RPD Modeling

    7/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Locate the Oracle BI Presentation Server service and click on Restart the service onthe left side.

    Oracle BI Administration Tool

    Oracle BI Administration Tool: Overview

    Oracle BI Administration Tool is a Windows application that is used by an OracleBI Server administrator to build, modify, enhance, and manage an Oracle BIrepository.The repository stores the business intelligence metadata that is used by

    Answers, Dashboards and BI Publisher clients.It exposes the BI repository into three separate panes called layers

    Physical Layer Business Model Layer Presentation Layer

    Oracle BI Administration Tool: Three Layers

  • 7/31/2019 RPD Modeling

    8/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    When you open an RPD in the Administration Tool, it displays the following 3 layers:

    1. Physical layer

    To import metadata from databases and other data sources into thePhysical layer

    To specify Physical joins between Fact and Dimension tables.

    2. Business Model/Mapping layer To simplify and reorganize the imported metadata into business

    models Contains logical columns arranged in logical tables, logical joins,

    and dimensional hierarchy definitions. Contains the mappings from the logical columns to the source data

    in the Physical layer.

    3. Presentation layer Structure the business model for presentation to users who request

    business intelligence information via clients such as Oracle BI Answers and Interactive Dashboards

    Oracle BI Administration Tool: Building the Physical Layer

  • 7/31/2019 RPD Modeling

    9/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    To build the Physical layer, you perform the following steps: Create a new Repository

    Create an ODBC Data Source/or Native Data Source(Whichever is applicable in your case?) Import Metadata into the Physical Layer Create Aliases as needed Create Physical Keys and Joins

    - Create a New RepositoryNOTE: We will be creating the new repository file and working on it in offlinemode.

    Stop the Oracle BI Server if it is running: Click Start > Programs > Administrative Tools > Services In the Services dialog box, stop the Oracle BI Server service as shown

    below:

    Click Start > All Programs > Oracle Business Intelligence > Administrationto open the Oracle BI Administration Tool.

    Click File > New to open the New Repository dialog box as shown:

    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html
  • 7/31/2019 RPD Modeling

    10/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    In the New Repository dialog box, the Repository folder is selected bydefault. By default, the file name is Metadata1.rpd. Name the file tosamplesales_ex.rpd

  • 7/31/2019 RPD Modeling

    11/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Click Save. The new repository opens in the Administration Tool anddisplays three empty layers

    Create an ODBC Data Source /or Native Data Source

    - Some Databases may be accessed using Native APIs, some using ODBC. - In this example, we will be using the Oracle Native Call Interface (OCI 10g/11g)

    Driver, so there is no need to create ODBC Data Source on the system.- Ensure the Native Data Source exists and works fine.- For that, if Oracle Client is installed on you machine, navigate to the Oracle

    Client Install folder. In this case it is as shown below:

  • 7/31/2019 RPD Modeling

    12/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Open the tnsnames.ora file to see its contents as shown:(It should have the tnsnames.ora stanza ( xxew in our case) that points to theDatabase that we are going to import tables/views from:

    - Import Metadata into the Physical Layer

    - Select File > Import > from Database as shown:

  • 7/31/2019 RPD Modeling

    13/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - It displays the Select Data Source window as shown:

    - Here, select OCI 10g/11g in the Connection Type drop down list and enter thefollowing details for all the other fields as shown below:

  • 7/31/2019 RPD Modeling

    14/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click OK. You will get the Import window listing out the Schemas in this DB.Select the schema xxew as shown below (click on the + icon to expand andshow all the DB objects in the schema:

  • 7/31/2019 RPD Modeling

    15/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: As you can see from the above figure, we have selected Tables, Keys, Viewsand Foreign Keys to be shown here.

    - Select all the tables that you need to import into the rpd (select multipletables/views by pressing Ctrl key). We will be importing:

    CustomerEmployeeMarketOrdersProductSegmentTime_DateTime_Month

    FactsInvFactsRev

    - Click Import. You will get the Connection Pool Properties Window as shownbelow:

    NOTE: A Connection Pool provides connections for multiple concurrent datasource requests (queries). They automatically queue connection requests whenthey exceed connection pool limits.

  • 7/31/2019 RPD Modeling

    16/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Leave all the values to their defaults and click OK. You will see the Importing

    screen till all objects are imported. Once done, click Close to close the ImportWindow. You will see a new Database object in the Physical layer called xxew as shown below:

  • 7/31/2019 RPD Modeling

    17/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Double click the Database xxew. You will get the Database Properties Window.

    Change the Name field to Sample Sales DS (DB) as shown below:

  • 7/31/2019 RPD Modeling

    18/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Double click the Physical Schema XXEW. You will get the Physical SchemaProperties - XXEW window. Rename the schema to the required name so youare able to identify the source of the data. NOTE: We will be leaving it as it is:

    - Save the repository by clicking on the Save button on top Toolbar:

    - You will get the Check global consistency window as shown:

  • 7/31/2019 RPD Modeling

    19/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click Yes.- You will get a warning message indicating that the Administrator use does not

    have a password. Click close on the Consistency Checker Window:

  • 7/31/2019 RPD Modeling

    20/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - To get rid of this warning, Click Manage -> Security . Select Users in the list andyou will see Administrator user in the right pane. Double click on the

    Administrator user. You will the User Properties window as shown:

  • 7/31/2019 RPD Modeling

    21/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Here, in the Password and Confirm Password fields, enter Administrator .Click OK. Close the Security Manager Window.

    - To verify that that connection pool is pointing to the right instance and valid, rightclick on any of the table. From the popup menu, select Update Row Count asshown:

  • 7/31/2019 RPD Modeling

    22/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - You should get the number of records in the table next to the table name inbrackets as shown:(This indicates that the connection pool is fine and is able to reach the databaseto fetch the DB Objects Metadata)

    NOTE: If the row counts are not visible, follow these steps so that row counts are

    always displayed in the Physical Layer:Click Tools -> Options menu and select the General Tab. Ensure that the Show rowcount in physical view item is checked as shown below:

  • 7/31/2019 RPD Modeling

    23/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE2: You cannot update row counts for some data sources like Access or Excel.

    Create Aliases as needed

    - Aliases are created in the Physical Layer before creating the Physical Joinsbetween the tables. This is done so that:

    o Any specific Naming Conventions can be followed (Create aliases basedon your companys naming conventions or a convention that makesindentifying, organizing and managing Fact an Dimension Tables easy)

    o To avoid circular Joins. Ex: If you have Ordered Date and Shipped Date inthe fact table, you will need to create 2 aliases of the Dates table one for Ordered Date and the other for Shipped Date.

  • 7/31/2019 RPD Modeling

    24/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Right click on the Customer Table and select New Object -> Alias from thePopup menu. In the Alias Physical Table window, Enter the name Dim Customer in the Name field and click OK:

    -

    - You will see the new Alias for Customer table in the Physical layer as shown:

  • 7/31/2019 RPD Modeling

    25/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: The convention that we are following is Append Dim before the DimensionTables and Fact before the Fact tables. There might be many more namingconventions and standards which you could follow.

    - Similarly create aliases for all the Original tables in the Physical Layer. You willget as below:

    Create Physical Keys and Joins

    - The next step is to create the Physical Joins between Fact Table/s andDimension Tables. (So that they form a Star Schema as discussed in the InitialTutorial).

    - Let us first create the star schema for the Revenue Fact (Fact FACTSREV).Select this fact and all the Dimension tables that will be joined to it as shownbelow and right click on the selection. From the Popup menu, select PhysicalDiagram -> Selected Object(s) Only as shown below:

  • 7/31/2019 RPD Modeling

    26/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - It opens the Physical Diagram window as shown:

  • 7/31/2019 RPD Modeling

    27/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: If the Zoom level here is too big, you can reduce it to 75% or 50% etc by rightclicking in this window and selecting the Zoom menu item as shown:

    - Now to create a Physical Join between Dim Customer and Fact FACTSREV,click once on the New foreign key button on the toolbar as shown below:

  • 7/31/2019 RPD Modeling

    28/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Then Click once on the Dim Employee table and then click on Fact FACTSREV table as shown below:

  • 7/31/2019 RPD Modeling

    29/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - You will get the Physical Foreign Key window as shown:

  • 7/31/2019 RPD Modeling

    30/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Here, click on CUST_KEY on the left list box (for Dim CUSTOMER) andCUST_KEY in the right list box (for Fact FACTSREV). The Join expression willbe shown in the Expression box as shown above.

    - Click OK. You will get the following message:

    - Click Yes.

  • 7/31/2019 RPD Modeling

    31/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: This will automatically create CUST_KEY as the Primary Key in the Dim CUSTOMER table.

    - You will see that the Join between the 2 tables has been created as shown:

    - Similarly Create the following Joins for the other tables:

    "Dim - TIME_MONTH".ROW_WID = "Fact - FACTSREV".BILL_MTH"Dim - TIME_DATE".ROW_WID = "Fact - FACTSREV".BILL_DT"Dim - ORDERS".ORDER_KEY = "Fact - FACTSREV".ORDER_KEY"Dim - PRODUCT".PROD_KEY = "Fact - FACTSREV".PROD_KEY"Dim - MARKET".MKT_KEY = "Fact - FACTSREV".MKT_KEY"Dim - EMPLOYEE".EMPLOYEE_KEY = "Fact - FACTSREV".SREP_KEY

    - Finally you will get the following Star Schema:

  • 7/31/2019 RPD Modeling

    32/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Similarly, create the Inventory Star schema by selecting the following tables:

    - And creating the following joins:

  • 7/31/2019 RPD Modeling

    33/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    "Dim - TIME_MONTH".ROW_WID = "Fact - FACTSINV".PER_MTH"Dim - MARKET".MKT_KEY = "Fact - FACTSINV".MKT_KEY"Dim - PRODUCT".PROD_KEY = "Fact - FACTSINV".PROD_KEY

    - You will the get the following Star Schema:

    - Save the rpd file.

    Oracle BI Administration Tool: Business Model and Mapping Layer(NOTE: Business Model and Mapping Layer is also referred to as BMM Layer)

    To create a new Business Model and Mapping Layer:

    Create a Business Model Create/Drag in Logical Tables Create/Ensure that the Logical Joins are in place Rename Business Model Objects Delete Unnecessary Business Model Objects Create simple Measures - Set Fact Measure Aggregates

    Create a Business Model

    In the Business Model and Mapping Layer, right click the white space and selectNew Business Model as shown:

    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.htmlhttp://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html
  • 7/31/2019 RPD Modeling

    34/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - The Business Model window will be shown. Enter the name for the NewBusiness Model as RevInv DB BM , and give some description as shown:

    - Click OK to close this dialog box. You will see the new (empty) business modelas shown:

  • 7/31/2019 RPD Modeling

    35/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: The red symbol on the business model indicates it is not yet enabled for

    querying. We will enable the business model for querying later after the Presentationlayer is defined for this Business Model and the repository passes a global consistencycheck.

    Create/Drag in Logical Tables

    - Drag and drop the required Physical Tables to the newly created BusinessModel Folder as shown:

    NOTES:- Fact Tables are Yellow in color.- Dimension Tables are White in color as shown above.

    Create/Ensure that Logical Joins are in place

  • 7/31/2019 RPD Modeling

    36/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - To view the logical Joins at the BMM Level, right click the Fact table Fact FACTSREV and from the popup menu select Business Model Diagram ->

    Selected Tables and Direct Joins as shown below:

    - You will get the Logical Table Diagram window as shown:

  • 7/31/2019 RPD Modeling

    37/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: This might not be the case sometimes. In this case, since we dragged in allthese tables in one go from the Physical Layer, based on the Physical Joins, the BI

    Admin tool automatically created the Logical Joins correctly.If you drag and drop objects individually, you will have to manually create the Logical

    Joins.We will see this in the next section.

    Drag and drop the fact table Fact FACTSINV from the Physical layer to the BMM asshown:

  • 7/31/2019 RPD Modeling

    38/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Now check if the logical Joins are in place. Select Fact FACTSINV , Dim Time_MONTH , Dim PRODUCT , Dim MARKET from the BMM and right clickon the selection . From the popup menu select Business Model Diagram ->Selected Tables and Direct Joins as shown below:

  • 7/31/2019 RPD Modeling

    39/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: We have selected these tables because we know that all of them are joinedtogether as part of one Star in the Physical Layer.

    - In the Logical Table Diagram we see this:(NOTE : You see that there is no Logical Join on this Fact to any of theDimensions)

  • 7/31/2019 RPD Modeling

    40/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - To create Logical Joins, Click once on the New complex join button on thetoolbar as shown:

    - Now click on the Dim PRODUCT table once and then click on Fact FACTSINV table as shown:

  • 7/31/2019 RPD Modeling

    41/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - You will get the Logical Join Window as shown:

    NOTE: As seen from the above screen, in the logical joins, we dont specify anycolumns, but just the type of join (1-1, 1-N or N-N) between the tables. We can also

  • 7/31/2019 RPD Modeling

    42/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    specify which is the Driving table and what kind of join is needed (Inner, Left Outer,Right Outer, Full Outer) etc depending on your special requirements.

    - For now just accept the default settings and click OK. You will see the LogicalJoin has been created between the two tables as shown:

    - Similarly, create the remaining 3 joins as well and you should get the following:

    - Do a global consistency check from File -> Check Global Consistency as shown:

  • 7/31/2019 RPD Modeling

    43/69

  • 7/31/2019 RPD Modeling

    44/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Now if you do the consistency check again, you will get the following:

    - Click Yes and close the Consistency Check Manager window that pops up next.

    NOTE: You will see that the RevInv DB BM folder has changed from

    to indicating that it is now available for quires.

    Rename Business Model Objects

    - Now, give meaningful names to Tables and Columns that the Users/Businessunderstand.

    - We will use the Rename Wizard to rename all the selected Objects in the BMMlayer in one go.

    - Click Tools > Utilities . You will get the following window as shown:

  • 7/31/2019 RPD Modeling

    45/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - In the Utilities dialog box, click Rename Wizard and then Execute as shown:

    - You will get the Rename Wizard as shown below. Here, click the BusinessModel and Mapping tab and select the RevInv DB BM business model (expandit). Select all the objects (Tables) there and click the Add Heirarchy button asshown:

  • 7/31/2019 RPD Modeling

    46/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click Next button.

    - You will get the next screen as shown:

  • 7/31/2019 RPD Modeling

    47/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Leave the default settings and click Next. In the next screen, specify the rules for renaming as shown:

    - Select All text lowercase and click Add as shown:

    - You will get:

  • 7/31/2019 RPD Modeling

    48/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click Change specified text . In the Find box, type an underscore. In theReplace box, type a space as shown:

    - Click Add. You will get:

  • 7/31/2019 RPD Modeling

    49/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click First letter of each word capital and click Add as shown :

    - Click Next. In the Finish screen, review the objects that are to be renames and

    click Finish as shown:

  • 7/31/2019 RPD Modeling

    50/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - You will see that all the selected objects in the BMM have been renamed

    according to the specified rules:

  • 7/31/2019 RPD Modeling

    51/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Now rename the Tables (or columns) manually if you feel the need to. Here wewill be renaming few of the Table names as follows:

  • 7/31/2019 RPD Modeling

    52/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Delete Unnecessary Business Model Objects

    - Now you can delete any of the columns or objects that will not be used in thePresentation Layer.

    Creating Simple Measures:Set Fact Measure Aggregation rules

    - In the BMM, you need to specify the Aggregation rule for all the MeasureColumns that are there in the various Fact Tables.

    - In our case, we have 2 fact tables now: Fact Inventory (with one measure:Value) and Fact Revenue (with 2 measures: Dollars and Units). All the 3measures are highlighted below:

  • 7/31/2019 RPD Modeling

    53/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - In order to specify the Aggregation rule, double click on the measure (Dollars). Inthe Logical Column Window that opens, select the Aggregation Tab. Select Sumin the Default Aggregation rule drop down list as shown:

  • 7/31/2019 RPD Modeling

    54/69

  • 7/31/2019 RPD Modeling

    55/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Save the Repository.

    Oracle BI Administration Tool: Building the Presentation Layer

    The Presentation Layer adds one more level of abstraction over the BusinessModel and Mapping Layer .It is the view of the data seen by end users in client tools and applications, suchas Oracle BI Answers and Dashboards .

    To build the Presentation layer follow these steps:

    - Delete the RevInv DB BM Presentation Catalog that is there already in thePresentation Layer:

  • 7/31/2019 RPD Modeling

    56/69

  • 7/31/2019 RPD Modeling

    57/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click OK. You will see the empty Revenue Subject Area as shown below:

  • 7/31/2019 RPD Modeling

    58/69

  • 7/31/2019 RPD Modeling

    59/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click on the table you want to move up or down and click the Up or Down buttonat the bottom to move them up/down etc. Click OK to close the window.

    - Also, ensure that the column names are ordered in the Alphabetical order (ascending) as shown below:

  • 7/31/2019 RPD Modeling

    60/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    NOTE: All objects within a presentation catalog must derive from a single BusinessModel.

    - Save the repository.- Rename Presentation Columns: You can rename columns in the Presentation

    Layer Tables. This will not affect the Logical Column Source. Open Dim Product Table in the Revenue Subject Area and double click Size 1 column.

    - You will get Presentation Column Size 1 Properties window. Here, uncheckthe Use Logical Column Name check box and enter Size in the Name fieldas shown:

  • 7/31/2019 RPD Modeling

    61/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    .- Click OK. The column will be renamed in the Presentation Layer.- Rename Presentation Tables: You can rename Tables in the Presentation layer

    so users can get a more business friendly (or User Group Specific Name).Double click Dim Period Date . You will get the Presentation Table DimPeriod Date Properties window. Here, in the Name field, enter Dim Date asshown:

    - Similarly, rename Dim Period Month to Dim Month .- Save the repository.

    Now you have created the first iteration of the Repository File in the BI AdministrationTool. Now you are ready to test the Repository.

  • 7/31/2019 RPD Modeling

    62/69

  • 7/31/2019 RPD Modeling

    63/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Enable Query Logging for the Administrator user

    Query activity will be logged at the individual user level. It is useful for testing,debugging and Technical support. In production mode, generally it is disabled due toperformance reasons.

    - Select Manage -> Security . In the left pane, select Users . You will see Administrator user in the right pane. Double click Administrator and the user dialog box opens. In the User tab, enter the value 2 for Logging level as shown:

    - Click OK and close the Security Manager.- Save the repository.

    Create an Answers request

  • 7/31/2019 RPD Modeling

    64/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    Log in to the Oracle BI Answers: Click Start -> Programs -> Oracle BusinessIntelligence -> Presentation Services . You will get the Answers login screen and login using Administrator user name and same password as shown:

    NOTE: the URL is: http://localhost:9704/analytics/saw.dll?Answers

    This will take you to directly to the Oracle BI Answers. If not you can click on the Answers link on the top right as shown:

    Answers screen:

    NOTE: The Description Revenue Subject Area for the Presentation Folder Revenue isshown here at the bottom of the Subject Area name.

  • 7/31/2019 RPD Modeling

    65/69

  • 7/31/2019 RPD Modeling

    66/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click OK. Similarly add a filter of 2008 on the Per Name Year column.- Delete the Per Name Year column from the request as shown below by clicking

    on the Remove column button:(We used this column just to add the filter).

    - Rearrange the columns by dragging and dropping them so that you get thefollowing:

  • 7/31/2019 RPD Modeling

    67/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - Click on Display Results to view the results. You will see the results as shown:

  • 7/31/2019 RPD Modeling

    68/69

    BI Administration Tool User Training

    _________________________________________________________________________________________

    - With this, we have been able to run and see results for our first request in BI Answers.

    Examine the query log file- To see the query log file, click Settings -> Administration. In the Presentation

    Services Administration Window that pops up, click the Manage Sessions link.- In the Cursor Cache section, click the View Log link on the last entry (entry with

    the highest ID) as shown:

    NOTE: If lots of log entries are there, scroll to the bottom of the page and locate thelatest entry for the Administrator user.

    - The log file window will open up in another browser window as shown below:

    - Locate the SQL Requests section. This section contains the logical SQL issuedfrom the BI Server.

    - It also shows the Physical Query/s that is sent to the database. In our case, thephysical query is as follows:

  • 7/31/2019 RPD Modeling

    69/69

    BI Administration Tool User Training

    select T294.DISTRICT as c1,T284.NAME as c2,sum(T332.DOLLARS) as c3

    from

    TIME_DATE T344 /* Dim - TIME_DATE */ ,EMPLOYEE T284 /* Dim - EMPLOYEE */ ,MARKET T294 /* Dim - MARKET */ ,FACTSREV T332 /* Fact - FACTSREV */

    where ( T284.EMPLOYEE_KEY = T332.SREP_KEY and T294.MKT_KEY = T332.MKT_KEYand T294.DISTRICT = 'District 4' and T332.BILL_DT = T344.ROW_WID andT344.PER_NAME_YEAR = '2008' )group by T284.NAME, T294.DISTRICTorder by c1, c2

    - As we can see from the query, all the joins look right and all the right filters havebeen applied to the query.

    - Close the log file. Click Finish to close the Session Management window. CloseWindow to close the Presentation services Administration window.

    Summary

    This course coveredThe Oracle BI Server overview.The OBIEE Repository file overview.Using the Oracle BI Administration Tool to build, modify, enhance, and manage anOracle BI repository.

    Thank You

    Thank you for joining us today in this Oracle Business Intelligence User Training