How much space does a blob use?

How much space does a BLOB use?
Does it use allocated anyspace if its empty?

It will size appropriately:
TEST.SQL>CREATE TABLE TBLOB
  2  (
  3  A BLOB
  4  ) TABLESPACE _SANITIZED_;
TABLE CREATED.
TEST.SQL>SELECT INITIAL_EXTENT FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='_SANITIZED_';
INITIAL_EXTENT
       5242880
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME='TBLOB';
OWNER                          SEGMENT_NAME                                                                      PARTITION_NAME                 SEGMENT_TYPE
TABLESPACE_NAME                 EXTENT_ID    FILE_ID   BLOCK_ID      BYTES     BLOCKS RELATIVE_FNO
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                  0         16    1201289    5242880        640           16
TEST.SQL>SELECT * FROM DBA_OBJECTS WHERE CREATED > SYSDATE-1;
OWNER                          OBJECT_NAME
SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE        CREATED  LAST_DDL TIMESTAMP           STATUS  T G S
YJAM                           SYS_LOB0000920875C00001$$
                                   920876         920876 LOB                14:41:36 14:41:36 2005-11-16:14:41:36 VALID   N Y N
YJAM                           TBLOB
                                   920875         920875 TABLE              14:41:36 14:41:36 2005-11-16:14:41:36 VALID   N N N
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME='SYS_LOB0000920875C00001$$';
OWNER                          SEGMENT_NAME                                                                      PARTITION_NAME                 SEGMENT_TYPE
TABLESPACE_NAME                 EXTENT_ID    FILE_ID   BLOCK_ID      BYTES     BLOCKS RELATIVE_FNO
YJAM                           SYS_LOB0000920875C00001$$                                                                                        LOBSEGMENT
_SANITIZED_                                  0         16    1202569    5242880        640           16
TEST.SQL>DECLARE
  2    VALINS VARCHAR2(4000);
  3  BEGIN
  4    VALINS:='1';
  5    FOR I IN 1..100000
  6    LOOP
  7      INSERT INTO TBLOB VALUES (RPAD(VALINS,4000,'0'));
  8    END LOOP;
  9  END;
10  /
PL/SQL procedure successfully completed.
TEST.SQL>COMMIT;
Commit complete.
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME IN ('SYS_LOB0000920875C00001$$','TBLOB');
OWNER                          SEGMENT_NAME                                                                      PARTITION_NAME                 SEGMENT_TYPE
TABLESPACE_NAME                 EXTENT_ID    FILE_ID   BLOCK_ID      BYTES     BLOCKS RELATIVE_FNO
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                  0         16    1201289    5242880        640           16
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                  1         17    1169929    5242880        640           17
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                  2         18    1163529    5242880        640           18
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                  3         19    1176969    5242880        640           19
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                  4          5     379529    5242880        640            5
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                  5         14     375689    5242880        640           14
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                 51         18    1172489    5242880        640           18
YJAM                           TBLOB                                                                                                            TABLE
_SANITIZED_                                 52         19    1191689    5242880        640           19
YJAM                           SYS_LOB0000920875C00001$$                                                                                        LOBSEGMENT
_SANITIZED_                                  0         16    1202569    5242880        640           16
54 rows selected.
TEST.SQL>ANALYZE TABLE TBLOB COMPUTE STATISTICS;
Table analyzed.
TEST.SQL>SELECT * FROM DBA_TABLES WHERE TABLE_NAME='TBLOB';
OWNER                          TABLE_NAME                     TABLESPACE_NAME                CLUSTER_NAME                   IOT_NAME                         PCT_FREE   PCT_USED
INI_TRANS  MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS LOG B   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT
AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE     INSTANCES  CACHE TABLE_LO SAMPLE_SIZE LAST_ANA PAR IOT_TYPE     T S NES BUFFER_ ROW_MOVE GLO USE
DURATION        SKIP_COR MON CLUSTER_OWNER                  DEPENDEN COMPRESS
YJAM                           TBLOB                          _SANITIZED_                                                                                               10
         1        255        5242880     5242880           1  2147483645            0                            YES N     100000      33547          373       1977          0
       2042                         0                   0          1          1     N ENABLED       100000 14:51:22 NO               N N NO  DEFAULT DISABLED NO  NO
                DISABLED NO                                 DISABLED DISABLED
