Oracle configuration settings
Initialization parameters, stored in the SPFILE. Read them with SHOW PARAMETER or V$PARAMETER, change them with ALTER SYSTEM SET ... SCOPE=, and check ISSYS_MODIFIABLE: FALSE means SCOPE=SPFILE and a restart.
Inspect what your server runs with
SHOW PARAMETER open_cursors SELECT name, value, isdefault, issys_modifiable, ispdb_modifiable FROM v$parameter WHERE isdefault = 'FALSE' ORDER BY name;
No setting matched. Try a topic such as memory, log or timeout.
メモリ
Caches, per-query work memory and the ceiling on what the server takes from the OS.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
memory_target |
0 (AMM off) |
いいえ | Total memory for SGA and PGA together under Automatic Memory Management (AMM); 0 disables AMM. |
sga_target |
0 |
いいえ | Total SGA size under Automatic Shared Memory Management; Oracle divides it among buffer cache, shared pool and other pools. |
sga_max_size |
Initial SGA size |
はい | Largest the SGA can grow to without a restart. |
pga_aggregate_target |
10MB or 20% of SGA |
いいえ | Target total memory for all sessions' private work areas (sorts, hash joins, bitmap merges). |
pga_aggregate_limit |
Max(2GB, 2 x target, 3MB x processes) |
いいえ | Hard limit on total PGA; past it, sessions using the most untunable memory are terminated. |
use_large_pages |
TRUE |
はい | Whether the SGA uses Linux HugePages. |
接続
How many sessions the server accepts and what each one costs.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
processes |
Set at creation |
はい | Maximum operating system processes that can connect to the instance, background processes included. |
sessions |
1.5 x processes + 22 |
はい | Maximum sessions; derived from processes when not set. |
open_cursors |
50 |
いいえ | Maximum open cursors per session. |
session_cached_cursors |
50 |
いいえ | Cursors per session kept in the session cursor cache after they close. |
Parallelism & workers
Worker pools and how many CPUs one query may use.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
parallel_max_servers |
Derived |
いいえ | Maximum parallel execution server processes for the instance. |
parallel_degree_policy |
MANUAL |
いいえ | Whether Oracle picks the degree of parallelism automatically. |
WAL, redo & durability
What a COMMIT waits for and how the change log is sized and written.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
log_buffer |
Derived |
はい | Size of the redo log buffer in the SGA. |
undo_retention |
900 |
いいえ | Seconds of committed undo Oracle tries to keep for consistent reads and flashback query. |
db_recovery_file_dest_size |
0 |
いいえ | Space limit for the fast recovery area (archived logs, flashback logs, RMAN backups). |
Checkpoints & recovery
How often dirty pages are flushed and how long crash recovery may take.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
fast_start_mttr_target |
0 |
いいえ | Target crash-recovery time in seconds; Oracle paces incremental checkpoints to meet it. |
Disk I/O
Flush rates, I/O threads and how the engine talks to the file system.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
db_writer_processes |
Max(1, CPU_COUNT / 8) |
はい | Number of database writer (DBWn) processes. |
filesystemio_options |
Platform-dependent |
はい | I/O mode for data files on file systems: asynchronous, direct, both or neither. |
db_block_size |
8192 |
はい | Size of a database block in bytes, fixed when the database is created. |
Vacuum, statistics & maintenance
Background cleanup and the statistics the planner relies on.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
job_queue_processes |
4000 |
いいえ | Maximum job worker processes for DBMS_SCHEDULER and DBMS_JOB jobs. |
Query planner
Cost model and plan-shape switches.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
optimizer_mode |
ALL_ROWS |
いいえ | Optimizer goal: total throughput (ALL_ROWS) or fastest first rows. |
optimizer_adaptive_plans |
TRUE |
いいえ | Allow plans to switch join methods or parallel distribution at run time. |
optimizer_adaptive_statistics |
FALSE |
いいえ | Allow SQL plan directives, statistics feedback and dynamic sampling triggered by them. |
cursor_sharing |
EXACT |
いいえ | Whether literals in SQL are replaced by bind variables so statements share cursors. |
result_cache_mode |
MANUAL |
いいえ | Which queries use the server result cache. |
Timeouts
Limits on statements, lock waits and idle sessions.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
max_idle_time |
0 (no limit) |
いいえ | Minutes a session may be idle before it is terminated; 0 means no limit. |
ddl_lock_timeout |
0 |
いいえ | Seconds a DDL statement waits for a DML lock before failing; 0 fails at once. |
Logging & diagnostics
What gets logged and which runtime statistics are collected.
| 設定 | デフォルト | Restart | 何ができるか |
|---|---|---|---|
statistics_level |
TYPICAL |
いいえ | How much database and OS statistics Oracle collects. |
Oracle configuration FAQ
What do SCOPE=MEMORY, SPFILE and BOTH mean?
MEMORY changes the running instance only and is lost at restart. SPFILE writes the server parameter file only, so it applies at the next startup; this is the only scope allowed for static parameters. BOTH, the default when the instance started from an SPFILE, does both.
Can I change parameters inside a pluggable database?
Only the ones with ISPDB_MODIFIABLE = TRUE in V$PARAMETER, such as open_cursors or sga_target. Instance-wide ones such as processes or memory_target must be set from CDB$ROOT; from a PDB the statement fails with ORA-65040.
Why do some defaults show as 0?
In V$PARAMETER.DEFAULT_VALUE a 0 or an empty value often means derived at startup: db_writer_processes and log_buffer are computed from CPU_COUNT and memory, parallel_max_servers from CPU_COUNT and processes. V$PARAMETER.VALUE shows the derived value and ISDEFAULT stays TRUE.
The full list is in the Oracle manual. Other engines: PostgreSQL, MySQL, SQL Server, SQLite.
Run these queries against your own server
SQLly connects to Oracle and the other engines in this reference from one desktop app on macOS, Windows and Linux, with a results grid you can sort, filter and export.