Know more about DML

简介:

The change vectors as constructed by the transaction layer are used by the cache layer to apply the physical block changes. Redo log ordering and recovery as well as read consistency are the fundamental purposes of SCNs. The change vector: Change vectors are built in the PGA process of the process modifying a block, have the DBA and SCN/SEQ of the block before the change, and only ever perform the change for one block. The system commit number: The SCN is a 6-byte structure consisting of the SCN base and SCN wrap. Is a 6-byte structure consisting of the SCN base and SCN wrap, 4 bytes for the SCN base and 2 bytes for the SCN wrap The SCN is used within the data block to reflect the committed version of the block. There is only one global SCN generator for each database. A large transaction is defined as a transaction that is participating in a parallel DML (PDML) operation or a distributed transaction. One of the first checks for rollback segment allocation is whether the transaction is participating in a PDML or distributed transaction. These are used to determine the largest rollback segment to be allocated. steps below to illustrate the order necessary to begin a transaction. 1.bind to the available rollback segment 2.allocate a slot in the transaction table 3.allocate an undo block to the rollback segment When a free slot cannot be allocated in the transaction table, exclusive access is acquired in the rollback segment header. Only when a free slot can be allocated in the transaction table do you gain exclusive access to the RBS header. The system rollback segment will be used only for data for the system tablespace and data that is being created from recursive SQL calls generated by user data. The search for the allocation of an undo block to a rollback segment will occur in: Searching for an undo block to be allocated will begin in the current extent if the extent boundary has not been reached, in the next extent provided there are no uncommitted transactions, or in a newly allocated extent if the next extent has uncommitted data. Rollback segments are shrunk either explicitly through the ’alter rollback segment … shrink to …’ command or implicitly by the SMON process. Implicit shrinkage can be disabled by: PCTINCREASE has no affect on rollback segments. All extents will be sized by the setting of the next_extent storage attribute. Setting the event 10512 will disable the implicit shrink operation performed by SMON. Setting the initialization parameter ‘rbs_disable_shk’. There is no such parameter. Setting the event 10512 will disable the implicit shrinkage operation performed by SMON. The Oracle server begins shrinking a rollback segment starting from the current extent +2 Rollback segment shrinkage will occur while optimal or minextents is not reached, there are at least two remaining extents, the extent is not busy, and the extent is not extent #0. An extent is reused if all its blocks are inactive. RBS undo blocks are reused on a per extent basis. An undo block becomes inactive when the active transaction in the undo block commits. correct order of Interested Transaction List (ITL) allocation. 1. Find an



本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1276730

相关文章
|
4月前
|
SQL Oracle 关系型数据库
DDL、DML和DCL的区别与理解
DDL、DML和DCL的区别与理解
88 1
DDL、DML和DCL的区别与理解
|
6月前
|
SQL 关系型数据库 数据库
day02:DML DQL DCL
day02:DML DQL DCL
50 0
|
6月前
|
SQL
dml
DML(增删改表中的数据) 1.添加数据 insert into 表名(列名1,列名2)values(数据1,数据2) 2.删除数据 delete from 表名 where 条件 delete from 表名--效率低,有多少条执行多少次 truncate table 表名--先删除表,在创建 3.修改数据 update 表名 set 列名1=值1 条件
37 0
|
2月前
|
SQL Oracle 关系型数据库
|
2月前
|
SQL 数据库 索引
|
5月前
|
SQL 数据库
DML
DML
17 0
|
8月前
|
SQL 数据可视化 数据库
|
SQL 消息中间件 存储
SQL、DML和DDL
SQL、DML和DDL
174 0
SQL、DML和DDL
|
SQL 关系型数据库 MySQL
DDL--DML
DDL--DML
123 0
|
SQL 数据库
SQL中的DML、DDL以及DCL是什么?
SQL中的DML、DDL以及DCL是什么? DML(data manipulation language)是数据操纵语言:它们是SELECT、UPDATE、INSERT、DELETE,就象它的名字一样,这4条命令是用来对数据库里的数据进行操作的语言。
2082 0