How to determine "fetch size" of an application?

Hi, all.
The db is 11.2.0.3 on a linux machine.
I would like to know the "fetch size" of an application, but I was not able to find any related meteris in v$statname.
The application configruation is invisible to me.
Do I need to do some calculations based on statistic metrics from v$statname?
If so, what meteris should be considered for the assumption for "fetch size" ?
The following is from manual, but the application configuration is invisible to me.
http://docs.oracle.com/cd/E11882_01/java.112/e16548/resltset.htm#i1023619
Setting the Fetch Size
The following methods are available in all Statement, PreparedStatement, CallableStatement, and ResultSet objects for setting and getting the fetch size:
•void setFetchSize(int rows) throws SQLException
•int getFetchSize() throws SQLExceptionThanks in advance.
Best Regards.

or;
compare rows_processed, executions and fetches from v$sql for queries from your application.
HASH_VALUE EXECUTIONS    FETCHES ROWS_PROCESSED
4157030199      39288     510744       50193247
SQL> select
  fetches/executions "fetch per exec",
  rows_processed/executions "rows per exec",
  rows_processed/(executions+fetches) "avg fetch size"
from v$sql where hash_value=4157030199;
fetch per exec rows per exec avg fetch size
            13    1277.57439     91.2553134the query assumes the app is doing it 'right', and is fetching from the first execute as well as the following fetches.
