How do I know the size specific to a field in an oracle table

Hello

Oracle 11.2.0.3 on redhat
I have three tables with the same structure, table0, table50, table100:

create table table0 (ID options, shipping RAW (2000), RAW (2000));

I inserted some 10000 lines each, but with a few differences:
Table0 a 10000 id, but shipping and options has null values
table50 has 10000 id, but shipping and options has only 5000 lines, the other 5000 are null values
table100 has 10000 lines of id, shipping and options. No null values.

I want to know the specific size of each column, also the size of each line, namely the exactly size of the field.

for example:

rank 1, the column of table100 options is "asdfasdfagasdgasbabsdgoasdpgiahnwe1129u412094u12".
rank 2, the table100 column options is "a".
both are given in raw format, but I think that its space will be a different size (bytes), how do you know? any question?

I found this query:
select owner,tablespace_name,segment_name,sum((bytes/1024/1024)) Bytes
from sys.dba_extents
where owner in 'MAA' and segment_type='TABLE' and segment_name ='TABLE00'
group by tablespace_name,owner,segment_name
order by owner,tablespace_name,segment_name, bytes; 
but I think that is not my solution.

If VSIZE returns a constant value, which allows to conclude that everything which is inserting the data in your table is always inserting a constant number of bytes.

If I create a table with a RAW (1000) and insert data with different sizes of binary, VSIZE gives different results

SQL> create table foo(
  2    col1 raw(1000)
  3  );

Table created.

SQL> insert into foo values( utl_raw.cast_from_number(12) );

1 row created.

SQL> insert into foo values( utl_i18n.string_to_raw('This could be a much longer string') );

1 row created.

SQL> select vsize(col1) from foo;

VSIZE(COL1)
-----------
          2
         34

If you say VSIZE always returns the value 1000, which implies that everything what is the insertion of the data is always inserting 1000 bytes of data.

Justin

Tags: Database

Similar Questions

  • How will I know "the size of a table special VS size of RAM"

    Hi all

    How will I know "the size of a table special VS size of RAM"?

    I should know because I want to understand what join method to use.

    Please correct me if my attempt to catch the truth is crazy.

    Thanks in advance.

    You can get the size of a table of DBA_SEGMENTS.  I'm sure you can get the amount of RAM of other tables of data dictionary as well if you can define precisely what memory segment you are interested in (e.g. CMS?)  PGA?  The amount of physical RAM on the box?  The size of the buffer cache?  The amount of virtual memory available?)

    That being said, comparing the two is not as significant.  You, as a developer, are generally not in the business of choosing a join method.  It's the job of the optimizer.  And the optimizer takes into account a range of data that you have not begun to ask about yet.  The size of the table is not even particularly relevant for calculations - the optimizer the amount of data operations are back, the relative size of the data on each side of the join, the availability of indexes, etc. are all much more important than the raw size of the table (but the raw size of the array is a factor in the assessment of the amount of data that is returned).

    Justin

  • How can I know the size of the screen of the moniter of users using the Acrobat SDK?

    How can I know the size of the screen of the moniter of users using the Acrobat SDK? I need to know how much real estate sreen which is available on the moniter to users. Is there some call I can do the SDK to find out the maximum X and is coordinated?

    Thank you

    Gregory

    Just responded to your other thread:

    AVWindowGetDesktopBounds()

    Even takes into account the task bar on Windows, the menu bar on Mac, etc.

  • How can we know the size of the partition

    Hello

    can someone give me a query or procedure to determine the size of a partition of a table in bytes





    Thanks in advance

    Hello

    You can query dba_tab_partitions on column of blocks.

    Select TABLE_OWNER, TABLE_NAME, nom_partition, blocks from dba_tab_partitions

    Concerning

    Published by: skvaish1 on February 11, 2010 14:44

  • How do I know the total size of the site

    How do I know the total size of all the files in my site?

    Window "Files" Dreamweaver gives the sizes of individual files in the site, but it would be useful to know the size of all the files combined.

    I appreciate that you can use Windows Explorer or similar, but it would be more practical to do so directly in Dreamweaver.

    Thank you.

    The easiest way would be to get information or check the properties on the folder root of your operating system.

    As far as I know, there is no way to do it within DW itself.

  • How to know the size of the files transferred to the SQL * Net?

    I'm testing the Advanced compress (AC) for 11 g Data Guard. When the AC is turned on, the archived log files are supposed to be compressed on the primary database server sent via SQL * Net, then unzipped on the standby db server. We will see that the file sizes are the same on the main servers and backup. I want to check that the AC works by monitoring how much data is sent via SQL * Net. By Oracle, AC uses less bandwidth of 35%. This means that the size of the transferred files must be at least 65% of the original size.


    Is there a way to know the size with the Oracle utilities? Otherwise, how do you know by the utilities of operating system? OS is Solaris 5.10.

    Thank you.

    I'm not sure that this can be done via SQL * Net, but a sniffer network between two servers packets must be able to help - you may want to contact your network team.

    HTH
    Srini

  • How to know the size of window

    Hi, I want to know the size of the window where the flash presentation is running (for the application of air).

    I tried this:

    trace (this.) Width);

    trace (internship. Width);

    two prints 0 output

    TNX

    __edit__

    I just tried:

    trace (stage.fullScreenWidth);  also outputs 0 (first of all, I tried step instead of the scene and it an output error)

    The Stage class has stageWidth and stageHeight properties

  • How can I change the size of a region/area of text?

    Hi-

    I've not played with Illustrator since v6 around.  Now, I have CS5/OSX and is so different that I have to ask questions about the basics.

    I want a text to fit in a specific area, so I drag with the text tool to make a box the width, I need.  I type in my text and find now that the box is too large.  It's okay if I want to narrower or shorter - how can I change the size and shape?

    I tried the Selection tool (black arrow), the direct Selection (white arrow) tool and the text tool.  All I managed to do moves the area around available.

    I tried the free transformation and liquidation tool to distort the text.

    It's a simple thing.  I don't know that I used to be able to do it in Illustrator 6.  Please tell me how to change the size of a text box.  I guess this will have an impact on the way in which the text will wrap.

    Help TIA

    JL

    Use the direct Selection and Shift-drag a side.

  • Photos for wallpaper are too big. How can I change the size to fit?

    Photos for wallpaper are too big. How can I change the size to fit?

    Hi demetman,

    Welcome to the Microsoft answers community site.

    Follow the steps below to set the desktop background and select the image to fit the display screen

    1. open the wallpaper by clicking on the Start button , by clicking on Control Panel, appearance and personalization, personalization, and then clicking desktop wallpaper.

    2 click on the image or color you want for your background.

    If the image you want to use is not in the list of background images to display, click the location of the image downwards arrow to view other categories, or click Browse to find the picture on your computer. When you find the image of your choice, double-click it. It will become your desktop wallpaper and appear in the list of desktop backgrounds.

    3. under how the image must be positioned, choose to have the picture fit the screen, tile, or be centered on the screen and then click OK, you can choose here to adapt to the screen.

    Microsoft reference Article: http://Windows.Microsoft.com/en-us/Windows-Vista/change-your-desktop-background-wallpaper

    I also suggest you check these Microsoft Windows Help & How - Articles:
    1: change the screen resolution
    2: get the best display on your monitor
    3: change your desktop wallpaper (wallpaper)
    4: Customizing the desktop: recommended links

    Let me know if it works. Good luck!

    Hope this information is useful.

    Thank you and best regards,
    KKS Vijay

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • How can I see the size of the file?

    How can I see the size of the file in LR CC? I can see the pixel size, I see millions of pixels (interested in MP?). To see the size of the file, I have to 'show in Finder '. That s annoying.

    Thanks in advance

    Uwe

    Bob Somrak says:

    I'm sorry that I have implied by using the 'Limit of the file size' option to export.  I never use (probably rarely) this option.  I wanted to suggest you to use the option of resizing and set the pixel dimensions to limit the size of the file and the quality level.

    Yes, I've never used 'File size limit' because I know better. IMHO, this is an Adobe option could remove and do more good than harm. We have seen many messages here from users who are confused when it doesn't do what they expect.

    Bob Somrak says:

    Too, I think it would be easy to implement the ability to see the size of the file in Lightroom but see no advantage.  It does not provide any information whatsoever on what the derived file size will be.

    It is of little interest to the 'original' camera files imported into LR. But it is useful to review export and "Change in the PS" files for all of the reason fotoroeder and I have just described.

    The bottom line is that it can't hurt and it can be made an option to preferences for "Advanced" users to eliminate the confusion." It goes same for IPR display and the color profile, which is very useful for managing the resized image files to be used with a program such as InDesign layout. I currently have to use Adobe Bridge for this purpose, but LR to create and organize the files of components. So it forces me to work inefficiently. It would be really beneficial if LR and InDesign could be integrated to work similar to the LR book module together... but that's just a dream.

  • How can I change the size of the font for the comments/text call out boxes?

    How can I change the size of the font for the comments/text call out boxes?

    Hey sylviec10386621,

    Once you add any call box, select this option and press (Ctrl + E) to open its properties.

    Try this at your end and let me know how it goes.

    Kind regards

    Ana Maria

  • How can I find the size GB of my project?

    This is the first time I had to create a DVD for more than 2 hours. I don't know what GB dvd size or size thumbdrive to buy because I don't know the size of the project in the UK. Can anyone help?

    Mike Diaz

    Mike,

    Once you export a file. You should power or right click and press get info, and it will show the file size.

    Or even in the finder, he should tell his side once you click how much GB is.

    Most DVDs are 4.7 GBs. so anything under it will be good in there.

  • Read a PDF file without knowing the size of stream

    Hello

    while I am able to properly read a PDF file, the only way I can do it (in function
    on what I heard in the master PDF 1.7) is to go the end of the stream and
    start from here (section 7.5.5).

    But this requires the size of the stream to be known. While this is usually not a
    problem (since the flow is usually a simple file), I would like to make my
    a bit more generic and be able to manage any type of flow, as library
    as long as it is placed at the beginning of a PDF document.

    But unless I missed something of the form, when I'm dealing with a
    unknown flow (a person who could not yet be fully charged when I started
    reading, as an outlet), it is not how to do it. I mean, I could do it,
    but I don't would not be able to tell when I arrived at the end of the document. Not
    without some sort of length information (because I do not know where the stream)
    ends). I mean, where to stop? In a trailer? That works only if the
    document have never been updated.

    If, just after the header (%) PDF - he was a kind of meta-information on
    the size of the document (after all the updates, if any) I could move the stream to
    that post (wait for the data arriving, if necessary) and work my way of
    He (and from there, because I would like to know where the document ends). But since my
    understand, there is no way to retrieve such information.

    So, to sum up, in order to properly read a PDF document:
    -I always need to know the size of stream (which I might not be able to)
    -the data flow must end with the PDF data (which could be also not always true)

    Am I wrong?

    Unless the file has been established for "fast web view" (aka linearization - ISO 32000-1, Appendix F) Yes.

    BUT, if a file be linearized so that it can be better managed in flow (at least for some parts of the PDF file).  It is not supported to pure stream - which is not possible - but it will help.

  • How can I reduce the size of a file of numbers?

    I have a file that is too big to 650 MB. It is mostly text. I found 1 sheet which is "inflated".  I tried to copy/paste the columns in a new file, but it ends with lines and additional columns that I copied! It seems to me that if I could have something in layers? How can I reduce the size of the file.

    If it's really just the text that seems really strange.  I repeat what you have already done, copy items to a tim in a new file, and then save after each copy and monitor the size of files.  When you see the file size jump exceptionally fast, do NOT save the new file, and focus on the issue.  What are the benefits?  You paste images into a table as a background fill?

    If you did and you want photos, try to reduce the size of the file by using the menu item "file > advanced > reduce file size...» » :

  • How do I know the date purchased in the macbook pro?

    How do I know the date purchased in the macbook pro?

    The date of the purchase of a MBP will on reception, not in the MBP.

    Ciao.

