Find out, How to fetch the fast ?

Hi,
I am Using Oracle 10g. My question is, is it any way to find out the process to fetch the records from one table faster. Because i am facing the problem with fetching the records. I tried to find out with the trace file(tkprof) but in that it is showing fetching is taking 522.17 elapsed time for the OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS. And execution is 8.17 elpsed time. Is there any other process to find this problem.
OS----Microsoft windows server 2003. (service pack 2)
Computer is --- Intel(R) Xeon(TM) CPU 3.00GHz & 2.00 GB RAM
Oracle ---- Oracle 10g
Version -- version 10.2.0.1.0
Thank u
Ravi

SELECT SUM ( B_SALES - B_PURCHASE + B_TAX + B_OTHER + B_DIV + B_STAMPS + B_TTAX + B_DELY_CHRG + B_MARGIN + B_AUCTION + B_DEMAT + B_STAMPDUTY + B_TOC + B_PROC + B_TOT )
     FROM SYSADM.BILLS WHERE B_PARTY = :1 AND B_DATE <= :2
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 31967 1.15 1.26 0 0 0 0
Fetch 31967 5.10 127.50 38472 540401 0 31967
total 63935 6.26 128.77 38472 540401 0 31967
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 59
Rows Row Source Operation
31967 SORT AGGREGATE (cr=540401 pr=38472 pw=0 time=127724614 us)
443448 TABLE ACCESS BY INDEX ROWID BILLS (cr=540401 pr=38472 pw=0 time=153154742 us)
443448 INDEX RANGE SCAN XB_PARTY (cr=97341 pr=2534 pw=0 time=5451803 us)(object id 49301)
SELECT SUM( DECODE( CB_CRDR, 'P', CB_AMOUNT, 'R', CB_AMOUNT * -1 ) )
     FROM SYSADM.CASH_BOOK
     WHERE CB_P_CODE = :1 AND CB_AC = :2 AND
     CB_DATE<= :3
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 31967 0.70 1.16 0 0 0 0
Fetch 31967 6.23 276.79 116992 409669 0 31967
total 63935 6.93 277.96 116992 409669 0 31967
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 59
Rows Row Source Operation
31967 SORT AGGREGATE (cr=409669 pr=116992 pw=0 time=276910785 us)
813626 TABLE ACCESS BY INDEX ROWID CASH_BOOK (cr=409669 pr=116992 pw=0 time=223706156 us)
813698 INDEX RANGE SCAN XCB_PARTY (cr=98779 pr=4349 pw=0 time=10053151 us)(object id 49308)

