Regarding query giving time out

Hi,
We are facing issue in running a query.
select max(eptimestamp) from table1 where slno='12324'
The query was getting hanged and we tried recreating the index for the slno
and then it started working but it is taking more than 6 mins to execute the same.
but the below query is working fine
select max(eptimestamp) from table1.
The query was working perfect and suddenly it started giving error
Could any one please help us on this issue.
Thanks for all your support.

I guess the "timeout" is imposed by the application ?
How many rows do you have for "slno='12324' " ? How many distinct eptimesetamps exist for " slno='12324' " ?
you could post an explain plan for the query.
Either
a. Oracle is using the index and fetching all the rowids and then going to the table to get the "eptimestamp" for each of these rowids (thus doing many more reads)
or
b. Oracle is doing a full table scan
It is likely that a concatenated index on  (slno,eptimestamp) can help you but we'd need to know how many distinct values there are and in relation to the total number of rows in the table.

Similar Messages

  • Select query giving Time out dump

    Hi All,
        I have written a select query on a table in BW system.The code for the same is attached below.The table contains some 6,00,000 records.This query is giving a time out error.Kindly look into the query and advice ways to make it work.Thanks.
        IF NOT lt_temp[] IS INITIAL.
          SELECT /bic/zprrmatnr objvers /bic/zprclwynr /bic/zprrmdlr
                 FROM  /bic/pzprrmatnr
                 INTO CORRESPONDING FIELDS OF TABLE lt_zprrmatnr
                 FOR ALL ENTRIES IN lt_temp
                 WHERE /bic/zprclwynr = lt_temp-temp
                 AND   objvers = 'A'.
        ENDIF.
    Thanks and Regards,
    Faisal

    Not only is it BW, it is also a customer table. Have a look here on how to research yourself:
    Please Read before Posting in the Performance and Tuning Forum
    Thomas

  • Query Running Time Out

    Hi Friends,
    now here i have question. from st22 we can get list of query time out in production and from error log by fill_sp function we can get ABAP program name from which we can get querie's detail like name, cube name etc...
    but i am facing some of the query time out gives ABAP program name but cannt get query info from that !!! i tried it by se38 by that also i didnt find all the query info for few time out. is there any way i can get info for those query time out ??
    please reply to my as i am new to this forums....last time when i asked questions noone replied me !!!
    waiting for help !!

    Hi,
    if my question is not clear then let me just ask in general.
    from st22 how can i get query name which have been time out ??
    can u please elaborate the process ?
    thank you in advance and i will give the points once i get the solution.

  • Running query report times out

    All,
    At my customer we have a BW3.1 system.
    When running a query using ta rsrt it times out after 1 hour. The query/report should be done in 5 minutes but somehow it gets stuck.
    With an SQL trace we see no queries and in the Dialog work process we do not see any update on new records being read.
    When its started it starts building/reading a temporary table: BI0/03010 but its get stuck and times out eventually.
    We also ran the drop temp tables job and rerun the query, however this does not help.
    Does anyone have any ideas where to look?
    Grt,
    Sjoerd

    Run ti through RSRT in debug mode and display the SQL run schedule - then go and look at the query execution path
    If your cube is partioned try and make sure you get the partioning object into the where clause (ie 0fiscper or 0calmonth) - if you cant get it on a selection screen - try and derive it in a cmod in a filter
    Next - check that the database stats are current for the entries in the query
    Go to the query exection path and click on the tables - they will give you the last statistics date
    Updating the db stats can have a dramatic effect on the order you see in the query execution path
    The temp table is probably a hierarchy build - these are a nightmare for large hierarchies - but go with the other things first

  • Power Query increase time out time (HTTP)

    Hi
    I am trying to send a http request that can take 5 mins or more to process.  Is there anyway to increase the time out time?
    last comment ( seems to suggest it is fixed at 100 seconds for http requests)
    http://social.technet.microsoft.com/Forums/en-US/258c0872-15d8-42dc-bf8f-f836d4e51c92/increase-timeout-for-net-data-provider-for-teradata?forum=powerquery

    The ability to override this timeout is planned as part of the July release.

  • Time out problem for select query

    I am fetching data from BKPF for my report.
    I have written following query.But this query always time out.
    SELECT
        BUKRS
        BELNR
        GJAHR
        BLART
        BLDAT
        BUDAT
        MONAT
        XBLNR
        BKTXT
        WAERS
        KURSF
        HWAER
        FROM BKPF
        INTO TABLE I_BKPF
        WHERE BUKRS IN S_BUKRS
         AND BELNR IN S_BELNR
         AND GJAHR IN S_GJAHR
         AND BLART IN S_BLART
         AND BLDAT IN S_BLDAT
         AND BUDAT IN S_BUDAT
         AND MONAT IN S_MONAT
         AND CPUDT IN S_CPUDT
         AND BSTAT = SPACE.
    So please suggest me solution.

    Hi..
    1) Try to make Some of the Fields such as BUKRS , GJAHR  as PARAMETERS so that ROWS are restrited mostly.
    2) Make fields like BLDAT and BUDAT as OBLIGATORY if possible.
    3) And in the SELECT query add the PACKAGE SIZE addition.
    <b>Reward if Helpful.</b>

  • Time out error in J1INQEFILE while generation ETDS file

    hi,
    when ever i am executing transaction J1INQEFILE. it giving Time out error. in dump folloeing message is coming.
    Termination occurred in the ABAP program "J_1I_QER_EFILE" - in "MOVE_VENDOR".
    The main program was "J_1I_QER_EFILE ".
    In the source code you have the termination point in line 1410
    of the (Include) program "J_1I_QER_EFILE_FETCH_DATA".
    i checked in program. can you people tell me how to optimize this query after making this program as a Y program.so that this error can be avoided.
    Thanks
    SP

    Hi Prateek,
    Thanks for your replay. I am able to open the URL from XI/PI.
    I tried by testing the same URL by using XI 3.0, its working fine and i am getting required data, but in PI 7.1 i am getting an error.
    Error is:
    In MONI:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection refused: connect
    In RWB:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection timed out: connect
    What could be the reason?
    Regards,
    Venu

  • Time Out Erro

    Hi All,
    I got a query which is giving performance issue.
    User is complaining that when they first run the query in the morn then report is giving time out error.But I never came across this error.
    Thus only thing which comes to my mind is mostly number of user excuteing the report is more and thus report is giving time out error.
    Agg are already bulit on cube.
    Can anybody suggest on the issue.
    Regards,
    Rohini

    hi
    824554 note gives you perfect explanation about your problem.
    It says you have to deal with parameters:
    icm/conn_timeout
    icm/keep_alive_timeout
    icm/server_port_< n >
    following oss notes will also help u
    557870 'FAQ BW Query Performance'
    and 567746 'Composite note BW 3.x performance Query and Web'.

  • New condition type print preview time out.

    Dear all,
    I am a ABAPer.
    I am facing one problem in PO Print preview.
    My MM consultant defines one new condition type-ZPF5 .
    Instead of ZPF2 we are using this condition type- ZPF5.
    After that in PO ,Net value & everything coming fine.
    There is a smartform also related to this.
    I have added all logic related to ZPF5 .
    But when going to print preview In production & clicking on print preview,
    It is giving time out after 9-10 mint-Time out for ALL po,not only for this condition related .
    v_no = &SFSY-JOBPAGES& -1. "in this line.
    &SFSY-JOBPAGES& means " Total number of pages in the currently formatted print request.
    I saw M/08 - ZPF5 Print equal to 'X ' & Statistics is ticked for this.
    But when I revert back old SMART FORMS & PRINT = blank,print preview is coming fine for all PO except
    ZPF5 Is not affecting in print preview,but in PO affecting.
    Any help from MM side?
    Thanks
    Gourav.

    Dear all,
    Issue resolved.
    I have changed my select query & remove old condition from that,now I am using only ZPF5.
    Like :
    SELECT SINGLE KBETR KWERT KRECH FROM KONV INTO (V1_KBE,V_PF,V_KREC)
             WHERE KNUMV EQ V_KNUM AND
                   KPOSN EQ WA_MAT-EBELP AND
                   KSCHL EQ 'ZPF5'. " not zpf2
    Thanks all for your time.
    Thanks
    Kumar Gourav.

  • PERFORMANCE -TIME OUT ERROR (430) IN ESTABLISHING A DIALOGUE ASYNCHRONOUS

    Hi all,
    I have created a flow(program) and while executing the same program in the development server i am getting the desired output.
    But when i execute the same program in the background mode (it fails in the foreground after 9 or 10 hrs giving the same error message) in the quality server, its giving time-out error 430 ( 00-430 TIME OUT IN ESTABLISHING A DIALOGUE ASYNCHRONOUS ).
    Can someone explain me, what this error is all about.
    It will be helpful,if you also teach me how to correct the same error.
    NOTE : The DataBase tables being used in this program has fewer entries in the Development Server (in between 100 and 200 entries in each of the tables) whereas in the Quality server its much more (almost 3crore entries in each of the tables).
    Regards,
    YOGESH BABU K
    Edited by: YogeshKS on Jun 13, 2011 11:37 AM
    Edited by: YogeshKS on Jun 13, 2011 11:39 AM

    Hi all,
    I have created a flow(program) and while executing the same program in the development server i am getting the desired output.
    But when i execute the same program in the background mode (it fails in the foreground after 9 or 10 hrs giving the same error message) in the quality server, its giving time-out error 430 ( 00-430 TIME OUT IN ESTABLISHING A DIALOGUE ASYNCHRONOUS ).
    Can someone explain me, what this error is all about.
    It will be helpful,if you also teach me how to correct the same error.
    NOTE : The DataBase tables being used in this program has fewer entries in the Development Server (in between 100 and 200 entries in each of the tables) whereas in the Quality server its much more (almost 3crore entries in each of the tables).
    Regards,
    YOGESH BABU K
    Edited by: YogeshKS on Jun 13, 2011 11:37 AM
    Edited by: YogeshKS on Jun 13, 2011 11:39 AM

  • Time out error while fetching records from table BKPF

    Hi,
    I am fetching records from table BKPF using BUKRS & AWKEY in where clause. Query is as follows:
        SELECT BELNR  XBLNR  AWKEY
        FROM   BKPF
        INTO TABLE L_I_BKPF_TEMP
        PACKAGE SIZE 500
        WHERE BUKRS LIKE L_C_EG
        AND   AWKEY IN L_R_AWKEY .
          APPEND LINES OF L_I_BKPF_TEMP TO I_BKPF .
        ENDSELECT .
    Program is giving time out error. There are 25628 records in range L_R_AWKEY , i m fetching 500 records at a time using  PACKAGE SIZE. But the execution of prog stops on this query.
    Please suggest something to overcome this problem.

    Hi
    Rui is right,
    if you need to get the data by  operation parameters u have to use the fields AWTYP and AWKEY.
    In this selection u can omit the company code.
    SELECT BELNR XBLNR AWKEY FROM BKPF
           INTO TABLE L_I_BKPF_TEMP
                 PACKAGE SIZE 500
                      WHERE   AWTYP = <......> "<------------
                             AND AWKEY IN L_R_AWKEY .
           APPEND LINES OF L_I_BKPF_TEMP TO I_BKPF .
    ENDSELECT .
    Max

  • Tabular data model: Query keeps timing out when attempting to Edit Table Properties

    Tabular data model (SSDT)
    Problem: I have a table in tabular data model using a SQL Query for a data source. The query in question requires about 3 minutes to regenerate. When I open Edit Table Properties for this data source the query times out and I get an error (see below): "
    Failed to retrieve data from udvTrainJobReportsData. Reason: Query timeout expired"
    This seems to happen anytime I use a query that takes longer than a couple of minutes to regenerate. Anyone have an idea on how to get around this. Is there a timeout setting somewhere in tabular data model that can be increased?
    Thanks...

    Hi ManikantM,
    According to your description, you query keeps time out when edit table properties. Right?
    In this scenario, this error is thrown when connection or query execution exceeds the time out value. Please try to import this table and then increase the connection time out seconds.
    We can increase to ExternalCommandTimeout in Analysis Server Properties. Please refer to link below:
    http://aniruddhathengadi.blogspot.in/2012/07/ole-db-error-ole-db-or-odbc-error-query.html
    Please also refer to a similar thread below:
    https://social.technet.microsoft.com/Forums/office/en-US/3f83a26b-71c6-462e-8b90-2ce2ce0b9465/powerpivots-2010-query-keeps-timing-out-when-attempting-to-edit-table-properties?forum=excel
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How can I reduce BEx Query execution time

    Hi,
    I have a question regarding query execution time in BEx.
    I have a query that takes 45 mins to 1 hour to execute in BEx analyser. This query is run on a daily basis and hence I am keen to reduce the execution time.  Are there any programs or function modules that can help in reducing query execution time?
    Thanks and Regards!

    Hi Sriprakash,
    1.Check if your cube is performance tuned: in the manage cube from RSA1 / performance tab: check if all indexes and statistics are green. Aggregate IDx should as well be.
    2.Condense your cubes regularly
    3. Evaluate the creation of an aggregate with all characteristic used in the query (RSDDV).
    4.Evaluate the creation of a "change run aggregate": based on a standalone NavAttr (without its basic char in the aggr.) but pay attention to the consequent change run when loading master data.
    5. Partition (physically) your cubes systematically when possible (RSDCUBE, menu, partitioning)
    6. Consider logical partitioning (by year or comp_code or ...) and make use of multiproviders in order to keep targets not too big...
    7.Consider creating secondary indexes when reporting on ODS (RSDODS)
    8.Check if the query runtime is due the master data read or the infoprovider itself, or the OLAP processor and/or any other cause in tx ST03N
    9.Consider improving your master reads by creating customized IDX (BITMAP if possible and depending on your data) on master data table and/or attribute SIDs when using NAvs.
    10.Check that your basis team did a good job and have applied the proper DB parameters
    11.Last but not least: fine tune your datamodel precisely.
    hope this will give you an idea.
    Cheers
    Sunil

  • Is there any time out in a Data Federation connection?

    Hi,
    I have a multi source universe on SQL Server and BW, the query against SQL Server times out exactly after 10 mins, the time out setting in the universe connection and database have been bumped to 30 min but my query still times out after 10 mins, I looked into to connector configuration under DataFederation connection but there is no timeout setting for a sql server connection.
    Any thoughts why my query is timing out?
    Thanks
    Ram

    I got this issue fixed by changing the query time out setting to FALSE in the sql server sbo file. I am sill not sure where where can we change the time out limit from 10 mins to higher number.
    location of the file: SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\oledb

  • Speedport time out fail wireless

    I am connected to ethernet port, no problem.
    AirPort fails to connect. Now Windows with two local machines connect ok. My previous Dell connected.
    My AirPort works at home, a Bell Modem.
    SpeedPort W 700 V seems to have some issues for Win.
    The SpeedPort does not reply giving time out same as incorrect password.
    I tried a manual connect with full name from my AirPort detection script.
    Also problem with iTouch, but it failed to reconnect at home after upgrade to new software.

    SpeedPort W 700 V is both wireless and wired. I am connected to wired now.
    When disconnected, the wireless shows on AirPort and asks for password. Entering password gives a time out. I tried a manual connection with network name WLAN-4A7D03 selected security type and entered password. Again a time out. The SpeedPort fails to handshake on receiving the password. That is, I do not think the password accepted reply is connecting. My AirPort works on other wireless connection in Canada. I am in Germany and the SpeedPort modem is a few years old, but I had no trouble with my new Dell windows Vista last year.
    This could be a SpeedPort issue. I know the SpeedPort wireless is working because two Windows computers are connected to the wireless. I did find reports of some Windows machines having difficulty connecting to SpeedPort but no comment on Apple problems.
    By the way thank you for answering. I will be traveling in Italy where most hotels only have wireless connections. So I am trying to isolate problem to SpeedPort. If it is my use of AirPort then I have a problem. If necessary I could buy a USB port wireless.
    I do know update of my iTouch has crashed its wireless connection. I tried reset to orignial but it then automatically upgrades and I am back where I started.
    These are my first Apple products so I may be missing something. The more I use the Apple Interface the more I like it.

Maybe you are looking for