Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

BLOB size

SAYYEDMay 30 2014 — edited May 30 2014

Hi,

Can any one suggest me what is the exact storage(size) capacity of blob column.

is this fixed or vary depends on block size?

I confused about the formula

BLOBMaximum size: (4 GB - 1) * DB_BLOCK_SIZE initialization parameter (8 TB to 128 TB)The number of LOB columns per table is limited only by the maximum number of columns per table (that is, 1000Foot 1 ).

my server db_block_size=8192 KB.

Thanks and regards,

Ibrahim Sayyed.

Comments

SKP

BLOB In PLSQL oracle document say's 128TB (11.2g)

SQL  (4 GB - 1) * database_block_size

PL/SQL Data Types

BluShadow

It does vary depending on the block size, which itself can vary depending on the initialization parameter and the platform upon which Oracle is installed.

BluShadow

SKP wrote:

BLOB In SQL/ plsql the oracle document say's 128TB (11.2g)

PL/SQL Data Types

In PL/SQL, yes, but in SQL (database columns) it's based on the block size still.

BluShadow

For your block size of 8192K you're maximum BLOB size is around 32Tb...

SQL> select (((4*1024*1024)-1)*8192)/(1024*1024*1024) as Tb from dual;

        TB
----------
31.9999924

Explanation...

4*1024*1024 turns the 4Gb into K (and then we subtract 1 as per the formula)

The result of that is multiplied by the block size (8192) in K

And then we take the result and...

divide by 1024 to turn K into Mb

divide by 1024 again to turn Mb into Gb

divide by 1024 again to turn Gb into Tb

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 27 2014
Added on May 30 2014
4 comments
684 views