// oracle · disk i/o

db_block_size

Size of a database block in bytes, fixed when the database is created.

默认
8192
Range
2048, 4096, 8192, 16384, 32768 (platform-dependent)
Restart needed
是
Default checked on
Oracle AI Database 26ai / 23ai

作用

Every data file in the standard block size uses it. Tablespaces with other block sizes are possible but need matching db_nK_cache_size buffer caches.

默认值

8192. 8192 (Oracle 23ai/26ai).

Check the current value

SHOW PARAMETER db_block_size

SELECT tablespace_name, block_size FROM dba_tablespaces;

Change it

-- Not changeable. Choose it in DBCA or CREATE DATABASE, for example:
-- DB_BLOCK_SIZE=8192 in the initialization file before CREATE DATABASE

Cannot be changed after the database is created; it would mean creating a new database and moving the data.

When to change it

Only at database creation: 8KB suits nearly every workload; some data warehouses choose 16KB or 32KB.

What can go wrong

Non-default block sizes are less tested and can complicate buffer cache sizing.

Questions about db_block_size

What is the default value of db_block_size in Oracle?

8192. 8192 (Oracle 23ai/26ai).

Does changing db_block_size require a restart?

Yes. Cannot be changed after the database is created; it would mean creating a new database and moving the data.

When should I change db_block_size?

Only at database creation: 8KB suits nearly every workload; some data warehouses choose 16KB or 32KB.

Back to all Oracle settings, or check the Oracle manual for every option.

// one client for every engine

Check db_block_size on your own server

SQLly runs the query above against Oracle and the other engines in this reference, from one desktop app on macOS, Windows and Linux.