When query is taking too long time

When query is taking too long time,Where and how to start tuning it?
Here i've listed few things need to be considered,out of my knowledge and understanding
1.What the sql is waiting for(wait events)
2.Parameter modification need to be done at system/session level
3.The query has to be tuned (using hints )
4.Gathering/deleting statistics
List out any other things that need to be taken into account?
Which approach must be followed and on what basis that approach must be considered?

When query is taking too long time,Where and how to start tuning it?explain plan will be good start . trace also
Here i've listed few things need to be considered,out of my knowledge and understanding
1.What the sql is waiting for(wait events)When Oracle executes an SQL statement, it is not constantly executing. Sometimes it has to wait for a specific event to happen befor it can proceed.
Read
http://www.adp-gmbh.ch/ora/tuning/event.html
2.Parameter modification need to be done at system/session levelDepend on parameter , define parameter , trace done on session level for example
3.The query has to be tuned (using hints )Could be help you but you must know how to use .
4.Gathering/deleting statisticsDo it in non working hours , it will impact on database performance , but its good
List out any other things that need to be taken into account?Which account ?
Which approach must be followed and on what basis that approach must be considered?you could use lot of tools , Trace , AWR

Similar Messages

  • Connect by level query is taking too long time to run

    Hello,
    I have a query that returns quarters (YYYYQ) of a begin- and enddate within a specific id, that is built with a connect by level clause, but the query is running to long. I have used explain plan to see what the query is doing, but no silly things to see, just a full table scan, with low costs.
    This is the query:
    select to_char(add_months( cpj.crpj_start_date,3*(level - 1)),'YYYYQ') as sales_quarter
    , cpj.crpj_id as crpj_id
    from mv_gen_cra_projects cpj
    where cpj.crpj_start_date >= to_date('01/01/2009','mm/dd/yyyy')
    and cpj.crpj_start_date <= cpj.crpj_end_date
    and cpj.crpj_routing_type = 'A'
    and ( cpj.crpj_multi_artist_ind = 'N'
    or cpj.crpj_multi_artist_ind is null)
    connect by level <= 1 + ceil(months_between(cpj.crpj_end_date,cpj.crpj_start_date)/3);
    The result have to be like this:
    SALES_QUARTER CRPJ_ID
    20091 100
    20092 100
    20093 100
    20094 100
    20101 100
    20102 100
    Can anyone help me out with this?

    but no silly things to see, just a full table scan, with low costs.Well, maybe an index scan would be faster?
    However:
    You will need to provide us some more details, like:
    - database version (the result of: SQL> select * from v$version;)
    - post the explain plan output (put the tag before and after it, so indentation and formatting are maintained, see the [FAQ|http://forums.oracle.com/forums/help.jspa] for more explanation regarding tags )
    - what are your optimizer settings (the result of: SQL> show parameter optimizer)
    - if applicable: are your table statistics up to date?
    - mv_gen_cra_projects  is a materialized view perhaps?
    Edited by: hoek on Jan 26, 2010 10:50 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Taking too long time to get LOV

    HI,
    I have created a customer folder in which the query retuns 0.5 million records.
    I have created a item class in airline_name column which is being used in the worksheet as parameter.
    The problem is it is taking too long time near about 2 min to get LOV when the user wants to search the exact name.
    Thanks,
    Himanshu Tiwari

    Hi,
    Usually, you should not use the folder that the report is based on to define the LOV. You should use a separate folder to define the LOV that is optimised to return the content of the LOV.
    Rod West

  • Discoverer report taking too long time to open.

    HI,
    Discovere reports are taking too long time to open. Please help to resolve this.
    Regards,
    Bhatia

    What is the Dicoverer and the Application release?
    Please refer to the following links (For both Discoverer 4i and 10g). Please note that some Discoverer 4i notes also apply to Discoverer 10g.
    Note: 362851.1 - Guidelines to setup the JVM in Apps Ebusiness Suite 11i and R12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362851.1
    Note: 68100.1 - Discoverer Performance When Running On Oracle Applications
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=68100.1
    Note: 465234.1 - Recommended Client Java Plug-in (JVM/JRE) For Discoverer Plus 10g (10.1.2)
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=465234.1
    Note: 329674.1 - Slow Performance When Opening Plus Workbooks from Oracle 11.5.10 Applications Home Page
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=329674.1
    Note: 190326.1 - Ideas for Improving Discoverer 4i Performance in an Applications 11i Environment
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=190326.1
    Note: 331435.1 - Slow Perfomance Using Disco 4.1 Admin/Desktop in Oracle Applications Mode EUL
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=331435.1
    Note: 217669.1 - Refreshing Folders and opening workbooks is slow in Apps 11i environment
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=217669.1

  • Hyperion Planning Web URL is taking Too long time to respond

    Hi,
    When Users are accessing Hyperion Planning URL web link its taking too long time to respond.We restarted the services after these for 2 hours it works fine after that again same issue.Please advise.

    Hi John,
    Follwing is the Log noted: when URL is slow:
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at HspEnterData.Handle(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at HspEnterData.doPost(Unknown Source)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
    [8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at HspEnterData.Handle(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at HspEnterData.doPost(Unknown Source)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
    [8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at HspEnterData.Handle(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at HspEnterData.doPost(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.HspRuntimeException: There was an error during the save process.
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at HspEnterData.Handle(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at HspEnterData.doPost(Unknown Source)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
    [8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at HspEnterData.Handle(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at HspEnterData.doPost(Unknown Source)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)

  • Why iPad2 is taking too long time for a software update?

    Hi, i have iPad2 with iOS 4.3, now I'd like to update to iOS 6.1.2, but it is taking too long time to update when i connect to iYunes.My internet speed is 15mbps.I am unable to understand the problem.Please help me

    Hi, i have iPad2 with iOS 4.3, now I'd like to update to iOS 6.1.2, but it is taking too long time to update when i connect to iYunes.My internet speed is 15mbps.I am unable to understand the problem.Please help me

  • Attribute Change run taking too long time to complete.

    Hi all,
    Attribute change run has been taking too long time to complete.It has to realign 50 odd aggreagates, some by delta , some by reconstruction. But inspite of all the aggregates it used to finish in quick time earlier. But since last 4-5 days it is taking indefinite time to finish.
    Can anyone please suggest what all reasons may be causing this? and what possibly can be the solution to the problem? It is becoming a big issue. So kindly help with ur advises.
    Promise to reward your answer liberally.
    Regards,
    Pradyut.

    Hi,
    Check with your functional owners in R/3 if there are mass changes/realignments or classification changes are going on regarding master data. e.g. reasigning materials to other material groups. This causes a major realignment in BW for all the aggregates. Otherwise check for parameterchanges / patches or missing db stats with your sap basis team.
    Kind regards, Patrick Rieken.

  • Query is taking too much time

    hi
    The following query is taking too much time (more than 30 minutes), working with 11g.
    The table has three columns rid, ida, geometry and index has been created on all columns.
    The table has around 5,40,000 records of point geometries.
    Please help me with your suggestions. I want to select duplicate point geometry where ida=CORD.
    SQL> select a.rid, b.rid from totalrecords a, totalrecords b where a.ida='CORD' and b.idat='CORD' and
    sdo_equal(a.geometry, b.geometry)='TRUE' and a.rid !=b.rid order by 1,2;
    regards

    I have removed some AND conditions That was not necessary. It's just that Oracle can see for example that
    a.ida='CORD' AND
    b.idat='CORD' AND
    a.rid !=b.rid AND
    sdo_equal(a.geometry, b.geometry)='TRUE'
    ORDER BY 1,2;if a.ida does not equal 'CORD', the whole set of conditions evaluates to FALSE, so Oracle will not bother evaluating the rest of the conditions because it's all AND'ed together, and TRUE AND FALSE = FALSE.
    So if you place your least expensive conditions first (even though the optimizer can and will reorder conditions) this will give you a small performance benefit. Too small to notice, but on 5.4 million records it should be noticable.
    and I have set layer_gtype=POINT.Good, that will help. I forgot about that one (Thanks Luc!).
    Now i am facing the problem to DELETE duplicate point geometry. The following query is taking too much time. What is too much time? Do you need to delete these duplicate points on a daily or hourly basis? Or is this a one-time cleanup action? If it's a one-time cleanup operation, does it really matter if it takes half an hour?
    And if this is a daily or even hourly operation, then why don't you prevent the duplicates from entering the table in the first place? That will save you from having to clean up afterwards. Of course, this might not be possible with your business requirements.
    Lastly: can you post an explain plan for your queries? Those might give us an idea of what is taking so much time. Please enclose the results of the explain plan with
    [ c o d e ]
    <code/results here>
    [ / c o d e ]
    that way the original formatting is kept and it makes things much easier to read.
    Regards,
    Stefan

  • Query is taking too long to execute - contd

    I am unable to post the entire explain plan in one post as it exceeds maximum length.
    Please advise on how to post this.
    Previous post Link : Link: Query is taking too long to execute
    Regards,
    Sreekanth Munagala.
    Edited by: Sreekanth Munagala on Oct 27, 2009 8:31 AM
    Edited by: Sreekanth Munagala on Oct 27, 2009 8:34 AM

    Hi Tubby,
    Today i executed only the first query in the view and it took almost 2.5 hrs.
    Here is the explain plan for this query
    SQL> SET SERVEROUTPUT ON
    SQL> set linesize 200
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT                                                                                                                                                                                      
    | Id  | Operation                                        |  Name                         | Rows  | Bytes | Cost  |                                                                                     
    |   0 | SELECT STATEMENT                                 |                               |     1 |   766 |  2448 |                                                                                     
    |   1 |  TABLE ACCESS BY INDEX ROWID                     | PO_VENDORS                    |     1 |    13 |     3 |                                                                                     
    |*  2 |   INDEX UNIQUE SCAN                              | PO_VENDORS_U1                 |     1 |       |     2 |                                                                                     
    |   3 |  TABLE ACCESS BY INDEX ROWID                     | PO_VENDORS                    |     1 |    29 |     3 |                                                                                     
    |*  4 |   INDEX UNIQUE SCAN                              | PO_VENDORS_U1                 |     1 |       |     2 |                                                                                     
    |   5 |  VIEW                                            | POC_ASN_PICKUP_LOCATIONS_V    |     2 |  2426 |    17 |                                                                                     
    |   6 |   UNION-ALL                                      |                               |       |       |       |                                                                                     
    |   7 |    NESTED LOOPS                                  |                               |     1 |    85 |     4 |                                                                                     
    |   8 |     NESTED LOOPS                                 |                               |     1 |    78 |     4 |                                                                                     
    |*  9 |      TABLE ACCESS BY INDEX ROWID                 | PO_VENDOR_SITES_ALL           |     1 |    73 |     3 |                                                                                     
    |* 10 |       INDEX UNIQUE SCAN                          | PO_VENDOR_SITES_U2            |     1 |       |     2 |                                                                                     
    |* 11 |      INDEX UNIQUE SCAN                           | PO_VENDORS_U1                 |     1 |     5 |     1 |                                                                                     
    |* 12 |     INDEX UNIQUE SCAN                            | FND_TERRITORIES_TL_U1         |     1 |     7 |       |                                                                                     
    |  13 |    NESTED LOOPS                                  |                               |     1 |    91 |    13 |                                                                                     
    |  14 |     NESTED LOOPS                                 |                               |     1 |    84 |    13 |                                                                                     
    |  15 |      TABLE ACCESS BY INDEX ROWID                 | PO_VENDORS                    |     1 |    13 |     3 |                                                                                     
    |* 16 |       INDEX UNIQUE SCAN                          | PO_VENDORS_U1                 |     1 |       |     2 |                                                                                     
    PLAN_TABLE_OUTPUT                                                                                                                                                                                      
    |* 17 |      TABLE ACCESS BY INDEX ROWID                 | FND_LOOKUP_VALUES             |     1 |    71 |    10 |                                                                                     
    |* 18 |       INDEX RANGE SCAN                           | FND_LOOKUP_VALUES_U2          |    13 |       |     2 |                                                                                     
    |* 19 |     INDEX UNIQUE SCAN                            | FND_TERRITORIES_TL_U1         |     1 |     7 |       |                                                                                     
    |* 20 |  COUNT STOPKEY                                   |                               |       |       |       |                                                                                     
    |  21 |   TABLE ACCESS BY INDEX ROWID                    | MTL_SYSTEM_ITEMS_B            |     8 |   136 |    12 |                                                                                     
    |* 22 |    INDEX RANGE SCAN                              | MTL_SYSTEM_ITEMS_B_U1         |     8 |       |     3 |                                                                                     
    |* 23 |  COUNT STOPKEY                                   |                               |       |       |       |                                                                                     
    |  24 |   TABLE ACCESS BY INDEX ROWID                    | MTL_SYSTEM_ITEMS_B            |     8 |   288 |    12 |                                                                                     
    |* 25 |    INDEX RANGE SCAN                              | MTL_SYSTEM_ITEMS_B_U1         |     8 |       |     3 |                                                                                     
    |  26 |  TABLE ACCESS BY INDEX ROWID                     | FND_TERRITORIES_TL            |     1 |    24 |     2 |                                                                                     
    |* 27 |   INDEX UNIQUE SCAN                              | FND_TERRITORIES_TL_U1         |     1 |       |     1 |                                                                                     
    |  28 |  NESTED LOOPS                                    |                               |     1 |    40 |     5 |                                                                                     
    |  29 |   TABLE ACCESS BY INDEX ROWID                    | HZ_CUST_ACCOUNTS              |     1 |    11 |     3 |                                                                                     
    |* 30 |    INDEX UNIQUE SCAN                             | HZ_CUST_ACCOUNTS_U1           |     1 |       |     2 |                                                                                     
    |  31 |   TABLE ACCESS BY INDEX ROWID                    | HZ_PARTIES                    |     1 |    29 |     2 |                                                                                     
    |* 32 |    INDEX UNIQUE SCAN                             | HZ_PARTIES_U1                 |     1 |       |     1 |                                                                                     
    |  33 |  TABLE ACCESS BY INDEX ROWID                     | FND_TERRITORIES_TL            |     1 |    24 |     2 |                                                                                     
    |* 34 |   INDEX UNIQUE SCAN                              | FND_TERRITORIES_TL_U1         |     1 |       |     1 |                                                                                     
    |  35 |  TABLE ACCESS BY INDEX ROWID                     | FND_TERRITORIES_TL            |     1 |    24 |     2 |                                                                                     
    |* 36 |   INDEX UNIQUE SCAN                              | FND_TERRITORIES_TL_U1         |     1 |       |     1 |                                                                                     
    |* 37 |  COUNT STOPKEY                                   |                               |       |       |       |                                                                                     
    PLAN_TABLE_OUTPUT                                                                                                                                                                                      
    |* 38 |   TABLE ACCESS BY INDEX ROWID                    | ONTC_MTC_PROFORMA_HEADERS     |     1 |    21 |     3 |                                                                                     
    |* 39 |    INDEX RANGE SCAN                              | ONTC_MTC_PROFORMA_HEADERS_U2  |     1 |       |     2 |                                                                                     
    |  40 |  TABLE ACCESS BY INDEX ROWID                     | FND_TERRITORIES_TL            |     1 |    24 |     2 |                                                                                     
    |* 41 |   INDEX UNIQUE SCAN                              | FND_TERRITORIES_TL_U1         |     1 |       |     1 |                                                                                     
    |* 42 |  COUNT STOPKEY                                   |                               |       |       |       |                                                                                     
    |* 43 |   TABLE ACCESS BY INDEX ROWID                    | ONTC_MTC_PROFORMA_HEADERS     |     1 |    21 |     3 |                                                                                     
    |* 44 |    INDEX RANGE SCAN                              | ONTC_MTC_PROFORMA_HEADERS_U2  |     1 |       |     2 |                                                                                     
    |  45 |  SORT AGGREGATE                                  |                               |     1 |    39 |       |                                                                                     
    |  46 |   NESTED LOOPS OUTER                             |                               |     2 |    78 |  1828 |                                                                                     
    |* 47 |    TABLE ACCESS FULL                             | ONTC_MTC_PROFORMA_HEADERS     |     1 |    24 |  1825 |                                                                                     
    |  48 |    TABLE ACCESS BY INDEX ROWID                   | ONTC_MTC_PROFORMA_LINES       |     5 |    75 |     3 |                                                                                     
    |* 49 |     INDEX RANGE SCAN                             | ONTC_MTC_PROFORMA_LINES_PK    |    11 |       |     2 |                                                                                     
    |  50 |  NESTED LOOPS                                    |                               |     1 |   766 |  2448 |                                                                                     
    |  51 |   NESTED LOOPS                                   |                               |     1 |   761 |  2447 |                                                                                     
    |  52 |    NESTED LOOPS                                  |                               |     1 |   746 |  2445 |                                                                                     
    |  53 |     NESTED LOOPS                                 |                               |     1 |   694 |  2443 |                                                                                     
    |  54 |      NESTED LOOPS                                |                               |     1 |   682 |  2441 |                                                                                     
    |  55 |       NESTED LOOPS                               |                               |     1 |   671 |  2439 |                                                                                     
    |  56 |        NESTED LOOPS                              |                               |     1 |   612 |  2437 |                                                                                     
    |  57 |         NESTED LOOPS                             |                               |     1 |   600 |  2435 |                                                                                     
    |  58 |          NESTED LOOPS                            |                               |     1 |   575 |  2433 |                                                                                     
    PLAN_TABLE_OUTPUT                                                                                                                                                                                      
    |  59 |           NESTED LOOPS                           |                               |     1 |   552 |  2431 |                                                                                     
    |  60 |            NESTED LOOPS                          |                               |     1 |   533 |  2429 |                                                                                     
    |  61 |             NESTED LOOPS                         |                               |     1 |   524 |  2428 |                                                                                     
    |  62 |              NESTED LOOPS                        |                               |     1 |   455 |  2427 |                                                                                     
    |  63 |               NESTED LOOPS                       |                               |     1 |   429 |  2426 |                                                                                     
    |  64 |                NESTED LOOPS                      |                               |     1 |   389 |  2424 |                                                                                     
    |  65 |                 NESTED LOOPS                     |                               |     1 |   368 |  2422 |                                                                                     
    |  66 |                  NESTED LOOPS                    |                               |     1 |   308 |  2421 |                                                                                     
    |  67 |                   NESTED LOOPS                   |                               |     1 |   281 |  2419 |                                                                                     
    |  68 |                    NESTED LOOPS                  |                               |     1 |   253 |  2418 |                                                                                     
    |  69 |                     NESTED LOOPS                 |                               |     1 |   214 |  2416 |                                                                                     
    |  70 |                      NESTED LOOPS                |                               |    39 |  7371 |  2338 |                                                                                     
    |* 71 |                       TABLE ACCESS FULL          | RCV_SHIPMENT_HEADERS          |    39 |  5070 |  2221 |                                                                                     
    |* 72 |                       TABLE ACCESS BY INDEX ROWID| RCV_SHIPMENT_LINES            |     1 |    59 |     3 |                                                                                     
    |* 73 |                        INDEX RANGE SCAN          | RCV_SHIPMENT_LINES_U2         |     1 |       |     2 |                                                                                     
    |* 74 |                      TABLE ACCESS BY INDEX ROWID | PO_LINES_ALL                  |     1 |    25 |     2 |                                                                                     
    |* 75 |                       INDEX UNIQUE SCAN          | PO_LINES_U1                   |     1 |       |     1 |                                                                                     
    |* 76 |                     TABLE ACCESS BY INDEX ROWID  | PO_LINE_LOCATIONS_ALL         |     1 |    39 |     2 |                                                                                     
    |* 77 |                      INDEX UNIQUE SCAN           | PO_LINE_LOCATIONS_U1          |     1 |       |     1 |                                                                                     
    |* 78 |                    TABLE ACCESS BY INDEX ROWID   | PO_HEADERS_ALL                |     1 |    28 |     1 |                                                                                     
    |* 79 |                     INDEX UNIQUE SCAN            | PO_HEADERS_U1                 |     1 |       |       |                                                                                     
    PLAN_TABLE_OUTPUT                                                                                                                                                                                      
    |* 80 |                   TABLE ACCESS BY INDEX ROWID    | OE_ORDER_LINES_ALL            |     1 |    27 |     2 |                                                                                     
    |* 81 |                    INDEX UNIQUE SCAN             | OE_ORDER_LINES_U1             |     1 |       |     1 |                                                                                     
    |  82 |                  TABLE ACCESS BY INDEX ROWID     | OE_ORDER_HEADERS_ALL          |     1 |    60 |     1 |                                                                                     
    |* 83 |                   INDEX UNIQUE SCAN              | OE_ORDER_HEADERS_U1           |     1 |       |       |                                                                                     
    |* 84 |                 TABLE ACCESS BY INDEX ROWID      | HZ_CUST_SITE_USES_ALL         |     1 |    21 |     2 |                                                                                     
    |* 85 |                  INDEX UNIQUE SCAN               | HZ_CUST_SITE_USES_U1          |     1 |       |     1 |                                                                                     
    |* 86 |                TABLE ACCESS BY INDEX ROWID       | HZ_CUST_SITE_USES_ALL         |     1 |    40 |     2 |                                                                                     
    |* 87 |                 INDEX UNIQUE SCAN                | HZ_CUST_SITE_USES_U1          |     1 |       |     1 |                                                                                     
    |  88 |               TABLE ACCESS BY INDEX ROWID        | WSH_CARRIERS                  |     1 |    26 |     1 |                                                                                     
    |* 89 |                INDEX UNIQUE SCAN                 | WSH_CARRIERS_U2               |     1 |       |       |                                                                                     
    |* 90 |              TABLE ACCESS BY INDEX ROWID         | WSH_CARRIER_SERVICES          |     1 |    69 |     1 |                                                                                     
    |* 91 |               INDEX RANGE SCAN                   | WSH_CARRIER_SERVICES_N1       |     2 |       |       |                                                                                     
    |* 92 |             TABLE ACCESS BY INDEX ROWID          | WSH_ORG_CARRIER_SERVICES      |     1 |     9 |     1 |                                                                                     
    |* 93 |              INDEX RANGE SCAN                    | WSH_ORG_CARRIER_SERVICES_N1   |     1 |       |       |                                                                                     
    |  94 |            TABLE ACCESS BY INDEX ROWID           | HZ_CUST_ACCOUNTS              |     1 |    19 |     2 |                                                                                     
    |* 95 |             INDEX UNIQUE SCAN                    | HZ_CUST_ACCOUNTS_U1           |     1 |       |     1 |                                                                                     
    |* 96 |           TABLE ACCESS BY INDEX ROWID            | HZ_CUST_ACCT_SITES_ALL        |     1 |    23 |     2 |                                                                                     
    |* 97 |            INDEX UNIQUE SCAN                     | HZ_CUST_ACCT_SITES_U1         |     1 |       |     1 |                                                                                     
    |* 98 |          TABLE ACCESS BY INDEX ROWID             | HZ_CUST_ACCT_SITES_ALL        |     1 |    25 |     2 |                                                                                     
    |* 99 |           INDEX UNIQUE SCAN                      | HZ_CUST_ACCT_SITES_U1         |     1 |       |     1 |                                                                                     
    | 100 |         TABLE ACCESS BY INDEX ROWID              | HZ_PARTY_SITES                |     1 |    12 |     2 |                                                                                     
    PLAN_TABLE_OUTPUT                                                                                                                                                                                      
    |*101 |          INDEX UNIQUE SCAN                       | HZ_PARTY_SITES_U1             |     1 |       |     1 |                                                                                     
    | 102 |        TABLE ACCESS BY INDEX ROWID               | HZ_LOCATIONS                  |     1 |    59 |     2 |                                                                                     
    |*103 |         INDEX UNIQUE SCAN                        | HZ_LOCATIONS_U1               |     1 |       |     1 |                                                                                     
    |*104 |       INDEX RANGE SCAN                           | HZ_LOC_ASSIGNMENTS_N1         |     1 |    11 |     2 |                                                                                     
    | 105 |      TABLE ACCESS BY INDEX ROWID                 | HZ_PARTY_SITES                |     1 |    12 |     2 |                                                                                     
    |*106 |       INDEX UNIQUE SCAN                          | HZ_PARTY_SITES_U1             |     1 |       |     1 |                                                                                     
    | 107 |     TABLE ACCESS BY INDEX ROWID                  | HZ_LOCATIONS                  |     1 |    52 |     2 |                                                                                     
    |*108 |      INDEX UNIQUE SCAN                           | HZ_LOCATIONS_U1               |     1 |       |     1 |                                                                                     
    |*109 |    INDEX RANGE SCAN                              | HZ_LOC_ASSIGNMENTS_N1         |     1 |    15 |     2 |                                                                                     
    |*110 |   INDEX UNIQUE SCAN                              | HZ_PARTIES_U1                 |     1 |     5 |     1 |                                                                                     
    I will put the predicate information in another post.
    193 rows selected.
    SQL> spool offPlease suggest on how can we improve the performance.
    Regards,
    Sreekanth Munagala.

  • Why this Query is taking much longer time than expected?

    Hi,
    I need experts support on the below mentioned issue:
    Why this Query is taking much longer time than expected? Sometimes I am getting connection timeout error. Is there any better way to achieve result in shortest time.  Below, please find the DDL & DML:
    DDL
    BHDCollections
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[BHDCollections](
     [BHDCollectionid] [bigint] IDENTITY(1,1) NOT NULL,
     [GroupMemberid] [int] NOT NULL,
     [BHDDate] [datetime] NOT NULL,
     [BHDShift] [varchar](10) NULL,
     [SlipValue] [decimal](18, 3) NOT NULL,
     [ProcessedValue] [decimal](18, 3) NOT NULL,
     [BHDRemarks] [varchar](500) NULL,
     [Createdby] [varchar](50) NULL,
     [Createdon] [datetime] NULL,
     CONSTRAINT [PK_BHDCollections] PRIMARY KEY CLUSTERED
     [BHDCollectionid] 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
    SET ANSI_PADDING OFF
    BHDCollectionsDet
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[BHDCollectionsDet](
     [CollectionDetailid] [bigint] IDENTITY(1,1) NOT NULL,
     [BHDCollectionid] [bigint] NOT NULL,
     [Currencyid] [int] NOT NULL,
     [Denomination] [decimal](18, 3) NOT NULL,
     [Quantity] [int] NOT NULL,
     CONSTRAINT [PK_BHDCollectionsDet] PRIMARY KEY CLUSTERED
     [CollectionDetailid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    Banks
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[Banks](
     [Bankid] [int] IDENTITY(1,1) NOT NULL,
     [Bankname] [varchar](50) NOT NULL,
     [Bankabbr] [varchar](50) NULL,
     [BankContact] [varchar](50) NULL,
     [BankTel] [varchar](25) NULL,
     [BankFax] [varchar](25) NULL,
     [BankEmail] [varchar](50) NULL,
     [BankActive] [bit] NULL,
     [Createdby] [varchar](50) NULL,
     [Createdon] [datetime] NULL,
     CONSTRAINT [PK_Banks] PRIMARY KEY CLUSTERED
     [Bankid] 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
    SET ANSI_PADDING OFF
    Groupmembers
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[GroupMembers](
     [GroupMemberid] [int] IDENTITY(1,1) NOT NULL,
     [Groupid] [int] NOT NULL,
     [BAID] [int] NOT NULL,
     [Createdby] [varchar](50) NULL,
     [Createdon] [datetime] NULL,
     CONSTRAINT [PK_GroupMembers] PRIMARY KEY CLUSTERED
     [GroupMemberid] 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
    SET ANSI_PADDING OFF
    GO
    ALTER TABLE [dbo].[GroupMembers]  WITH CHECK ADD  CONSTRAINT [FK_GroupMembers_BankAccounts] FOREIGN KEY([BAID])
    REFERENCES [dbo].[BankAccounts] ([BAID])
    GO
    ALTER TABLE [dbo].[GroupMembers] CHECK CONSTRAINT [FK_GroupMembers_BankAccounts]
    GO
    ALTER TABLE [dbo].[GroupMembers]  WITH CHECK ADD  CONSTRAINT [FK_GroupMembers_Groups] FOREIGN KEY([Groupid])
    REFERENCES [dbo].[Groups] ([Groupid])
    GO
    ALTER TABLE [dbo].[GroupMembers] CHECK CONSTRAINT [FK_GroupMembers_Groups]
    BankAccounts
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[BankAccounts](
     [BAID] [int] IDENTITY(1,1) NOT NULL,
     [CustomerID] [int] NOT NULL,
     [Locationid] [varchar](25) NOT NULL,
     [Bankid] [int] NOT NULL,
     [BankAccountNo] [varchar](50) NOT NULL,
     CONSTRAINT [PK_BankAccounts] PRIMARY KEY CLUSTERED
     [BAID] 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
    SET ANSI_PADDING OFF
    GO
    ALTER TABLE [dbo].[BankAccounts]  WITH CHECK ADD  CONSTRAINT [FK_BankAccounts_Banks] FOREIGN KEY([Bankid])
    REFERENCES [dbo].[Banks] ([Bankid])
    GO
    ALTER TABLE [dbo].[BankAccounts] CHECK CONSTRAINT [FK_BankAccounts_Banks]
    GO
    ALTER TABLE [dbo].[BankAccounts]  WITH CHECK ADD  CONSTRAINT [FK_BankAccounts_Locations1] FOREIGN KEY([Locationid])
    REFERENCES [dbo].[Locations] ([Locationid])
    GO
    ALTER TABLE [dbo].[BankAccounts] CHECK CONSTRAINT [FK_BankAccounts_Locations1]
    Currency
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[Currency](
     [Currencyid] [int] IDENTITY(1,1) NOT NULL,
     [CurrencyISOCode] [varchar](20) NOT NULL,
     [CurrencyCountry] [varchar](50) NULL,
     [Currency] [varchar](50) NULL,
     CONSTRAINT [PK_Currency] PRIMARY KEY CLUSTERED
     [Currencyid] 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
    SET ANSI_PADDING OFF
    CurrencyDetails
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[CurrencyDetails](
     [CurDenid] [int] IDENTITY(1,1) NOT NULL,
     [Currencyid] [int] NOT NULL,
     [Denomination] [decimal](15, 3) NOT NULL,
     [DenominationType] [varchar](25) NOT NULL,
     CONSTRAINT [PK_CurrencyDetails] PRIMARY KEY CLUSTERED
     [CurDenid] 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
    SET ANSI_PADDING OFF
    QUERY
    WITH TEMP_TABLE AS
    SELECT     0 AS COINS, BHDCollectionsDet.Quantity AS BN, BHDCollections.BHDDate AS CollectionDate, BHDCollectionsDet.Currencyid,
                          (BHDCollections.BHDCollectionid) AS DSLIPS, Banks.Bankname
    FROM         BHDCollections INNER JOIN
                          BHDCollectionsDet ON BHDCollections.BHDCollectionid = BHDCollectionsDet.BHDCollectionid INNER JOIN
                          GroupMembers ON BHDCollections.GroupMemberid = GroupMembers.GroupMemberid INNER JOIN
                          BankAccounts ON GroupMembers.BAID = BankAccounts.BAID INNER JOIN
                          Currency ON BHDCollectionsDet.Currencyid = Currency.Currencyid INNER JOIN
                          CurrencyDetails ON Currency.Currencyid = CurrencyDetails.Currencyid INNER JOIN
                          Banks ON BankAccounts.Bankid = Banks.Bankid
    GROUP BY BHDCollectionsDet.Quantity, BHDCollections.BHDDate, BankAccounts.Bankid, BHDCollectionsDet.Currencyid, CurrencyDetails.DenominationType,
                          CurrencyDetails.Denomination, BHDCollectionsDet.Denomination, Banks.Bankname,BHDCollections.BHDCollectionid
    HAVING      (BHDCollections.BHDDate BETWEEN @FromDate AND @ToDate) AND (BankAccounts.Bankid = @Bankid) AND (CurrencyDetails.DenominationType = 'Currency') AND
                          (CurrencyDetails.Denomination = BHDCollectionsDet.Denomination)
    UNION ALL
    SELECT     BHDCollectionsDet.Quantity AS COINS, 0 AS BN, BHDCollections.BHDDate AS CollectionDate, BHDCollectionsDet.Currencyid,
                          (BHDCollections.BHDCollectionid) AS DSLIPS, Banks.Bankname
    FROM         BHDCollections INNER JOIN
                          BHDCollectionsDet ON BHDCollections.BHDCollectionid = BHDCollectionsDet.BHDCollectionid INNER JOIN
                          GroupMembers ON BHDCollections.GroupMemberid = GroupMembers.GroupMemberid INNER JOIN
                          BankAccounts ON GroupMembers.BAID = BankAccounts.BAID INNER JOIN
                          Currency ON BHDCollectionsDet.Currencyid = Currency.Currencyid INNER JOIN
                          CurrencyDetails ON Currency.Currencyid = CurrencyDetails.Currencyid INNER JOIN
                          Banks ON BankAccounts.Bankid = Banks.Bankid
    GROUP BY BHDCollectionsDet.Quantity, BHDCollections.BHDDate, BankAccounts.Bankid, BHDCollectionsDet.Currencyid, CurrencyDetails.DenominationType,
                          CurrencyDetails.Denomination, BHDCollectionsDet.Denomination, Banks.Bankname,BHDCollections.BHDCollectionid
    HAVING      (BHDCollections.BHDDate BETWEEN @FromDate AND @ToDate) AND (BankAccounts.Bankid = @Bankid) AND (CurrencyDetails.DenominationType = 'COIN') AND
                          (CurrencyDetails.Denomination = BHDCollectionsDet.Denomination)),
    TEMP_TABLE2 AS
    SELECT CollectionDate,Bankname,DSLIPS AS DSLIPS,SUM(BN) AS BN,SUM(COINS)AS COINS  FROM TEMP_TABLE Group By CollectionDate,DSLIPS,Bankname
    SELECT CollectionDate,Bankname,count(DSLIPS) AS DSLIPS,sum(BN) AS BN,sum(COINS) AS coins FROM TEMP_TABLE2 Group By CollectionDate,Bankname
    HAVING COUNT(DSLIPS)<>0;

    Without seeing an execution plan of the query it is hard to suggest something useful. Try insert the result of UNION ALL to the temporary table and then perform an aggregation on that table, not a CTE.
    Just
    SELECT CollectionDate,Bankname,DSLIPS AS DSLIPS,SUM(BN) AS BN,SUM(COINS)AS COINS  FROM
    #tmp Group By CollectionDate,DSLIPS,Bankname
    HAVING COUNT(DSLIPS)<>0;
    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

  • I am trying to update my ipad mini but taking too long time 5 hours

    i am trying to update my ipad mini to ios 7  but taking too long time 5 hours so what i have to do
    Message was edited by: GOPAL DHRUW

    You can try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
    Try again to see if the problem persists.

  • WebI Report is taking too long time to opening

    Hi All,
    When iam trying to open the WebI report in Infoview , it is taking long time to open and refresh,
    Please suggest me a solution.
    Thanks in advance..
    Regards,
    Mahesh

    Hi,
    As the issue you are facing is that the webi report is taking too long to open and refresh, I would recommend the below steps.
    1. Check whether the webi report is set to "Refreh on Open" if yes probably you need to uncheck, save the report and open it again.
    2. Try to run the same query in the backend database and see if it returns the data.
    3. Try to run refresh the report for a smaller data selection.
    4. make the report run on a specific webi server, and when refreshing have your BOBJ admin monitor that process to see if the process is going in a hung state, using High memory etc.
    5. restart webi process and run again
    Thanks,
    aKs

  • Java Web Start is taking too long time to fill the bar

    Hi All,
    I am using Eclipse and using JBOSS from Remote and when I am deploying an applent with Java Web Start, it is taking a very long time for filling the bar(taking more time for verifying and downloading Application).
    Can anyone help me for fixing it.
    Thanks in Advance.

    795697 wrote:
    Hi,
    when I am deploying an Applet with the help of Java Web Start It is taking too much time for verifying and downloading the application.
    I am using Eclipse and JBOSS.
    This is the problem.
    I think you can understand it.I can't. I don't understand what Eclipse and JBoss have to do with webstart and I can't understand what webstart has to do with deploying an applet.
    Its all just completely unrelated! I'm just going to make a dumb assumption and say that it is your computer.

  • Dynamic streaming taking too long time to switch video using NetStreamPlayOptions in AS3

    Hi,
         Can any one tell me why dynamic streaming taking too much time to switch video from lower bit rate to higher bit rate and vice versa.
    I am doing dynamic streaming in following ways -
    var param:NetStreamPlayOptions = new NetStreamPlayOptions();
    param.oldStreamName=oldStream();
    param.streamName=newStream()
    param.transition=NetStreamPlayTransitions.SWITCH;
    ns.play2(param);
    ns.addEventListener(NetStatusEvent.NET_STATUS, switchMode);
    I am using duel buffering and that is 3 seconds when video starts and 10 seconds when "NetStream.Buffer.Full". Video taking approximately 30-50 seconds to switch video and when I am calling the above code.
    Thanks & regards
    Sunil Kumar

    Hi Sunil,
    Was my link useful to you? If you have not gone through the link which I suggested just go through the below lines it may help you:
    For a faster switch with optimal keyframe interval and client-side buffer, when Flash Media Server (FMS) receives a "switch" command, the server waits for a keyframe to switch to the new stream. FMS looks for the keyframes in the new stream in chunks equal to the client's buffer size(NetStream.bufferTime), so having a client buffer larger than the keyframe interval of the stream would help with a fast switch response time from the server—in other words, a shorter delay between a "switch" call to the server and the client receiving bits from the new stream in response.
    Following values are considered most optimal:
    Keyframe interval: 5 sec.
    Client-side buffer: 6–10 sec.
    So to maintain optimal keyframe interval you can go for fresh encoding of your videos which will give you a chance to set keyframe interval or if you dont want to do this then I would suggest you to increase the client-side buffer.
    Regards,
    Amit

  • Taking too long time for booting

    Hi there,
    I just bought myself an iphone 5s. . Try to get up started for the 1st time but the thing keep booting or loading too long time for endless hours. What may go wrong? Appreciate if you could help me on this.

    But payment run before due date. you are not run before due date once check it

Maybe you are looking for

  • How do I manage the transferral of iTunes content from a PC to a MacAir?

    I've made a real mess of my iTunes libraries.  Anyway . . . I've had iTunes on my Asus desktop for more than three years, accumulating more than a thousand "song" titles (music of all kinds but also lectures, articles, sermons, readings), a couple of

  • Copying chart from Excel to Illustrator

    The calibri font used for graphs in Excel are not recognized when the graphs are copied into Adobe Illustrator. Other than changing the font to arial or another font, does anyone know a workaround? I upgraded from CS4 to CS6 on my mac and I still get

  • Non Dreamweaver Extension Photo Album (Gallery) Recommendations

    Hi all, I knwo this is a dreamweaver forum, but I also know that it's the place to come for non dreamweaver web questions. So, does anyone have any recommendations for a 'non dreamweaver' photo album (gallery)? I found this one JAlbum, has anyone use

  • From JTextField into string array

    hello, Me and my friend are currently doing a cryptography project for UNI. We are required to read in a word from the JTextField into an array. the problem is the whole word seems to be going into the array as one element. Is there any way to read i

  • Safari caused Kernel Panic?

    Since the software updates last month I've constanly lost internet connection and have had to restart to get the browsers working again. Safari, FireFox, Camino, IE won't work but most of the functions of Netscape continue to work when this happens.