Steps for Creating Aggregate Tables
in OBIEE
- Create all Dimension
Tables, Fact Tables & Hierarchies, which are required to be
aggregated.
- Go to ToolsàUtilities (from
Administration tool menu bar), a dialog box will pop up with all available
utilities.
- Select Aggregate
Persistence Wizard, and then click Execute Button. (See
Figure Below)
4. Now Select appropriate path where
you need to generate Aggregate Table SQL.
Note :
Click Generate DDL file for first time generation of Aggregate Table. (See Figure
Below)
- Click Next, to move to
next page (Select Business Model & Measure Page)
- In Select Business
Model & Measure Page, Select Appropriate Business Model & then
select associated Fact / Measure.(See Figure Below)
7.
Click next, to move to next page (Select
Dimensions & Levels).
- Select appropriate level
of dimension & check Use Surrogate Key.
9.
Click next, to move to next page (Select output
Connection Pool, Container & Name).
- Click next, to move to
next page (Aggregate Definition).
- Select I am Done (Radio
Button).
- Click Next.
- Then Click Finish. Your
Aggregate Table is Created Now & available at the path you specified
in “Select File Location” Page.
- To view generated script
move to - C:\Agg\
- Select The Aggregate Table
Created & View the Code. Code for above process is mentioned below :
delete aggregates; /* Delete code manually added to remove any
pre-existing aggregate tables with the same name */
create aggregates
"ag_FACTINTERNETSAL"
for
"SALES"."FACTINTERNETSALES"("ORDERQUANTITY")
at levels
("SALES"."Time"."Year" using_surrogate_key )
using connection
pool "Adventure Works"."Agg CP"
in "Adventure
Works"."AdventureWorksDW2008";
Now the script is ready, I
run it using the “nqcmd.exe” utility in the /OracleBI/server/bin directory.
Steps for running Aggregate
Script are mentioned below:
|
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\gaurav.mishra>cd\
C:\>cd oraclebi
C:\OracleBI>cd server
C:\OracleBI\server>cd bin
C:\OracleBI\server\Bin>nqcmd.exe -u Administrator -p
Administrator -d analyticsweb -s c:\Agg\agg.sql
Where : u : UserName p : Password d : Domain s : SQL Query Path
-------------------------------------------------------------------------------
Oracle
BI Server
Copyright (c) 1997-2009 Oracle
Corporation, All rights reserved
delete aggregates
delete aggregates
Statement execute succeeded
create aggregates
"ag_FACTINTERNETSAL"
for
"SALES"."FACTINTERNETSALES"("ORDERQUANTITY")
at levels
("SALES"."Time"."Year" using_surrogate_key )
using connection
pool "Adventure Works"."Agg CP"
in
"Adventure Works"."AdventureWorksDW2008"
create aggregates
"ag_FACTINTERNETSAL"
for
"SALES"."FACTINTERNETSALES"("ORDERQUANTITY")
at levels
("SALES"."Time"."Year" using_surrogate_key )
using connection
pool "Adventure Works"."Agg CP"
in
"Adventure Works"."AdventureWorksDW2008"
Statement execute succeeded
Processed: 2 queries
|
After getting successful aggregate script execution, you need to restart your BI Services.
Now Open your metadata Repository & you will see that new aggregate tables created and registered, and shown in red to show
they’re aggregates.
Note : No change in
presentation layer, as data is executed from logical table & physical
table, so presentation layer remains unaffected.








No comments:
Post a Comment