Similar Messages

  • I am trying to find out how to copy the image on my existing hard drive to my new hard drive before I install it so it will be like I didn't do anything.

    I am trying to find out how to copy the image on my existing hard drive to my new hard drive before I install it so it will be like I didn't do anything. Thanks for the info. on changing it.

    Format is found in the Erase Tab:
    The Disk Image is found on the Restore Tab:

  • Find out how many times the application was touched by a particular user

    Hello,
    can anyone please help me out with this issue.
    I want to find out how many times the application was accessed by a particular user,their session IDs for each of the applications in a particular workspace. I am using a role based authorization scheme for my application. I am using Oracle APEX 3.2 version. Are their any underlying APEX tables/Views to find out the above details.
    thanks,
    Orton

    Hi,
    Have you check views APEX_WORKSPACE_ACCESS_LOG and APEX_WORKSPACE_ACTIVITY_LOG
    Regards,
    Jari
    Edited by: jarola on Oct 20, 2010 7:37 AM
    This might help also
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#CHDDHGJI

  • I would like to print a four sided programme, but am having trouble finding out how to organise the sections onto a 17  by 11 paper with the sections in the right order. Any help?

    I would like to print a four sided programme, but am having trouble finding out how to organise the sections onto a 17  by 11 paper with the sections in the right order. Any help?

    If all you are going to do is print double sided and them make
    a single fold reducing the page to 8 1/2 x 11, one side of the
    original 17 x 11 page will be page 4 on the left as you hold
    the page facing you and page 1 on the right, reverse side
    should be printed so top is same as top on the the first side
    and will be page 2 to the left and page 3 to the right. Pick
    up the double sided document with pages 2 and 3 facing you, fold
    left edge to meet right edge; you should now have fold on the left
    with page 1 facing up toward you, turn the page as you normally
    would and pages 2 & 3 should be in order, and one more turn brings
    you to page 4 and the fold should know be on the right. I hope this
    explains clearly enough - if not, post back and some one should
    join in with a better explanation.

  • My photoshop 10 has stopped working  is there a telephone number for support that I can call to find out how to fix the problem???

    My photo shop 10 program has stopped working.  Is there a telephone number that I can call for support to find out how to fix the problem???Jenny

    Please read this (in particular the section titled "Supply pertinent information for quicker answers"):
    http://forums.adobe.com/docs/DOC-2325
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • 2 weeks trying to find out how to use the media live encoder in multi stream. And  I can not find an

    2 weeks trying to find out how to use the media live encoder 3.2 in multi
    stream. And  I can not find any clear instructions guide. Please from
    my soul, taught me clearly, how  I can stream to 2 different site
    using live media encoder. what I do with ftml values and the other
    one , wich everyone site give me, where should I put them, in what
    order ... everything I tried, I got an error. I realy please you,
    please !!!! thanks in advance !!

    [Moved to Flash Media Live Encoder forum.]

  • I want to find out how to retrieve the serial number for my product. i can't find it in my email

    i want to find out how to retrieve the serial number for my product. i can't find it in my email

    Find your serial number quickly

  • Trying to find out how to get the smallest value in a 2-D array

    I figured out how to get the largest and smallest in a 1-D array, but I'm having trouble with the for loop for the 2-D array
    I can't seem to figure out how I can get it to check every element in the 2-D array
    Lets say I have this array
    int[][] aRay = new int[][] {{ 1, 2, 3} , {4, 5, 6 }};and I want to find the smallest value, I think I can figure out what goes in the box of the for loop I just need help with how I can check every element..
    Thanks all

    Ok so here's what i've got so far and my brain is starting to hurt,
    My output right now is "2".. i'm almost there :/ aren't I?
    public class bladddhd
         public static void main( String [] args )
         int[][] aRay = new int[][] {{ 1, 2, 3} , {4, 5, 6 }};
              int length2 = aRay[0].length;
              int temp = 0;
              for(int i = 0; i < aRay.length; ++ i)
                        if(aRay[0] > temp)
                             temp = aRay[0][i];
                        for(int j = 0; j < length2; ++j)
                                  if(aRay[1][j] < temp)
                                       temp = aRay[1][j];
                   System.out.println(temp);

  • The internet pages don't display properly I'm using osx10.3.3, yahoo for example asks me to update, but I cant find out how to as the apple store just keeps sending back to the same page with no down load option...do i need to up date or is it just my mac

    The internet pages don't display properly I'm using osx10.3.3, yahoo for example asks me to update, but I cant find out how, as the apple store just keeps sending back to the same page with no down load option...do i need to up date or is it just my mac

    What Mac model do you have? You might be able to upgrade the OS to Tiger 10.4 or Leopard 10.5.
    Even browsers for Tiger 10.4 will get the update message.
    You could try a newer browser than Safari, which is obsolete, by downloading Firefox v2.0.0.20 at http://www.oldapps.com/mac/firefox.php
     Cheers, Tom

  • I lost my Download Stacks option. Now it is just a Download folder. Need to find out how to get the Download Stacks option back. Previous answers to this question don't make any sense to me. Please help in explicit detail. PS I'm using Mountain Lion.

    Need to know how to get it back to its original Download Stack. Previous answers to this questionin Apple Support just don't make any sense to me. I'd appreciate explicit directions on how to restore this feature. Currently it's just a Download folder... must have accidently poofed it away.
    Help!

    And if what WZZZ suggests doesn't work (and hopefully it will) move the file name below to the desktop, log out or restart and the Dock preferences with its defaults should be recreated. You'll need to re-configure it as you like it:
    com.apple.dock.plist
    It's located: in Finder hold the Alt/Option key and from the Go menu select Library>Preferences.
    If it fixes things, delete the file on your desktop.

  • How to mark clip in the timeline in order to find out how long it is fast?

    I think it is a shortcut which marks the clip in the timeline with in point as the start and out in the end of the clip telling me the length accurately, but what is that shortcut again?

    Thanks. Works like a charm. Anyway to unmark the clip just as quick? (Deleting the in and out points set for that clip)?

  • Is there a way to find out how to get the index of a column?

    Hello,
    I want to know the index of a column for example the column at the first position in a jtable is 0 so how can i get this index?
    for example: the column called "surname" is index 0 but the user can move the column. So the name stays the same but the index of the column changed. I search for a method like
    table.getColumnIndex("surname");

    I think it really depends on what the OP is trying to do. I think the program
    below offers up the possible choices pretty well.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableColumnIndexDemo extends JFrame {
         private JTable table;
         private String[] names = new String[]{ "One", "Two", "Three", "Four", "Five" };
         public static void main( String args[] ) {
              SwingUtilities.invokeLater( new Runnable() {
                   public void run() { new TableColumnIndexDemo(); }
         public TableColumnIndexDemo() {
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              DefaultTableModel model = new DefaultTableModel( names, 1 );
              table = new JTable( model );
              JButton button = new JButton( "Print indices" );
              button.addActionListener( new ActionListener() {
                   public void actionPerformed( ActionEvent e ) {
                        printIndices();
              getContentPane().setLayout( new BorderLayout() );
              getContentPane().add( button, BorderLayout.NORTH );
              getContentPane().add( new JScrollPane( table ), BorderLayout.CENTER );
              getContentPane().add( new JLabel( "Move columns around then print indices" ), BorderLayout.SOUTH );
              setSize( 300, 150 );
              setVisible( true );
              printIndices();
         private void printIndices() {
              TableColumnModel columnModel = table.getColumnModel();
              TableModel model = table.getModel();
              StringBuffer sb = new StringBuffer();
              System.out.println( "Visible order");
              for ( int k = 0; k < columnModel.getColumnCount(); k++ ) {
                   if ( k > 0 ) sb.append( ", " );
                   sb.append( k ).append( " " ).append( columnModel.getColumn( k ).getIdentifier() );
              System.out.println( sb );
              sb = new StringBuffer();
              System.out.println( "By name using getColumnIndex(TableModel,name)" );
              for( int k = 0; k < names.length; k++) {
                   if ( k > 0 ) sb.append( ", " );
                   sb.append( getColumnIndex( model, names[k] ) ).append( " " ).append( names[k] );
              System.out.println( sb );
              sb = new StringBuffer();
              System.out.println( "By name using columnModel.getColumnIndex(name)" );
              for( int k = 0; k < names.length; k++) {
                   if ( k > 0 ) sb.append( ", " );
                   sb.append( columnModel.getColumnIndex( names[k] ) ).append( " " ).append( names[k] );
              System.out.println( sb );
              sb = new StringBuffer();
              System.out.println( "Model index by visible order");
              for ( int k = 0; k < columnModel.getColumnCount(); k++ ) {
                   if ( k > 0 ) sb.append( ", " );
                   TableColumn column = columnModel.getColumn( k );
                   sb.append( column.getModelIndex() ).append( " " ).append( column.getIdentifier() );
              System.out.println( sb );
         public static int getColumnIndex(TableModel model, String name) {
             for(int i = 0; i < model.getColumnCount(); i++) {
                 if( model.getColumnName(i).equalsIgnoreCase(name) ) {
                     return i;
             return -1;
    }

  • Where can I find out how to use the Journals feature in iPhoto for iPhone

    I am new to Apple Support Communities. Not sure if this is the place that will help me work with Journals. Is there a manual or video which helps with teaching the features of the Journals application and how to use them? I am stuck knowing how to move around the images and changing the page set-up, among other perplexing features.  

    You need the  iPhoto for iOS forum is here
    https://discussions.apple.com/community/app_store/iphoto_for_ios
    Regards
    TD

  • My built in camera is not working and I cannot find out how to fix the problem

    I looked throught he manual but could find no trouble shoot help. it was working fine but now I just get a black box if I use video in say skype or if I use photo booth. Both are set with the built in camera as their preference.

    FaceTime
    http://support.apple.com/kb/TS4185
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".

  • HT204409 Can someone please help me.....I am trying to find out how you get the pass word for joining a Wi-Fi when asked to join and then told to put in a password. How do you get that?

    ok

    Thank you roaminggnome. All that I don't know. I know nothing about all this stuff. I am on a pc here at home that has a cable hookup to Roadrunner internet. Some kind of modome with a buch of lights sit on top of my computer that hooks me up. So I don't guess I have wi-fi here. Ever since I got my iphone 4, I have been trying to use FaceTime here and it always tell me that I need a wi-fi connection I think. Also wanted to update to iso5 again it tells me the same. Every now and then a thing will pop up on my phone asking if I want to join a certain Wi-Fi that has the littlck on it and when I click join it tells me to put in the pass word to join. NO GO! Thanks again for your help. I do appreciate it. I guess I will have to find someone that lives around me that can explain this stuff to me and show me what is needed.

Maybe you are looking for