oracle internal收集

以下来源于网络:
1.truncate table
Truncating a table just releases the blocks back into free space. We don't overwrite them or anything - they'll remain with whatever data was on them until that space is reused.
truncate一个表仅仅是释放了块到空闲空间。oracle数据库并没有覆盖这些块或者其他任何东西。这些块还是依然保留着,直到这些空间被重用。
2.transaction
there is transaction information in the block header (an ITL - interested transaction list). This list shows what transactions have which rows locked on the block. We use this information to go to the undo segment header to determine if that transaction is still active or not (has it committed or not). If it is committed - we might "clean that block out" - removing that transaction information so that the next person hitting that block doesn't have to go through that process. If it is not committed - we enqueue (wait) on that session if we need that row locked ourselves. That is 'v$transaction'.
在块头上存在了一个事物信息表(ITL).这个表显示了在这个块上哪个行被事物锁住.利用这些信息去查找undo段头来决定是否这些事物是active的或者inactive状态(就是事物是否commit).如果事物已经commited。oracle就会清除块操作。删除这些事物信息以便于下一个人可以直接hit这个块而不用再进行去查找undo段操作.如果这个查找到这个事物没有commit,如果需要这个行锁则这个session就会wait

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30291162/viewspace-1723970/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30291162/viewspace-1723970/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值