Reducing the time for select query

Hi
Please advise why the query is taking too much time to execute when the cost involved in the joins is less.
Here is the explain plan for the same
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 4989 | 984K| | 295K (1)| 00:59:09 |
| 1 | SORT ORDER BY | | 4989 | 984K| 2120K| 295K (1)| 00:59:09 |
|* 2 | FILTER | | | | | | |
|* 3 | HASH JOIN | | 4989 | 984K| | 12975 (1)| 00:02:36 |
|* 4 | HASH JOIN | | 4989 | 862K| | 11943 (1)| 00:02:24 |
| 5 | TABLE ACCESS FULL | tedy_hf | 993 | 22839 | | 17 (0)| 00:00:01 |
|* 6 | HASH JOIN | | 4989 | 750K| | 11925 (1)| 00:02:24 |
|* 7 | TABLE ACCESS FULL | tedy_hf453 | 145 | 2465 | | 7 (0)| 00:00:01 |
|* 8 | HASH JOIN | | 4989 | 667K| | 11917 (1)| 00:02:24 |
|* 9 | INDEX SKIP SCAN | tedy_ehf33 | 4987 | 116K| | 4992 (1)| 00:01:00 |
|* 10 | TABLE ACCESS FULL| tedy_7nl | 43367 | 4785K| | 6925 (1)| 00:01:24 |
| 11 | TABLE ACCESS FULL | tedy_hfeei | 89616 | 2187K| | 1032 (1)| 00:00:13 |
|* 12 | TABLE ACCESS FULL | tedy_hf455 | 2 | 32 | | 113 (0)| 00:00:02 |
--------------------------------------------------------------------------------------------------

Because the cost is internally calculated by the Cost Based Optimizer using the data available when parsing the query (tables, columns, constraints, cardinalities, etc...). If you feed it bad information (stale statistics, not using NOT NULL constraints, check constraints, foreign key constraints, etc..) it chooses inappropriate access methods.
Based on what you've posted, not much help is possible.
When your query takes too long ...
and
HOW TO: Post a SQL statement tuning request - template posting
Will get you started on providing meaningful information with which we can help you.