TEST.SQL>SELECT BYTES/1024 FROM DBA_SEGMENTS WHERE SEGMENT_NAME='TBLOB';
BYTES/1024
    271360   
TEST.SQL>TRUNCATE TABLE TBLOB;
Table truncated.
TEST.SQL>BEGIN
  2    FOR i IN 1..100000
  3    LOOP
  4      INSERT INTO TBLOB VALUES ('1');
  5    END LOOP;
  6  END;
  7  /
PL/SQL procedure successfully completed.
TEST.SQL>COMMIT;
Commit complete.
TEST.SQL>ANALYZE TABLE TBLOB COMPUTE STATISTICS;
Table analyzed.
TEST.SQL>SELECT BYTES/1024 FROM DBA_SEGMENTS WHERE SEGMENT_NAME='TBLOB';
BYTES/1024
      5120Note: there is a deported blob segment for the pointers I forgot in my previous post.
HTH,
Yoann.
Message was edited by:
Yoann Mainguy
Hmm, forgot that for a full comparison of the avg linesize:
TEST.SQL>SELECT * FROM DBA_TABLES WHERE TABLE_NAME='TBLOB';
OWNER                          TABLE_NAME                     TABLESPACE_NAME                CLUSTER_NAME                   IOT_NAME                         PCT_FREE   PCT_USED
INI_TRANS  MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS LOG B   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT
AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE     INSTANCES  CACHE TABLE_LO SAMPLE_SIZE LAST_ANA PAR IOT_TYPE     T S NES BUFFER_ ROW_MOVE GLO USE
DURATION        SKIP_COR MON CLUSTER_OWNER                  DEPENDEN COMPRESS
YJAM                           TBLOB                          _SANITIZED_                                                                   10
         1        255        5242880     5242880           1  2147483645            0                            YES N     100000        628           12       1223          0
         41                         0                   0          1          1     N ENABLED       100000 14:56:56 NO               N N NO  DEFAULT DISABLED NO  NO
                DISABLED NO                                 DISABLED DISABLED         

