Oracle PL/SQL - Data Type Maximum Sizes

Introduction

The SQL data types listed in the following table have different maximum sizes in PL/SQL and SQL.

Data Type Maximum Size in PL/SQL Maximum Size in SQL
CHAR132,767 bytes2,000 bytes
NCHAR1 32,767 bytes2,000 bytes
RAW1 32,767 bytes2,000 bytes
VARCHAR2132,767 bytes4,000 bytes
NVARCHAR21 32,767 bytes4,000 bytes
LONG232,760 bytes2 gigabytes (GB) - 1
LONG RAW232,760 bytes2 GB
BLOB 128 terabytes (TB) (4 GB - 1) * database_block_size
CLOB 128 TB (4 GB - 1) * database_block_size
NCLOB128 TB (4 GB - 1) * database_block_size

Related Topic