oracle查询buffer cache中undo大小
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了oracle查询buffer cache中undo大小,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1877字,纯文字阅读大概需要3分钟。
内容图文
1.Does undo buffer exists or changes will directly write to undo datafiles?
Undo blocks are database blocks, so they will sit in the buffer cache like others, eg
虽然无法控制undo buffer大小,但是可以查询到其大小,如下
SQL> select count(*) 2 from v$bh 3 where file# in ( 4 select file# 5 from v$datafile 6 where name like '%UNDO%' ); COUNT(*) ---------- 5473
2.Does redo contains both undo & redo related changes?
Yes. Any change to any block (undo or otherwise) is protected by redo (unless explicitly instructed not to)
3.If db crashes with uncommitted data in undo buffer it will get cleared automatically ,then we are able rollback database with redo ?
During instance restart, we do instance recovery. We use the redo logs to resurrect all the changes to database blocks, which *includes* undo blocks. Those undo blocks can then be used to undo any uncommitted transactions (ie, uncommitted at the time of the crash)
in memory undo is a change in the way we manage undo for some transactions. We usually put undo in a block as you generate it - with in memory undo (IMU) we put the undo into a data structure instead - this data structure is easier/faster to process by queries that need the undo for read consistency purposes or rolling back.
设计IMU控制的参数有:
_in_memory_undo Default is TRUE and enabled. To disable it change parameter to FALSE.
_imu_pools Default is 3 on some system. This sets the number of IMU pools. It is not related to memory allocation for IMU.
_recursuve_imu_transactions This enables Oracle’s own SQL to use IMU. Default is FALSE.
_db_writer_flush_imu Allows Oracle the freedom to artificially age a transaction for increased automatic cache management.
可以直接通过下列查询到IMU大小:
SQL> select * from v$sgastat where name like 'KTI-UNDO';
POOL NAME BYTES
------------ -------------------------- ----------
shared pool KTI-UNDO 8522272
内容总结
以上是互联网集市为您收集整理的oracle查询buffer cache中undo大小全部内容,希望文章能够帮你解决oracle查询buffer cache中undo大小所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。