DML is implemented internally to operate Oracle in the following order:
DML is implemented internally to operate Oracle in the following order:
Perform Oracle operations with DML in the following internal order:
1. The corresponding transaction is allocated a rollback segment (undo segment ).
2. After a rollback segment is allocated, create the transaction table slot (transaction table slot) on the rollback segment header ).
3. After the transaction table is created, TXID (TransactionID) is generated, and then TXID is allocated to the current transaction. This value points to the exact location of the transaction table that exists in the rollback segment of the transaction.
4. The data block of the transaction object is loaded into the high-speed buffer, and transaction entries are registered on the ITL (Intersted transaction list) block header.
If there is no required space on the itl, it will wait for enq: TX-allocate ITL entry.
5. Store the modification information of the block to be modified to PGA. The storage method is change vector. Then, the process copies the change vector in PGA to the redo record to the redo buffer.
6. Record the previous image information to the Undo block, modify the data block, and change the modified data block to a dirty state. In addition, the CR block of the data block to be modified is created in the high-speed buffer.
7. Execute commit and allocate SCN to the transaction. commit information is stored in the redo buffer.
8. The transaction table of the rollback segment header stores information that has been successfully submitted and ends possession of all resources including the TX lock.
9. Redo buffer content is recorded in the redo log file.
The following describes the process through dump: