Exact size a table takes

Hello

Can someone show me how to get the EXACT size a table currently occupies.


Thank you.

Heres something I've implemented for a client recently who wanted the object sizes, it breaks down the by object type (tables, indexes, lobtables, lobindexes) and see the percentage against total db size used in the segments... throw a table_name in if you want to limit the search... to remove the commentary on the inscription 'account' below to exclude all smaller then 50 MB

as noted above, the blocks are different, but its close enough. could get some use out of it.

define 999 pages
fixed lines 180
SELECT
owner, table_name, round ((sum (bytes) / 1024/1024/1024), 4) Size_GB,.
round (TRUNC (sum (bytes) / 1024/1024) / total_size_meg * 100, 2) Percentage_of_total_size.
total_size_meg
Of
(SELECT table_name, nom_segment, owner, bytes)
FROM dba_segments
WHERE segment_type = 'TABLE '.
UNION ALL
SELECT i.table_name, i.owner, s.bytes
OF dba_indexes i, s dba_segments
WHERE s.segment_name = i.index_name
AND s.owner = i.owner
AND s.segment_type = 'INDEX '.
UNION ALL
SELECT l.table_name, l.owner, s.bytes
OF dba_lobs l, s dba_segments
WHERE s.segment_name = l.segment_name
AND s.owner = l.owner
AND s.segment_type = 'LOBSEGMENT. '
UNION ALL
SELECT l.table_name, l.owner, s.bytes
OF dba_lobs l, s dba_segments
WHERE s.segment_name = l.index_name
AND s.owner = l.owner
AND s.segment_type is 'LOBINDEX'),
(select sum(bytes/1024/1024) total_size_meg from v$ datafile)
WHERE
-table_name like '%%'
owner not in ('SYS', 'SYSTEM')
GROUP BY table_name, owner, total_size_meg
HAVING SUM (bytes) / 1024/1024 > 50 / * Ignore really small tables currently commented out * /.
ORDER BY OWNER, SUM (bytes) desc

Tags: Database