Maybe you are looking for

  • I can't connect to facebook. I seem to be blocked.

    I'M 74 YEARS OLD, WHICH BLOCKED THE DEVIL MY PAGE? I'M 74 years OLD - SOMEONE ' a BLOCKED MY GETTING IN FACEBOOK - I think THAT it IS ABSOLUTELY TERRIBLE!

  • In the BIOS boot device options

    Hello I want to use my USB to be bootable since my laptop Winxdows XP.  When I go to the BIOS to change the settings, the Boot Options available are: Startup CD-ROM (ENABLE) Boot disk (ENABLE) (DISABLE) internal network card boot BOOT ORDER USB disk

  • How to remove Microsoft Mouse and keyboard Center?

    Hello, I look at a log of the events, and I noticed that there was some sort of error with the keyboard. Recommended action was to remove the driver and reinstall. So that's what I did. I have a Microsoft Comfort Curve keyboard 2000. Once I deleted t

  • Browserfield generates the internal server error

    Hello I've implemented an example usage of the guide on this link and its working quite right, but then I saw something. If I click on a link within the browserfield to a non html resource, say mp3 for example http://site.com/file.mp3 or the server r

  • Application.Key

    Hello. I'll put a key on my Application.cfm page so that others can not see ID numbers that I use in our database. We have some calls for TENDER in the database that keep us a track as well as contact information. When I get to the page to display th