Similar Messages

  • How much space does IOS 6 use vs IOS 5.1.1

    I upgraded my iPhone 4S to IOS 6 yesterday.  Today, I was telling a friend about it and she said she doesn't have enough free space to install it on her 8GB iPhone 4.  This got me thinking that with all the upgrades, how much more space does IOS6 require vs IOS5.X.X.  Does anyone know?
    Thanks
    Mike

    Bit of a strange one, the file itself was 650-something MB, but when it came to install, it required me to have at least 2.5GB free space. When it was installed though, there was no change in the free space on my iphone. So, its a mystery.

  • How much space does ios6 take on iPhone4

    Considering iphone 4s, Will 16GB be enough?  How much space does the OS take?

    iOS uses roughly ~ 1GB for the system partition, with roughly 800MB's actually used, depending on iOS version.

  • How much space does MacBook Air OS and software take up?

    Greetings,
    I am looking to replace my aging 2008 MacBook with a new MacBook Air.  I want to get the 11 inch model most likely with the 128GB of storage.   I will use it mostly for email, web surfing and other light duty work. 
    While I don't intend to load it up with various software, I will probably put a half dozen peices of software on it, over and above the Apple software it comes with. But, no biggies like PhotoShop.    My question is this:
    About how much space does the Apple OS and the assorted Apple software that comes standard take up? 
    I cannot spend a lot and would like to avoid buying the bigger drive if possible.
    Thanks.

    new from box it will have 121 GB available.
    I cannot spend a lot and would like to avoid buying the bigger drive if possible.
    Thats a bad working premise, no computer is a data storage device.  You dont need a huge SSD, just an external HD for data backups and for putting tons of big media files on.
    128GB is plenty for almost everyone,  IF they know very very simple rules of drive management.

  • How much data does google maps use

    how much data does google maos use ?

    That question has a lot of variables. If you are just looking up an address it should not using very much. If you are using  it for an 8 hour drive it will use quite a bit.

  • How much space does a new app take?

    My 16GB Touch is pretty full (about 360MB left after all the music is loaded). How much space does the typical app take up?

    There are some that are larger (Super Monkey Ball supposedly takes up 36 MB), but most that I have seen or downloaded are around 1 MB. SUPER small

  • How much space does a Windows 7 install take on a Mac?

    How much space does a Windows 7 install take on a Mac?

    Installation of Windows 7 is required at least around 20GB of disk space 64bit version, 32bit version is around 16GB, 100GB is a sensible amount of disk space for a Windows installation, I suppose.

  • How much space does apple give you for free in the cloud

    how much space does apple give any user in the cloud

    5Gb - http://www.apple.com/icloud/what-is.html

  • How much space does iOS 6 or iOS 7 require?

    On a 8 GB iphone how much space does iOS 6 or iOS 7 take up?

    No one can tell you specifically, as it will vary by device and user and according to your personal data on the device etc. But, you can expect anywhere roughly around 175-195MB.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How much space does client copy of ECC6 IDES client 800 requires

    Hello
    Does anyone knows how much space does client copy of ECC6 IDES client 800 requires?

    But I do not have enaugh disk capacity at the moment. So I ned to order it
    You donot have to perform the client copy actually . You have to just run the test, it will not consume any disk, probably some archive files will be generated
    Regards,
    Subhash

  • How much space does OS X Mountain Lion take?

    I am considering a MacBook Air 128 GB for my next laptop, but I'm not sure if that's enough. How much space does the OS take up?

    OS X Mountain Lion, without any third-party app, takes about 9 GB of hard disk. The minimum requirement is 8 GB of hard drive space, so if you have to store a lot of data, you may have to buy an external drive to store all the files you want

  • How much space does tiger take up & how to make it take up less

    i recently read a post by someone claiming that tiger took 18.5gb on there ibook, and some one replied saying that apple claims you can install tiger in to 3gb.
    : is this true?
    : if so, how do you "compress" it?
    : iff not so, how much space does it take up on avarage?

    hi Axl....
    I've got tiger in ok, running fine - bought family pack and have done 3 installs without problem, so that's the good news ....
    I did a major reshuffle and toss-out of files before I installed - bought 80gb mobile external hard drive - and did install with 5+gb free, so after it had about 3gb free, then all of a sudden I went down to less than 1gb
    I've been in a hunt for more files to throw out (a nice find were the old ipod updaters that were eating 500mb) ....
    If I want to throw out most of the language files (for instance) ... where are they ? (I did search for danois and found nothing, so .... buried ?)
    any other suggestions for things to throw away .... I've pretty much eliminated 90% of all things classic, for instance ....
    and - do you have ideas for why space seems to disappear so fast .... I'm not doing anything special, but wham, 2gb flies away to ???
    thanks

  • PROBLEMS WITH HOW MUCH SPACE IS ACTUALLY BEING USED

    Hello,
    I've just recently purchased a Toshiba Dual Core laptop (225 gigs + 3 gig memory.) It works pretty well, but I've had to reload the windows and programs again. The reason is that after reloading I have about 203 gigs of space, but then I install flash CS3 (550 mgs and photoshop 200+) After I've installed all the doc files and everything I end up with about 200 gigs of space which is great. However, I've unistalled norton and installed AVG Professional. My space amount has gone down from 200 to about 193 gigs. I don't get it; it doesn't make sense because this is isn't how much space I've actually used. I've deleted temp files and all the install files of these other programs and what's even more crazy is that when I go ahead and run scan disk to deleted unecessary files, my space goes down in size and it shows that I have even less space! Has anyone else run into this problem? Let me know, perhaps there's a solution. 
    Thanks,
    Tseyigai

                                              PSLE8U02PO1
    Maybe that part number is PSLE8U-02P01D?  If so, you have this model:  Satellite L355D-S7901
    How much space would be reasonable for me to cut back on?
    I've set the shadow storage on the computers around here to 10 GB. Suit yourself.
    You can save quite a bit of hard drive space by turning hibernation off. Check the size of that file. It's c:\hiberfil.sys.
    And look through the stuff Disk Cleanup cites for more savings.
    But if you really can't get along without more space, you should add external drives or upgrade this one.
    -Jerry

  • How much space does iOS takes?

    Dear Apple Support Community,
    I want to know how much space does the iOS takes (installed) on a default iPhone 4 for all it's versions (eg. latest iOS 3, latest iOS 4 and iOS 5).
    Watching the 2011 WWDC keynote on iOS 5, you will see a handful of new functionalities being added that will take the user experience even further, which is great!
    But if you have minimum technical background, you know that more features means more lines of code, and this WILL take some extra space on your device. Also, iOS is an ever-changing product distributed over the web, but the iPhones have always the same hard-fixed ammount of storage space (only changes if you buy a new device).
    This is what I'm looking for:
    iOS 3.5.1 -> 1,2 Gb
    iOS 4.3.3 -> 2,1 Gb
    iOS 5.0.0 -> 2,9 Gb
    ** those are fictitious values, most probably not the actual ones **
    Important: I'm just curious about it, I don't find this being a big issue as 16 or 32 gb of space is pretty much. Even if the OS takes 2~3 gigs out of it, there's still plenty space for everything you need on the go.
    Thank you very much!!

    Something like 660MB, apparently:
    http://en.wikipedia.org/wiki/IOS_%28Apple%29

  • HT1577 How much space does 26 24 minute tv shows take up

    I am downloading my favorite tv series onto my iPod and I would like to know how much space 26 24 minute episodes take up.

    I use checked tracks for updating my iPod too. I find that this works better than the Smart Playlist method, for me.
    In any case, if you don't have a video iPod, you may want to change your checked tracks playlist to have these rules as instead:
    Kind does not contain "video"
    Kind does not contain "movie"
    This prevents videos you may download or add to iTunes from showing up in that list, since they won't be sent to non-video iPod's anyway.
    One more thing: Every once in a while, you might want to make a "backup" of what your checked songs are. This way, if you are checking/unchecking songs and accidentally screw them up, you can restore your checkmarks easily. I do this before I make changed to what tracks I have checked. To do this, select that Checked tracks playlist, then in there hit CTRL-A to select all the songs. Now pick File->New Playlist from Selection. This creates a normal playlist with all those tracks. Name it something like "checked backup". Now, if you screw up your checkmarks, you can look at the library, uncheck everything (hold CTRL while unchecking something to uncheck all), then look at the backup playlist and check everything in that playlist (same deal, hold CTRL). This has the effect of restoring your checkmarks to their "backed up" state. Comes in handy.

Maybe you are looking for

  • NokiaMServer.exe removal

    HI there, I am added this to the end of another thread but it seems that it might not be read there so I am adding a new topic as it might be noticed this time around. I have uninstalled all the software for the Nokia phone on my PC but for some reas

  • Problem in standard task TS20000139 in quality

    Hi friends The task TS20000139 is used for sending reason for rejection in my travel request workflow. Its working fine in development but after transporting to development when rejection button is clicked below task TS20000139 is not opened, it imme

  • Looking for a software making interactive images

    Hello, looking for a software similiar as the widget "interactive image". But clicking on a certain part of the source image another image will appear instead zooming in. Thanks

  • Mp3 cd burning

    I would like to burn mp3 cds with iTunes for my car stereo. And the problem is that I can't organise my cds like I want, that is I would like to have folders: for exemple, lets say the lettre for my cd player is E, i would like it to do: E:\Artist\Al

  • HP 4120 Lync Phone Edition - Ringer Volume Level Can Not be controlled when a second call comes in for a workflow

    Here is the scenario we are experiencing with our HP 4120 Lync phones running the latest available firmware (4.0.7577.4455) 1) A User has an HP 4120 phone and is a member of a workflow/response group which is setup with attendant routing method. 2) T