Tkprof High query value

Hi friend;
I have one tkrpof and end of the file the query value is too high like 43830952, what doest it mean? How i can solve this problem

Yes you can :) You need to use \ tags.
\Your text here\yieldsYour text hereThe query column reflects the number of logical I/Os performed. So it looks like you performed 43,830,952 logical I/Os in roughly 33 minutes. What I would do personally is if you are having performance problems try and identify the query or queries in the TKPROF report that are performing the most I/O or have the highest elapsed time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Tkprof - High query during parse

    Hi
    The following are the Parse/Execute/Fetch statistics and timings for the same query (one with index, one without index)
    Can you please help to explain what makes the query increment during phase stage. Thanks
    With index
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.16       0.16         17       1628          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          2          0           0
    total        3      0.16       0.16         17       1630          0           0without index
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0        256          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          7          0           0
    total        3      0.01       0.01          0        263          0           0

    Kok Aik wrote:
    Hi
    The following are the Parse/Execute/Fetch statistics and timings for the same query (one with index, one without index)
    Can you please help to explain what makes the query increment during phase stage. Thanks
    With index
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.16       0.16         17       1628          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          2          0           0
    total        3      0.16       0.16         17       1630          0           0without index
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0        256          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          7          0           0
    total        3      0.01       0.01          0        263          0           0
    I believe that you ran the query for the first time in the 1st part that you have shown. There are disk IOs happening in the 1st part but there are none in the 2nd. That's why the first part is getting more ios happening. IN the case of 2nd , proably the result is already cached and the ios are much lesser.
    Just my 2 cents.
    HTH
    Aman....

  • How to use FMS on OPCH field to query value on a field in PHC1 form?

    Hi All,
    I have a problem. I created a user defined field in the AP Invoice form (parent form-OPCH). Now I would like to use the formatted search to add a query to that field that will select a value from another field also on the same form but at the row level (child form-PCH1). It seems that this is not possible. Any suggestions?
    A general question for this: is their any way that I could use the formatted search to query value on an opening form that is inactive?
    Thanks
    Duc

    Hi Sampath Kumar devunuri,
    Thanks for your reply. It does not work. I have tried to searched through the forum about this topic and it seems that FMS will not work at row level. Not sure if there is any solution to overcome this.
    My query is for example: I want my UDF on OPCH form to capture the description of the first row in PCH1:
    Select $[$39.1.1]
    If I assign it to a UDF at row level it works perfectly.
    If I assign it to the Remark field on OPCH it still works.
    But if I assign it to a UDF at title level it does not (this is what I need)
    This may be because at title level the form name is OPCH which is different with the form name at row level: PCH1
    I cannot think if there is any way that I could set focus on PCH1 to get the value.
    Duc

  • Query Values are not updated.

    Hello All,
    While refreshing the query on the cube 0IC_C03, i am not getting the correct values in the query,  Cube 0IC_C03 values and query values are differ.
    when i Tested inthe RSRV test it shows
    "<b>Dimension key 398 missing in dimension table /BI0/D0IC_C03P</b> "
    if any one knows plz guide me.
    Regards
    Chintaps

    Hello,
    I did not find DIM ID in DImension table. and
    when i checked Masterdata consistency check at RSRV level it gives-
    There is a inconsisitency in masterdata for 0MATERIAL.
    Characters not allowed characteristic values(characteristic 0MATERIAL)
    Value in SID table 000001000001/ correct value 000000000001000001/ SID in SID table 41037
    Value in SID table 000001000002/ correct value 000000000001000002/ SID in SID table 41038
    Value in SID table 000001000003/ correct value 000000000001000003/ SID in SID table 41039
    Value in SID table 000001000004/ correct value 000000000001000004/ SID in SID table 41040
    Value in SID table 000001000005/ correct value 000000000001000005/ SID in SID table 41041
    Value in SID table 000001000006/ correct value 000000000001000006/ SID in SID table 41042
    Value in SID table 000001000007/ correct value 000000000001000007/ SID in SID table 41043
    Value in SID table 000001000008/ correct value 000000000001000008/ SID in SID table 41044
    Value in SID table 000001000009/ correct value 000000000001000009/ SID in SID table 41045
    Value in SID table 000001000010/ correct value 000000000001000010/ SID in SID table 41046
    and i checked the program RSDMD_CHECKPRG_ALL for the 0MATERIAL
    Characteristic 0MATERIAL: 288 values from table /BI0/TMATERIAL do not exist in table /BI0/SMATERIAL.
    and  gives me a message Some versions are incorrect.     
    if anyone have an idea , please suggest me.
    Regards
    Chintaps

  • Query values in a form

    I'm trying to use a form to display query values and then pass a value to another page for processing. Here's part of my code
    <%
    rs = statement.executeQuery("SELECT * FROM users WHERE start_date > '7/1/2001');
    %>
    <table>
    <form name = "form1" action = "xyz.jsp" method = "get">
    <% while(rs.next()) %>
    <tr>
    <td><%out.println(rs.getString("user_id);%></td>
    <td><%out.println(rs.getString("user_name);%></td>
    <td><input type ="hidden",
    name="user"
    value="<%out.println(rs.getString("user_name));%>">
    <input type="Submit" value = "Do it">
    </td></tr></form></table>
    In the form that I'm calling I have this code to receive the value:
    String user_in = requet.getParameter("user");
    The problem that I'm having is if the query returns 10 records and the user_id are numbers 1- 10. When I select the second user_id (user_id = 2) to submit, it is always passing the value of the first record (ie user_id = 1). How can I code this to make it pass the correct value?

    How are you selecting second user ? I dont see anything relates to that in your code.
    I dont under stand problem completely but when you create hidden fields in a loop with same name it create create duplicate hidden fields with same name and different values
    replace hidden field code with this
    <%int i =1; %>
    <input type ="hidden",
    name="user"+'<%=i%>'
    value="<%out.println(rs.getString("user_name));%>">
    <%i=i++;%>

  • How to set Query value in WAD w. parameters

    Hi
    Is it possible to set the queryname in the dataprovider using javascript.
    My scenario is that I want to fetch the queryname from the URL with the following javascript
    I have the script:
    function GetPara( name )
         name = name.replace(/[\[]/,"
    \[").replace(/[\]]/,"
         var regexS = "[
    ?&]"name"=([^&#]*)"; 
         var regex = new RegExp( regexS ); 
         var results = regex.exec( window.location.href ); 
         if( results == null )   
              return ""; 
         else   
              return results[1];
    And then I want to implement something like the following in the template
    //First dataprovider (TAB_A_DP) initialization
    <bi:QUERY_VIEW_DATA_PROVIDER name="TAB_A_DP" >
                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                        <bi:QUERY value="SCRIPT_FUNCTION">
                               <bi:SCRIPT_FUNCTION value="GetPara('TAB1')" />
                        </bi:QUERY>
                    </bi:INITIAL_STATE>
                </bi:QUERY_VIEW_DATA_PROVIDER>
    //SEcond dataprovider (TAB_B_DP) initialization
    <bi:QUERY_VIEW_DATA_PROVIDER name="TAB_B_DP" >
                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                        <bi:QUERY value="SCRIPT_FUNCTION">
                               <bi:SCRIPT_FUNCTION value="GetPara('TAB2')" />
                        </bi:QUERY>
                    </bi:INITIAL_STATE>
                </bi:QUERY_VIEW_DATA_PROVIDER>

    Hi Leo
    Sorry I haven't explained my goal very well.
    I want to create a dynamic webtemplate w. two tabs. One tab showing data from one dataprovider and the other tab showing data from another dataprovider.
    My problem is that it's easy enough to set the dataprovider to a specific query but as I have several reports which should use this template then instead of coping the template and change the query name I want a generic way to set the queryname  (e.g. in the url) so I only have one template and not a template per report pair.
    In short I want to set the Initial State dynamic.
                                <bi:QUERY_VIEW_DATA_PROVIDER name="TAB_A_DP" >
                                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                                        <bi:QUERY value="dynamic" text="dynamic" />
                                    </bi:INITIAL_STATE>
                                </bi:QUERY_VIEW_DATA_PROVIDER>
    When I only have one dp I can leave it empty and set the query by typing ?query=<queryname> but what if I have several dataproviders with different queries?
    /John
    Edited by: John Dolph on Aug 26, 2009 3:22 PM

  • Get Query value Technical Name

    Hi,
    I have ZANALYSIS template and different queries use this template, I have to show a link to download a document. The document will be stored as Query Techincal Name.DOC.
    So i need to get QUERY techincal name in runtime to build path, how can i get the query techincal name....using javascript.
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="THIS VALUE WILL BE FROM Bex iview"/>
    function buildUrl(){
    var url = "http:testbox:50000/irj/km......"document.getElementById("QUERY").innerHTML".DOC";
    alert(val);
    basically my document path is .."http:testbox:50000/irj/km......"<QUERY TECHNICAL NAME>".DOC"
    Iam not gettng the QUERY techincal name..can anyone please help to solve this issue...
    iam using NW04's...
    Thanks,
    Damodhar.

    Hi,
    I have to get the query value using java script.....
                <bi:QUERY_VIEW_DATA_PROVIDER name="DP_1" >
                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                        <bi:QUERY value="<b> i need to get this value using java script</b>" />
                    </bi:INITIAL_STATE>
                </bi:QUERY_VIEW_DATA_PROVIDER>
    any suggestions ..please..
    Thanks,
    Damodhar.

  • DRG-11112: length of CLOB query value exceeds maximum of 64000

    Is there a CLOB length limitation when running an Oracle Text search? (v 11.1.0.7) I have checked the Reference Guide and Application Developer's Guide.
    --create table
    create table nk_1929(id number, vc_a clob);
    --insert dummy data
    declare
    vc_clob clob;
    begin
    vc_clob := lpad(to_clob('a'), 222920, 'a');
    insert into nk_1929 values(1, vc_clob);
    end;
    --create index
    create index nk_1929_ndx on nk_1929(vc_a)
    indextype is ctxsys.context parameters('
    datastore ctxsys.default_datastore
    stoplist ctxsys.empty_stoplist');
    --run query with a search string longer than 64000
    declare
    str1 clob;
    query_term clob;
    begin
    select vc_a into query_term from nk_1929 where id = 1;
    str1 := 'select id from nk_1929 where contains(vc_a, :1) > 0';
    execute immediate str1 using query_term;
    end;
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-11112: length of CLOB Query Value exceeds maximum of 64000
    Please let me know if I am missing something here?

    Same 64000 CLOB query value limitation is also generated with a simple select:
    --run query with a search string longer than 64000
    declare
    vn_id number;
    query_term clob;
    begin
    select vc_a into query_term from nk_1929 where id = 1;
    select max(id) into vn_id from nk_1929 where contains(vc_a, query_term) > 0;
    end;
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-11112: length of CLOB Query Value exceeds maximum of 64000

  • Programatically Querying Values from Garbage Collector Manager MBean

    Querying attribute values from some MBean are very easy such as : Available
    Object mbeanObjectName = new ObjectName("java.lang:type=OperatingSystem");
    Object attribute = _mbsc.getAttribute(mbeanObjectName, "AvailableProcessors");My question is... Is there an easy way to query values such as
    LastGcInfo in java.lang:type=GarbageCollector,name=MarkSweepCompact
    Inside this attribute, the value for memoryUsageAfterGc is a type of Map (TablularData). The tablular data contains a key and value pair. I am after Perm Gen. The value is a CompositeData type.
    After drilling all the way in, I arive at the value I am after "used".
    Is there an easy way to query this value directly? Maybe through getAttribute?
    Or, is the only way to write a lot of code and iterating through the maps and composite data?

    By far the easiest way of dealing with MXBeans programmatically is through MXBean proxies. You can do this:
    import com.sun.management.GarbageCollectorMXBean;
    import com.sun.management.GcInfo;
    ...other imports from java.*...
    GarbageCollectorMXBean gcm =
         ManagementFactory.newPlatformMXBeanProxy(
            _mbsc, "java.lang:type=GarbageCollector,name=MarkSweepCompact",
            GarbageCollectorMXBean.class);
    GcInfo gci = gcm.getLastGcInfo();
    Map<String, MemoryUsage> map = gci.getMemoryUsageAfterGc();
    MemoryUsage mu = map.get("PS Perm Gen");
    long used = mu.getUsed();It's still a fair amount of code, but you don't need to iterate over anything or look at CompositeData ever.
    The com.sun.management interfaces used here are documented at http://java.sun.com/javase/6/docs/jre/api/management/extension/overview-summary.html
    Regards,
    �amonn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus

  • Temperatur​e values at high fixed values

    I have two 1102/1302 with 6363 that has worked fine in the past.  After some down time I ran the vi and did not get correct values.  I investigated the virtual channels in MAX and the table has high fixed values for all channels (218-219 C) at room temperature and they are static values.  It would seem these values are not being read from any connected TCs.  Any idea as to what could cause this behavior?
    Solved!
    Go to Solution.

    teslac,
    How long has the system been sitting?
    Make sure that the hardware is physically set up correctly. Also, make sure that the correct thermocouple type is selected on your Virtual channel.
    Do you get the same values if you run the MAX Test panels?
    Do you get the same values if you run the example LabVIEW Program “Thermocouple - Continuous Input”
    Rob W.

  • High SAR value for Nokia N79

    Hi
    i am planning to check out nokia n79, but the on reading the tech specs, i found it has good high SAR value, 1.40... is it advisable???..1.40 is really a high value...
    Help needed....Thanks in advance...

    In truth, all SAR values of all in production phones have very minimal known effects on man. This was an issue 15 years ago when SAR values were like 10x of what they are now. If you really have an issue with it, use a headset for calls.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Unusually High MAPE Values

    Posting it again for anyone to give you some inputs.
    We ran forecast on a selection ID that has all Product-Customer combinations using Auto Model 56 in the bakground on Prod-cust level. The system has proposed a strategies like constant, croston, seasonal and so on ..which is fine.
    We have set up a limit of 80 for the Error Metric MAPE in the Diagnosis group. If I am not wrong, MAPE is a percentage value and 80 should mean 80%. But after the forcast run using 56, the system generated  abnormally high MAPE values, for example MAPE values obtained are in 10's of thousands like 2,956,009.830 and even 10,000,000.000 . These are no where close to our limit 80. MAPE is the average of absolute percentage differences between Acutals and Expost forecast. So how could system generated MAPE be so high for all the combinations . Are we supposed to read it differently, because i thought auto model though may not propose the best fit model parameters, but atleast not give us a forecast which has such high MAPE values. I was expecting MAPE within 100 or worst case 200, 300 but not thousands and millions..
    Am I missing something ? Please help - Susan

    Hello Susan
    You could use the MAPE-A. You have to implemnt it on your own in a badi.
    The MAPE-A ist a value between 0-2.
    Hope thats helps you.
    Sven

  • Abnormal high "query" count in customer tkprof output

    We have a performance problem with one of our customer.
    A query is made on a 12K rows table, and there is no full scan, the index is used.
    If we run the query on our test database, which is identical, and examine the tkprof output, things appears normal:
    Fetch=80, cpu=0.0, disk=0, query=15738,rows=782
    But the same query, on and identical table, same index at our customer:
    Fetch=831, cpu=4.75, disk=141, query=550564, rows=830
    I dont unerstand what is the "query" parameter, the number of cache buffers read in memory ?
    It is unbeleivebly high, further more, hard to understand high number of rows in the execution plan:
    Ours
    1570 TABLE ACCESS BY INDEX ROWID MY_SECRET_TABLE_NAME
    1570 INDEX RANGE SCAN MY_PRIMARY_KEY_INDEX
    Customers:
    88413 TABLE ACCESS BY INDEX ROWID MY_SECRET_TABLE_NAME
    92917 INDEX RANGE SCAN MY_PRIMARY_KEY_INDEX
    We dont understand such high numbers. On theory, from our former DBA, was that our indexes where not create properly. A unique key index was create, then a primary constraint with the same name, was added to the table. Apparently we should have created only the constraint, and not the second index.
    Any help appreciated.

    Hi Guy,
    Query = db block gets + consistent gets.
    Consistent gets are the block reads you need to reconstruct a read-consistent image of the data.
    If you can't fetch all records at a time, you will get multiple fetches. At each fetch Oracle will issue consistent gets, as it needs to provide to you the data in the state when you started the query.
    Looking at your statistics, it is quite clear what happened.
    Fetch=80, cpu=0.0, disk=0, query=15738,rows=782
    782 rows in 80 fetches. Roughly 10 rows per fetch.
    But the same query, on an identical table, same index at our customer:
    Fetch=831, cpu=4.75, disk=141, query=550564, rows=830
    830 rows in 830 fetches (the last fetch is to check there is no more data), which means 1 row per fetch.
    In both cases: consistent gets at every fetch.
    Somehow your client has made sure, by means of a setting, he will fetch only 1 row at a time. And that is killing him.
    Nothing wrong with any index.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Report-Query Value

    Hi Experts,
    Currently we are using one BW report in 3.5version(report query against multi provider).
    Current issue:
    Cube Fields:
    PO Number: 123
    Order value 100.
    Confirmation value 50
    Final Delivery Indicator: X (YES-No more confirmation is expected)
    Calculation on the Query:
    Outstanding Confirmed Value= Order Value - Net Confirmed Value
    Here Outstanding Confirmed Value = 100-50=50.So in the reports, Outstanding Confirmed Value shows 50.
    But the PO's Final Delivery Indicator is marked. So No more confirmation is expected
    Question:
    I am not able to create any formula against the filed Final Delivery Indicator. But i want to show in the report that if the PO's Final Delivery Indicator marked, then Outstanding Confirmed Value has to be 0(ZERO).
    Please help me achieve this result. Thanks.
    Advance Thanks.
    RR.

    Hi ,
    This can be achived in the following way.
    1. Create your formula
        "Outstanding Confirmed Value= Order Value - Net Confirmed Value" and hide it using the property.
    2. Create one more forumala which will check the condition. i.e. if the Final Delivery Indicator is marked then it will set the outstanding confirmed value as zero else it will show the value which we are getting by using above mentioned formula.
    put the following condition in the formula.
    [Final Delivery Indicator = = 0 ] * 0 + [Final Delivery Indicator <> 0]*Outstanding Confirmed Value
    This will work as follow.
    For example : Outstanding Confrimed Value is 50 and Final Delivery Indicator is marked.
    = [ 0 == 0 ] * 0 + [ 0 <> 0 ] * 50
    = 1* 0 + 0 * 50              " When the condition is satisfied its result is 1. here 0 == 0 condtion is satisfied so its return value is 1.
    = 0
    Hope this will help.
    - Jaimin

  • bi:QUERY value= dynamic in the WAD.    How to do it ?

    Hello,
    I need to define the query name somehow when the WAD is executed.
    We have one common web template for all of our queries and that is why I need to dinamicaly say in the WAD code that if the query tech is ZTEST then the real value should be ZTEST_DOC, which is a separate query where we have to store the documents.
    How to do this ?

    During runtime you can get the query ID using text elemets, then using java script you can generate the query document format by appending ther required text to the query ID.

Maybe you are looking for