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

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.

    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

  • 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".

  • 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

  • Generated Script fails when attempting to drop Foreign Key Constraint

    I made some changes to my database.  I used the generate script process to generate a drop and create script to these tables.  The generated script first ran Alter Table Drop Constraints to drop the Foreign Key constraints and then did Drop tables
    and then did create table to construct the script with the proper changes.
    However, when we attempted to run the script, all of the Drop constraint statements failed reporting that there was no such constraint.  Then the drop table scripts failed because of the existence of the very foreign key constraints  that SQL Server
    had just stated did not exist.
    BOL states that the statement "DROP { [ CONSTRAINT ] constraint_name | COLUMN column_name } " is  "Used in a CHECK, FOREIGN KEY, UNIQUE, or PRIMARY KEY constraint."  So why couldn't I drop those specified Foreign
    Key constraints in a script generated by SQL Server itself.
    Edward R. Joell MCSD MCDBA

    Are you sure there are no Constraints on other tables which are causing your issue?
    If a foreign key from table abc refences table def it will cause the drop to fail.
    If your script is already attempting to drop such constraints, have you checked that they are dropping from the correct table (and not the table that would be the target of the drop)?
    I discovered two things yesterday and one thing today about generated scripts.
    When you generated a script to drop and create a set of tables and you mark it to include foreign keys, the generated script will first create a set a scripts to drop the foreign keys , then will create a set of statements for each table that will,
    first, again drop the same foreign keys that it did earlier, then drop the table.  If there is no "if exists" statement for each statement, the drop constraint will fail.
    The script generated by the generate scripts wizard, even when you set the Drop and Create option in the advanced tab, unlike the scripts generated when you right click a table and select Drop and Create from the context menu, does not by default create
    an "If Exists" statement before the attempt to drop anything.
    You can make the generate Scripts wizard generate an "if exists" statement by changing the "Include if NOT EXISTS" option on the advanced tab to true. However, while the script generator will find all of the foreign keys that show that
    table as the parent_id, it will not show the FK constraints on tables which are not being dropped and created.  Nor can you find them by querying the sys.foreign_keys view using the standard type of Foreign Key "If Exists" statement because
    it would do a query like
    SELECT *
    FROM sys.foreign_keys
    WHERE object_id = OBJECT_ID(N'[dbo].[FK_prc_ContractSubLines_prc_PRSubLines]')
    AND parent_object_id = OBJECT_ID(N'[dbo].[prc_ContractSubLines]')
    And the script generator does not care even if you show an option like "Generate Scripts For Dependent Objects", it will not generate a drop script for the foreign constraints on other tables that reference your table.  I have not even found
    a way to get back the results of a query on the sys.foreign_keys view that will show those keys that reference your table. The only thing I been able to do is to open the table in design and check out the list of relationships in your table and see open each
    relationship and see which table is the "foreign key table" rather than the primary key table. This will make writing drop and create scripts very very long and tedious. As you would have to  create addional Alter tables scripts to do a drop
    and create foreign keys on each table referencing yours and manually place them into your scripts at correct locations. This is almost as bad as the Oracle SQL Developer's generate script results which (at least in 2010) so screws up the order of the generated
    script that it is trying to create foreign keys on tables it has not created yet.
    So Patrick I see that you thought about the foreign keys on other tables.  I wish I had read your post before spending the morning troubleshooting this issue based on this morning's script that ran and crashed embarrassingly. 
    I would like to know if someone has a query to reveal all of the foreign keys that reference your table from another table using the sys views.  As it is I have to open each table in design to get a list of FKs that reference it.
    Edward R. Joell MCSD MCDBA

  • How to get feedback messages for schema creation script created by Tasks- Generate Script

    I am using sql server 2008 R2. I created a script file by using Tasks->Generate Scripts. I 
    selected option so only create statements are generated for all objects – tables, indexes, views, functions etc in the database.
    Then when I used this generated  script to create objects in another database in SSMS, it created the objects but did
     not give me any feed back, i.e., table created, view created etc. I thought my script did not run , but when I refreshed left panel 
    of SSMS and I can see all created objects.. So question is what  is needed to get 
    feedback when  sql statements are run..

    You need to add the PRINT statements yourself for that. The wizard will not do it for you.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Generate Scripts in SQL Server 2008 R2 producing Error "Item has already been added.:

    I am trying to run a Generate Scripts Task on a Database to generate a script for every object in the DB including tables, SPs, UDFs, FKs, PKs, with the settings for Schema Only, Script Drop and Create, Script "if not Exists", use database,
    and Object level permissions. 
    I have used generate scripts before to generate this database about 5 months ago and every thing worked fine. 
    Today I first tried to generate it out on a server where I only have "db_Owner" for several databases.  This failed with the error.
    Microsoft.SqlServer.Management.Smo.FailedOperationException: Discover dependencies failed. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'Server[@Name='DLINHD007557\SQL_2008R2_64']/Database[@Name='VFS_ProcurementTracking']/UnresolvedEntity[@Name='prc_ContractFatInfo']' Key being added: 'Server[@Name='DLINHD007557\SQL_2008R2_64']/Database[@Name='VFS_ProcurementTracking']/UnresolvedEntity[@Name='prc_ContractFatInfo']' at System.Collections.SortedList.Add(Object key, Object value) at Microsoft.SqlServer.Management.Smo.DependencyTree..ctor(Urn[] urns, DependencyChainCollection dependencies, Boolean fParents, Server server)
    So I tried tto do this on a local version of the database where I have sa rights.  Same error.
    Can someone advise me on what is going on here and how do I fix it?
    Edward R. Joell MCSD MCDBA

    How do you generate the script via SMO?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • SQL Developer 3.0.04 generated scripts not compatible with Oracle 10g (XE)

    HI,
    I tried to do an export from one XE database (still 10g) to another XE database. (also 10g).
    I tried to do a database copy as well as a separate export and import (by loading the file and running as a script).
    Neither of them work without modifying the files as it seems that SQL Developer generates scripts that are only compatible with Oracle 11g.
    - Create table contains "segment creation automatic"
    - Storage clauses contain parts that are not compatible with 10g
    I ran through the wizard several times but neither can I find an option to choose for compatibility with earlier versions of Oracle.
    Checked the preferences screen as well.
    Is this a well hidden option or is it not possible to make this work for 10g.
    Extra : found workaround by removing the storage clause to the export. Is there another way that does not force me to remove the storage clause?
    Edited by: kcaluwae on 24-jun-2011 6:03

    I'm sure this is far from the supported way to fix this but, seeing that it's apparently an issue with the classpath or something in it, I hacked <sqldeveloper_install>\sqldeveloper\bin\sqldeveloper.bat and added [ORACLE_HOME]\jdbc\lib\ojdbc6.jar to the classpath. At least that gets me started with 3.0 and lets me create TNS connections.
    I'd really appreciate a better solution, if any of you kind folks knows of something.
    Thanks,
    Kelly

  • Timout expired error is coming while generating script in sqlserver

    i try to backup my database from hosted server. so i generating scripts with data via wizard. after executing all objects ,one error is coming like 'timeout expired'. and i try to restore this script file in my local database. but many tables,stored procedures,functions
    are missing. please help me how to take complete scripts correctly?

    Hello,
    It’s a long running task and the default timeout is 30 seconds, The database seems to be too big for the generating script with data
    feature.
    Try to script big tables one by one if you still want to use that feature or use backup/restore as mentioned above.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to execute created function in query wizard or query generator

    Hi to all
    i create a function in sql and i want to use this in a query wizard or query generator, I tried to include this function in my query to create a report . but i im receiving a error saying 'invalid build function',
    running the query with the created function in sql server produce the expected result..
    I would like to know if is possible to used this created function in the query wizard or function?
    thanks
    Loren

    Hi Owen
    Thank you for your reply
    The function falls on scalar valued function , Here is my code
      start of code -
    USE [gk]
    GO
    /****** Object:  UserDefinedFunction [dbo].[SalesForThisDate]    Script Date: 01/19/2009 12:42:24 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER  FUNCTION [dbo].[SalesForThisDate]
    (     @vItemCode nvarchar(20),
        @FrmDate DateTime,
         @ToDate  DateTime
    Returns Real
    AS
    BEGIN
      RETURN (SELECT ISNULL(SUM(T1.[Quantity]),0)
         FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
         WHERE T0.[DocDate] Between @FrmDate and @ToDate
              and t1.[ItemCode]=@vItemCode
         GROUP BY  T1.[ItemCode])
    END
      end of code -
    then i tried to run this function on the query manager with this statement
    SELECT T1.[ItemCode],
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-10-1','2008-10-8'),0) Value1,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-11-1','2008-11-8'),0) Value2,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-12-1','2008-12-8'),0) Value3,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2009-1-1','2009-1-8'),0) Value4
    FROM OITM T1
    ORDER BY T1.[ItemCode]
    executing this statements pop a error
    "SalesForThisDate is not recognized build-in function name"
    Thanks
    Loren

  • Generate scirpt is generating script twoice.

    hi,
    (when we right click on datababase -> task->generatescript sql server 2008r2)
    it creates a script.
    i used the "generate script" wizard to generate script , but noticed that, it is generating a script twoice.
    /****** Object: ForeignKey [FK_Table_4_Table_3] Script Date: 09/01/2014 10:29:08 ******/
    ALTER TABLE [dbo].[Table_4] DROP CONSTRAINT [FK_Table_4_Table_3]
    GO
    /****** Object: Table [dbo].[Table_4] Script Date: 09/01/2014 10:29:08 ******/
    ALTER TABLE [dbo].[Table_4] DROP CONSTRAINT [FK_Table_4_Table_3]
    GO
    DROP TABLE [dbo].[Table_4]
    GO
    /****** Object: Table [dbo].[Table_3] Script Date: 09/01/2014 10:29:08 ******/
    DROP TABLE [dbo].[Table_3]
    GO
    /****** Object: Table [dbo].[Table_3] Script Date: 09/01/2014 10:29:08 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Table_3](
    [ABC] [int] NOT NULL,
    [ABC1] [int] NULL,
    CONSTRAINT [PK_Table_3] PRIMARY KEY CLUSTERED
    [ABC] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object: Table [dbo].[Table_4] Script Date: 09/01/2014 10:29:08 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Table_4](
    [ABC] [int] NOT NULL,
    [ABC1] [int] NOT NULL,
    [ABC2] [int] NULL,
    CONSTRAINT [PK_Table_4] PRIMARY KEY CLUSTERED
    [ABC] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object: ForeignKey [FK_Table_4_Table_3] Script Date: 09/01/2014 10:29:08 ******/
    ALTER TABLE [dbo].[Table_4] WITH CHECK ADD CONSTRAINT [FK_Table_4_Table_3] FOREIGN KEY([ABC1])
    REFERENCES [dbo].[Table_3] ([ABC])
    GO
    ALTER TABLE [dbo].[Table_4] CHECK CONSTRAINT [FK_Table_4_Table_3]
    GO
    please notice stmt first and second is duplicate
    yours sincerley

    Actually the script is not actually 'doubled' but dropping the same constraint twice.
    Seems to me it's a bug since they should be aggregated.
    Trying that with SQL 2014 works just fine.

  • R12 : System Failed to generate the PDF Document.

    I am trying to create a PO thru auto create but I hit inquire > View Document , I encountered an error: System Failed to generate the PDF Document. Please contact your system administrator. We just updgrade our instance from 11.5.2.10 to r12.1.2. Any thoughts?
    Thanks,
    Leo

    Please see if these docs help.
    System Fails To Generate PDF Document After Clicking "PDF Document" On Supplier Notification When Different Languages Are Used [ID 1078546.1]
    PO Email From Tools>Communicate At Same Time of Approval Corrupts PDF File Transmits As .HTML & System Failed to Generate PDF [ID 1287488.1]
    Thanks,
    Hussein

  • Question about DBCA generate script o create RAC database 2 node cluster

    Question about creating two node RAC database 11g after installing and configuration 11g clusterware. I've used DBCA to generate script to create a rac database. I've set
    environment variable ORACLE_SID=RAC and the creating script creates instance of RAC1 and RAC2. My understanding is that each node will represent a node, however there should only be one database with a name of 'RAC'. Please advise

    You are getting your terminology mixed up.
    You only have one database. Take a look, there are one set of datafiles on shared storage.
    You have 2 instances which are accessing one database.
    Database name is RAC. Instance names are RAC1, RAC2, etc, etc.
    Also, if you look at the listener configuration and if your tnsnames is setup properly then connecting to RAC will connect you to either one of the instances wheras connecting to RAC1 will connect you to that instance.

  • Runtime-Error after deploying a mapping with the generated script

    For example a very easy scenario:
    1. Create a table and a view in a DB-schema, witch ist registered as WB-target-schema with the following scripts:
    create view v1(c1) as select 'a' c1 from dual;
    create table t1(c1 varchar2(1));
    2. Import the table and the view into a OWB-module
    3. Create a mapping ‘m1’
    4. Drag and drop view and table into the mapping
    5. Draw an arrow from the view-column to the table-column
    6. Save and close the mapping
    7. Mark the mapping in the ‘Design Center’ and klick the ‘Generate’-Button
    8. Save the generated script ‘M1.pls’ to file
    9. Run the script in SQL*Plus, connected with the target-schema (without using the Control Center Manager)
    => very easy right now ;-)
    10. Start the mapping with the following script will produce the following error
    SQL> declare
    2 v_status varchar2(100);
    3 begin
    4 m1.main(v_status);
    5 end;
    6 /
    declare
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "OWB_OWN.WB_RT_MAPAUDIT_UTIL", line 1027
    ORA-06512: at "SCOTT.M1", line 2048
    ORA-06512: at line 4
    If i delete or comment the four WB_RT_MAPAUDIT_UTIL-calls - it work´s fine!
    But is this a good advise?
    What exactly does the wrapped package ‘WB_RT_MAPAUDIT_UTIL do?
    Thanks
    jwehner

    I just ran into the same problem myself. I used the same technique of saving the generated OWB script to file and then compiling it through sqlplus. When I used the "Deploy" option for the mapping, then the problem went away. So when OWB is deploying the code it seems to be setting something internally that doesn't get set when you simple compile the PL/SQL. I don't know of any workaround to this. I will need it eventually, since I don't want to use the UI to deploy to various test environments and production. Maybe the built-in scripting language is the way to go.

Maybe you are looking for