An Oracle INSERT is a transactional operation in which a server process first obtains the data block(s) that will receive the new row—either from the buffer cache or by reading them from disk—and then creates the row inside those blocks, records the change in undo and redo, and defers the durable commit until the session issues COMMIT. The statement's visible effect ("row inserted") is therefore not the same as the architectural event ("change made durable"), and most of the interesting behavior of INSERT lives in that gap.
Where the statement enters the architecture
A client (SQL*Plus, JDBC, OCI, SQL Developer) connects to a database instance through a listener and is handed to a server process. The server process parses the statement in the shared pool, produces a cursor (execution plan plus private SQL area), and then executes it. The execution step is where INSERT differs from SELECT: the row source feeding the insert produces rows, and the insert operator writes them into a segment.
Three memory structures matter:
The buffer cache in the system global area (SGA) holds data blocks as they are read and modified. Inserts are performed against cached blocks, never directly against files. The shared pool holds the parsed cursor and dictionary metadata (the table's definition, its segments, privileges, constraints). The redo log buffer in the SGA receives redo change vectors describing what was altered.
Three background/foreground processes matter:
The database writer (DBWn) eventually writes dirty buffers to data files. It does not run at commit time. The log writer (LGWR) writes redo from the log buffer to the online redo log files. It does run at commit time. SMON and PMON handle instance and process recovery, which is how uncommitted inserts from a crashed session are cleaned up.
The parsing and execution path in detail
Parse
The server process hashes the statement text, checks the shared pool for a matching cursor, and if none exists performs a hard parse: syntax and semantic checks (does the table exist, does the user have INSERT privilege, are the column lists valid), optimization, and row source generation. A matching cursor triggers a soft parse. The result is an executable plan—for a simple INSERT ... VALUES, essentially "evaluate the values, then insert one row into segment X."
Get the target block
The segment header is read to locate a block with free space. Oracle examines the segment's free lists or, in automatic segment space management (ASSM) tablespaces, the bitmap blocks that track space usage. The chosen block is looked up in the buffer cache by its data block address (DBA); on a miss, the server process performs a single-block physical read into the cache.
If no block has sufficient free space, Oracle allocates a new block or extends the segment, updating the segment header and the data dictionary as required, and generating redo for those structural changes too.
Build the row
The row is constructed in the server process's private (PGA) memory: column values are laid out in Oracle's row format, with a row header containing the column count and link information, followed by column data. NULL columns that trail the last non-null column are typically not stored at all (subject to the precise row format and any ALTER TABLE ... ADD column defaults, which are dictionary-based in modern releases).
Write the row into the block
This is the step that is easy to gloss over and important to get right. The server process:
1: Pins the block and acquires the appropriate buffer lock (a "buffer busy" wait can occur if another session holds it). 2: Reserves space in the block's free space, updating the block's free-space metadata. 3: Inserts the row and updates the block's row directory and ITL (interested transaction list) as needed. The ITL records the transaction ID and the undo address for the transaction, so that the block knows which undo to consult for consistent reads and rollback. 4: Generates redo change vectors describing the row insertion, the block header change, and the undo record itself (undo is also redo-protected). 5: Generates undo, so the insertion can be rolled back and so other sessions reading the block under read consistency can reconstruct the pre-insert image.
Note the sequencing: undo is written before the data change conceptually (the undo record must exist for the ITL to point to it), but both are changes to buffers.
Concurrency and constraints
A unique constraint is enforced either by a unique index maintained on insert (the index entry is created and its own undo/redo generated) or, for deferred constraints, checked when the transaction commits. A primary key implies both a unique index and a not-null check. Foreign keys are enforced against the parent—an insert into a child table requires a matching parent key or the insert fails. These checks may require additional block reads (into the parent table's index or table), which is one reason an INSERT can be slower than its row count suggests.
Transaction and commit semantics
The transaction is implicit
Oracle does not require BEGIN TRANSACTION. The first data-modifying statement in a session starts a transaction; assigning the transaction ID to the undo segment used by the session. Every subsequent statement in that session until COMMIT or ROLLBACK joins the same transaction. Autocommit is a client-side convention (SQL*Plus SET AUTOCOMMIT, JDBC setAutoCommit(true)): each statement is followed by a commit, but Oracle itself always runs in an explicit-transaction model.
What COMMIT actually does
COMMIT does not write data blocks to disk. It:
1: Assigns a system change number (SCN) and writes a commit record to the redo log buffer. 2: Invokes LGWR to flush redo through the commit SCN to the online redo log—this is the durability point. 3: Releases locks and marks the transaction complete in the undo segment. 4: Returns control to the client.
Because redo (not data blocks) is the durability guarantee, a crash right after commit is recoverable: instance recovery replays redo to reconstruct the changed blocks, including the newly committed row. Dirty data blocks may sit in the buffer cache for a long time before DBWn writes them; this is intentional and is why Oracle's commit is fast and data-file-write latency is decoupled from transaction latency.
What ROLLBACK does
Rollback applies undo to the modified blocks, restoring the pre-insert image, and generates redo for the undo application so the rollback is itself recoverable. The undo segment's transaction slot is marked free.
Read consistency and the "the row is there but you can't see it" cases
A session that inserts a row and does not commit sees its own uncommitted change—Oracle provides statement-level read consistency but a session always sees its own transaction's changes. Another session running a query against the same table will see the pre-insert version of the block, because it applies undo to construct a consistent read (CR) image as of its statement's SCN. If that other session finds the block already modified by the uncommitted transaction, it consults undo, sees the ITL entry is uncommitted, and can either use undo to reconstruct the old image or wait.
This has practical consequences:
An uncommitted insert can block a query that runs in a mode needing to see committed data without waiting, and can cause a "snapshot too old" error in long-running queries if the undo needed to reconstruct the pre-insert image has been overwritten. An index range scan by another session may skip an uncommitted index entry, while a full scan of the table will see the CR image without it—consistent with the query's SCN.
INSERT variants and how each touches the architecture
| Form | Architectural note |
|---|---|
| INSERT INTO t VALUES (...) | One row, one block, normal undo/redo, index maintenance for each index. |
| INSERT INTO t SELECT ... | Row source produces many rows; can be parallelized (/*+ PARALLEL */), which uses parallel execution servers and may use direct-path loading, bypassing the buffer cache and writing new blocks above the high-water mark. |
| INSERT /*+ APPEND */ INTO t SELECT ... | Direct-path insert: data is formatted into new blocks and written by DBWn/parallel slaves above the high-water mark without the usual buffer-cache path; undo is minimized (the segment's high-water mark is the recoverable unit), and the table is locked against concurrent DML during the load. |
| Multi-table insert | A single INSERT ALL/INSERT FIRST statement with multiple targets; still one transaction, with per-target blocks, indexes, and redo. |
| INSERT ... RETURNING | Same as a normal insert; returns column values (including generated keys) to the client from the server process without a round trip. |
Direct-path insert is the main case where the simple "row into a cached block" model breaks: it deliberately avoids the buffer cache and generates a fraction of the undo, at the cost of concurrency (the table is effectively locked for DML) and of the usual block-level recovery granularity.
Common misconceptions
"Commit writes the row to disk." No. Commit writes redo to disk. The data block is written later by DBWn. Durability comes from redo replay, not from the data file being current.
"Insert is a single atomic step." It is a multi-part change: block header, row data, index entries, undo, redo, and possibly dictionary/segment changes. A failure partway through is rolled back via undo (or, after a crash, cleaned up by SMON during instance recovery).
"The row is visible to everyone after insert." It is visible only to the inserting session until commit; other sessions see it after commit, subject to their own read-consistency SCN.
"A unique index prevents duplicate rows." It prevents duplicate key values at the time the index entry is created, but the enforcement point depends on the constraint's deferrability and on whether the index is usable; a disabled or deferred constraint changes the timing of the check, not its existence.
What is unknown here and what is answerable
The question does not specify an Oracle release (11g, 12c, 19c, 21c, 23ai), an edition (Enterprise, Standard, Express), or whether the insert is conventional or direct-path. Version-specific details—exact row-format changes, whether certain defaults are dictionary-encoded, the precise behavior of the high-water mark with ASSM, and the available hints—vary across releases. The architecture described above is the stable core that holds across modern releases; the specifics of any given INSERT on a specific database require checking that instance's version, tablespace settings (ASSM vs. manual segment space management), and schema objects (indexes, constraints, triggers).
The general education above is not a substitute for hands-on work with the specific database configuration.