改变向量中,存在一个重要的操作代码(OP=Operation
Code),该代码标志了操作的类型.下表列出了不同代码代表的操作级别,进一步的,操作级别和具体编号联合就可以详细的标示一个 Change Vector 的操作:
|
Level |
Description |
|
4 |
Block Cleanout |
|
5 |
Transaction Layer(Undo) |
|
10 |
Index Operation |
|
11 |
Table Operation(DML) |
|
13 |
Block Allocation |
|
14 |
Extent Allocation |
|
17 |
Backup Management |
|
18 |
Online Backup |
|
19 |
Direct Load |
|
20 |
Transaction Metadata(LogMiner) |
|
22 |
Space Management(ASSM) |
|
23 |
Block Write(DBWR) |
|
24 |
DDL Statement |
例如对于 DML 事务,其 Level 是 11,相应的操作代码如下表所示:
|
OP Code |
Description |
|
11.2 |
Insert Row Piece |
|
11.3 |
Drop Row Piece |
|
11.4 |
Lock Row Piece |
|
11.5 |
Update Row Piece |
|
11.6 |
Overflow Row Piece |
|
11.11 |
Insert Row Array |
|
11.12 |
Delete Row Array |
对于 UNDO 的操作,其代码如下表所示,其中5.1 表示对 UNDO 块或者 UNDO Header 的操作,5.2 表示对于回滚段头的更新操作:
|
OP Code |
Description |
|
5.1 |
Undo block or undo segment header |
|
5.2 |
Update rolback segment header |
|
5.4 |
Commit transaction |
|
5.11 |
Rolback DBA in transaction table entry |
|
5.19 |
Transaction start audit log record |
|
5.20 |
Transaction continue audit log record |