the 91.25... is not the real fetch size ofcourse, as the #rows returned will typically not be an exact multiple of the 'application fetch size', but we can guess it may be 100 in this case.
also note that you speak of an application fetch size, but the fetch size is really specified per-statement (OCIStmtExecute). some applications (or API's) do indeed use a 'one size fits all', which is still better than using no array fetching at all.

Similar Messages

  • How to determine the size of an InputStream??

    Hello,
    I need to get the size of an inputstream. In fact, I am working with java.nio.channels and need to tranfer a file from within a Jar to the FileSystem.
    I have created a ReadableByteChannel from the jar resource, and a FileChannel from the FileSystem destination. The problem is that to use the FileChannel .tranferFrom(..) I need the size of the src file. But, ReadableByteChannel has no size() method.
    How can I determine the size of this InputStream??
    advanced Thanx
    here is code:
    private void copyResourcesToFileSystem(){
              try{
                        String name = getFileName(); // gets the name
                        ReadableByteChannel srcChannel =
                             Channels.newChannel(this.getClass().getClassLoader().getResourceAsStream(("dtd/"+name)));
                        File newFile = new File(TempDirCreator.getXmlDir(),name);
                        FileChannel dstChannel = new FileOutputStream(newFile).getChannel();
                        dstChannel.transferFrom(srcChannel, 0, srcChannel.size());  // doesn't work -- there is no ReadableBC.size()
                        // lets close the show
                        srcChannel.close();
                        dstChannel.close();
              }catch(IOException x){x.printStackTrace();}
              catch(Exception ex){ex.printStackTrace();}
         }

    In general the "size of an InputStream" is a meaningless concept. It's possible to have an InputStream that never terminates. So if you can't get a size from whatever you're reading from, you're out of luck.
    I missed where you explained why you need the size. I've never felt the need to know how many bytes would be passing through my code when copying from input to output.

  • How to determine the size (in pixels) of the current mode

    Hello.
    I am looking for a was to determine the size (horizontal and vertical pixels) of the current mode (SAPGUI window). I have already looked through the methods provided by class CL_GUI_CFW...
    CL_GUI_CFW=>GET_METRIC_FACTORS provides the size of you display (i.e. 1600 x 1200 pixels) and some other information I am not able to interprete.
    Futhermore I have had a look at the Methods CL_GUI_CFW=>COMPUTEPIXEL, but I don´t know how to use them.
    Has anybody of you any experiences in this topic? I would be grateful ...
    MIKE

    Sorry Manoj,
    but i didn´t find out, why these programs should be able to solve my issue. They just display a picture using the CL_GUI_PICTURE control.
    I am looking fo a way to resize a given control to the very maximum, so that it fills the whole SAPGUI window!
    Thanks anyway...
    MIKE

  • How to determine the size of the JVM process?

    Hi,
    How to determine the total process size of the JVM process (that includes Heap, Non Heap and Native memory)?
    Is there any command to obtain this value on Solaris (for Sun JVM)?
    I refer the process size to http://middlewaremagic.com/weblogic/wp-content/uploads/2010/11/Java_Heap_Diagram_12.jpg) here.
    Many thanks for your help in advance!

    Hi,
    Make sure that Total Heap + Native memory will be consider as total Memory.
    That means in 32 bit you will have only at most 4 GB for process + additional 2 GB for OS.
    So let assume if you have 4GM RAM then out of the 4GB you can allocate 2GB as Heap and 512m as Perm in case of Hot spot and remaining will be consider as Native memory.
    But in case of 64 bit will change you will have good amount of the memory so you can use plenty of Heap and Perm size.
    Still if you have query let me know.
    Regards,
    Kal

  • How to determine the size of an iMovie09 project?

    Hello:
    I recently created a nice video of about 2 hours in iMovie09. I "shared" it to iDVD but it was about 10% too big to burn. I went back to iMovie09 and removed some time to make the project smaller but how can I determine the size of my iMovie09 projects before I send them to iDVD? I know that both time and audio will affect the size of the iMovie09 project so the time of the video is not necessarily an accurate indicator.
    Thanks!

    Welcome to iMovie Discussions.
    As long as your movie is under about 1hr 50 minutes it should fit on a DVD.
    The thing which determines how much time is available on your DVD is usually the complexity of any Menus which you add in iDVD.
    With a simple Menu, which may "eat up" 10 mins of space, you should have room for 1h 50mins of movie.
    With complex, multi-level menus, your movie running time may be reduced by about 25 mins, or possibly more.
    Keep menus simple, and you should have space for about 1hr 50mins. It's always running time which counts, NOT "size" (in GB) of your movie.

  • How to determine the size of selected text

    Hi
    I'd like to draw a box around some selected text (a textRange), however I can't figure out how to detemine the size or position of the text.  The overall size of a textFrame is possible to find (not sure about position), but when you've got just a few characters selected I don't see any way to get the size or position.  Any ideas?

    You may have to do some testing of your own with this… I tested here and 'think' its OK but could have overlooked something… For me the best way to get this data is to outline the type store the info in a variable then undo the outlining process… You can then continue your script with info in hand… An example that draws a box over each selected character… I cheated with only the one text frame but you can resolve that? You could easy use math.min & math.max to draw around an array of bounds… I didn't bother with a load of tests it expects selected text range as is… have fun…
    #target Illustrator
    textBoxer();
    function textBoxer() {
              var i, doc, sel, start, end, spaceB4, spaceInc, mat, grp, count, boxes;
              doc = app.activeDocument;
              sel = doc.selection;
              start = sel.characterOffset-1; // Not zero based…
              end = start + sel.length;
              doc.selection = null;
              spaceB4 = doc.textFrames[0].contents.substr( 0, start );  // Cheated here you will need to find parent frame…
              mat = spaceB4.match( /\s/g ); // Resolve the lost of white space characters before selection
              mat != null ? spaceB4 = mat.length : spaceB4 = 0;
              spaceInc = doc.textFrames[0].contents.substr( 0, end );  // Here too…
              mat = spaceInc.match( /\s/g ); // Resolve the lost of white space characters in selection
              mat != null ? spaceInc = mat.length : spaceInc = 0;
              grp = doc.textFrames[0].createOutline(); // Items in new group are last to first order
              app.redraw();
              count = grp.compoundPathItems.length;
              boxes = Array();
              for ( i = 0; i < count; i++ ) {
                        boxes.push( grp.compoundPathItems[i].visibleBounds );
              boxes.reverse(); // Fix the order
              app.undo(); // Bounce back…
              app.redraw();
              start = start - spaceB4;
              end = end - spaceInc;
              for ( i = start; i < end; i++ ) {
                                  doc.pathItems.rectangle( boxes[i][1], boxes[i][0], boxes[i][2]-boxes[i][0], -boxes[i][3]- -boxes[i][1], false );
              app.redraw();

  • How to determine the size of a file on application server

    Hello,
    using open dataset I have created a file on the application server and have put some data into the file.
    Now I want to know the size of this file.
    Is there a function module to do this ?
    Best regards
    Michael

    Hi,
    Use Function module   'EPS_GET_FILE_ATTRIBUTES'
    DATA fsize TYPE epsf-epsfilsiz.
    CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
      EXPORTING
        file_name =     " here provide filename
        dir_name  =    "  here provide directory
      IMPORTING
        file_size = fsize.
    WRITE: 'File size' , fsize.
    Regards,
    Ravi

  • How to determine the size of recorded iPhone-video?

    After I record a video with my iPhone 4S, how can I tell what the size of that video file is?

    Welcome to iMovie Discussions.
    As long as your movie is under about 1hr 50 minutes it should fit on a DVD.
    The thing which determines how much time is available on your DVD is usually the complexity of any Menus which you add in iDVD.
    With a simple Menu, which may "eat up" 10 mins of space, you should have room for 1h 50mins of movie.
    With complex, multi-level menus, your movie running time may be reduced by about 25 mins, or possibly more.
    Keep menus simple, and you should have space for about 1hr 50mins. It's always running time which counts, NOT "size" (in GB) of your movie.

  • How to determine SWAP size ??? (Netra 440/ Solaris 10)

    Hi Friends
    I have trouble with the following OUTPUTs:
    # prtdiag
    System Configuration: Sun Microsystems sun4u Sun Fire V440
    System clock frequency: 177 MHZ
    Memory size: 8GB
    # /usr/sbin/swap -l
    swapfile dev swaplo blocks free
    /dev/vx/dsk/bootdg/swapvol 291,7000 16 16373168 13437120
    # swap -s
    total: 6495832k bytes allocated + 236328k reserved = 6732160k used, 6942968k available
    # df -k
    Filesystem kbytes used avail capacity Mounted on
    /dev/vx/dsk/bootdg/rootvol 62516603 34004373 27887064 55% /
    /devices 0 0 0 0% /devices
    ctfs 0 0 0 0% /system/contract
    proc 0 0 0 0% /proc
    mnttab 0 0 0 0% /etc/mnttab
    swap 6962904 1608 6961296 1% /etc/svc/volatile
    objfs 0 0 0 0% /system/object
    /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 62516603 34004373 27887064 55% /platform/sun4u-us3/lib/libc_psr.so.1
    /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 62516603 34004373 27887064 55% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
    fd 0 0 0 0% /dev/fd
    swap 6965712 4416 6961296 1% /tmp
    swap 6961344 48 6961296 1% /var/run
    swap 6961296 0 6961296 0% /dev/vx/dmp
    swap 6961296 0 6961296 0% /dev/vx/rdmp
    /dev/vx/dsk/bgw1dg/vol01 203768832 129151641 70294743 65% /var/opt/BGw/Server1
    /dev/vx/dsk/ora1dg/vol01 10480640 5502642 4666959 55% /var/opt/mediation/ora
    /dev/dsk/c1t2d0s2 70589121 219550 69663680 1% /mnt
    At first I would have said that the total SWAP size is 6,6GB, but now I am in doubt since I see several SWAP line on the df OUTPUT.
    Please help:
    1. What is the total SWAP size for the machine?
    2. Why is there 4 lines mentionning SWAP on the df OUTPUT?
    3. With 8GB of RAM on this machine do I need to increase the SWAP?
    4. If yes how to increase the SWAP?
    Thanks in advance !

    Swap can be a confusing thing. It's an overloaded term that people often use to mean somewhat different things.
    1. Determine the swap allocated for the system with swap -l. The number of blocks minus the swaplo value will give you the true count. Blocks are 512 bytes, so do the math to get a GB value.
    2. df output reflects file systems that are currently in use. In Solaris 10 there are a few virtual file systems that are backed by swap space itself. You'll notice all these swap fs components have the same size because they use the swap as a common pool.
    3. Sizing swap shouldn't be based strictly on the amount of physical memory available. While there are guidelines for doing precisely that, those guidelines are given for the general case (i.e., no information on the apps that will be running). Monitoring demand is key. swap -s and vmstat will both give you a good general view of the demand for swap.
    But, if you're a guidelines sort of person:
    http://docs.sun.com/app/docs/doc/817-5093/fsswap-31050?a=view
    4. The easiest way to increase swap is to make files that can be added to the overall swap space. I generally prefer this approach from the ground up, because it means I never have to dedicate disk space to a swap region. There are different steps for doing it with UFS and ZFS. Here's the ufs way:
    a) Pick a UFS file system with space on a disk that isn't hot. Make a swap file and add it to the swap space like so:
    - # mkfile 1024m /filesys2/swapfile
    - # swap -a /filesys2/swapfile
    Then check the outcome with swap -l and swap -s.
    In many cases I will add a swap file to a customer's system and remove the partition-based swap (swap -d) that they have. There is no appreciable difference in performance and the flexibility of moving swap can come in handy when a system has to accept a different workload with a minimum of downtime.

  • How to determine the size of a flat file attachment in a mail sender cc?

    Hi
    I use PI 7.11
    I have a scenario where a flat file attachment is being picked up by a MailSender adapter and if the size of the attached flat file is larger that 500 bytes the receiver is A and if the attachment is less that 500 bytes the receiver is B.
    I have checked the Context Object list in the Conditions section of Receiver Determination, and it seems, that only the file adapter allows for validation on the file size.
    I contemplated an extended receiver determination but the attachment is a flat file which just needs to be passed thru without being converted to an XML document, so my source document is not of XML format.
    An other but not very nice way would be to use an intermediate folder to drop the attachment in and from there use a file sender adapter and thus get access to the filesize attribute in my receiver determination, but I would like to avoid this.
    Any suggestions?
    BR MIkael

    Hi
    I have decided to make a module, where I plan to place the size of the attachment in the Dynamic Configuration variable "ProcessStep", but to my surprise, it seems that all the context objects in the receiver determination condition section are of type String and hence it is not possible to make a condition where I test for whether the value is smaller than say 500!? Only equal, NOT equal and LIKE are available (EX seems to be disabled as this probably only works in an xpath.
    Would one way be to use the xpath expression like this ns1:Main\ProcessStep < 500 where ns1: http://sap.com/xi/XI/System?
    MIkael

  • Setting a Pre determined Font size for an Application.

    I have a Swing application that is running on Windows and the FONT size
    expands on the GUI if I change the Appearance of the Font in Windows XP
    This normally should not happen as the appearances of the Windows Font size
    should have no impact on the application that is running.
    But to be on a safer side,can can I use any method that will have a predetermined
    FONT size when the Swing application executes:
    like : setFont(new Font("Courier", Font.PLAIN, 12));
    The code below is the starting point of the application.
    public class RFApp extends SingleFrameApplication {
         private RFMainFrame mainFrame;
         @Override
         protected void startup() {
              mainFrame = new RFMainFrame();
              setMainFrame(mainFrame);
              show(mainFrame);
    public class MainFrame extends JFrame {
         private final ToolBar toolBar = new ToolBar(this);
         private final StatusBar statusBar = new StatusBar(this);
         private final MainPanel mainPanel = new MainPanel(this);
         public MainFrame() {
              super("Main Frame"); // This has a BIG FONT increase
              initComponents();
         private void initComponents() {
              setLayout(new BorderLayout());
              getContentPane().add(toolBar, BorderLayout.NORTH);
              getContentPane().add(mainPanel, BorderLayout.CENTER);
              getContentPane().add(statusBar, BorderLayout.SOUTH);
    }

    Since you really need to change foreground and etc. Use the following code to list all the resources that may set the font colors you want (the example only excludes background color resource, so it may set more than what you want, you need to pin point specific color resouces from the print out to suit your own need).
    UIDefaults defaults = UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator(); i.hasNext();) {
    String name = (String)i.next();
    Object value = defaults.get(name);
    if (value instanceof ColorUIResource && !name.endsWith("Background")
    && !name.endsWith("background")) {
    System.out.println(name);
    UIManager.put(name, new ColorUIResource(Color.red));
    }

  • How to determine the size of client in sap system

    Dear Exports,
                         Pls suggest me how we can check the size of the client in oue sap system.
    Thanks in advance.

    Hi Amit,
    If you are not able to check the note 118823 or you can't able to find the solution. Just start client copy in test mode, there you can get the size of the client then you can cancel the client copy(which is in test mode).
    Hope it will resolve your doubt.
    Thanks
    Kishore

  • How to determine the size of The Entire iPhoto Library

    Hello,
    Can someone tell me if its possible to determine the entire size of my iPhoto library?
    Thanks

    The size of the Library when you do a "get info" for it in the finder will be larger because it includes all the data files, thumbnail files, originals and edited originals.
    The size of the library when you do a "get info" of the library while within iPhoto will just give you the size of all the images.
    As for my avatar I just did this;
    I am not sure what picture you meant, but yes I should be there somewhere and I have 2 children and one grand daughter.
    The sausage making was lots of fun.
    ☺Lori

  • How to determine data size of updates on OS X

    I'm on a limited monthly data allotment (satellite-based ISP).  In order to effectively manage my data usage, I would like to know how big the updates are.  I can access 'unlimited' data during certain off-peak periods. Is there a way to indicate the size of updates, easily?

    Can you see if the transaction RSCUSTV6 helps you?
    Also, you can try the path: SBIW -> General Settings ->  'Maintain Control Parameters for Data Transfer'.
    But i think this is a general setting for all loads, which may not be desirable.
    Some notes which will tell you more on data packet size and impact: 409641, 417307, 157652, 138794.

  • How to determine and to register active applications in Windows XP

    Hello, i need some help to determine and to register the current application that is been used in windows xp, something like the task manager does in the application tab.
    Thanks.

    but does someone know about an example, link, etc.I wish I knew a good Windows forum or resource to give you
    (Ive needed one myself lately). I like this forum.
    I wish there was a Windows equivalent.
    Sorry.

Maybe you are looking for

  • Message post probelm

    I have been trying to post a message abpout a problem I'm having with a memory upgrade on a Satellite L300 laptop. On every attempt my message is rejected because of "profanity or inappropriate language". My message contains no such content, yet I ca

  • Blocking doesn't work

    I tried the new ios 7 blocking feature on my iPhone 4S and the number still calls through.  It was a landline number

  • PB 1.67 HiRes - chimes, won't boot. Tried suggestions in other threads.

    sorry -- I hate cross-posting but i'm not getting many hits in the "Using..." forum. I've tried everything I can find here and elsewhere to get it to boot. The powerbook chimes and the screen stays black. - No beeping as you would expect with memory

  • What are the apps in the commercial if you asked

    What is the business app that is used in that commercial?

  • Does the client need to install Contribute to edit their website?

    I have recently started out in the website design world (feeling VERY much like Alice!), and am trying to get my head around CMS. Starting to explore Contribute/Joomla/Wordpress and although I  understand the manipulating templates/coding part of thi