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

Similar Messages

  • How to change the view criteria at run time for af:query

    Hi,
    I've a usecase where I need to change the view criteria of the af:query at run time.
    Use case:
    =======
    1) Consider a check box (Show Emps Under Dept 10) in the query panel when user selects and clicks 'Search' button should show the employees under dept 10. If user searches without selecting the check box, the results should show all the employees in all the departments.
    2) I need to have a check box always in the query panel. Its mandatory.
    The way I implemented:
    ==============
    1) Created a transient variable 'Show Emps Under Dept 10' in the EmployeeVO and also created a bind variable bind_DeptNo.
    2) Create a view criteria 'AllEmployees' which has only the transient attribute as the view criteria item and whose value set to 'false' by default.
    3) Created another view criteria 'EmpUnderDept' which has 'DepartmentId' as the view criteria item and whose value set to the bind variable 'bind_DeptNo'.
    4) Dropped the view criteria 'EmpUnderDept' as the 'af:query' panel in the jspx page.
    5) Overridden the queryListener as '#{EmpBean.empSearch}'
    6) Has the below code in the empSearch method as below. When user selects the check box, applying the other criteria 'EmpUnderDept' and setting the bind variable to '10'.
    public void empSearch(QueryEvent queryEvent) {
    // Add event code here...
    QueryDescriptor queryDesc = (QueryDescriptor) queryEvent.getDescriptor();
    ConjunctionCriterion conCrit = queryDesc.getConjunctionCriterion();
    List<Criterion> criterionList = conCrit.getCriterionList();
    List criterionValues = new ArrayList();
    Object criteriaValue = null;
    int criteriaNo = 0;
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    FacesContext facesContext = FacesContext.getCurrentInstance();
    for (Criterion criterion : criterionList) {
    AttributeDescriptor attrDescriptor = ((AttributeCriterion)criterion).getAttribute();
    System.out.println("============== attrDescriptor.getName() =================== " + attrDescriptor.getName());
    criteriaValue = ((AttributeCriterion)criterion).getValues().get(0);
    if(criteriaNo==0) {
    Boolean val = (Boolean) ((AttributeCriterion)criterion).getValues().get(0);
    if (val.equals(true)) {
    OperationBinding method = (OperationBinding) ADFUtil.findOperation("ExecuteWithParams");
    if(method!=null) {
    Map params = method.getParamsMap();
    //params.put(key, value)
    method.getParamsMap().put("bind_DeptId", 10L);
    method.execute();
    ADFUtil.invokeMethodExpression( "#{bindings.EmpUnderDeptCriteiaQuery.processQuery}", queryEvent);
    } else {
    //ADFUtil.invokeEL("#{bindings.ExecuteWithParams.execute}");
    ADFUtil.invokeMethodExpression( "#{bindings.AllEmployeesCriteriaQuery.processQuery}", queryEvent);
    But this approach is not working and its always showing all the employees in all the departments.
    Please let me know if there is a way to change the view criteria at run time depending on the values set at run time for one of the view criteria items.
    JDev version am using is '11.1.1.5'
    Thanks,
    Lakshman

    Hi Shay,
    It worked for me without overriding the executeQuery() method in the ViewImpl.java.
    Instead of creating 2 view criteria, I created only one which has both transient variable and the DepartmentId = <bind_DeptId>. With the above code, it worked properly. Now I am using only one view criteria.
    Thank you.

  • Significant difference in response times for same query running on Windows client vs database server

    I have a query which is taking a long time to return the results using the Oracle client.
    When I run this query on our database server (Unix/Solaris) it completes in 80 seconds.
    When I run the same query on a Windows client it completes in 47 minutes.
    Ideally I would like to get a response time equivalent on the Windows client to what I get when running this on the database server.
    In both cases the query plans are the same.
    The query and plan is shown below :
    {code}
    SQL> explain plan
      2  set statement_id = 'SLOW'
      3  for
      4  SELECT DISTINCT /*+ FIRST_ROWS(503) */ objecttype.id_object
      5  FROM documents objecttype WHERE objecttype.id_type_definition = 'duotA9'
      6  ;
    Explained.
    SQL> select * from table(dbms_xplan.display('PLAN_TABLE','SLOW','TYPICAL'));
    PLAN_TABLE_OUTPUT
    | Id  | Operation          | Name      | Rows  | Bytes |TempSpc| Cost (%CPU)|
    |   0 | SELECT STATEMENT   |           |  2852K|    46M|       | 69851   (1)|
    |   1 |  HASH UNIQUE       |           |  2852K|    46M|   153M| 69851   (1)|
    |*  2 |   TABLE ACCESS FULL| DOCUMENTS |  2852K|    46M|       | 54063   (1)|
    {code}
    Are there are configuration changes that can be done on the Oracle client or database to improve the response times for the query when it is running from the client?
    The version on the database server is 10.2.0.1.0
    The version of the oracle client is also 10.2.0.1.0
    I am happy to provide any further information if required.
    Thank you in advance.

    I have a query which is taking a long time to return the results using the Oracle client.
    When I run this query on our database server (Unix/Solaris) it completes in 80 seconds.
    When I run the same query on a Windows client it completes in 47 minutes.
    There are NO queries that 'run' on a client. Queries ALWAYS run within the database server.
    A client can choose when to FETCH query results. In sql developer (or toad) I can choose to get 10 rows at a time. Until I choose to get the next set of 10 rows NO rows will be returned from the server to the client; That query might NEVER complete.
    You may get the same results depending on the client you are using. Post your question in a forum for whatever client you are using.

  • Run time for a Report

    Hi All,
    I have a requirement, where in i want to know whether my report has run for 8 mins or not. If it has run for 8 mins then i have to give an information message saying that the report is taking more than 8 mins so schedule the program in back ground.
    Is this possible ?
    Please let me know how to know during run time the time taken by a report.
    Regards
    Rakesh.

    Hi Dominic,
    The code you mentioned can be put to know what is the time taken by a select statement or the time taken by a particular piece of code. In my program there are several select queries and complex logics.. So i dont think that it is feesible to calculate the run time for each select and then if its increasing 8 mins then to show error !!!!
    My report will be called from an external application. If the program is taking much time it will get timed out. So for a precaution we have to tell them that the way you have given the selection screen filter values its going to take more than 8 mins so better schedule a back ground job.

  • Default maximum run time for updates

    Is there a way to change the default "Max run time" for each update? In SCCM 2007 the default run time was 20 minutes per update, now it is 5 minutes. I have machines that repeatedly fail to install updates because the max time of 300 seconds was
    reached.

    Hi,
    What is the powershell command to change the maximum run time?
    Thanks.
    probably this:
    http://technet.microsoft.com/en-us/library/jj850138(v=sc.20).aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Maximum allowed run time for a task sequence

    I found if i left the maximum allowed run time for a task sequence with a defualt value of "0" in configuration manager 2012 r2 cu2,the required task sequence would never run without a maintenance window larger than
    12H.
    At client side,the servicewindowmanager.log always said this required task sequence had a maximum runtime of 43200 seconds(12h).
    servicewindowmanager.log:
    OnIsServiceWindowAvailable called with: Runtime:43200, Type:5
    Program cannot Run! Setting *canProgramRun to FALSE
    There does not exist a Service Window of this Type, for this duration. The Program will not run.
    If i set maximum allowed run time to 120 minutes,task sequence would run under a 3h mainenance window.
    So if you leave the maximum allowed run time for a task sequence with a value of "0" then client agent will evaluate it as 43200(12h) for a required deployment,is it true? have i missed something?

    Hi,
    That is correct it will default to the same value as a program with a "Unknown" maximum runtime value, Unknown is also evaluated to 0 = 12h so that is correct behaviour.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Battery run time for Tungsten E?

    What is the total run time for the battery in the Tungsten E assuming the back light is on all the time while playing a song?
    Post relates to: Palm III

    With a brand new T|E in early 2004 I could get about 3 hours of run time in Aeroplayer with screen off.
    I doubt you can get anything like that.
    It would be simpler and less time consuming for everyone if you had started one thread with ALL your T|E battery questions.
    Post relates to: Palm TX

  • Query Execution Time for a Query causing ORA-1555

    dear Gurus
    I have ORA-01555 error , earlier I used the Query Duration mentioned in Alert Log and increased the Undo Retention as I did not find th UnDOBLKS column of v$undostat high for the time of occurence of ORA-01555..
    But new ORA-01555 is coming whose query duration exceeds Undo Retention time..
    My question -
    1. Is it possible to accurately find the query duration time besides the Alert Log file ?

    abhishek, as you are using an undo tablespace and have already increased the time that undo data is retained via undo_retention then you might want to consider the following ideas which were useful with 1555 error under manual rbs segment management.
    1- Tune the query. The faster a query runs the less likely a 1555 will occur.
    2- Look at the processing. If a process was reading and updating the same table while committing frequenctly then the process under manual rbs management would basically create its own 1555 error rather than just being the victum of another process changing data and the rbs data being overlaid while the long running query was still running. With undo management the process could be generating more data than can be held for the undo_retention period but because it is committed Oracle has been told it doesn't really have to keep the data for use rolling back a current transaction so it gets discarded to make room for new changes.
    If you find item 2 is true then separating the select from the update will likely eliminate the 1555. You do this by building a driving table that has the keys of the rows to be updated or deleted. Then you use the driver to control accessing the target table.
    3- If the cause of the 1555 is or may be delayed block cleanout then select * from the target prior to running the long running query.
    Realistically you might need to increase the size of the undo tablespace to hold all the change data and the value of the undo_retention parameter to be longer than the job run time. Which brings up back to option 1. Tune every query in the process so that the job run time is reduced to optimal.
    HTH -- Mark D Powell --
    dear mark
    Thanks for the excellent advise..I found that the error is coming because of frequent commits..which is item 2 as u righly mentioned ..
    I think I need to keep a watch on the queries running , I was just trying to find the execution time for the queries..If there is any way to find the query duration without running a trace ..
    regards
    abhishek

  • Remaining time for a query

    Hi,
    I wonder how much remains for a long sql query to be completed since the oracle views?
    I kown that OEM give this information, but unfortunatly i don't have this tool :-(
    Any idea..
    Thanks in advance.

    If, for example, you have an update statement that requires a full scan of a large table, the full scan may appear in v$session_longops along with total work and time remaining etc. But that would be a fairly simple example. Index lookups such as range scan don't appear in this view, along with a number of other operations such as nested loops, so if your execution plan contains these operations, you're not going to get much from v$session_longops. Even if you do have operations that all appear in v$session_longops you would need to cross reference it with the execution plan to determine which operatios have completed but until the operation begins, you won't be able to get an estimate of the run time.
    Also remember that OEM is just querying the same views so it can't give you anything more than what's available in the v$session_longops and the supporting plan tables etc.
    HTH
    David
    Edited by: Bravid on Sep 21, 2011 3:33 PM

  • Do I need a copy of DSC run-time for every machine?

    Do I need to purchase a dsc run-time engine for every machine that will be running stand alone executables.

    Yes if you wish to use the DSC features like the Engine, logging, alarming, etc.
    Regards,
    Khalid

  • How to invoke a class at run-time for primitive data types?

    Hi,
    I am trying to invoke classes at run-time.
    I am using Class.forName("className") for that where the "className" is also obtained at run-time .
    The problem I am getting is when the "className" is "int" or "char" etc. the call to Class.forName("int") etc. fails giving ClassNotFound error. It works fine for "className" is "java.lang.String" or "java.lang.Integer" etc.
    How can I correct this?
    thanks in advance-
    kg

    Hi,
    Thanks all for the valuable inputs.
    I have created a hashtable of primitive data types in the form of "int" as key and "Integer.TYPE" as the object in that element of the hashtable.
    Now there is another problem I am facing and that is of 'Casting at run-time'.
    Problem is there when the Database type is 'NUMBER' which returns me a "java.lang.BigDecimal" when I do a ResultSet.getObject("XXX") for that whereas the method in the javabean expects an "int" type.
    This causes "java.lang.IllegalArgumentException: argument type mismatch"
    So I want to cast it at runtime. How can I do it?
    Here is the code I am trying (which generates the above exception)
    public static void setBeanField(Class pCls,Object pObj,String pMethodName ,Object pColumnValue,Class
    pColumnTypeClass){
    try{
    if(pColumnValue!=null){
    Class[] paramTypes = new Class[]{pColumnTypeClass};
    Object[] args = new Object[]{pColumnValue};
    Method meth = pCls.getMethod(pMethodName,paramTypes);
    meth.invoke(pObj,args);
    }catch(Exception e){
    System.out.println("Exception in TestInrospection.setBeanField " + e);
    thanks in advance-
    kg

  • The running time for Crack

    Hi there,
    I started testing Crack 5.0 (to guess those weak user passwords in our system) last Wed and I found it stopped today. However, I need know exact running time(elapsed time) for my testing. To run Crack 5.0, I just run "./Crack passwordfile" as root. Crack will automatically run on background and returns to Unix prompt. So using time command doesn't work here. Is there any system log file I can check for the exact running time of Crack process or any other place I can get this info?
    Thank you very much!

    Unless crack creates a log, then there really isn't anything that collects this data by default. You might be able to get it from system accounting assuming its enabled.

  • Setting the webservice url at run time for a execute button in adobe form

    Hi,
    I am using Data connection from the wsdl file to interact with the backend, the button generated from the data connection is of type execute which has the url of the webservice in the object property "Webservice URL" and name of the FM in the interface name. My problem is at present the form is working fine but when the same form transported to QA and PRD them the url of the webservice gets change. hence the same button wont function.
    The solution is either we do the changes manually in all the system or pass the url at run time. Please proide me the solution if there is a way to set this url in the execute button at runtime.
    Thanks in advance.
    Pooja

    Why don't you pass in the URL via an XML input file and bind a hidden text field in your form to that element in your XML? Then use javascript to modify the docReady event of the submit button to something like this:
    var url = textFieldWithURL.rawValue;
    this.event__click.submit.target = url;

  • In  iTunes: why different run times for same track?

    I have occasional repeats of the same given track stored in iTunes. Sometimes, the 2 identical tracks show different running times. This happens when one track came from the Net (downloaded before I started using iTunes, then imported into iTunes) and the other comes from a commercial CD. Do you know why the differing times? FYI: In each case, I have checked the endings of both tracks; they are identical, so the music is the same even though one track is rated to run [much] longer than the other. Also, in "Get Info" there's a way to change the running time of a track, but this is no solution: if I enter a shorter run time, the track will truncate itself, and finish playing before the proper end of the song -- if I enter a longer time, I get dead air after the end of the recording. Any ideas?
      Windows XP  
      Windows XP Pro  
      Windows XP Pro  

    "will iphone users in Singapore have access to application from other countries? "
    No. You can buy from the itunes store in the country in which you reside.
    Each country has the same rules:
    "SINGAPORE ONLY. The Service is available to you only in Singapore and is not available in any other location. You agree not to use or attempt to use the Service from outside of the available territory. iTunes may use technologies to verify such compliance."
    http://www.apple.com/legal/itunes/appstore/sg/terms.html#APPS

  • Inconsistent Run times for the Calcscript

    Hello Guys,
    I am getting inconsistent run times when I am executing the same Calcscript on EAS DEV server again and again. Please let me know your thoughts.
    Thanks

    There are a number of factors that can affect this
    First. If the first time you had just loaded the database and ran the calc times would vary from when the calculation is against a fully calculated database
    Second, Each time you run the calc, you could be creating fragmentation whould would lenghten the calculation
    Third, depending on what is going on, you might have cached some blocks from a previous run wich would speed up calculations. To try to get consistant results there are a few things you could do
    1. reload the data prior to every test
    2. or restructure the Database to remove fragmentation
    3. Stop and restart the database between runs to clear the cache

Maybe you are looking for