Database parse execute and fetch shows 9 counts.

for one of the SQLs, database parse execute and fetch shows 9 counts along with query - fetch 21 the rows - fetch shows 2,
I also observe the below for the other sql statements,
this stats have been collected by level 12 trace and then generating tkprof. please let me know few relevant links / notes through which can dig further into this.
call count cpu elapsed disk query current rows
Parse 10 0.01 0.00 0 0 0 0
Execute 33 0.01 0.00 0 0 0 0
Fetch 33 0.00 0.00 0 199 0 33
total 76 0.02 0.01 0 199 0 33
Regars.

Exactly, you have understood it right(Sorry i was way involved with this tkprof when I initially posted the thread) .
I've couple of sql's in my tkprof(leverl 12 trace) which are showing similar results and looks like its doing lot of work and fetching less number of rows.
Bbackground
1.A program was taking less than a minute to complete and now it is taking approximately 30 mins( The data being fetched is all the same) ..
2.There are no changes applied to the database since last run.
3.DB - 10.2.0.3.0
would like to know ways to dig further into it.

Similar Messages

  • ICloud Photos  shows different counts in different devices

    Hi,
    I am using iCloud Photos on the following devices:
    1. iPhone 5
    2. iPad
    3. Apple TV
    4. PC
    The issue is I see  1 and 2  aboveshows a count of 587 while 3 and 4 shows a count of 283 onlly.
    How are these counts being calculated and is it normal to be different across my devices?
    My understanding was that since photos are in a, so-called "cloud", the counts should ideally be the same as all these four devices look up to the cloud to get the photos.
    Can some please advise if I need to do any step to sync up the countd across all my devices?
    Thanks in advance,
    Ray

    That's perfectly normal.
    Photo stream on each device will only start adding photos from when photo stream is enabled, it will then only keep them in the cloud for 30 days. If you enable photo stream on a device later than on another any photos added to the first device that are over 30 days old won't be added to the second device.

  • User parameter are not show in database using Servlet and java Bean

    Hello Sir,
    when I insert the parameter in run time, weblogic server and JSP show that parameter are saved.
    Allthough row increment in database but they not show in database.
    Here My Code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(user);
    st.setpassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getuserName() {
    return user;
    public void setuserName(String user) {
    this.user = user;
    public String getpassword() {
    return pass;
    public void setpassword(String Pass) {
    this.pass= pass ;
    public String issueData()
    try
    System.out.println("Printed*************************************************************");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij2 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String NAME=getuserName();
    st.setString(1,NAME);
    String PASSWORD=getpassword();
    st.setString(2,PASSWORD);
      st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:This is Submit page
    <jsp:useBean id="st" class="co.SimpleBean"/>
    <jsp:setProperty name="st" property="*" />
    <jsp:getProperty name="st" property="userName" /> <br>
    <jsp:getProperty name="st" property="password" /> <br>
    <% st.issueData();%>
    <%
    out.println("Ur data is saved in DB");
    %>Please Help me.
    Thanks.

    Ok, this seems to be a long and convoluted path to do absolutely nothing.
    You submit the form.
    You run a servlet that gets the parameters correctly (good), creates a SimpleBean (good) and then sets this into request attribute space under the names "user" and "pass" - (why?)
    You then forward to the jsp: submit.jsp.
    Submit.jsp creates a new SimpleBean, and attempts to populate it with <jsp:setProperty>. You then call the issueData method on it.
    Your complaint: Rows are being created in the database which have empty string values instead of the parameters you have passed.
    So, why are the values blank? Where do you think these values should be coming from?
    Looking at SimpleBean we find one mistake - you have mis-named your get/set methods.
    To properly follow java beans standards, you should use camel-case for your methods.
    Rather than getuserName() the method should be getUserName(). getpassword() should be getPassword() etc etc.
    The method getUserName() defines a property "userName" for the bean.
    Once that is fixed, lets go to submit.jsp. The <jsp:setProperty> statement will try and set all properties of the bean from the request parameters.
    There are no request parameters "userName" or "password" so those values don't get set in the bean, therefore it uses their default value of empty string - "".
    There ARE request parameters called "user" and "pass" but because they aren't properties of the bean, they get ignored.
    As a result, the values are empty string, and that is exactly what gets inserted into the database.
    Ways to fix this
    1 - rename your parameters on your form to be "userName" and "password" to match the bean. That way the <jsp:setProperty> tag will populate them properly.
    or
    2 - Call issueData() method from your servlet after you have created the SimpleBean. Better in my opinion as you then don't have any scriptlet code on a JSP page.
    Cheers,
    evnafets

  • Call the database table on commit operation and fetch the rows

    Hi
    I am new to Bpel. I have a task to call the database table on commit operation and fetch the rows and call a webservice iteratively for fetching the data into a file?
    Can anybody help me on this
    Thanks and regards
    Richa

    HI,
    update ZYBKP set MATNR = <b>zcore_2-ZDUMMY</b> where matnr = <b>zcore_2-ZDUMMY</b>.
    update ZY310 set MATNR = zcore_2-ZDUMMY where matnr = zcore_2-ZDUMMY.
    update ZYBCS_LOT set MATNR = zcore_2-ZDUMMY where matnr = zcore_2-ZDUMMY.
    <b>YOU ARE COMPARING SAME MATERIAL AND UPDATING WITH THE SAME..</b> AND ALSO ZCORE_2 IS A DATABASE TABLE AND MAY NOT CONTAIN ANY VALUE AT THAT POINT...
    in these statments you say that
    update table set matnr = 'MATNR' WHERE MATNR = 'MATNR'.
    EVEN THOUGH THIS STATMENT IS EXECUTED THERE WILL NOT BE ANY CHANGE IN THE TABLE...
    Thanks,
    Mahesh

  • I moved from an old macbook to a new one.  I copied all my files onto a hard drive.  On trying to setup my mail, i went into documents, microsoft user identities, office 2011 and it shows the database but wont let me select it.  Urgent help pls

    I moved from an old macbook to a new one.  I have installed Office for Mac 2011. I copied all my files from my old notebook onto a hard drive.  On trying to setup my mail, i went into my hard drive and accessed microsoft user identities, office 2011 and it shows the database but wont let me select it.  Its almost as if the file is there but not accessable.  I desperately need to access my old mail.  How do I do this?  I am fairly confident that I copied all files off my old notebook.  Is there a way for me to search for the Database file?  Maybe I copied it to a different location?  Urgent help please.

    Hello mafrerichs and welcome to Apple Support Communities,
    Simplest way is to use Target Disk mode:
    How to use and troubleshoot FireWire target disk mode - Apple Support
    and hook to another Mac and use CCC or SuperDuper and clone your HD to another drive.
    You could also pull the drive out of your MBP and use an external USB case or SATA - USB dongle to hook it to another Mac.
    "MacBook Pro (15-inch Late 2011),... have a 15" 2012 Macbook pro with 2gb of ram, i7 processor"
    That's a little confusing?

  • Can we split and fetch the records in Database Adapter

    Hi,
    I designed a Database Adapter to fetch the records from oracle Database. Some time, the Database Adapter need to fetch around 5000, or 10,000 records in single shot. In that case my BPEL process is choking and getting error as
    java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    Could someone help me to resolve this?
    In Database Adapter can we split and fetch the records, if number of records more then 1000.
    ex. First 100 rec as one set and next 100 as 2nd set like this.
    Thank you.

    You can send the records as batches useing the debatching feature of db adapter. Refer documentation for implementation details.

  • Using Mountain Lion (OS 10.8), in Contacts, how can I show a count of number of contacts total and/or number of contacts in a group?

    Using Mountain Lion (OS 10.8), in Contacts, how can I show a count of number of contacts total and/or number of contacts in a group?

    If you scroll the list to the bottom, there might be a count. I haven't figured out why you sometimes get a count and other times you don't.

  • Simple Count query and fetching data

    Hello,
    I have a table Emp :
    Name, age, sal, dateUpdated
    A 21 100 6/4/10
    B 21 101 6/4/10
    C 32 101 2/2/2
    D 20 100 3/3/3
    I am trying to count the number of people in the same age group AND fetch that number.
    For ex, I want to count the number of people that were updated today and then fetch their age.
    for ex : something like this : select count(dateUpdated) from Emp where date updated is today
    will only return 2 as result.
    how should my query be if I want to even fetch the individual age along with the count ?
    cheers,

    You can use {noformat}{noformat} tags to preserve your code format. That would help every one to read your post better.                                                                                                                                                                                                                                                           

  • HT1390 I rented the movie Chronicle and it show it playing on my comp, but no audio or video, just the timer counting down, what should I do?

    I rented the movie Chronicle and it show it playing on my comp, but no audio or video, just the timer counting down, what should I do?

    I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • After i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    after i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    Nothing is working and I can't find the Roboform toolbar. Your lack of direct support is really irritating- a live chat at least would be helpful.

  • TS3899 I have an iPhone 5 and it shows on the Mail Icon that I have over 3,000 emails to read but the number continues to increase even when I have read the email.  I thought  once you have read an email it drops off the count of "new emails"

    I have an iPhone 5 and it shows on the Mail Icon that I have over 3,000 emails to read but the number continues to increase even when I have read the email.  I thought  once you have read an email it drops off the count of "new emails"

    The received emails should show in two locations:
    1. In the All Inboxes tab of Mail.
    2. The Inbox for each mail account,
    If your emails are not showing in these locations try quitting the mail app and then reset your iPhone.
    Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it wiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal.
    To reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Opening and fetching cursor.. what accually happens?

    So, if we have an explicit cursor... we open it with open c_cursor_name... and fetches it into some variable...
    my question is - what really happens when we open cursor?
    does oracle make only instance of cursor object in memory? or... does it reads some basic data about rows that are going to be fetched (rowid's?)..? or what?
    also, if we make some insert into a table that is going to be rolled over by cursor (while cursor is fetching..), should cursor read this new data? for example, what is difference if cursor roll over an indexed ID and we make an insert with an ID=10, and cursor is currently on ID=100? or opposite? (commit included in insert)...
    oh, so many questions :)
    tnx :)

    Not really. The same SQL cursor in the shared pool applies.
    The difference is on the client side. Each of the methods you've listed is essentially using a different method on the client side to interact with the cursor on the server.
    Some methods are more desirable in some cases than another - there's not a single superior method. Each has pros and cons and addresses a specific set of client coding requirements.
    There are some preferred methods though on the client. The three primary ones are:
    a) use bind variables (enables one to re-use the same SQL cursor)
    b) re-use the same client cursor handle for tight loop operations
    c) use bulk binding
    The first one is kind of obvious - as bind variables creates a cursor "program" that can be called/executed with different values. Like an INSERT cursor for example. The same SQL cursor can be used to insert a million rows, with each execution using different variable values to insert.
    The second one is not that applicable to the PL language in PL/SQL - thanks to the integration between the PL and SQL languages. In other client languages though, you want to re-use not only the same server cursor, but the same client cursor handle. As this saves you a soft parse. So instead of this approach:
    // pseudo code
    for i in 1..count
      CreateCursor( c, <sql statement> );
      BindValue( c, 1, myVariable[i] );
      ExecCursor( c );
      CloseCursor( c );
    end loop;..the following is far more efficient:
    // pseudo code
    CreateCursor( c, <sql statement> );
    for i in 1..count
      BindValue( c, 1, myVariable[i] );
      ExecCursor( c );
    end loop;
    CloseCursor( c );This approach re-uses the client handle - which means a single db parse was needed. The prior approach required a brand new parse for each loop iteration. (even soft parsing is an overhead that should be avoided where possible)
    The last primary factor is bulk processing. This is fairly well documented for the PL language - the important bit to remember that bulk processing is only intended to pass more data with a single call between the PL and SQL engines. Nothing more. The price of which is a bigger PGA memory footprint. Thus there is a balance between how much data (rows/variables) one should pass between the two versus the amount of memory that consumes.

  • Prepared=True Not working. Parse:Execute ration is one in tkprof report

    Hello,
    DB Version 9.2.0
    OS NT
    Provider: OraOLEDB 9.2.0.1.0
    I have a small .NET application. I use bind variables all overe my application. But my parse:execute ratio is 1 for some of all SELECT statements. There are many softparses in my application. I have also set session_cached_cursors.
    While using ADODB command object I set the "Prepared" parameter to true. But even though
    there are many parses.
    Heres is the simple block of code ..
    strCmd = "SELECT DISTINCT TO_CHAR(exp_date,'Month') Months, " _
    TO_CHAR(exp_date,'MM') MM FROM expenses ORDER BY MM"
    cmd1 = New ADODB.Command()
    cmd1.ActiveConnection = cConn
    cmd1.CommandText = strCmd
    cmd2 = New ADODB.Command()
    cmd2.ActiveConnection = cConn
    cmd2.CommandText = strCmd
    cmd2.Prepared = True
    For intLoop = 1 To 4
    cmd1.Execute()
    Next intLoop
    For intLoop = 1 To 4
    cmd2.Execute()
    Next intLoop
    Heres the tkprof trace output
    SELECT DISTINCT TO_CHAR(exp_date,'Month') Months, TO_CHAR(exp_date,'MM') MM
    FROM
    expenses ORDER BY MM
    call count cpu elapsed disk query current rows
    Parse 8 0.00 0.00 0 0 0 0
    Execute 8 0.04 0.06 0 0 0 0
    Fetch 8 0.01 0.01 0 56 0 226
    total 24 0.06 0.07 0 56 0 226
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 62
    Rows Row Source Operation
    23 SORT ORDER BY
    23 TABLE ACCESS FULL EXPENSES
    Logically it should be one parse and 8 execution. Will anybody please suggest me, how do I minimise the number of parses?
    Thanks in advance
    Sameer

    "db file parallel read" is likely to be associated with something like index prefetching.
    See:
    http://www.freelists.org/post/oracle-l/RE-Calculating-LIOs,11
    http://aprakash.wordpress.com/2012/05/29/index-range-scan-and-db-file-scattered-read-as-session-wait-event/
    http://jonathanlewis.wordpress.com/2006/12/15/index-operations/
    Tune the SQL.
    Review the execution plan.
    Check whether the statistics are accurate.
    Review whether the index hint (and others that we can't see) is appropriate.

  • Dba_index_name and dba_ind_columns showing different results

    Hi All,
    I am confused why it is showing different results:
    [email protected]#>select index_name from dba_indexes where table_name='CRBTPROV_FINAL';
    INDEX_NAME
    CRBTPROV_INDX1
    [email protected]#>select index_name from dba_IND_COLUMNS where table_name='CRBTPROV_FINAL';
    INDEX_NAME
    CRBTPROV_INDX1
    MSISDN_IDX
    When trying to drop index MSISDN_IDX it gives error:
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified
    But when trying to check where all the index is used using v$access:
    select * from v$access where object='MSISDN_IDX';
    no rows selected
    Regards,
    Kirti

    If I run the following query on a 9.2.0.6 database, no index is listed:
    select type, count(*) from v$access group by type;CURSOR
    FUNCTION
    NON-EXISTENT
    PACKAGE
    SEQUENCE
    SYNONYM
    TABLE
    TRIGGER
    VIEW
    It seems that index is not taken into account by v$access ?

  • Storing and Fetching checkbox values in APEX 4.0

    Hi,
    I am trying to store and fetch values of multiple checkboxes which i have created as items inside multiple regions.
    What could be the most efficient way to store the checkbox state values in the database table, when creating a new record in my application and to show the checkbox state by fetching the state value,when viewing an already created record??
    Thanks.

    Yes, the list is presented as items.
    I have got the list of values using a SQL queries for different regions and i have presented the output in the form of checkboxes.
    I am trying to store the values of checkboxes from multiple regions inside database along with other details of form.
    Also, i want to fetch the stored values and view them for already created records.
    My exact question would be that which API or feature is used to achieve this in APEX 4.0 and how can it be done successfully??
    Thanks.

Maybe you are looking for

  • Blue Screen Of Death on Windows 7 64bit

    Hi, My computer crashing again after update some windows update, I updated almost all the drivers but still got problem. Below is my dump file. https://www.dropbox.com/s/0wak2x4mkrg3zd3/miniDump.zip any help would be much appreciated! Regards, Vy

  • How to switch off incremental save

    Hello, I am facing a similar problem as described in http://forums.adobe.com/message/3881828#3881828 I have a very dynamic interactiv form with a workflow - sending one PDF to 6 e-mailUsers and I'm facing the problem that the size of the PDF grows. A

  • Multiple Orchestration instances getting generated

    I had a orchestration which query's for a particular WCF Service, If this service is live, then no issue, let's say a scenario where the service is down, then control will goto my exception block, inside exception block i had a suspended shape, just

  • Ship to party - condition type

    Hi experts, pls help solve. Thx. Issue: The system pops up the msg below when using another ship to party. "Pricing error: Mandatory condition MWSI is missing Message no. V1801". Background: Another ship to party is created by using VD01, i.e. only "

  • BSE adjustment account

    Hi, For foreign currency valuation F.05, the balance sheet item is adjustment account. May I know for balance sheet evaluation for stock, the balance sheet item is also adjustment account? Why? Thanks