Similar Messages

  • How to reduce the time for each clips up to 0,04 seconds?

    Hi, I'm trying to realize my first time laps. I've need to reduce the time for each clips up to 0,04 seconds, but it seems that the minimum time is 0,1 second. There's a solution?

    And use a zip file.  Many people can't open RARs.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Reducing the time for a call to go to voicemail

    I want to reduce the time time it takes for a call to go to voicemail. Currently the setting in Tools-Options-Calls-Voice Messages is 15 seconds. How can I reduce the time.

    Yes there is a way to set up the default number of "time" not rings. Default is 20sec I have mine at 30sec (max)
    Voicemail No-Answer Length
    check to see vm number *#61#
    Cing 61*1areacodevmnumber*1130#
    First Dial *#61# to see your voice mail number (this is the number that the phone fowards the call to when there is no answer) write it down including area code
    Then dial 611(VOICEMAIL NUMBER)1130# then dial or send
    There should be no spaces and make sure you enter the number correctly (ie) 61*13235552323*1130# then you should see a comfirmation.

  • How to reduce the time..?

    Hi All,
    this statement below is taking lot of time how can i reduce the time ....?
    cheers
    sundeep
    select * from zausfu where vbeln in so_vbeln
                        AND wadat_ist IN so_wadat
                        AND aland IN so_eland
                        AND vsbed IN so_vsbed
                        AND vsart IN so_vsart
                        AND sdabw = sdabw_wert.
    tab-aland = zausfu-aland.
    tab-vbeln = zausfu-vbeln.
    tab-wadat = zausfu-wadat_ist.
    tab-vsart = zausfu-vsart.
    tab-sdabw = zausfu-sdabw.
    IF sdabw_wert = 'A'.
        tab-flag = 'X'.
      ENDIF.
       anz_datensaetze = anz_datensaetze + 1.
    append tab.
    endselect.

    Hi Sundeep,
    Please use the below code, might be it will reduce the time for u r program.
    Types Declaration
    types: begin of ty_zausfu,
           aland type zausfu-aland,
           vbeln type zausfu-vbeln,
           wadat type zausfu-wadat_ist,
           vsart type zausfu-vsart,
           sdabw type zausfu-sdabw,
           end of ty_zausfu.
    types: begin of ty_tab,
           aland type zausfu-aland,
           vbeln type zausfu-vbeln,
           wadat type zausfu-wadat_ist,
           vsart type zausfu-vsart,
           sdabw type zausfu-sdabw,
           flag(1)
           end of ty_tab.
    Internal Table Declaration
    data: it_zausfu type standard table of ty_zausfu initial size 0,
            it_tab type standard table of ty_tab initial size 0.     
    Workarea Declaration
    data: is_zausfu type ty_zausfu,
            is_tab type ty_tab.
    Data Declaration
          anz_datensaetze type i.
    Data Read from Tables
    select aland vbeln wadat_ist vsart sdabw from zausfu
    into table it_zausfu
    where vbeln in so_vbeln
    AND wadat_ist IN so_wadat
    AND aland IN so_eland
    AND vsbed IN so_vsbed
    AND vsart IN so_vsart
    AND sdabw = sdabw_wert.
    describe table it_zausfu lines anz_datensaetze.
          loop at it_zausfu into is_zausfu.
          move-corresponding is_zausfu to is_tab.
          if sdabw_wert = 'A'.
            is_tab-flag = 'X'.
          endif.
          append is_tab to it_tab.
          clear: is_zausfu, is_tab.
          endloop.
    Please reward points, if it is ok.
    Regards,
    Subbarao

  • Web report for opening it takes long time how to reduce the time?

    HI Experts,
    I created report using webi. For next time while opening it takes more time. How to reduce the time.

    Hi Manikandan,
    There could be multiple reason behind the bad performance.
    1. Are you using supported JVM version to run Webi reports?
    2. Do the reports contain prompts? Are the LOVs set to "Automatic refresh before use"? If yes, uncheck it.
    3. How many queries do the report has? Can you run the queries one by one and check which query is taking much time?
    4. If it based on relational database, copy and run it against the database directly and check how much time it takes. If more, you may have to fix the issue at database level like using temporary tables, indices, etc.
    5. Also check if there are firewalls or proxy server between client and server communication. if yes, try to refresh the report directly on BO server and check.
    6. Check if there is any hinderance between BO server and Database server communcation.
    Hope it will help.
    Regards,
    Yuvraj

  • Can we handle exceptions for the expressions in select query?

    Hi all,
    Can we handle exceptions for the expressions in select query.
    I created a view, there I am extracting a substring from a character data and expected that as a number.
    For example consider the following query.
    SQL> select to_number( substr('r01',2,2) ) from dual;
    TO_NUMBER(SUBSTR('R01',2,2))
    1
    Here we got the value as "1".
    Consider the following query.
    SQL> select to_number( substr('rr1',2,2) ) from dual;
    select to_number( substr('rr1',2,2) ) from dual
    ORA-01722: invalid number
    For this I got error. Because the substr returns "r1" which is expected to be as number. So it returns "Invalid number".
    So, without using procedures or functions can we handle these type of exceptions?
    I am using Oracle 10 G.
    Thanks in advance.
    Thank you,
    Regards,
    Gowtham Sen.

    SQL> select decode(ltrim(rtrim(translate(substr('r21', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('r21', 2, 2)), null) from dual;
    DE
    21
    SQL> ed a
    SQL> select decode(ltrim(rtrim(translate(substr('rr1', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('rr1', 2, 2)), null) from dual;
    D
    -

  • How can I reduce the time between songs to zero for seemless mixing

    Hi, Ive only just got my 5th generation Ipod and was wondering if its possible to reduce the time gap between songs to zero. I.E a lot of Cd's and albums I have are mixed so it doesnt seem there is a pause between each song but when I put the cd's onto my ipod there is still a pause.
    For example I have a 2 many djs album which is heavily mixed with a new song every 30 seconds so it is a bit of a nuisance if there is a pause every 30 seconds.

    Your question gets asked on a daily basis, and has been answered many times. If you search for 'gapless playback' you'll see how just how many people inquire about this.
    In short... the iPod does not support gapless playback.
    If you want to eliminate the gaps, one workaround is to join the individual tracks together, and play them as one single track. You can do this by reimporting the CD into iTunes using the 'Join CD Tracks' feature.
    See Step 3 in this article:
    http://docs.info.apple.com/article.html?artnum=93079
    If you'd like to send feedback to Apple to ask that they include gapless playback as a feature in future revisions of the iPod firmware, you can do so on this feedback page.

  • I am having a difficult time getting the duration of multiple selected clips. The duration display only will display the time for one clip.  Yes, I know I can add them up myself, but why?  :-)

    I am having a difficult time getting the duration of multiple selected clips. The duration display will only display the time for one clip not multiple clips.  Yes, I know I can add them up myself, but why?  :-)
    I am using imovie 10.0.6

    For reasons that you would have to ask Apple for they decided not to allow the precise position of the playhead to be shown in iMovie 10 (unlike in FCP 10.1.x).
    Geoff

  • Capturing the time for rendering the JSFscreen.

    I have a JSF application running on WAS6.1. We have some performance issues.
    The JSF rendering is taking long time to render the page. All the database operation ie querying the database and leaving the prerender method is happening so fast.
    So how can we capture the time for the JSF components to render the page. Is there any way to do that?

    i tried to implement the phase listener.But i’m getting an error message in the JSP saying
    JSPG0046E: Unable to locate tagfile for tag phaseListener
    My action getting triggered on click of a tab. So in my JSP page I mentioned as
    <ui:tab action="#{reportsView.kpiRanking_action}" binding="#{reportsView.kpiRankingStore}"
    id false*/;&#xa;openPreloadWindow(); &#xa;document.getElementById("form1:periodTypeDropDown")[2].selected = true;&#xa;savePeriodType();"
    style="height: 25px; text-align: center; vertical-align: middle; width: 91px;cursor: pointer;" text="Store KPI Ranking">
    <f:phaseListener binding="#{reportsView.phaseListenerImpl}" type="com.capricorn.sckpi.PhaseListenerImpl"/>
    <ui:panelLayout binding="#{reportsView.layoutPanel30}" id="layoutPanel30" style="height: 335px; width: 100%; overflow-y: auto;">
    <ui:table augmentTitle="false" binding="#{reportsView.storeWithinDistrictTableStore}"
    id="storeWithinDistrictTableStore"
    style="height: 100%; left: 0px; top: 0px; position: relative; width: 100%" title="KPI Ranking">
    <ui:tableRowGroup binding="#{reportsView.storeWithinDistrictRowGroupStore}"
    id="storeWithinDistrictRowGroupStore" sourceData="#{reportsView.defaultTableDataProvider}" sourceVar="currentRow"/>
    </ui:table>
    <ui:table augmentTitle="false" binding="#{reportsView.storeWithinDistrictTableStore1}"
    id="storeWithinDistrictTableStore1"
    style="height: 100%; left: 0px; top: 0px; position: relative; width: 100%" title="YTD Ranking">
    <ui:tableRowGroup binding="#{reportsView.storeWithinDistrictRowGroupStore1}"
    id="storeWithinDistrictRowGroupStore1" sourceData="#{reportsView.defaultTableDataProvider}" sourceVar="currentRow"/>
    </ui:table>
    </ui:panelLayout>
    </ui:tab>
    My header for JSP is
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    Please help.

  • Run time for a query

    Hello all,
    Can you please tell me how can I see the total running time for a query?
    What other transactions besides ST03 and RSRT with statistics on?
    Points will be assigned
    Thanks
    Ramona

    Hi........
    You can use ST03N -> BW System Load
    Depending on the time frame you select, you get historical data or
    current data.
    To get to a specific query you need to drill down using the InfoCube
    name
    Use Aggregation Query to get more runtime information about a
    single query. Use tab All data to get to the details.
    (DB, OLAP, and Frontend time, plus Select/ Transferred records,
    plus number of cells and formats)
    Also You can get it in RSRT,RSRTQ...
    WE07  IDoc statistics 
    DB20  Update DB Statistics 
    Regards,
    Debjani........
    Edited by: Debjani  Mukherjee on Sep 25, 2008 2:42 PM

  • Saving to SharePoint works only half the time for Windows 7 Users--all the time for Windows XP users

    We have a SharePoint 2010 Environment with hardware load balancing, 2 WFEs, 2 Apps Servers and 1 SQL Server. This was built in October 2013. Office Integration and Saving back to SharePoint works all of the time for users on XP. It works sporadically for
    users on Windows 7. When Windows 7 users do the following:
    Opening an Office Document from computer and saving it to SharePoint
    Within a Document Library, using Save As from an opened document
    When selecting in a Document Library from the Document Tab> “New” and then the desired content type
    Send> Save to SharePoint from within Office Document
    They may either be brought to the SharePoint library (correct) or to My Documents (incorrect).
    In the case of number 1 (Opening an Office Document from computer and saving it to SharePoint)--using Save and Send will sometimes open the SharePoint library and sometimes open My Documents.
    Our URL is https://CompanyName.domainname.com/Sites/SiteCollectionName
    The intermediary "Sites" is actually a blank path.
    When My Documents is opened I've noted with Fiddler (a web debugger) that we get a 404 on sites:
    Could this be the issue?

    Some things to double check:
    Ensure that you have sticky sessions enabled on your load balancer
    Check that your WebDav calls are making it to the server
    Ensure that you have a root site collection in all your web apps
    Just out of curiosity, what is the http request look like for the 404 error?
    Chris Givens CEO, Architecting Connected Systems
    Blog Twitter

  • Reducing the time interval in file Adpt to write a flat file at a location

    Hi All,
    I hav a scenario where i hav to write a flat file (<b>XXX.txt</b>) to a location. b4 doing that, i hav to check whether <b>XXX.txt</b> already exists or not. If it doesn't exists then i hav to write the <b>XXX.txt</b> file there. if it already exists, then i hav to wait until that <b>xxx.txt</b> file gets deleted.
    In the receiver file adapter v hav an option <b>file construction mode = <u><i>create</i></u></b> which does the same thing. but the problem here is it is taking too long (<b>more than 5 min</b>) which is not at all acceptable in my case (it is ok <b>if it takes 1 min</b>).
    Is there any way to <b>reduce the time interval</b> using the same option?
    Or do we hav any <b>work around solution</b> for acheiving the same scenario?
    any help wud b appreciated.
    Thnx in Adv.
    Anil

    Anil
    As far as my knowledge goes I think it is not possible because we are not going to do anything from our end. XI is doing processing and creating a file for you. But you might be sending a large file at a time. So you have to improve the performance in your scenario. You check this urls on how to improve performance in XI:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
    Improving performence in XI
    Maximum Permitted File Size in XI
    ---Satish

  • Reduce publishing time for Air iOS apps?

    Hi,
    Currently it's taking my machine up to  4 minutes to publish an Air iOS app.
    Are there any settings or hacks I could try to reduce the time?
    I'm using Flash CS 6 + AIR SDK 16 on a Windows 8.1 laptop.
    Stats:
    - Intel Pentium Prozessor (1,5 GHz, Intel HD Graphics, Microsoft Windows 8, 64-bit)
    - 4 GB DDR3-RAM
    - 500 GB Hybrid-SSHD-Festplatte with 8 GB SSD
    Thanks for any tips.

    Hi,
    I'm really interested in this feature as well. Have spent a bit of time attempting to get one running through a native extension but it doesn't appear to work. I believe something in the AIR build process is blocking the components required. I've tried several methods so far:
    packaging the appex with an ANE
    packaging the appex with the AIR container app
    using a class instead of a storyboard
    But nothing seems to be working. This is even before the app extension is doing anything. My guess is that the plist file specifying the app extension isn't correctly being included in the application but I have no idea how to update it to test.

  • How can I fix the long delay (15 min  ) between the time I select a song to the time it begins playing?

    How can I fix the lond delay (15 min.) between the time I select a song to the time it begins playing?

    Hi Ben,
    This is a common issue that NI LabVIEW does not address.
    The good news is that OpenG provides a function to do just what you need.
    See this article: Resize Front Panel to largest decoration
    The way to get the OpenG functions is to use the JKI VI Package Manager (VIPM).
    In addition to the OpenG functions there are several other community provided tools avaliable through VIPM.
    For a quick test, I'm attaching these files (LV version 2010 sp1):
    Fit VI window to Largest Dec__ogtk.vi and the required sub vi Current VIs Parents Ref__ogtk.vi.
    You should really use VIPM to get the full OpenG library - there are many gems in there.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    Fit VI window to Largest Dec__ogtk.vi ‏29 KB
    Current VIs Parents Ref__ogtk.vi ‏9 KB

  • Where did the time zone selection go when making an event in Calendar?

    So in iOS5 and iOS6 there was an option to select the time zone the event was going to be in when creating it in the Calendar app.
    Now in iOS7 it appears it is no longer there unless you turn time zone support ON.
    I want to be able to have time zone support OFF like I had in iOS5 and 6 and still have the time zone selection option when creating events.
    I'm at a loss for why this option was removed. Is there any way to get this back? My coworkers are having issues creating meeting events when out on the road and figuring out the right time zone +/- when moving between time zones.

    You can middle-click a tab with the mouse scroll wheel to close that tab.
    Did you try Save mode to be sure that it is not caused by an extension or theme?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    You can also check:
    * http://kb.mozillazine.org/browser.tabs.closeButtons (1)
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

Maybe you are looking for