# db_cache_size

> Minimum size of the default buffer pool, the cache for blocks of the standard block size.

Source: https://sqlly.app/sql-configuration/oracle/db-cache-size
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).

**Default**

`0`

**Range**

0, or a value inside the SGA up to sga_max_size

**Restart needed**

No

**Default checked on**

Oracle AI Database 26ai / 23ai

## What it does

With sga_target or memory_target set, an explicit value is a floor for automatic tuning. The KEEP and RECYCLE pools and the db_nK_cache_size caches for non-default block sizes sit outside it and are never auto-tuned. Inside a PDB it reserves a minimum buffer cache for that PDB, below the root's value.

## Default value

`0`. 0, so ASMM or AMM sizes the cache when sga_target or memory_target is set (Oracle 23ai/26ai).

## Check the current value

```
SHOW PARAMETER db_cache_size

SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable
FROM v$parameter
WHERE name = 'db_cache_size';
```

## Change it

```
ALTER SYSTEM SET db_cache_size = 4G SCOPE=BOTH;
```

No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

## When to change it

When V$DB_CACHE_ADVICE shows a larger cache would cut physical reads and automatic sizing keeps giving the memory away, or to pin a minimum for a PDB.

## What can go wrong

A floor sized on one busy day can strand SGA the shared pool needs during a parse spike, so keep part of the cache auto-tuned.

## Questions about db_cache_size

### What is the default value of db_cache_size in Oracle?

0. 0, so ASMM or AMM sizes the cache when sga_target or memory_target is set (Oracle 23ai/26ai).

### Does changing db_cache_size require a restart?

No. No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

### When should I change db_cache_size?

When V$DB_CACHE_ADVICE shows a larger cache would cut physical reads and automatic sizing keeps giving the memory away, or to pin a minimum for a PDB.

Back to all [Oracle settings](https://sqlly.app/sql-configuration/oracle), or check the [Oracle manual](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/initialization-parameters.html) for every option.

## Related Oracle settings

- [`sga_target` Total SGA size under Automatic Shared Memory Management; Oracle divides it among buffer cache, shared pool and other pools.](https://sqlly.app/sql-configuration/oracle/sga-target)
- [`db_block_size` Size of a database block in bytes, fixed when the database is created.](https://sqlly.app/sql-configuration/oracle/db-block-size)
- [`use_large_pages` Whether the SGA uses Linux HugePages.](https://sqlly.app/sql-configuration/oracle/use-large-pages)

## Related on SQLly

- [Memory pressure Performance guide](https://sqlly.app/sql-performance/memory-pressure)
- [Oracle query performance troubleshooting Performance guide](https://sqlly.app/sql-performance/oracle)
