OLAP Query is Taking Time. Please give me the Solution.

Hi Geof,
I am new to this AW Cubes and all. I am facing with a problem. After reading u r responses and all I am asking u this question. I hope u will solve my problem.
I trying to get the data out of cube using the below statement at SQL prompt.
SELECT CONSTITUTION,ACTIVE_CODE,CLASSIFICATION,BR_CODE,CASTE,INTEREST_RATE,TOT_COUNT,OUTSTANDING_BAL FROM TABLE(OLAP_TABLE('MIS.KBL_REPORTS_AW DURATION SESSION',
'DIMENSION CONSTITUTION AS varchar2(100) FROM AW_CUSTOMER_DIM1
DIMENSION ACTIVE_CODE AS varchar2(50) FROM AW_ACTIVITY_DIM1
DIMENSION CLASSIFICATION AS varchar2(50) FROM AW_PRODUCT_DIM1
DIMENSION BR_CODE AS varchar2(50) FROM AW_BRANCH_DIM1
DIMENSION CASTE AS varchar2(50) FROM AW_CASTE_DIM1
DIMENSION INTEREST_RATE AS varchar2(50) FROM AW_INTEREST_DIM1
MEASURE TOT_COUNT AS number(5) FROM KBL_REPORTS_CUBE1_COUNT_MEASURE
MEASURE OUTSTANDING_BAL AS number(10) FROM KBL_REPORTS_CUBE1_BALANCE_MEASURE
where CONSTITUTION like '%INDIVIDUAL%' and ACTIVE_CODE like '%010101';
It is taking too much of time. Can u give the solution to me ???
Regards,
S.Vamsi Krishna

Hi,
What release are you using? You should use 10.2.0.2 if possible. The documentation references in this reply assume the 10.2.0.2 versions of the documentation.
You may be able to add an empty MODEL clause to your query which has the paradoxical effect of speeding up most OLAP queries. See chapter 11 (OLAP_TABLE) in the Oracle OLAP Reference. But if performance is very poor, this is unlikely to improve matters enough.
We need to figure out where the time is being spent. We can use Oracle trace files and the tkprof utility to do that. I'll describe the basics, but there is a lot more information in chapter 20 (Using Application Tracing Tools) of the Oracle Database Performance Tuning Guide.
First, let's enable some configuration parameters that will cause the RDBMS to write some useful information to the trace file. Assuming that you have a SQL script that executes the query, you can add these commands to the beginning of the script:
alter session set sql_trace=true
alter session set timed_statistics=true
alter session set "_olap_continuous_trace_file"=true
alter session set "_olap_table_function_statistics"=true
alter session set tracefile_identifier=perftest
exec dbms_aw.execute('dotf tracefile');
Now run the script with the query.
Next we have to find the trace file. Trace files are written to the directory named by the configuration parameter user_dump_dest. As a privileged user, execute this command:
SQL> show parameter user_dump_dest;
Now look in that directory for a file whose name includes the string that we specified in the tracefile_identifier setting above (you can change this if you want):
$ ls <user_dump_dest dir>/*perftest*.trc
Having located the tracefile, run the tkprof utility:
$ tkprof <trace file name> <tkprof output file name> aggregate=no
Now edit the generated <tkprof output file name> and look for your query. It will be followed by a mini explain plan that includes a line for each subquery. You'll be able to see how much time is spent in each subquery and how many rows are returned to the enveloping query. The innermost subqueries will be the ones that query AW data. Your goal is to push as much of the work into the AW as possible, so that the AW engine return a minimal number of rows.
You can get more detail from the trace file itself. If you are at all familiar with the OLAP DML, look for LIMIT commands and see that they roughly correspond to hierarchy selections and WHERE clause predicates in the SQL SELECT statement. OLAP DML comamnds have timestamps in the trace file, so you can get an idea of how long things are taking. You can find table function statistics by looking for XSTF and XSTABFUN in the trace file.
Geof

Similar Messages

  • TS1702 i am using iphone 2G, i have updated IOS 3.1.3, but i am not able to use whatsapp. the newer version of whatsapp is not working in my phone. please give me the solution.

    i am using iphone 2G, i have updated IOS 3.1.3, but i am not able to use whatsapp. the newer version of whatsapp is not working in my phone. please give me the solution.

    As newer iPhones and iOS versions are made, apps start to drop support for the older versions of the iOS. It looks like you have fallen victim to this. I commend you for sticking with the original iPhone until now, but it looks like it's time for an upgrade if you want to use apps that have dropped support.
    Also the new iPhone provides hundreds of new features and spec upgrades from the original. Check it out! http://www.apple.com/iphone/

  • I have installed 2010 microsoft office 2010 home and business version for my laptop,and i have installed lync 2013.Now i want create online lync meeting from outlook,but i am unable view that lync icon in outlook.Please give me the solution for this que

    I have installed 2010 Microsoft office 2010 home and business version for my laptop,and I have installed lync 2013.Now i want create online lync meeting from outlook,but i am unable view that lync icon in outlook.Please give me the solution for this issue.
    Regards
    Raghavendar

    Hi Raghavendar,
    Generally, when you install Lync 2013 in the computer with Office 2010, a Lync Meeting Add-in will be installed and enabled in Outlook 2010. Please follow these steps to check it:
    1. In Outlook, click the File tab, click Options, and then click
    Add-Ins.
    2. Please take one of the following actions:
    If the add-in is in the Inactive Application Add-ins list, follow these steps:
    a. In the Manage drop-down list at the bottom of the dialog box, click
    COM Add-ins, and then click Go.
    b. Click to select the check box next to the add-in, and then click OK.
    The New Online Meeting button should now be available in
    Calendar View, and the Online Meeting button should be available when you create a new calendar item.
    If the add-in is in the Disabled Application add-ins list, follow these steps:
    a. In the Manage drop-down list at the bottom of the dialog box, click
    Disabled Items, and then click Go.
    b. Select the add-in, and then click Enable.
    c. Restart Outlook, and then verify that the add-in is displayed in the
    Add-ins dialog box.
    The New Online Meeting button should now be available in
    Calendar View, and the Online Meeting button should now be available when you create a new calendar item.
    3. In Event Viewer, view the Application log to see whether an error was logged for Outlook, for Lync 2013, the Lync Meeting Add-in for Microsoft Office 2013.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Keys fn fn (or other) does not activate the dictation only functions "Edit" "Start Dictation .... on MacBook Pro, Please give me the solution Thanks.

    keys fn fn (or other) does not activate the dictation only functions "Edit" "Start Dictation .... on MacBook Pro, Please give me the solution
    Thanks

    Welcome to Apple Support Communities
    It's possible that Dictation is set up to be turned on with a different key. Open System Preferences > Dictation & Speech, and choose the key you want to use to activate Dictation next to "Shortcut". Read > http://support.apple.com/kb/ht5449

  • I want to install an mail Id on Ipad Mini other than yahoo an google but it is showing an error message about SSL could not connect. Please give me the solution on this.

    Hi
    i want to install an mail Id on Ipad Mini other than yahoo an google but it is showing an error message about SSL could not connect. Please give me the solution on this.

    Hello there ypda75,
    I have an article here that has a list of settings to get from your Email provider so you can make sure that the settings are correct. It has troubleshooting steps to try as well. Also I would recommend restarting the router, and/or testing a differnet network.
    iOS: Unable to send or receive email
    http://support.apple.com/kb/ts3899.
    If you are unable to send or receive email, try the following steps:
    Restart the iOS device.
    Tap Safari and attempt to load a webpage to ensure that the device has Internet access. If you're unable to load a webpage, try the Wi-Fi assistant.
    Try an alternative Internet connection.
    If your email is provided by your Internet provider, try connecting from the home network.
    If your iOS device has an active cellular data plan, try to disable Wi-Fi:  Tap Settings > Wi-Fi and turn off Wi-Fi.
    If not, try a different Wi-Fi network.
    Log in to your email provider's website to ensure that the account is active and the password is correct.
    Delete the account from Settings > Mail, Contacts, Calendars and then add the email account again on the iOS device.
    If you're still unable to send or receive email, contact your email provider and verify the account settings are correct. You will need to gather this information (PDF).
    All the very best,
    Sterling

  • I couldn't buy app from my credit card...please give me the solution, I couldn't buy app from my credit card...please give me the solution

    I couldn't buy app from my credit card...please give me the solution, I couldn't buy app from my credit card...please give me the solution

    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    Changing Account Information  >  http://support.apple.com/kb/HT1918
    Jinnah1951 wrote:
    I couldn't buy app from my credit card..
    If necessary... Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Please  give me the solutions

    i have created the user and i have given the full authorisations
    to sales order and the delivery.when  i login in the in the user,
    when i am  creating the sales order.
    system is asking the "to generate this document , first deifne
    the numbering series in the administation module.
    then i login in the super user and in  the adminsitation in the
    system intialization and in the document numbering
    on double clicking  in the sales order.
    what changes have to be made in sales order number series
    please give your valuable suggestion

    I think that it is usually an authorization issue for the numbering series. I think that you will find that a superuser, e.g. manager, can add a sales order.
    In General Authorizations, give users access to:
    Administration > System Initialization > Series
    Unless you have some complex numbering sequence, you will often be OK to just give users Full Authorization to all the Series.
    Regards,
    Douglas McDove

  • Urgent Query please give me the solution ASAP

    Hi ,
    i want to know a simple thing,and my question is "How we can retrive data from a database table using BPEL ,e.g emp"
    if possible plesae tell me the step by step process.
    Thanks ,
    Prakash

    Hi Prakash,
    In order to retrieve data from a database table u will have to do the following
    1- Create a Database connection on ur Database according to it's type.
    2- Select the Services tab from the component palette.
    3- Drag and drop a Database adapter.
    4- A wizard window will open type in the service name for example select then choose the DB connection u created in step 1 then select the perform an operation on the table then select (select) radio button then import the table u want to select from , enter selection coloumns u want to add then finish.
    5. Now you have created the Database adapter u need an invoke activity and create a variable that will hold this data using ur table schema .

  • Please give me the solution if any one knows

    Dear forum members,
    I have an assignment like that
    Happy birth Day (that should move like marquee)
    To(Fixed)
    (Following values should come one by one from oracle database and move )
    Name , Dept , DOB
    Ali , IT , 01/11/1980
    Courtesy from HR ( this message should be fixed)
    And finally the whole report or file should be used as a screen saver. Please tell how it could be done.
    Thanks
    Fiaz

    I just thought about the last part of your posting:
    And finally the whole report or file should be used as a screen saver.
    I could send you the code to scroll a message across a text item on a form. How you implement it is up to you. If you want an actual screen saver (windows) you should be thinking about using another product, not oracle forms. It doesn't sound very efficient to be attempting to create an actual screen saver in forms. Why not just create a scrolling marque on an initial screen when they log in (based on birthday or what ever) or have a scrolling text field on your main form.
    Any way, if you are actually looking for a screen saver application, you should think about looking at another solution in my opinion.
    Regards.

  • Please give me the solution

    About dtw
      when i am uploading the business partners  it is giving the the
    error cardcode   the field is too small 65171

    Hi ,
    You will have to give more details to understand the problem. What is the exact data in BP's that you were trying to load  and i guess this error has come while doing DTW??? What were the codes of the BP's that were used...were they alpha numeric or numeric>???
    Pleaase givethe details.
    Nagesh

  • Please give me the solution related to JavaEmail .

    Hi,
    I am using MimeMessage to send emails. I also sending attachments. I am using both Lotus Notes and Outlook server.
    Now how shall I decide what would be the maximum limit of the size for one email which I shall send. Can I handle the size in my program or the size depends on the Lotus Notes or Outlook server ?

    BellaNew wrote:
    Now how shall I decide what would be the maximum limit of the size for one email which I shall send. Can I handle the size in my program or the size depends on the Lotus Notes or Outlook server ?Quite likely. And whether the message actually gets delivered is likely to depend on the POP server settings of the recipients too.
    Winston

  • Please give me the solution on open quotation in sap sd

    i have one requirment for displaying the open Quotaitons in SD how we can find open quotations in SD it is like VA25 Transaction 1)Open Quotations
                        2) All Quotations
                        3) My Quotations
    how  can i make validations on this selections.
    Moderator Message: Spec-dumping is not allowed.
    Edited by: kishan P on Oct 13, 2010 11:16 AM

    use the concept of configurable material to have these different colours or designs...but the code will be the same....its not possible to have a different material code in PO wrt Contract

  • Urgent Need: Query is taking time

    Hi,
    I have a query which is taking lots of time.Please help me in this regard...
    select subscripti0_.RENTAL_ID as RENTAL1_101_0_, movieprodu1_.product_id as product1_45_1_, moviepacka2_.PACKAGE_ID as PACKAGE1_47_2_, movietitle3_.TITLE_ID as TITLE1_48_3_, subscripti0_.LOGICAL_QUEUE_POSITION as LOGICAL2_101_0_, subscripti0_.STATUS as STATUS101_0_, subscripti0_.RENT_CODE as RENT4_101_0_, subscripti0_.IS_VISIBLE_FLAG as IS5_101_0_, subscripti0_.SHIP_DATE as SHIP6_101_0_, subscripti0_.DATE_CHECK_IN as DATE7_101_0_, subscripti0_.SET_NBR as SET8_101_0_, subscripti0_.ALLOCATION_DATE as ALLOCATION9_101_0_, subscripti0_.USPS_SHIP_DATE as USPS10_101_0_, subscripti0_.CENTRAL_CHECKIN_DATE as CENTRAL11_101_0_, subscripti0_.ESTIMATED_ARRIVAL_DATE as ESTIMATED12_101_0_, subscripti0_.CREATED_BY as CREATED13_101_0_, subscripti0_.CREATED_DATE as CREATED14_101_0_, subscripti0_.UPDATED_BY as UPDATED15_101_0_, subscripti0_.UPDATED_DATE as UPDATED16_101_0_, subscripti0_.SUBSCRIPTION_ID as SUBSCRI17_101_0_, subscripti0_.MOVIE_ID as MOVIE18_101_0_, movieprodu1_.ONLINE_RELEASE_DATE as ONLINE2_45_1_, movieprodu1_.PRODUCT_TITLE as PRODUCT3_45_1_, movieprodu1_.PACKAGE_ID as PACKAGE4_45_1_, movieprodu1_1_.AVAILABILITY_BAND as AVAILABI2_46_1_, movieprodu1_1_.TOTAL_RENTABLE_INVENTORY as TOTAL3_46_1_, NVL(movieprodu1_.ONLINE_FLAG, 0) as formula0_1_, NVL(movieprodu1_.PRIMARY_PRODUCT, 0) as formula1_1_, moviepacka2_.TITLE as TITLE47_2_, moviepacka2_.dvd_release_date as dvd3_47_2_, moviepacka2_.FORMAT as FORMAT47_2_, moviepacka2_.PACKAGE_MPAA as PACKAGE5_47_ 2_, moviepacka2_.T_ARTICLE as T6_47_2_, moviepacka2_.TITLE_ID as TITLE7_47_2_, movietitle3_.TITLE as TITLE48_3_, movietitle3_.THEATRICAL_RELEASE as THEATRICAL3_48_3_, movietitle3_.TITLE_MPAA as TITLE4_48_3_, movietitle3_.LEGACY_ID as LEGACY5_48_3_, movietitle3_.AVERAGE_USER_RATING as AVERAGE6_48_3_, movietitle3_.RUNNING_TIME as RUNNING7_48_3_, movietitle3_.PRIMARY_PACKAGE_ID as PRIMARY8_48_3_, movietitle3_1_.BUY_NEW as BUY2_49_3_, movietitle3_1_.BUY_USED as BUY3_49_3_, movietitle3_1_.RENT_DOWNLOAD as RENT4_49_3_, movietitle3_1_.BUY_DOWNLOAD as BUY5_49_3_, NVL(movietitle3_.HAS_RENTABLE_PRODUCTS, 0) as formula3_3_ from SUBSCRIPTION_RENTAL subscripti0_ inner join ACTIVE_MOVIE_PRODUCT movieprodu1_ on subscripti0_.MOVIE_ID=movieprodu1_.product_id left outer join PRODUCT_AVAILABILITY movieprodu1_1_ on movieprodu1_.product_id=movieprodu1_1_.MOVIE_ID inner join ACTIVE_MOVIE_PACKAGE moviepacka2_ on movieprodu1_.PACKAGE_ID=moviepacka2_.PACKAGE_ID inner join ACTIVE_MOVIE_TITLE movietitle3_ on moviepacka2_.TITLE_ID=movietitle3_.TITLE_ID left outer join MOVIE_TITLE_ATTRIBUTES movietitle3_1_ on movietitle3_.TITLE_ID=movietitle3_1_.TITLE_ID where subscripti0_.SUBSCRIPTION_ID=:1 and subscripti0_.DATE_CHECK_IN>:2 and (subscripti0_.DATE_CHECK_IN is not null) order by subscripti0_.DATE_CHECK_IN DESC
    Explain Plan for this query:
    OPERATION OBJECT_NAME OPTIMIZER COST BYTES CARDINALITY CPU_COST IO_COST
    SELECT STATEMENT ALL_ROWS 148 1570 5 10090819 147
    SORT 148 1570 5 10090819 147
    NESTED LOOPS 147 1570 5 1237900 147
    NESTED LOOPS 142 1530 5 1191042 142
    NESTED LOOPS 141 1470 5 1174111 141
    NESTED LOOPS 129 1398 6 1073114 129
    NESTED LOOPS 117 1062 6 968996 117
    PARTITION HASH 111 732 6 911328 111
    TABLE ACCESS SUBSCRIPTION_RENTAL ANALYZED 111 732 6 911328 111
    INDEX INDX_SUB_RENTAL_SUB ANALYZED 3 10 43164 3
    TABLE ACCESS MOVIE_PRODUCT ANALYZED 1 55 1 9611 1
    INDEX PK_MOVIE_PRODUCT ANALYZED 0 1 1900 0
    TABLE ACCESS MOVIE_PACKAGE ANALYZED 2 56 1 17353 2
    INDEX PK_MOVIE_PACKAGE ANALYZED 1 1 9021 1
    TABLE ACCESS MOVIE_TITLE ANALYZED 2 61 1 16833 2
    INDEX PK_MOVIE_TITLE ANALYZED 1 1 9021 1
    TABLE ACCESS MOVIE_TITLE_ATTRIBUTES ANALYZED 1 12 1 9331 1
    INDEX PK_MOVIE_TITLE_ATTRIBUTES ANALYZED 0 1 1900 0
    TABLE ACCESS PRODUCT_AVAILABILITY ANALYZED 1 8 1 9371 1
    INDEX PRODUCT_AVAILABILITY_PK ANALYZED 0 1 1900 0
    I need the help very urgently. Kindly give me the solution immediately.
    Edited by: msora on Feb 10, 2009 3:19 AM

    msora wrote:
    Thanks Ozy,
    The query is using joins instead of subquery. The statistics are latest. the query is using indexes too.the optimzer_mode is all_rows.
    Now, you tell me what hint i should use to optimize this query?
    Thanks and Regards,
    MSORAHmm, urgent, immediately, its not Support MSORA. Be patient while asking for help or if its really urgent, open an SR with support.
    Your query is not able to be read. Format it using the { code }( without spaces) and post it. Also there is no such thing that you can just put any hint and query will be tuned. Trace your query with 10046 trace( search this forum for that) and paste its output here.
    Aman....

  • Using Materilaized view in a query .. query is taking time????

    Hi I have a query :-
    SELECT rownum as id, u.last_name, u.first_name,u.phone phone, u.empid,u.supervisor id
    FROM emp_view u -- using view
    CONNECT BY PRIOR u.empid = u.supervisor_id
    START WITH u.sbcuid = 'ph2755';
    here emp_view is a view .
    ------ The above query is taking 3 sec to execute.
    Then I created Materialuized view emp_mv and the the MV query is same as emp_view view query.
    After this i executed following sql
    SELECT rownum as id, u.last_name, u.first_name,u.phone phone, u.empid,u.supervisor id
    FROM emp_mv u -- using materialized view
    CONNECT BY PRIOR u.empid = u.supervisor_id
    START WITH u.sbcuid = 'ph2755';
    this query is taking 15 sec to execute..... :(
    can anyone please tell me why MV query is taking time????

    Hi,
    In your first case you query a view, meaning that you query the underlying tables. These probably have indexes and stats are updated.
    In you second case you query a materialized view, meaning that you query the underlying base table of that mview.
    This probably do not have the same indexes to support that query.
    But of course, I'm just guessing based on the little information provided.
    If you want to take this further, please search for "When your query takes too long" and "How to post a tuning request".
    These two threads holds valuable information, not only on how to ask this kind of question, but also how to start solving it on your own.
    Regards
    Peter

  • HT1212 my i-pod is Disable ... because i enter wrong password many times... so please give me helpful solution.... thanking you...

    my i-pod is Disable ... because i enter wrong password many times... so please give me helpful solution.... thanking you...

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

Maybe you are looking for

  • Possibility of Web dynpro ABAP development for SAP R/3 4.7 Version

    Hi Experts,      I request for information regarding Web Dynpro ABAP. We have SAP R/3 4.7 as back end. And we are going to implement NetWeaver 2004s - Enterprise Portal 7.0 as front end. We are taking development option as Web Dynpro ABAP. Is it poss

  • My sleep button is jammed and i cant fix it what do i do

    My sleep button is jammed i tried using an alcohal swab but it didnt work what do i do now

  • Problem with t-code CS01 in BDC

    hi expert, i am working on t-code CS01. i need to upload master data. but in this while making BDC i am facing problem in first screen we have to enter 1. material number 2. plant 3. bom usage in second screen i want upload data upto 0150 item number

  • Galssfish Server Unable to start

    Hello Sir, I have installed JDK 6, Oracle 10g Database Server and Netbean 6.9. Glassfish Server came inbuilt with Netbeans. When i try to start the Glassfish Server, its not staring and giving below error SEVERE: Shutting down v3 due to startup excep

  • Windows XP not seeing iPhone

    Device manager not seeing iPhone. Problem began after upgrade to iTunes 8.0.2.20. USB ports working with all other devices. Computer sees iPod nano as does iTunes. Have uninstalled and reinstalled all iTunes components. usbaapl driver appears in Driv