Common diemsions and more then one fact table join problem

Hi,
I have 5 common dimension and 3 fact table which in the same subject area. When I want to display results from more then one fact table sending database then query more then one and I think BI server join this two different result on OBI server. But I think if obi server sending database query for exp. WITH SAWITH0 .... the results get effective.
+++002002:2ea0000:2ea000f:----2009/03/14 10:12:59
-------------------- SQL Request:
SET VARIABLE QUERY_SRC_CD='Report';SELECT "- Common Dimensions"."Year Month" saw_0, "- Subs. Tariff"."Subscriber Current Tariff Type" saw_1, "- Common Measures".Arpu saw_2, "- Common Measures"."Gross Margin" saw_3, "- Call Out"."Callout Dur" saw_4, "- Case".Case_Info_Num saw_5 FROM "CUSTOMER PROFILING" WHERE ("- Common Dimensions"."Year Month" = 200901) AND ("- Subs. Tariff"."Subscriber Current Tariff Type" = 'PREPAID') ORDER BY saw_0, saw_1
+++002002:2ea0000:2ea000f:----2009/03/14 10:12:59
-------------------- General Query Info:
Repository: Star, Subject Area: CUSTOMER PROFILING REV, Presentation: CUSTOMER PROFILING
+++002002:2ea0000:2ea000f:----2009/03/14 10:13:00
-------------------- Sending query to database named CENTRAVEA (id: <<471777>>):
select T223282.DIM_TIME_MONTH_ID as c1,
T221204.DIM_SUBS_CURRENT_TARIFF_TYPE as c2,
avg(T223490.FACT_CP_ARPU) as c3,
sum(T223490.FACT_CP_GROSS_MARGIN) as c4,
sum(T223490.FACT_CP_CO_DUR) as c5
from
DM.DIM_SUBSCRIBER T221204 /* A_DIM_SUBSCRIBER */ ,
DM.DIM_TIME_MONTH T223282 /* A_DIM_TIME_MONTH */ ,
DM.FACT_CUST_PROFILING_PART3 T223490 /* A_FACT_CUST_PROFILING_PART3 */
where ( T221204.DIM_SUBS_ID = T223490.DIM_SUBS_ID and T221204.DIM_SUBS_CURRENT_TARIFF_TYPE = 'PREPAID' and T223282.DIM_TIME_MONTH_ID = T223490.DIM_TIME_MONTH_ID and T223282.DIM_TIME_MONTH_ID = 200901 and T223490.DIM_TIME_MONTH_ID = 200901 )
group by T221204.DIM_SUBS_CURRENT_TARIFF_TYPE, T223282.DIM_TIME_MONTH_ID
order by c1, c2
+++002002:2ea0000:2ea000f:----2009/03/14 10:13:00
-------------------- Sending query to database named CENTRAVEA (id: <<471881>>):
select T223282.DIM_TIME_MONTH_ID as c1,
T221204.DIM_SUBS_CURRENT_TARIFF_TYPE as c2,
sum(T223294.FACT_CP_CASE_INFO_NO) as c3
from
DM.DIM_SUBSCRIBER T221204 /* A_DIM_SUBSCRIBER */ ,
DM.DIM_TIME_MONTH T223282 /* A_DIM_TIME_MONTH */ ,
DM.FACT_CUST_PROFILING_PART1 T223294 /* A_FACT_CUST_PROFILING_PART1 */
where ( T221204.DIM_SUBS_ID = T223294.DIM_SUBS_ID and T221204.DIM_SUBS_CURRENT_TARIFF_TYPE = 'PREPAID' and T223282.DIM_TIME_MONTH_ID = T223294.DIM_TIME_MONTH_ID and T223282.DIM_TIME_MONTH_ID = 200901 and T223294.DIM_TIME_MONTH_ID = 200901 )
group by T221204.DIM_SUBS_CURRENT_TARIFF_TYPE, T223282.DIM_TIME_MONTH_ID
order by c1, c2
I have another subject area and which defined like this subject area contain two dimension and 5 fact table. If I want to display results on this subject area I can see best sql for my database
My problem is why this two different subject areas create different queries. I think following query is the best for database.
Thanks for your help
+++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
-------------------- SQL Request:
SET VARIABLE QUERY_SRC_CD='Report';SELECT "Dim - Segments"."Marketing Segment" saw_0, "Fact - Campaign Response"."Fact Campaign Award Amount" saw_1, "Fact - Customer Interaction"."Issue Response Cost" saw_2 FROM "AVEA ALL" ORDER BY saw_0
+++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
-------------------- General Query Info:
Repository: Star, Subject Area: AVEA ALL, Presentation: AVEA ALL
+++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
-------------------- Sending query to database named AVEA ALL (id: <<474694>>):
WITH
SAWITH0 AS (select sum(T51461.FACT_CMPGN_AWARD_AMOUNT) as c1,
T49384.DIM_MARKETING_SGMNT_DESC as c2
from
DM.DIM_MARKETING_SEGMENT T49384 /* DIM_BI_MARKETING_SEGMENT */ ,
DM.FACT_CMPGN_RESPONSE T51461 /* FACT_BI_CMPGN_RESPONSE */
where ( T49384.DIM_MARKETING_SGMNT_ID = T51461.DIM_MARKETING_SGMNT_ID )
group by T49384.DIM_MARKETING_SGMNT_DESC),
SAWITH1 AS (select sum(T51503.FACT_CUST_INT_ISSUE_RES_COST) as c1,
T49384.DIM_MARKETING_SGMNT_DESC as c2
from
DM.DIM_MARKETING_SEGMENT T49384 /* DIM_BI_MARKETING_SEGMENT */ ,
DM.FACT_CUST_INTERACTN T51503 /* FACT_BI_CUST_INTERACTN */
where ( T49384.DIM_MARKETING_SGMNT_ID = T51503.DIM_MARKETING_SGMNT_ID )
group by T49384.DIM_MARKETING_SGMNT_DESC)
select distinct case when SAWITH0.c2 is not null then SAWITH0.c2 when SAWITH1.c2 is not null then SAWITH1.c2 end as c1,
SAWITH0.c1 as c2,
SAWITH1.c1 as c3
from
SAWITH0 full outer join SAWITH1 On SAWITH0.c2 = SAWITH1.c2
order by c1