Similar Questions

  • Reg: size (conceptual) table-

    Hi Experts,

    I have a conceptual doubt about the size of a table.

    Tell - we got 500 k. I can store them in a table unique (say "table_x") containing all the lines.

    Is another way they can be stored in 5 tables (say 'table_x1', 'table_x2'... "table_x5") each holding 100 k records.

    So, which of the above data-storage-strategies will consume more space?

    My understanding is that-

    While creating a table, on a bigger picture, he uses segments. Say the segment size = 32K

    Table_x guess that consumes - 25K

    So, in this segment, left out space = (32-25) = 7K

    In the other approach, assume that each table takes 5K and due to some reasons the other (32-5 = 27 K) space remains unused.

    AFAIK, size of tables is calculated by the SUM of the areas of segment. Right?

    Please advise, correct if I am wrong anywhere.

    Thank you and best regards,

    -Nordine

    (on Oracle 11.2.0.3.0)

    Well, the problem is that you think that table is like the pizza box and lines are the pieces of pizza in the box when in fact it is the only pizza that you have in the database and there is no container for it. If you divide 100 GB of space in one go using a single segment or 10 segments of 10 GB each, you always set 100 GB of space only. There is nothing which contain these 10 pieces in itself which could devote additional space compared to the creation of a single segment of 100 GB. The example is not correct. It won't happen will be assigned to you a 100 GB space at once. Oracle allocates extents for this purpose only that you won't be wasting space. Your given scenario would occur when you have a segment or segments N created to allocate the necessary space and now might be to delete the data. It would create the space that would be unused but which would also be taken in charge by the LMT.

    Aman...

  • export to.pdf compresses to EXACT SIZE

    Hi all

    Is it possible that I can export my .indd to PDF to an exact size? I need my pricicely 2 MB file and want to compress all that it takes to reach this size but no more then necessary compression.

    Is this possible? or maybe through Distiller?

    Thank you

    Shona

    N °

    Size is a dependent variable on levels of compression and content and is not predictable or something you can set.

  • Export size will not take.

    Sometimes I export an item, but the export size simply never takes that picture,

    so I actually have to go through Photoshop to get the size you want.  Strange, huh?

    Max Mavs

    Known bug.

    More info here:

    http://feedback.Photoshop.com/photoshop_family/topics/publish_service_harddisk_ignores_ima ge_sizing_resize_to_fit_short_edge_setting_when_source_image_is_a_dng_on_lightroom

  • Defining an exact size in pixels for a rectangular selection area.

    I need to set an exact size to my rectangular selection box. Is there a way to do this? I tried to use the tool of crop as an alternative method, but I find that I could not figure out how to set the culture to the exact size in pixels or how move the selection area cultures when it was placed above the image.

    Thanks in advance...

    Hello

    What version of photoshop are you using?

    Is to use the rectangular selection tool and set the Style to fixed size and then enter the numbers in the width and height fields.

    Alternatively, you can move the selection area by dragging inside the selection if you have the option of the enclosed rectanagular tool set to new selection tool.

    Then Image > crop if you want to crop the image.

  • Do not put files to the exact size

    Hello

    I created Illustrator files to the exact size of InDesign pages I want to place on, so they're just right of pop. But they don't come out the same size. I do the command d for the place and then dragging the cursor with SHIFT pressed from the top left of the page to the bottom right of the page, but it never comes out not evenly.

    No idea what is happening?

    Thank you!

    It is the movement which makes the incorrect size.

    Move your cursor to the upper left corner of the InDesign file, and then click. The file will be placed at 100%.

  • Select an exact size of the image to be copied when you use the "Marquee" tool

    How can I select an exact size of the image to be copied when you use the "marquee"?...

    I like to choose a section image of 14.00 x 12,00... When you use the marquee selection tool, you can not control the mouse to select exactly 14.00 12.00 x is always a little higher or lower at 14:00 or 12: 00 am...

    is there a way that you can easily select the exact size of 14,00 x 12,00?...

    Please advise...

    see you soon,

    Hi wong168,

    You can use the fixed size option and enter the size in the input fields using the unit of measure of your choice; That is to say in, px, cm etc.

    If you right click in the entry boxes there are the list of measured values.

  • Out an exact size canvas in PS CS5 for magazine ad?

    Hello

    I started in PS CS5 by creating a canvas 4 x 7 "and started designing.  It does not seem good to me so I decided to print a draft of my partially finished and discovered that it's actually HUGE.  I need to go out an advertisement for a magazine that must be exactly 4 x 7 ".  How do we guarantee that the output size will be exactly as planned?

    Thank you

    Hi, auctioneer

    This should be fairly simple, there is no that many variables.

    Assuming that you want to print at 300 DPI - to simplify the calculations! -which would give you a screen size effective from 2100 high x 1200 pixels in width, assuming that the orientation is portrait.

    This image would not fit on my screen, but it does not matter, then the impression, that would be precisely 4 "x 7".

    Ignore the 'width' of my picture below, I have nothing that fits your exact size, but I hope that the indicated settings are pretty self explanatory.

    Good luck!

    Paul

  • Can I resize to an exact size in bridge when you export with export Panel?

    I need to create and export JPEGs to an exact size: side lonmgest 5700 pixels. I used to do this, use the command 'fit the picture' in photoshop. However, if I enter the export box 5700 it converts just below, as is a box "worthy of".

    Any ideas? that I'm testing. If this is possible without photoshop then we can encorperate bridge CS5 in our workflow of the enterprise. Thank you

    In addition, you can only Downsample!

  • exact size of data in the database and schema

    Hi master,

    I always wonder if I could get the exact size of the data in a schema and size exact of a database with the following queries... I will be grateful if someone could tell me what's wrong in the following query, because it shows the different size of the data in the diagram... and any request to find the exact size of my database (not just data files)...
    SQL> ed
    Wrote file afiedt.buf
    
      1  select d.owner,sum(u.bytes)/1024/1024 "MB USED"
      2  from dba_segments d,user_segments u
      3  where d.tablespace_name=u.tablespace_name
      4* group by d.owner
    SQL> /
    
    OWNER                             MB USED
    ------------------------------ ----------
    MDSYS                            9484.375
    TSMSYS                              303.5
    DMSYS                               303.5
    OUTLN                                4027
    CTXSYS                            5614.75
    OLAPSYS                         18892.875
    *VD                                503.375*
    SYSTEM                         132100.625
    EXFSYS                            4400.75
    DBSNMP                           1896.875
    ORDSYS                                607
    
    OWNER                             MB USED
    ------------------------------ ----------
    SYSMAN                              57665
    XDB                             57133.875
    SYS                              543965.5
    WMSYS                             8346.25
    
    15 rows selected.
    
    SQL> select sum(bytes)/1024/1024
      2  from dba_segments;
    
    SUM(BYTES)/1024/1024
    --------------------
                1353.875
    
    SQL> select owner,sum(bytes) from dba_segments
      2  group by owner;
    
    OWNER                          SUM(BYTES)
    ------------------------------ ----------
    MDSYS                            34013184
    TSMSYS                             262144
    DMSYS                              262144
    OUTLN                              524288
    VD                              519897088
    CTXSYS                            4849664
    OLAPSYS                          16318464
    SYSTEM                           23265280
    EXFSYS                            3801088
    SCOTT                              393216
    DBSNMP                            1638400
    
    OWNER                          SUM(BYTES)
    ------------------------------ ----------
    ORDSYS                             524288
    SYSMAN                           54067200
    XDB                              50397184
    SYS                             702218240
    WMSYS                             7208960
    
    16 rows selected.
    I would like to know the a daring ijn...

    can we get the exact size of the database by querying select sum (bytes) / 1024/1024 "size in MB' from dba_segments;
    ???

    I know there are a lot of website that gives the same queries... but I trust oracle forums...

    any help will be appreciated...

    Thanks and greetings
    VD

    Published by: vikrant dixit on April 9, 2009 12:06 AM

    Hello..

    To know the size of the scheme: -.

    select owner,sum(bytes/1024/1024)MB from dba_segments group by owner;
    

    TO know the actual size of the database

    select sum(bytes/1024/1024/1024) Actual_size_gb from dba_segments
    

    HTH
    Anand

  • Reset do default sets a size of table to zero?

    What is the function reset 2D game table size to default to zero? Aid is not explicit on this.

    Otherwise, what is the best way to set a table 2D zero size?

    The "it takes less time to try just to post a message asking if it is": the answer is Yes. But only if the default value is an empty array to start. Obviously.

    Otherwise, what is the best way to set a table 2D zero size?

    Wire a constant empty array to your choice of a local variable or a node of 'Value' property, in view of the elimination of any potential race condition.

  • dynamic table takes very long time to compile

    Hello

    in a small program, I need to create a wide range:

    FIXED-SIZE ARRAY:
    [27] Char hash [26] [999] [99] [16];

    But not in all cases, the last item in the hash table has a value (string
    15 bytes), so I want to create a dynamic array to save memory.

    TABLE SIZE DYNAMICS:
    char * hashtable [27] [26] [999] [99];
    .......
    If (strlen (hash_string)) hashtable [a] [b] [c] [d] = malloc (sizeof (char) *)
    (strlen (hash_string) + 1)) ;

    .......

    In debug mode:

    If I compile the program with the array of fixed size, all working properly and
    the program runs immediately

    If I compile the same program with the table dynamically (and using malloc)
    It really takes time to compile. It seems that the program freezes,
    But if I wait quite a long time (several minutes), the program runs

    I am using CVI 2009

    Any ideas why it takes so long if I use dynamic memory?

    Thanks in advance,

    Norbert Rieper
    Bremerhaven

    When CVI compiles the file in a configuration of debugging with debugging level value Standard or extended, then we allocate data protection user to track the State of each pointer in the table. For each of the pointer values 69 million that we allocate data to add to your executable file to control execution. These allowances are initially the apparent blow.

    There are several ways to prevent CVI to distribute all of these additional data.

    (1) change the level of debugging "no run-time checking.

    (2) change the base type of the array of ' char *' to 'size_t '. You must also add a cast to all the references to the elements of the array.

    (3) select it's Enable. Obj option' option for the file that contains the definition of the table. This turns off debugging for this .c file.

    3 (b) move the declaration of the array to its own .c file and the option "Enable.obj" what .c file instead of the .c file that contains all the source data that uses the table.

    Although you need only 70 MB for dynamically allocated strings, you must always 265 MB to store the array of pointers to 69 million.

    -Michael

  • Format mask for the size of table cells

    Hi all

    I'm working on a catalog with a lot of products, and each product has a table for its specifications.

    The catalogue is ready for printing, but now the customer asks me to enlarge certain parts of the text in the table.

    This means that I have to give some cells more space. The cells have different sizes, and that's the problem:

    Is there a way to define the new cell widths and heights as a sort of "master format" so that I can change the tables
    for the design of new without marking of each column and adjusting by hand?

    Unfortunately, the layout is too complex to have tables on a master page, as they are not on a particular coordinate

    throughout the catalog.

    I hope I described my problem quite clearly I'm no native speaker

    I thank very you much in advance!

    Max

    The script linked in the post one of this thread will allow you to adjust automatically to match - table column widths it allows to save the widths of a table in the style of the table and then apply them to other tables of this style.  I don't know about heights, but if all the heights will be the same within a given table, you can select all the lines and enter the exact height of the cell.

    Re: width of column in the specs of the cell

  • Size of table

    For example, I have 3 table 1 d with different size.  I combined the and turn them into a 2d array.  When I index more short table 1 d of origin out of the aray 2d, the size is now equal to the rest of the original 1 d arrays.  Is there an easy way to preserve the dimension?  I don't want padding.  Thank you.

    Why is it hard? Simply insert a feature bundle height = 1 century before autoindexing on the edge of the loop on the right.

  • Generate several plots according to the size of table

    Hi all

    I'm relatively new to LabView and I read several threads that are similar to my problem, but I don't know how to implement it yet.  Basically I have a large table that stores the raw data read from multiple text files.  This large painting size would vary based on the number of text files generated by a data acquisition system.  I would like to draw each line of the table a new field.  Instead of manually wiring, is there an easier way around?

    Thank you

    Lynniz

    Lynniz,

    If you need a separate chart for each parcel then can determine you at least in advance what the maximum number of locations could be and show/hide your graphics programmatically based on data. All the graphs could be in a Subvi that appears separate from your main application window, or you could use a secondary.

    I'm just brainstorming here. There could be a more elegant way to do it, but the graphic masking that already exist is the only thing I can think of right now.

    Eric

Maybe you are looking for