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.

Similar Messages

  • Links not working in executable jar

    I have a problem with my java application
    html and images files do not work in executable jar
    though the application works normally
    I tried some suggestion but I received an exception thread indicating problem at
    ImageIcon iChing = new ImageIcon(imageURL);
    Please could you help me thank you so much
    here is the class
    public class Main extends JFrame
    * objects required for the GUI: JFrame,JLabel, JButton, ImageIcon, JPanel,
    * Dimension
    private static final long serialVersionUID = 1L;
    JButton jbEnter;
    ImageIcon iChing, logo;
    JPanel buttonPanel, ImagePanel;
    JLabel jlbIching;
    Dimension dim;
    URL imageURL;
    File fileName;
    // Class constructor to create the GUI
    public Main()
    Container container = getContentPane();
    URL imageURL = this.getClass().getClassLoader().getResource("src/myFiles/iching.gif");
    ImageIcon iChing = new ImageIcon(imageURL);
    jlbIching = new JLabel(iChing);
    // button to go to the Title class
    jbEnter = new JButton("Enter ");
    jbEnter.setBorderPainted(false);
    jbEnter.setFont(new Font("Edwardian Script ITC", Font.BOLD, 42));
    jbEnter.setBackground(new Color(0, 0, 50));
    jbEnter.setForeground(Color.YELLOW);
    jbEnter.addActionListener(new ActionListener() {
    // method to render the current frame invisible and trigger the
    // Welcome Menu
    public void actionPerformed(ActionEvent e)
    setVisible(false);
    // this line does not work...............
    new Title();
    } // close the actionPerformed(ActionEvent e) Method
    }); // close the addActionListener(new ActionListener() method
    // Panel holding the decorative image and Button
    ImagePanel = new JPanel();
    ImagePanel.add(jlbIching);
    ImagePanel.setBackground(new Color(0, 0, 50));
    buttonPanel = new JPanel();
    buttonPanel.add(jbEnter);
    buttonPanel.setBackground(new Color(0, 0, 50));
    // setting up of the panels position
    container.add(ImagePanel, BorderLayout.CENTER);
    container.add(buttonPanel, BorderLayout.SOUTH);
    dim = Toolkit.getDefaultToolkit().getScreenSize();
    dim.width = dim.width / 2 - 300;
    dim.height = dim.height / 2 - 250;
    setBounds(dim.width, dim.height, 400, 400);
    setSize(600, 500);
    setResizable(false);
    setVisible(true);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //To set the icon for the application. Top left hand corner.
    //this.setIconImage(Image);
    setIconImage(new ImageIcon("src/myFiles/ichingRose.gif").getImage());
    } // close the Constructor
    * the main method for the program.
    * @param args
    * The command-line arguments.
    public static void main(String[] args)
    new Main();
    } // close the main method
    } // close the Main class

    Thank you very much for your quick reply and really hope you can help me a little more
    it's so frustrating
    I do not really know about the relative path but here is my xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    <project default="jar">
    <!-- Compile and zip the source code into a jar -->
    <target name="jar">
    <!-- Make the folders we'll need -->
    <mkdir dir="ant"/>
    <mkdir dir="work"/>
         <mkdir dir="ant/myFiles"/
    <!--
    Compile all the .java files into .class files
    debug = yes Include debug information in the .class files
    destdir Where to put the .class files
    source and target Use Java version 1.6.0_06
    -->
    <javac
    debug="yes"
    destdir="ant"
    source="1.6"
    target="1.6">
    <!-- Folders that have trees of .java files to compile -->
    <src path="src"/>
    </javac>
         <copy todir="ant/myFiles"><fileset dir="src/myFiles"></fileset></copy>
    <!--
    Zip files together to make a jar
    jarfile Where to make the .jar file, overwrite something there
    basedir Find the files to zip in the jar here
    -->
    <jar
                   jarfile="work/BookOfChanges.jar"
    basedir="ant"
    >
    <!-- Write a manifest inside the jar -->
    <manifest>
    <!-- The class Java will run when the user double-clicks the jar -->
    <attribute name="Main-Class" value="iChing.Main"/>
    </manifest>
    </jar>
    </target>
    </project>

  • My touch screen on my iPhone is not working correctly. I touch one part of the screen and another part responds. Is the there any way to solve this problem?

    My touch screen screen is not working properly.  I touch one App or icon and an different App/icon opens.  It is an ultra sensitive touch screen, any idea on how to solve this issue?

    Yes!  Stop using the charger!  My husband noticed it was worse when plugged in. One apple guy told me "restore" ... I did all that and it did not help. After I stopped using the charger, it stopped messing up. I used my husband's charger and all is well. 
    Later, an apple employee told me to bring in the charger for a trade in, because they had a recall on some of them.
    I haven't traded it yet, but I plan on it.
    Good luck!  Let me know!

  • My wireless keyboard and mouse do not work on my All-In-One computer?

    Q.: My wireless keyboard and mouse do not work on my All-In-One computer?
    A.: If your wireless keyboard and mouse do not work even after changing the batteries, please try re-syncing them by following these steps.
    1. Make sure the computer is on, plug in the USB receiver. Push the button on the USB receiver until it flashes blue.
    2. While the receiver is still flashing, press the red connect button on the keyboard (Make sure the batteries are installed). The USB receiver should stop flashing after pressing the button on the keyboard. It may take up to 8 seconds to sync.
    3. Repeat the same process for the mouse. Push the button on the USB receiver, then press the connect button on the mouse (Make sure the mouse is on).
    Note: This applies to all MSI All-In-One computers that include the ES500W wireless keyboard and SW130 mouse.

    "This machine has an added 4 USB ports, could this be causing a problem?
    It definitely could be the source of the problem. Perhaps the PCI card was bumped loose during shipping?
    Have you tried removing the card? That's where I would start.
    Keep us posted.

  • ITunes download is extremely slow or not working, am I the only one experiencing this, iTunes download is extremely slow or not working, am I the only one experiencing this

    iTunes download is extremely slow or not working, am I the only one experiencing this, iTunes download is extremely slow or not working, am I the only one experiencing this?

    I do not have a solution, just the same complaint.  ***!  !    I just used the iTunes store 2 weeks ago and now, after reviewing everything they asked for including ID/Pass/ Account Info etc.  I can't even get into the store.  I have tried asking at the Mac store and it has all been to no avail.  I was perfectly happy with iTunes before all of this ********... seriously what is the issue with iTunes?  They ask me to upload a new version (with no system specs anywhere that I can find on the page)  and then say it can't utilized because of system inadequacy.  It is exceedingly frustrating.

  • My new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    my new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    Try an SMC Reset. (System Management Controller)
    Shutdown>unplug from power for ten minutes>press and hold in the power button for ten seconds>startup again.
    Also try a PRAM Reset. (Parameter RAM)
    Shutdown. At the bootup chime, hold down CMD-Option-P-R together, wait for two more chimes, total three, then let go of all keys to finish booting,
    If this doesn't do it, run the Hardware Test in Extended
    http://support.apple.com/kb/ht1509

  • My excel report is not working in executable file ,however,it works well in vi

    Hi all ,
         Could any one please help me in getting the reason behind the executable file not working for excel report generation,however I can get the same function without any problem in main vi.
    I am attaching my code and executable file also ,please have a look into it and let me know where I am wrong.
    Thanks & Regards !
    sarita
    Message Edited by MindPower on 10-24-2007 01:40 AM
    Message Edited by MindPower on 10-24-2007 01:43 AM
    Attachments:
    test datalog.vi ‏264 KB
    test datalog-NEW.zip ‏1020 KB

    I can't open the vi in the moment. But by your description I think that I know the solution.
    When you build the executable you've to add dinammically the vi's from report generator that aren't in your main vi hierarchy. So, you've to open the vi's and find those that are open trough "open vi reference" and add them dinamicaly.
    And don't know if these tips are enough.
    From NI Zvezdana S.
    "When you use the Report Generation Toolkit to build a stand-alone application with the Application Builder, you must add _Word Dynamic VIs.vi from _wordsub.llb and _Excel Dynamic VIs.vi from _exclsub.llb as dynamic VIs. These two VIs contain subVIs that are called dynamically by the high-level Report Generation VIs. I believe that if you grab these VIs from the (desired office version part of the) installation CD instead of from the development machine, then everything should work. "
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • Report runs fine in Analyzer but not working when executed fromQuerydesig

    Hi,
    I have a issue with the Bw report which is not showing any data for Keyfigureswhen i execute the report related to APO from Bex query designer in Web.
    But the same report executes fine in the Bex Analyzer.
    If any one has faced this issue earlier,update us reg that.
    We are doubting any prob related to catch memory as the java link for the report is not working.Report works fine in RSRT.
    Vamsi

    Hi there,
    Can you please let us know what cache settings you changed, as we are having the same issue.
    Many thanks

  • Report runs fine in Analyzer but not working when executed fromQuerydesiger

    Hi,
    I have a issue with the Bw report which is not showing any data for Keyfigureswhen i execute the report related to APO from Bex query designer in Web.
    But the same report executes fine in the Bex Analyzer.
    If any one has faced this issue earlier,update us reg that.
    We are doubting any prob related to catch memory as the java link for the report is not working.Report works fine in RSRT.
    Vamsi

    Hi there,
    Can you please let us know what cache settings you changed, as we are having the same issue.
    Many thanks

  • Flash Builder buttonMode = true not working

    Hi, I am having a really strange issue where I can't get any hand cursors to come up in Flash Builder. Anybody else have this problem. I ran into a situation where I've had to convert a ton of Flash Builder projects just to get the hand cursors to come up. Weird this is if I open the swf's in Flash the hand cursors will show up. Once they get on the web though, though don't work. It's almost as if the buttonMode property will not work in swf's compiled in Flash Builder. I've tried with Flash Builder 4 and 4.5 and no luck. I told a friend, and he didn't believe me. So I asked him to just do a simple test in Flash Builder to create a Sprite and add it to the stage, add a click listener, and set it's buttonMode to true. He has the same problem, no hand cursor. I've even tried to set useHandCursor true with buttonMode, etc.... to no avail. Any help? Thanks!

    If you are viewing your files in Firefox, this is a known bug:
    http://support.mozilla.com/en-US/questions/796828

  • Ggmap not working in Execute R module

    Hi, I am trying to use ggmap package with the following command:
    library(ggmap);
    library(mapproj);
    map=get_map(location = c(lon=77.302,lat=28.57), zoom = 15);
    mapPoints <- ggmap(map) + geom_point(aes(x = long, y = lati,col=vehicle_s), data = cleandata, alpha = .5);
    plot(mapPoints)
    This should plot my data in the google map
    But after running the module, I am getting error that the there is no ggmap package... install.package function is also not working as then the module continue to run indefinitely.
     pls advice...

    Hello,
    Unfortunately at this time network access is blocked off from the Execute R/Python script modules. We are investigating removing this restriction.
    Both ggmap and the default install.packages() rely on network usage, though there are instructions both here and in the documentation on how to install custom packages. There is unlikely to be a similar workaround for ggmap.
    Regards,
    AK

  • Unix script not working when executed from SAP PI communication channel

    Hi Experts,
    I am currently using the Run OS command after message processing functionality of the file adapter.
    However, the unix script doesn't seem to work when run via communication channel.
    The script runs properly when executed manually.
    The communication channel logs don't show any error as well.
    Do you have any ideas as to where the error might be.
    Thanks,
    Mike

    Hi All,
    Thank you for your replies. I appreciate this.
    @Anand, here is the script:
    #!/usr/bin/sh
    #version 1
    hostname=$(uname -a | cut -f 2 -d " ")
    MAILTO="[email protected] "
    homedir=$PWD
    echo $homedir | mailx -m -s "OB10 $hostname" $MAILTO
    /opt/java6/bin/jar -xvf OB10.zip
    ll | mailx -m -s "OB10 $hostname" $MAILTO
    What's puzzling me is that I am able to receive the email alerts.
    This means that the user has sufficient authorization to execute the script.
    But the unzip command is not working.
    I have seen the unzip work when run manually.
    Thanks,
    Mike

  • SetInvokesStopCellEditing(true) not working

    hi
    setInvokesStopCellEditing(true) in jTree is not working.
    when i set it true it should save the data entered in textfield but it doesnot
    any help
    thanks

    I've found that setting it to true makes JTree save the changes if you click on another node during editing, but hitting the Esc key discards changes regardless of this setting.

  • Date comparision not working in BI-Publisher in one scenario.

    Hi,
    Iam using sqlquery as a datamodel for BI-Publisher report. I have a requirement that the input parameters startdate and endate are Date types. When the user enters startdate and enddate and clicks on view, the report should show data which falls in between those dates.
    Here is the sample query i used.
    select * from
    table1
    where begintime >= :p_StartDate and begintime <=:p_EndDate
    Here begintime is a timestamp and p_StartDate and p_EndDate are just dates. So when comparing begintime with p_StartDate/p_EndDate, i guess its taking default time from that date and because of that the comparision is failing in 1 case. i.e, In the above query, though the comparision operator is >= or <= , ultimately > or < is getting effective. So to acheive the actual result, I need to give one day more for start and end dates.
    However I found a way to acheive this without adding extra day to both the dates. Here it is :
    select * from table1 where
    ( begintime >= to_timestamp(to_char(:p_StartDate) || '00 00 00', 'DD Mon YYYY HH24 MI SS')) and
    ( begintime <= to_timestamp(to_char(:p_EndDate) || '23 59 59', 'DD Mon YYYY HH24 MI SS'))
    But the above is working in sqleditor like jdeveloper database navigator. But not working in BI-Publisher.
    BI-Publisher is throwing error saying
    "ORA-01830: date format picture ends before converting entire input string"
    Please help as to how to go about this problem or any alternative solution.
    Thanks & Regards,
    -Vijay-

    Hi,
    I think it will be fine to trunc the begin time since :p_StartDate and p_EndDate are just dates without time stamp
    i.e:
    select * from
    table1
    where trunc(begintime) >= :p_StartDate and trunc(begintime) <=:p_EndDate;
    any problem with this.Please share the thought.
    Best Regards,
    mahi

  • Navigation bar not working cannot add a new one says there is a warning but does not indicate what kind of warning

    In the space where you would add a widgit there is a warning so a new navigation bar cannot be added.  I tried uninstalling and reinstalling but that did not help.  When I pulishedd my website the navigation bar did not work.  It only linked to one page but I cannot fix the problem because of the warning. 

    Hi
    Are you creating a manual menu and while adding another menu item you are facing error ?
    Please elaborate more as what are the steps you are taking and upload screenshots of navigation bar that you are using in design mode , if site is published then share the url.
    Thanks,
    Sanjit

Maybe you are looking for

  • Error popup in Adobe Acrobat Pro XI

    I keep getting an error popup message that reads: Adobe Acrobat Updater has not been able to check for updates recently. Check online to see if solutions are available from the Adobe website. It also has a checkbox to hide this message. I've seen on

  • Problem in calling a created application.

    Hi all, I have followed the procedures shown in the first example of the pcui cookbook. But at the end ,they are written as 'You can now call the application TMP_EXAMPLE1:' ie in the 7th step.The procedure to call the application is not mentioned.Can

  • Amount in LC is Zero.

    I have created a using Account assignment category A . after doing GR once we check the purchase order history then price is zero in column Amount in storage location. so please share your views what could be the possible reason.

  • E1700 Advanced Routing - help needed

    I am having trouble creating static routes through my Linksys E1700 (Rev v1, f/w 1.0.02. I keep getting errors on all routes I try to enter. Either I get a complain that a part of an IP adress is not in range 1-233  or I get the error message "Invali

  • Getting Free CellSpotter App Showcased in the LimeLight!!!

    I received an email from iTunes showing me "Good Apps for Grads" today. I have a brand new app for Grads, CellSpotter, and I would like to get it on the list of other apps that are being Showcased. Who can I talk to in the marketing area about having