I find solution on Oracle® Business Intelligence Suite Enterprise Edition Release Notes.
If you use a version of Oracle Database 10g Release 2 prior to 10.2.0.3, then you might encounter an issue with a Full Outer Join that causes severe database performance issues and appears to hang the database when the Oracle BI Server sends to the database SQL queries that include WITH clauses.
To work around this issue when using Oracle Database 10g Release 1 or 2, upgrade to Oracle Database 10g Release 2 Patch Set 2 (for 10.2.0.3). For performance reasons, this is the preferred workaround.
To work around this issue without installing Patch Set 2, modify the Database Features table using the Administration Tool. This configuration prevents the Oracle BI Server from sending SQL constructs that expose the issue in an unpatched Oracle Database 10g.
To modify the Database Features table:
In the Administration Tool, open the properties of the Physical Database metadata object.
Navigate to the Features tab.
Ensure the values for the PERF_PREFER_MINIMAL_WITH_USAGE and PERF_PREFER_INTERNAL_STITCH_JOIN entries are selected, that is, set to True.

Similar Messages

  • More than one fact tables...

    Hi.
    I have tried OLAP until now with only one fact table.
    But now I have more than one. To start i added one more.
    I am always using SOLVED LEVEL...LOWEST LEVEL.
    I am always receiving the following error when creating the cube with this measures:
    "exact fetch returns more than requested number of rows"
    What shall I look for when dealing with more than one fact table?
    Thanks.
    ODDS
    :: ... and still have a very poor performance ...

    1.
    Well ... I saw the global star schema and we have two fact tables there!!!
    Do I have to build different cubes for each fact table always?
    2.
    I have built cubes, created a java client and a jsp client.
    Performance is much better in JSP using the AppServer(sure!).
    The power of the JSP client is more limited i presume.
    I wonder if I can do things such setCellEditing for a crosstab in both.
    3.
    Some aggregation questions:
    Everytime I create a cube using CWM2 and also a AW using AWM wizards with that cube I have one aggregation plan by default that processes everything online.
    After that I create and deploy my own aggregation plan.
    My question is: If I don't want to aggregate anything!??! I want to see, for instance, in BiBeans the lowest level values only. And everything at the top levels empty.
    I am missing something 'cause I still have everything aggregated !!!
    Thanks.
    ODDS

  • Update more then one records in join

    How to update more then one records in join query.
    means each reocrds have different value.
    Thanks

    Can you give an example to illustrate your question?

  • Part details and more then one images.

    HI All
    Do you know how to add extra images to part details, we need about 8 per each item.
    Thanks.
    Greg.

    Hi,
    I'm afraid the standard software only allows for one image per item master data record.   A way around it might be to create a further 7 UDFs.  You can create the UDFs as type 'General' and structure 'Image'.  However i'm not sure it will look great on the screen.  If you do not need to see the images on the screen then you can set the UDFs as type 'General' and structure 'Link' then just have links to the images.
    Alternatively you can create an activity for the item and use the Attachments tab to attach the images there.
    Regards,
    Adrian
    Apologies, i didn't see that it was for the ecommerce forum!!!
    Edited by: Adrian Johnson on Jan 10, 2008 12:07 PM

  • How can I restrict more then one user to access the table?

    Hi !
    I have a problem and two solutions and I am a bit confused as to
    which one is the best one and/or can there be any better way of
    handling the problem ?
    Problem : I have to update a key field of a table when I update
    it in the form 5.0 screen. I am basically doing a maintenance of
    a table and if a certain field is updated then the change has to
    be reflected in two more tables. But the issue is that the field
    is a part of the key in those two tables. So all I can think of
    is that I need to insert new set or rows for that new value of
    the field and delete the old set of records for old values of
    the field.
    There are two ways of doing it;
    1.One option can be to explicitely define two cursors separately
    and fetch the values in them one by one and then insert the new
    records and then delete the old records in both the tables. This
    I feel will be a cumbersome process both in terms of processing
    time and the coding.
    2.Second option I was thinking can be to create two flat tables
    (without keys) and insert the values in them and update the
    changed field there and then insert the rows in the respective
    tables. Delete the old records in the main tables and delets the
    records in these flat tables. This is a bit more faster and
    easier to predict and code. This seems to be a better option for
    me.
    Any comments on these ?
    In both the cases I was thinking of making some provision so
    that more then one person can't update the table simultaneously.
    Since if there are more then one persons doing the processing
    then some inconsistency might creep into the whole process.
    This is easier to do in the second process as if I check the
    data in the flat tables and if there is some data then I can
    presume that some one is doing the processing and I can ask the
    other person to hold for a while. But in this case how can I
    stop more then two people to simultaneously check for the empty
    table and start inserting the record ?
    I was just thinking of having a sepatare table having only one
    field and this will be a key field and as the process begins the
    process will insert a fix value say 'Y' in the key field and at
    the end of the process the record will be deleted and this way
    we can restrict the user to access the process more then one at
    a time..? Since you can't have same value of the key in a table
    more then once.
    Any better way of handling it will be deeply appreciated.
    How about locking the table at the begining and releasing the
    lock at the end ? Will there be any issue in that? since I am
    inserting and deleting the rows in the same transaction.
    Comments welcome,
    Shobhit
    null

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • Updating more then one table

    Is it possible to update more then one table (just out of curiousity)?
    Something like (I know the following doesn't actually work but that's the basic logic):
    UPDATE ps_vchr_hdr_stg a, ps_vchr_line_stg b
    SET a.voucher_style = 'ADJ', b.po_id = ' '
    WHERE a.key1 = b.key1
    AND a.key2= b.key2
    and a.gross_amt < 0

    Hi, I don't think it is possible:
    UPDATE {table_reference | [THE] (subquery1)} [alias]
    SET
    {column_name = {sql_expression | (subquery2)}
    | (column_name [, column_name]...) = (subquery3)}
    [, {column_name = {sql_expression | (subquery2)}
        | (column_name [, column_name]...) = (subquery3)}]...
    [WHERE {search_condition | CURRENT_OF cursor_name}] [RETURNING]
    [row_expression [, row_expression]... INTO
    {variable_name | :host_variable_name}
    [, {variable_name | :host_variable_name}]...];If you need to perform 2 or more operations put it into procedure or function as separate statements.
    Regards,
    Tomas

  • Hdiutil and creation of more then one partition in a dmg and sparse image?

    Hello,
    My main question,
    after reading the man page and googling, I can't find any way to create a DMG file with more then one partition. Is this even possible?
    My finaly goal is to attach those with -mountRandom and - nobrowse from inside a cocoa.app.
    I need the return value to get the random path to those partitions.
    hdiutil attach test.dmg -mountrandom /Users/dev/Desktop/testdmg
    /dev/disk7 GUIDpartitionscheme
    /dev/disk7s1 Apple_HFS /Users/dev/Desktop/testdmg/dmg.A43MrA
    But I see that when I use a mutli partition dmg ( here simulated ) I will have to look for one or more random paths, something like this.
    hdiutil attach test.dmg -mountrandom /Users/dev/Desktop/testdmg
    /dev/disk7 Applepartitionscheme
    /dev/disk7s1 Applepartitionmap
    /dev/disk7s2 Apple_HFS /Users/dev/Desktop/testdmg/dmg.A43MrA
    /dev/disk7s3 Apple_HFS /Users/dev/Desktop/testdmg/dmg.7IaUpK
    What is the best way?
    to grep a line wich contains '/dmg./ and then awk print $3 ?
    path=/Users/dev/Desktop
    hdiutil attach $path/test.dmg -mountrandom $path/testdmg | grep '/dmg.' | awk '{ print $3 }'
    but what when I attach f.e a sparse image not using the -mountRandom, then I have no '/dmg.' just volumes?
    Is that doable in one universal piece of code?

    I can only answer your question re:multi partition on a .dmg with:
    doug-penningtons-power-mac-g4:Desktop dougp$ diskutil list
    /dev/disk0
    #: TYPE NAME SIZE IDENTIFIER
    0: Applepartitionscheme *57.3 Gi disk0
    1: Applepartitionmap 31.5 Ki disk0s1
    2: Apple_Driver43 28.0 Ki disk0s2
    3: Apple_Driver43 28.0 Ki disk0s3
    4: AppleDriverATA 28.0 Ki disk0s4
    5: AppleDriverATA 28.0 Ki disk0s5
    6: Apple_FWDriver 256.0 Ki disk0s6
    7: AppleDriverIOKit 256.0 Ki disk0s7
    8: Apple_Patches 256.0 Ki disk0s8
    9: Apple_HFS Joe 57.1 Gi disk0s10
    /dev/disk1
    #: TYPE NAME SIZE IDENTIFIER
    0: Applepartitionscheme *10.0 Mi disk1
    1: Applepartitionmap 31.5 Ki disk1s1
    2: Apple_HFS me 10.0 Mi disk1s2
    doug-penningtons-power-mac-g4:Desktop dougp$ diskutil partitionDisk disk1 2 HFS+ leroy 5M HFS+ madge 5M
    Started partitioning on disk disk1
    Creating partition map
    Formatting disk1s2 as Mac OS Extended with name leroy
    Formatting disk1s3 as Mac OS Extended with name madge
    [ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ]
    Finished partitioning on disk disk1
    /dev/disk1
    #: TYPE NAME SIZE IDENTIFIER
    0: Applepartitionscheme *10.0 Mi disk1
    1: Applepartitionmap 31.5 Ki disk1s1
    2: Apple_HFS leroy 5.0 Mi disk1s2
    3: Apple_HFS madge 5.0 Mi disk1s3
    Message was edited by: doug pennington

  • Fetching The more then One Company ID by using PLSQL Table on Block B1(FORM

    I have two blocks in Form (Forms 10g) .On the Block B2 I have populated the Company Id by using the PLSQL Table.Now I selected more than two company ID from that Block ...I just want to keep the Company ID in the Temp Field on the Block B1.which I have selected on the Block B2.Any idea how can I assign more then one Company ID to That Temp Field on B1.

    This doesn't appear to have any connection to JMS or indeed to Java. Wrong forum. Locking.

  • Find and Replace more then one character

    Hi
    I need to find and replace more then one character. for example: I need to replace "A" with "a". "B" with "b" and so on. how to do that in one search?

    See the following script by Peter Kahrel:
    Change case
    http://www.kahrel.plus.com/indesign/grep_change_case.html
    If the "A" and the "B" are in arbitrary positions in your text you could use the following GREP:
    [AB]
    together with the script.
    For testing your GREP expressions, you could use the following script, also by Peter Kahrel:
    A GREP editor
    http://www.kahrel.plus.com/indesign/grep_editor.html
    Uwe

  • I have a mac book pro and when I turned on iChat it would not let me video chat with more then one person even though I was able to in the past. It only showed an icon to video chat with one person. Please help!!

    I have a mac book pro and when I turned on iChat it would not let me video chat with more then one person even though I was able to in the past. It only showed an icon to video chat with one person. Please help!!!! ASAP

    Hi,
    Check the iChat Menu > Preferences > Video Section > Bandwidth setting.
    iChat needs to see a Minimum of 128kbps to do 1-1 chats in Video
    For 3 and 4 way chats it needs 384kbps
    Set the Bandwidth to 500kbps if it is set lower.
    Also check the speed you are getting from your Internet supplier.
    9:28 PM      Thursday; February 23, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Can more then one ipod be stored/updated and dowloaded on itunes

    can more then one ipod be stored/updated and dowloaded on itunes

    yes per How to use multiple  iPods, iPads, or iPhones with ... - Support - Apple

  • Using more then one table/view in same Report

    Hi,
    I am using Discoverer Plus Version 9.0.4.43.15.
    Is it possible to use more then one table/view in a report without the tables/views being joined in any way? It would be like using two different datasets in the same report without the datasets having anything to do with one another. Right now when I select items from the available tab I can only pick tables that relate to one another in some way.
    Or is it possible to use more the one table in the same report? Each table using a different query/view/table.
    Thanks

    Spence,
    try following type of query using set operator UNION / UNION ALL:
    select col1,col2
    from t1
    union all
    select col1,col2
    from t2
    If you don't have restrictions then this is the best way.

  • Attaching and sending more then one picture in an email

    Is there a way to attach more then one picture at a time in one email?
    I use gmail as my default email on my phone.

    Since you have to email from the photos application and have to email from a single picture, you can only send one picture at a time.

  • OVI and syncing and having more then one phone

    I recently just upgraded my wife and my phones to Nokia 6350's, after backing up all my contacts and everything in Nokia's PC suite from the old phones and after activating the phones and restoring the back up to the new phones I saw there was an update suggestion to the PC suite which was OVI.
    I thought great maybe more function Etc..
    After downloading and finally figuring out how to put my phone number in in international format, I get it registered logging into my wife's phone first, from inside the app, I added my phone to it, but it didn't as me for the phone number or anything, but allowed me to change from one phone to the other, well when I hit the sync button for my phone it connected to my phone then added all my contacts to the existing contacts of my wife's, what I didn't relies at first it also put all my wife's contacts into my phone book on my phone, this is a major bug that shouldn't be allowed, Why would I want my wife's contacts in my phone???
    Well lucky for me since I had just backed up all my contacts separately,
    I closed out OVI and started PC Suite up, I wiped out my whole contacts and reloaded them from back up,
    What I can't figure out is why would they design their program like this that doesn't seen to allow you to manage multiple phones from the same program,
    Nokia's PC suite does this part great, as it keeps each phone totally separately.
    The other thing I don't care for is that OVI seems to depend on having an internet connection, which there are people out there that would like to manage their phones without having to have this, PC suite can be used without a internet connection.
    Does anyone have any idea on how to separately manage more then one phone in OVI?

    Set up a user account in Windows for your wife on the same computer and when syncing her phone set up and run Ovi Suite from that account.
    It is easy and once one gets used to it it gives great flexibility.
    This is not just a Nokia thing but quite a normal way of managing multiple devices for multiple users in Windows applications (e.g. we use an application that remote controls multiple telecommunications devices for multiple users and it manages them in that same way except it goes further and requires a separate account for each device as well as each user).

  • Linking One table with more then one tablespace

    Hi,
    Can anybody help to link one table to more then one tablespace?
    Thanks in advance.

    If the table is not partitionned you cannot store a table in different tablespaces. If the table is partitionned you can store each partition in a different tablespace. Example from 10.2 Data Warehousing Guide:
    CREATE TABLE sales_composite
    (salesman_id  NUMBER(5),
    salesman_name VARCHAR2(30),
    sales_amount  NUMBER(10),
    sales_date    DATE)
    PARTITION BY RANGE(sales_date)
    SUBPARTITION BY HASH(salesman_id)
    SUBPARTITION TEMPLATE(
    SUBPARTITION sp1 TABLESPACE ts1,
    SUBPARTITION sp2 TABLESPACE ts2,
    SUBPARTITION sp3 TABLESPACE ts3,
    SUBPARTITION sp4 TABLESPACE ts4)
    (PARTITION sales_jan2000 VALUES LESS THAN(TO_DATE('02/01/2000','MM/DD/YYYY'))
    PARTITION sales_feb2000 VALUES LESS THAN(TO_DATE('03/01/2000','MM/DD/YYYY'))
    PARTITION sales_mar2000 VALUES LESS THAN(TO_DATE('04/01/2000','MM/DD/YYYY'))
    PARTITION sales_apr2000 VALUES LESS THAN(TO_DATE('05/01/2000','MM/DD/YYYY'))
    PARTITION sales_may2000 VALUES LESS THAN(TO_DATE('06/01/2000','MM/DD/YYYY')));Edited by: P. Forstmann on 13 févr. 2010 09:08

Maybe you are looking for

  • Can not launch app - message error

    hello, (and sorry for my pytifull english...) I use mac os 10.7.5 (on mac mini) and I ve got a big problem when i trie to install an app called Polar WebSync. I can install it but the app doesn't launch. Below the console messages : If someone can he

  • How to transfer javaruntime from one device to another?

    Hi.. I have two imac computers with 10.2 os x, but there is no internet connection. The first device: has matlab + javaruntime. (matlab works very well in this device) The second device: has matlab only. (matlab doesn't work , javaruntime is required

  • Is there a way to delete multiple emails at one time?

    I did a search but didn't find anything on this. I just got the new 3G and when I setup one of my email accounts (not .mac) it downloaded 700 emails from that account even though about 600 had been previously deleted. Is there a way to select multipl

  • Install windows xp in bootcamp

    Hi, I need to increase the partition size in my bootcamp running under snow leopard, I did that, but before reinstalling windows xp, the lyon release was available. I installed it with no problems, but now Windows XP will not load. Must I buy a new c

  • I GOT HP dm4 1203 tu 15 days back.my laptop runs for 1 HOUR:22 MIN.WILL I GET A BATTERY REPLACEMENT?

    חאן I puchased HP dm4 1203 tu 15 days back.. i have tried everything but my laptop runs for ONE 1 hour: TWENTY TWO 22 minutes when charged 100% no matter what power plan I use contrary to advertised 6.5 hours ...I BOUGHT THIS LAPTOP BECAUSE OF THIS F