Getting the actual size of the result of a query

Hi,
I would like to ask if someone knows on how to get an estimate size of the result of a query on a table. To make it more specific, here is an example.
Let us say I have this table called EMP and it has a column called DATE. I have issued a query like this:
select * from EMP where DATE < to_date('01-AUG-08');
I want to get the actual size of the result of the query in bytes or MB. How would i achieve this without creating another table and transferring the data on it.

You can use SQL*Plus Autotrace to have the data size sent between client and database session:
SQL> set autotrace traceonly statistics;
SQL> select * from employees where hire_date < to_date('01/08/08');
107 rows selected.
Statistics
        430  recursive calls
          0  db block gets
        123  consistent gets
         11  physical reads
          0  redo size
       9405  bytes sent via SQL*Net to client
        457  bytes received via SQL*Net from client
          9  SQL*Net roundtrips to/from client
          3  sorts (memory)
          0  sorts (disk)
        107  rows processed
SQL>Edited by: P. Forstmann on 25 janv. 2011 18:55

Similar Messages

  • Previewing the actual size of the print

    I have the image in resolution 2848x4288
    i want to print it in 20x30 size
    can i preview and see the actual magnification of the image how it is going to be printed?
    I am aware i cannot see the whole image cause my screen is too small by i want to see at least part of the image in real print size?
    thx
    Bart

    I've asked for this feature for a very long time (since before LR 1 came out).  The answer is no, other than to do it manually and even that is restricted by the limited and discrete magnification levels provided in LR.

  • What ype of screws hold the casing together, what is the actual size of the thread

    Need to know what type of thread and size of screws holding casing together on G4 Power Book, 17" Thankyou, English Man

    A tad late here...
    Storage sizes of REF attributes are described here:
    [Design Considerations for REFs - Storage Size of REFs|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11822/adobjdes.htm#i452226]
    The size of your REF attribute (or element, in your case) will depend on whether it is primary key-based or system-generated, whether it is scoped or not, and whether it carries with it a rowid hint. The overall size of your VARRAY attribute as it grows will also depend on whether you allow null REF values or not, but essentially will be the size of your REF multiplied times the number of elements in your VARRAY (plus a small, constant amount of storage for internal housekeeping, both for the attribute and for each element).
    You could try the VSIZE function as an appromixation...
    [Oracle® Database SQL Language Reference - VSIZE|http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions233.htm#SQLRF06162]
    Hope it helps...
    Gerard

  • Why won't preview print the actual size of the photo?

    Why can't I print directly from Photoshop instead of having to print through preview? I believe I've checked the proper settings in preview preference but it keeps scaling my photos.

    Rusty, you always get a preview before printing whether from Preview.app or from PS.
    This is the dialogue I get printing from within PS....
    and this is the one I get printing through preview...
    I'm not sure what your issue is with printing from PS, perhaps try on the Adobe forums?
    -mj

  • What is the actual size of an (empty) varray in a record?

    what is the actual size occupied by an (empty) varray in a record?
    For example, if I create my table defined as:
    create or replace type XXX as object (
    myRefs VARRAY(10) of REF(yyy)
    create table YYY as XXX;
    what is the actual size of the record of type XXX when 'myRefs' is empty? For some reason, select data_length from all_tab_cols where table_name = YYY seems always to return 3K as the length of column myrefs.... is that correct? If not, what is the correct size?

    A tad late here...
    Storage sizes of REF attributes are described here:
    [Design Considerations for REFs - Storage Size of REFs|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11822/adobjdes.htm#i452226]
    The size of your REF attribute (or element, in your case) will depend on whether it is primary key-based or system-generated, whether it is scoped or not, and whether it carries with it a rowid hint. The overall size of your VARRAY attribute as it grows will also depend on whether you allow null REF values or not, but essentially will be the size of your REF multiplied times the number of elements in your VARRAY (plus a small, constant amount of storage for internal housekeeping, both for the attribute and for each element).
    You could try the VSIZE function as an appromixation...
    [Oracle® Database SQL Language Reference - VSIZE|http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions233.htm#SQLRF06162]
    Hope it helps...
    Gerard

  • Is there a tool available that can be executed by another process to scale the actual size of a PDF?

    Is there a tool available that can be executed by another process to scale the actual size of the printed PDF file by X%?  We are attaching PDF files to printed output using the Oracle DocuMaker product, and are running into margin issues with the attached PDF.  We need to keep a 3/4 inch margin on our pages for sorting/finishing equipment, and the attached PDFs do not all conform to our margin requirements.

    What email program are you using? And what do you mean by "Safari mail"?

  • Several encrypted .dmg files show much more free space that the total size of the file.

    I have several encrypted .dmg files on my macbook air running OS X 10.10.1  I have had them for years with no problems. Now suddenly, in the finder, at the bottom of the finder window where it shows the number of items and free space for a disk, it shows more free space than the full size of the .dmg file. Typically it will show about 200MB for a 100 MB file. Obviously, this is a bug, but I can find no information or discussions about it anywhere.
    Does anyone have the same problem? Any ideas how to fix it?

    Thanks for the ideas. Unfortunately, it didn't work.
    I rebuilt the spotlight index as suggested.
    I tried it twice, rebooting the computer a couple of time along the way.
    Below you can see the actual file as it occurs in the finder in its unopened form.
    Now, below here is what the finder reports at the bottom of the finder window when the file is opened and added as a virtual disk.
    Note that the total file size is 102.5 Mb
    Yet the finder says it has 234.5 Mb free!
    The actual size of the files on the disk add up to about 60 Mb
    This occurs with several similar dmg files.
    Any other ideas or experiences would be appreciated.

  • Getting the ACTUAL size of a JTable

    Hi all, I've been trying to get the actual size of a JTable for awhile now. I have tried just about every getSize or whatever other size method you can think of and nothing is working out for me. A lot of the times I'll get a value of 0 and other times I'll get a non-zero value. The variance is coming from which getSize method I use and where I'm using it. Whatever the value is though, they do not match up with the actual size that I'm seeing when everything is displayed.
    My JTable is within a JScrollPane, which is within a JSplitPane. The JTable takes up the complete size of the JScrollPane and the JScrollPane takes up the complete size of JSplitPane (the top component at least). I have tried getting the sizes from each of these components that are used to contain the JTable, but each one of the values I get are incorrect too.
    Anyone have any ideas to help me out?
    Thanks, Bryan

    Thanks for your help camickr.
    I ended up writing a component listener for the frame since componentShown only listens for calls to the setVisible method. Also, I can now resize the table columns whenever the user resizes the frame.
        /*Add component listener to frame.  When frame is shown or
          resized, then set student table column widths*/
        this.addComponentListener(new ComponentListener() {
          public void componentShown(ComponentEvent e) {
            setStudentTableColumnWidths();
          public void componentResized(ComponentEvent e) {
            setStudentTableColumnWidths();
          public void componentMoved(ComponentEvent e) {}
          public void componentHidden(ComponentEvent e) {}
       * Sets the student table column widths.  The username column should take up
       * ~1/3 of the table and the student name column should take up ~2/3 of the
       * table.
      private void setStudentTableColumnWidths()
        TableColumnModel tableColumnModel = studentsTable.getColumnModel();
        Dimension scrollPaneViewportSize = studentsTableScrollPane.getViewport().getSize();
        int usernameColWidth = scrollPaneViewportSize.width/3;
        int studentNameColWidth = scrollPaneViewportSize.width - usernameColWidth;
        tableColumnModel.getColumn(0).setPreferredWidth(usernameColWidth);
        tableColumnModel.getColumn(1).setPreferredWidth(studentNameColWidth);
      }

  • How can I print a pdf in the actual size with a page border?

    How can I print a pdf in the actual size with a page border? (2 pages per sheet preferred)
    I usually print pdfs of books at a copy shop and they turn out fine.
    The problem comes when I try to print the same books at home.
    I use Adobe Acrobat X with the same settings: "multiple pages per sheet" (2x1) and page border. But the pages are slightly shrunken when printed. I think this is because my printer can't print as closely to the margins. Still, two pages should be able to fit on one sheet in actual size. Are there any layout settings that I can play with to find a better fit, besides portrait and landscape?
    If I select page scaling "none," I'm able to print the pdf in actual size, one page per sheet. But there's no option to add a page border.

    I have a test with some questions (multiple choice, FIB, matching, etc). I have just one button to submit all the answers, and after submiting the student can see his score and review the test to know where he failed. He can't answer again. However, he can change the answer multiple times before submiting.
    "if i turn on success/failure captions the student will see them while answering" - before submitting
    "if i turn them off he wont know what's the right answer" - after submitting
    My results page is the default. I didn't use any variable. When i go to the results page after reviewing the test all the entry boxes are "wrong".

  • TS3682 How can we get IOS7 to increase the font size of the keyboard in Messaging?

    I absolutely detest the font size of the keyboard - it is too thin, and the contrast we used to have in ios6 was perfect!   How do we complain loud enough to get Apple to give us a choice?

    here are some guides
    http://www.google.dk/search?client=opera&rls=en&q=osx+mail+font+size&sourceid=op era&ie=utf-8&oe=utf-8&channel=suggest

  • How do I find the actual size of an app? Example: a wallpaper app claims the size of 4.4 MB, but the size on my iPhone is 4.9 GB!

    Some of the apps on my iPhone are much larger size-wise than claimed on their app page. Example: Wallpapers HD claims 4.4 MB, but the actual size on my phone is 4.9 GB! Pinterest &amp; Facebook also end up being huge real estate hogs. How do I really know the size of an app? The apps don't represent themselves accurately in the app store.
    I figured out that 2 of my podcast apps allow me to remove content after listening. Others don't, though.
    I'm hoping some of you younger people know the answer.
    Thanks,
    Nana Lybbr8

    The size of an app depends on two different things:
    1) the size of the App (as in the App Store)
    2) the size of the App Data
    The App Data can really inflate the size.
    If you want to see how much space an app is actually taking up, got to the Settings app under General and then tap "usage."
    Unfortunately some apps don't let you delete the content. Others do.
    Hope this answers your question.

  • Hello.  How do I keep the actual size of a photo when adding to a Keepsake?  Used to do this but have forgotten how!

    Hello.  How do I keep the actual size of a photo when adding to a Keepsake?  Used to do this but have forgotten how!  Need help please!
    T.

    Here is my suggestion:
    Open a blank, new file (File>new>blank file) size 8.5x11"
    Open the collage
    Go to Select>all
    Go to Edit>copy
    Go back to the blank file created in step #1
    Go to Edit>paste. The collage will be on its own layer
    Access the move tool, and with the corner handles resize the collage. Using the corner handles should preserve the aspect ratio. If you open the rulers, you will have a point of reference as you go along.
    Print a draft copy to see if it will be suitable in the frame..
    Please report back with your progress.

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

  • The "art board size" appears incorrect (1/2 the actual size) when trying to edit artboard ?

    Has anyone had this problem before? Im working in CS4. When I try to "edit artboard" to change the size of the document layout, The size appears incorrect? Actually its appearing as 1/2 the actual size. For example, If I set up a new lettersized document the the size reads as: 4.25" x 5.5" instead of 8.5"x11".  In preferences, The units all seem to be set up correctly. I am able to create a box size accurately, just not the artboard? This has never happened before. I feel like I changed something by accident in preferences? But cant seem to find a solution. Any help would be most appreciated. Thank you.

    Are you sure you are looking at W: & H: rather than X: and Y:
    Do a view show artboard rulers, and post a screenshot, of your document preferences.

  • How to get the correct size of the loaded swf file?

    final public class main extends Sprite
      public function main()
       loaderInfo.addEventListener(Event.COMPLETE, _onLoadCompleted);
      private function _onLoadCompleted(event: Event): void
       var tw: int = stage.width;
       var th: int = stage.height;
       var tsw: int = stage.stageWidth;
       var tsh: int = stage.stageHeight;   
    Above is my simple as3 project in flex builder 3.
    My screen resolution is 1920*1080, when debugging, the swf is stretched to the full client area of the IE, but the stage.stageWidth is 500 and the stage.stageHeight is 375, both the stage.widht and stage.height are 0, who can tell me why and how to get the right size of the swf file, named the client area size of the IE in this situation?
    Thanks very much!

    The HTML wrapper might resize the SWF later, so wait a frame and check stageWidth/stageHeight again.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for

  • 1px line created on the right side of the browser

    Hi All, I want to have a banner image, which fades into blackness so i have made the image smaller to fade into a black solid background. I have simply placed this behind the background image. When adding either a rectangle with a fill image or a sol

  • HT4623 why can't i get my New Yorker subscription from Zinio on iPad?!!!

    message from Zinio is Adobe Flash Player is required to view but is not support on this device. So, if I can not read New Yorker on iPad, why would I subscribe?

  • Numeric value right justified

    Dear friends, i have output value in the report as below 0.013 10.000 i want the value like the below   0.013 10.000 so that , what shall i do. please provide the solution.

  • Netsupport

    hi how do i use net support software in windows ? because my macbook pro retina haven't LAN port!! thank you

  • How to find out common values across records

    Example I have to query employee city information select distinct limitation_code from limitation where product_id in (1,2,3,4) each product can have 1 or more limitation code. I want to find common limitation code among all products. which occurs in