Aggregate persistence Wizard.

Hi,
I'm new to Obiee, I was following the Rittman Mead article at http://www.rittmanmead.com/2007/10/using-the-obiee-aggregate-persistence-wizard/
I beleive I followed all the steps correctly, The Aggregate persistence wizard generated the an sql script, however, when i run the script using the nqcmd, it says 0 queries processed correctly,
Could anyone here point out to me If there something obvious I've missed out somewhere
Cheers
-Chris

When you run the script generated by the Wizard, you should see something like:
Statement execute succeeded
and
Processed: N queries where N is the number of fact aggregates in your script.
Check out my blog entry on the Aggregate Persistence Wizard
http://www.obieeabc.com/2011/04/how-to-use-aggregate-persistence-wizard.html
http://www.obieeabc.com/2011/04/how-to-use-aggregate-persistence-wizard_13.html

Similar Messages

  • Bug in Aggregate Persistence Wizard with multiple hierarchies

    Hi,
    Let's say you have a dimension with 2 hierarchies. In example:
    product -> subcategory -> category -> all products
    product -> subtype -> type -> all products
    Then you run the "Aggregate Persistence Wizard" and generate the code for 2 aggregations, one for each hierarchy.
    Then you execute the generated code wiithout errors.
    But no aggregate fact table is created, not inside the rpd, neither in the database.
    You only found the aggregated dimension tables (both in rpd and database), which btw generate consistency check errors due to the missing fact table.
    Workaround:
    The code generated by the Persistence Wizard contains a single "create aggregates" statement.
    Multiple aggregation are separated by commas inside the same statement.
    Instead create multiple "create aggregates" commands, one for each aggregation, each separated by a semicolon.
    OBIEE 11.1.1.5
    Hope it helps,
    Corrado

    Cosimo,
    If you've built your business model correctly with the complex joins and the dimensions relating to your fact, then the wizard will pick them up normally and will allow you to generate a script like this:
    prepare aggregates
    "ag_Fact_Budget"
    for "Core"."Fact - Budget"("Budget Amount")
    at levels ("Core"."Conformed Date"."Fiscal Year")
    using connection pool "Siebel Data Warehouse"."Data Warehouse Connection Pool"
    in "Siebel Data Warehouse"."Catalog";
    Check that your BM is consistent and sound (stars in physical and BM layer built right).
    Documentation-wise, refer to the Oracle Business Intelligence Server Administration Guide Version 10.1.3.2, page 189 f. or the Server Architect course, module 9 "Using Aggregates".

  • Aggregate Persistence wizard fail to generate script

    I was following the instructions for the aggregate persistence wizard, but at the last step, the screen just shows:
    The following script has been generated based on your input and will be saved at
    Create Aggregate Script:
    D:\script.sql
    And inside the box is just... blank. with 3 line breaks.
    The script file just show "create aggregates ". Opening it inside sql developer shows "create aggregates ". Is there some funny encoding going on here?
    I have no clue on what is wrong with my set up. Is it the BI? Is it the repository? (But, i've tried it out with a variety of repositories, including official sample ones) Or is it my database connection? Googling doesn't give me anything relevant to my situation.
    I'm running BI 11.1.1.5, I'd really appreciate it if someone can help me with this!

    Hi Lum,
    I have seen aggregate persistence wizard not creating any aggregate tables in the database etc but something not like this. However, you could see what is going on with this wizard with the steps below.
    1. Please check if you have ticked "Generate DDL" file.This option is used to create a second script that defines the aggregate tables on the database and repository, but does not populate them. This is useful for database administrators who want to make granular changes to the database tables generated by the system.
    2. If you are pointing your wizard to some database which has more than one connection pool, please make sure that the option "Use first connection pool" in the .rpd -> Tools -> Options is on. I have seen that sometimes this does not let go things on the correct way.
    3. Please check the .rpd version . Please make sure it the latest with 11.1.1.5
    Hope this helps.
    Thank you,
    Dhar

  • Error in Using Aggregate Persistence

    Hi All,
    I created an aggregate file called NewScript.sql in C drive using aggregate persistence wizard.
    And am trying to run the file using command prompt using following command ..
    C:\OracleBI\server\Bin>nqcmd.exe -d AnalyticsWeb -u Administrator -p Administrator -s c:NewScript.sql
    and i get the following error..
    Open Input file failed
    Please help me to create the aggregate tables..
    Thanks in advance..
    Regards
    Mehaboob

    Hi Dpka,
    Sorry for the late reply.
    I executed the script in sql server 2008 and got the following error.
    "Msg 343, Level 15, State 1, Line 1
    Unknown object type 'aggregates' used in a CREATE, DROP, or ALTER statement."
    This is my query
    create aggregates
    *"ag_GL_Fact"*
    for "Finance"."GL Fact"("Revenue","Avg Of Revenue")
    at levels ("Finance"."GL Accounts"."Acc Type", "Finance"."Posting Time"."Quarter")
    using connection pool "arj"."Arj Connection Pool"
    in "arj"."Arj"."dbo";
    Regards
    Mehaboob

  • Aggregate Persistence

    Hi all
    I try to create three aggregate table based on my dimensions. After run Aggregate Persistence Wizard, I run the command to create the table.
    The command interrupt with the error:
    "[nQSError: 84008] [Aggregate Persistence] Error while processing aggregates (refer previous in log).
    Statement preparation failed"
    NQServer.log :
    "SA_Doc_Nam00001D1D: [nQSError: 84004] [Aggregate Persistence] Database create/populate failed.
    *****ABORTING AggregateManager*****: [nQSError: 84008] [Aggregate Persistence] Error while processing aggregates (refer previous errors in log)"
    When i login to Administration tool, I can see the table only in the physical layer, but it's empty or not accesible. In the Business Model nothing changed.
    I try to grant any permission to my db user specified in the connection pool.
    thank all

    Cosimo,
    If you've built your business model correctly with the complex joins and the dimensions relating to your fact, then the wizard will pick them up normally and will allow you to generate a script like this:
    prepare aggregates
    "ag_Fact_Budget"
    for "Core"."Fact - Budget"("Budget Amount")
    at levels ("Core"."Conformed Date"."Fiscal Year")
    using connection pool "Siebel Data Warehouse"."Data Warehouse Connection Pool"
    in "Siebel Data Warehouse"."Catalog";
    Check that your BM is consistent and sound (stars in physical and BM layer built right).
    Documentation-wise, refer to the Oracle Business Intelligence Server Administration Guide Version 10.1.3.2, page 189 f. or the Server Architect course, module 9 "Using Aggregates".

  • How to use Aggregate Persistance Wizard in OBI EE 11g (11.5)

    Dear All,
    I am trying to use Aggregate Persistance wizard from BI admin tool (11.5).
    I created a repository based on SH schema (oracle 11.2) , and then from Tool->Utilities-> menu tried to invoke Aggregat persisatnce wizard.
    Very first time I was able to click 'Execute' button by selecting this wizard from the list, but now , no matter wht I can not invoke the same as 'Execute' buttion is permanently disabled.
    Please tell me what it the reason for this. Why execute buttion is disableed. IF I select , any other wizard from the list, this button is enabled, but as soon as I select aggregate persistance from the list, the button disables, and I am not able to move forwred.
    I ws trying to learn to create aggrages using this wizard, but can not go further as this buttion is disabled. I thought it might have happend due to some problem, so I stoped the BI services , shutdown the laptop, and rstared the BI services, and tried to recreated th rpd from scratch, which I could , but as soon as I go to Tools-Utiities and select aggragate persistance , I can not do it as the exectue buttion is diableed. What is the issue, and how to enable this again.? AM I doing somthing wrong or missing some step.?
    Please help me to understand the issue so that I can resolve..
    Thanks and Regards
    Santosh

    Before I read that blog I use another vo for sum but after that blog decide to use analytic fuction becuase we have some page that have to many dvt graph and table and know we use seperate vo for them and it has not good performance and too many query must run in database ,I want to have 1 vo with some analytic function for graph and tables

  • Errors when Creating Aggregate Tables in OBIEE 11.1.1.6 within SQL server

    Hi All,
    I was trying to create an aggregate table in OBIEE 11.1.1.6 within SQL Server. The sql was generated successfully as below. But an error occurred when I use NQCMD to execute the sql and the following error showed:
    1. SQL for creating Aggregate Table:
    create aggregates
    "ag_Measure"
    for "ASOBI_DTT_Demo"."Measure"("ValidVIPCnt")
    at levels ("ASOBI_DTT_Demo"."日期"."月", "ASOBI_DTT_Demo"."門市品牌"."門市品牌", "ASOBI_DTT_Demo"."門市類別"."門市類別", "ASOBI_DTT_Demo"."內創門市"."內創門市", "ASOBI_DTT_Demo"."門市/倉庫"."門市/倉庫", "ASOBI_DTT_Demo"."門市群組"."門市群組", "ASOBI_DTT_Demo"."門市行政區課"."行政區", "ASOBI_DTT_Demo"."門市地區"."城市")
    using connection pool "ASOBI_DTT_Demo"."ASOBI_System10"
    in "ASOBI_DTT_Demo"."ASOBI"."dbo";
    2. Error Message:
    "ag_Measure"
    for "ASOBI_DTT_Demo"."Measure"("ValidVIPCnt")
    at levels ("ASOBI_DTT_Demo"."日期"."月", "ASOBI_DTT_Demo"."門市品牌"."門市品牌"
    , "ASOBI_DTT_Demo"."門市類別"."門市類別", "ASOBI_DTT_Demo"."內創門市"."內創門市"
    , "ASOBI_DTT_Demo"."門市/倉庫"."門市/倉庫", "ASOBI_DTT_Demo"."門市群組"."門市群
    組", "ASOBI_DTT_Demo"."門市行政區課"."行政區", "ASOBI_DTT_Demo"."門市地區"."城市
    using connection pool "ASOBI_DTT_Demo"."ASOBI_System10"
    in "ASOBI_DTT_Demo"."ASOBI"."dbo"
    [343][State: 37000] [Microsoft][SQL Server Native Client 10.0][SQL Server]CREATE
    、DROP or ALTER 陳述式中使用未知的物件類型 'aggregates'。
    Statement execute failed
    Which means "Using unknown object type 'aggregates' in CREATE. DROP or ALTER statements" in English.
    Can anyone give me a suggestion for this error?? Many thanks!!!

    Hi Martin,
    I guess, I was not clear enough. Let me try again
    How Aggregate Persistence works in OBIEE?
    Once you are done choosing options in the Aggregate Persistence wizard, it generates an intelligent Query.
    What query is it?
    If you happen to understand the query, it is not like any ANSI standard SQL (I would say DDL) query. As you might have noticed there are no SQL Server datatypes, lengths, keys, constraints etc. This query can only be understood by the BI Server.
    How do I issue this query?
    Since the logical query could only be understood by BI Server, it has to be issued only to BI Server Engine using some tool viz NQCMD in this case.
    What does issuing this query using NQCMD do?
    The execution steps are as follows, the moment the query is issue via NQCMD
    Aggregate Persistent Wiz Generate Query ----- Issued to ---> NQCMD ----- Passes the logical query to ---> BI Server ----- Parses the query ---> Builds the corresponding physical DDL statements Issued --->To the Database --- If successful ---> .RPD is automatically updated with the aggregated sources etc.
    How do I pass the query to BI Server using NQCMD?
    The format of issuing this logical query to BI Server using NQCMD is
    nqcmd -d <Data Source Name> -u <Analytics UserId> -p <Password> -s <command> > output.log
    where
    <Data Source Name> : Is the DSN name which OBIPS uses to talk to Oracle BI Server. Yes, it's the very same DSN that can be found in InstanceConfig.xml
    <Analytics UserID> : Any user in obiee with admin privileges.
    <Password> : Password of the obiee UserId
    <Command> : Logical SQL Command which you already have handy.
    Hope I was good this time..
    Dhar

  • Error when creating aggregate table

    Hello,
    I am creating an aggregate table using the Aggregate Persistence Wizard. When trying to run the batch file, I am receiving an error: "Could not connect to the Oracle BI Server instance".
    But then, the Oracle BI Server is running and I am able to do queries in answers with no connection issues. (Pls see below)
    Please help.
    Thanks,
    Felicity
    D:\OracleBI\server\Repository>create_agg.bat
    D:\OracleBI\server\Repository>nqcmd -d AnalyticsWeb -u Administrator -p Administ
    rator -s D:\OracleBI\server\Repository\CREATE_AGG.sql
    Oracle BI Server
    Copyright (c) 1997-2009 Oracle Corporation, All rights reserved
    create aggregates
    "ag_SalesFacts"
    for "SupplierSales"."SalesFacts"("Net Weight Shipped","Units Ordered","Units Sh
    ipped","Dollars")
    at levels ("SupplierSales"."ProductsDim"."Type", "SupplierSales"."CustomersDim"
    ."SalesRep", "SupplierSales"."PeriodsDim"."Month")
    using connection pool "ORCL"."SUPPLIER CP"
    in "ORCL".."SUPPLIER2"
    create aggregates
    "ag_SalesFacts"
    for "SupplierSales"."SalesFacts"("Net Weight Shipped","Units Ordered","Units Sh
    ipped","Dollars")
    at levels ("SupplierSales"."ProductsDim"."Type", "SupplierSales"."CustomersDim"
    ."SalesRep", "SupplierSales"."PeriodsDim"."Month")
    using connection pool "ORCL"."SUPPLIER CP"
    in "ORCL".."SUPPLIER2"
    [10058][State: S1000] [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general er
    ror has occurred.
    [nQSError: 37001] Could not connect to the Oracle BI Server instance.
    Statement preparation failed
    Processed: 1 queries
    Encountered 1 errors

    Will this help you solve issue http://forums.oracle.com/forums/thread.jspa?messageID=3661598
    Check the comments in this blog http://obiee101.blogspot.com/2008/11/obiee-aggregate-persistence-wizard.html
    It deals with use permissions for the database.
    hope answers your question..
    Cheers,
    kk

  • Aggregate tables in 10G

    Hi Experts,
    In OBI 10G how to use Aggregated Tables? How does the server knows when it should use Aggregated Table? And when to use ordinary table at the time of fetching the data?
    What is the purpose Aggregate persistence wizard in RPD.
    Thanks in advance,

    Aggregate Table (Aggregate Persistence Wizard)
    Aggregate Table: Aggregate tables store precalculated measures that have been aggregate over a set of dimensional attributes.
    This is very useful technique for speeding up query response time in decision support systems. This eliminates the need of run time calculations and delivers faster results to users The calculations are done ahead of time and the results are stored in the tables.
    The key point is that the aggregate table should have fewer rows than the non aggregate table and therefore processing should be quicker.
    Aggregate Persistence Wizard
    Go to: OBIEE Admin > tool> Utilities > Aggregate Persistence Wizard
    http://obiee101.blogspot.com/2008/11/obiee-aggregate-persistence-wizard.html
    http://obieetutorialguide.blogspot.com/2012/03/creating-aggregate-tables-in-obiee.html

  • Usage of Time Series Wizard

    Hi All,
    We are using OBIEE 10.1.3.4 version on windows envorinment..For our OBIEE project every we are getting feed around 4 lacks per a day.So we are planning partition the data in OBIEE side using time series wizard does it Possiable in OBIEE side..Using time series wizard we can pratition the data for every 6 months wise.
    Could you pls help on this..

    Yes , you can but make use of partitioning and NOT time series...http://gerardnico.com/wiki/dat/obiee/fragmentation
    Also, go for aggregate tables in OBIEE http://www.rittmanmead.com/2007/10/using-the-obiee-aggregate-persistence-wizard/
    Hope this helps

  • Rebuilding Aggregate Tables

    Hi,
    In the OTN tutorial for the Aggregate Persistence Wizard, it instructs you to rebuild Aggregate Tables by putting a "delete aggregates;" command in the beginning of the script. I am just wondering if this is a standard practice for production environments as well. I have just began work on a project where the person here before me set up the aggregate table script but did not put the delete aggregates; command in the beginning.
    Any ideas?
    Thanks,
    Kevin

    Yes,
    You should always clean up first! If there have been copy paste action in the repository you into the risk that the aggregate tables have new "underwater" id's.
    http://obiee101.blogspot.com/2008/11/obiee-aggregate-persistence-wizard.html
    regards
    John
    http://obiee101.blogspot.com

  • Reg Aggregate tables

    Hi Experts,
    I want small clarification regarding aggregate tables if i want to implement this which method i have i have to follow weather importing aggregate tables from DB to the physical layer or by using aggregate persistence wizard in RD itself.
    In which situations we have to go for importing and which situations we have to go for aggregate persistence wizard.
    Regards,

    You import the aggregated table's if you have them built already in the database and you use the wizard in order to create aggregate tables in the RPD that does not exist in the database. The utility automates the creation and initial population of aggregates, persists them in a back-end database and configures the BI Server metadata layer so that they’re used when appropriate. What’s particularly interesting about this feature is that you can create aggregates for, say, an Oracle database and store them in an SQL Server, DB2 or Teradata database

  • Aggregate table showing wrong data

    Hello Gurus:
    I am working on an issue, where a report is showing wrong value for an aggregated fact table.
    If I try not including it in query, then results work fine. But by default BI server is pointing to aggregate table ( which it should ).
    So my questions are
    1) Does Aggregate tables are refreshed automatically with DAC?
    2) I know data is wrong in aggregate table. How do I verify?
    3) How to make a particular report hit regular table instead of aggregate table?
    Please let me know.
    Thanks.
    ~Vinay

    Alright. So I made some progress on this issue, HOWEVER it is still not solved.
    1) Aggregated tables are refreshed daily with DAC. There is a script for that on server which is created using Aggregate Persistence wizard.
    2) ONLY one column is showing wrong data. I have verified this using Toad. However I dont know why is it showing wrong data. Theoretically it should be fine.
    3) this question is still same.
    How to make a particular report hit regular table instead of aggregate table?
    Please help me out.
    Thanks.
    ~Vinay

  • Best practice for making a report of 10,000 to 20,000 rows(OBIEE 10.3.4.1)

    My Scenario is like this:*
    Hi i have 2 fact tables fact1 and fact 2 and four dimension tables D1,D2,D3 ,D4 & D1.1 ,D1.2 the relations in the data model is like this :
    NOTE: D1.1 and D1.2 are derived from D1 So D1 might be snow Flake.
    [( D1.. 1:M..> Fact 1 , D1.. 1:M..> Fact 2 ), (D2.. 1:M..> Fact 1 , D2.. 1:M..> Fact 2 ), ( D3.. 1: M.> Fact 1 , D3.. 1:M..> Fact 2 ),( D4.. 1:M..> Fact 1 , D4 ... 1:M..> Fact 2 )]
    Now from D1 there is a child level like this: [D1 --(1:M)..> D1.1 and from D1.1.. 1:M..> D1.2.. 1:M..> D4]
    Please help me in modeling these for making a report of 10,000 rows and also let me know for which tables do i need to enable cache?
    PS: There shouldn't be performance issue so please help me in modeling this.
    Thanks in Advance for the Experts who are helping me for a while.

    Shudn't be much problem with just these many rows...
    Model something like this only Re: URGENT MODELING SNOW FLAKE SCHEMA
    There are various ways of handling performance issues if any in OBIEE.
    Go for caching strategy for complete warehouse. Make sure to purge it after every data load..If you have aggr calculations at higher level then you can also go for aggregated tables in OBIEE for better performance.
    http://www.rittmanmead.com/2007/10/using-the-obiee-aggregate-persistence-wizard/
    Hope this is clear...Go ahead with actual implementation and lets us know incase you encounter any major issues.
    Cheers

  • Materialized views with GROUP by ROLLUP

    I am trying to created Materialized view (snapshot) using group by rollup functionality.
    The idea is to use snapshot with all subtotals already calculated in place.
    For example average group by rollup (columns of the time dimension).
    The idea is to use "query rewrite" Oracle functionality and snapshot with calculated subtotals.
    Does anybody have experiance with this method ?
    Thank you
    Michael

    The query rewrite is an internal function of Oracle. Normally, you have nothing to do than verify that the query that perform OBIEE is rewrited.
    In any other way, you can in OBIEE define that you have create an aggregate and OBIEE will (re-)write the query.
    http://www.rittmanmead.com/2007/10/26/using-the-obiee-aggregate-persistence-wizard/
    Regards
    Nico

Maybe you are looking for

  • Calling WebForms 10g on Windows XP Pro (SP2)

    Hello, When I try to invoke WebForms through the Web on Windows XP Pro (SP2) workstation, I get the following message: Oracle Application Server 10g Forms Services The Forms Listener Servlet is up and running. 1) What does this mean ? 2) Do I need to

  • How do I set the default folder for file - open file... ?

    When I save a file, photo, etc., the default folder for OPENING a file becomes the last folder I SAVED to - even after closing and reopening Firefox. Is there a way to maintain the same default folder for opening files? Thanks.

  • RFC data  into WebDynpro Table based on Page selected by user in Portal

    Hi All I am new to webdynpro. we are developing an application in which we are supposed sent two parameters to RFC to retrive data. Two parameters are Role (plant) and page names(Sub - plant). Finally there should only one RFC for whole application w

  • Lumia 520 update

    I am not sure as to whether my phone has the latest firmware. How can I check that? Wtat is the code for the latest firmware? I

  • How to create an absence on a non-working day?

    Hi HR experts, Is it possible to create an absence on a non working day or holiday? I tried to do so and I get all these information messages, until it finally saves. But it wont accept any number of Absence hours. Is there a way to allow it to accep