读书笔记 -- 《Oracle Core: Essential Internals for DBAs and Developers》 一

最近在看一本书,《Oracle Core: Essential Internals for DBAs and Developers》 ,真是好书。

里面知识点太多,要是看完一切记下,估计会遗漏一些。

 

那就边看边记。

 

事务回滚的时候,很多步骤要执行,所以比较消耗资源。要是用插入数据不提交来实现临时功能,就不合适了。

下面是原文,比翻译过来贴切一些。

Rolling back involves a lot of work, and a rollback can take roughly the same amount of time as the original transaction, possibly generating a similar amount of redo.
But you have to remember that rolling back is an activity that changes data blocks, so you have to reacquire, modify, and write those blocks, and write the redo that describes how you’ve changed those blocks. Moreover, if the transaction was a large, long- running transaction, you may find that some of the blocks you’ve changed have been written to disc and flushed from the cache —so th ey’ll have to be read from disc before you can roll them back! 

  Note  Some systems use Oracle tables to hold “temporary” or “scratchpad”
information. One of the strategies used with such tables is to insert data without
committing it so that read consistency makes it private to the session, and then roll back
to make the data “go away.” There are many flaws in this strategy, the potentially high
cost of rolling back being just one of them. The ability to eliminate the cost of rollback is
one of the things that makes global temporary tables useful.

Oracle Core: Essential Internals for DBAs and Developers Jonathan Lewis (Author) <<Book Details>> Paperback: 280 pages Publisher: Apress; 1 edition (November 23, 2011) Language: English ISBN-10: 1430239549 ISBN-13: 978-1430239543 <<Book Description>> Oracle Core: Essential Internals for DBAs and Developers by Jonathan Lewis provides just the essential information about Oracle Database internals that every database administrator needs for troubleshooting—no more, no less. Oracle Database seems complex on the surface. However, its extensive feature set is really built upon upon a core infrastructure resulting from sound architectural decisions made very early on that have stood the test of time. This core infrastructure manages transactions and the ability to commit and roll back changes, protects the integrity of the database, enables backup and recovery, and allows for scalability to thousands of users all accessing the same data. Most performance, backup, and recovery problems that database administrators face on a daily basis can easily be identified through understanding the essential core of Oracle Database architecture that Lewis describes in this book. * Provides proven content from a world-renowned performance and troubleshooting expert * Emphasizes the significance of internals knowledge to rapid identification of database performance problems * Covers the core essentials and does not waste your time with esoterica What you’ll learn * Oracle's core architectural foundations * How much overhead is reasonable * How to recognize when you're doing too much work * How to predict bottlenecks and why they will happen * How to minimise contention and locking * Why concurrency can slow things down significantly Who this book is for Oracle Core: Essential Internals for DBAs and Developers is aimed at database administrators ready to move beyond the beginning stage of doing work by rote towards the mastery stage, in which knowledge of what needs to be done comes not from a set of recipe-style instructions, but rather from the intimate knowledge and understanding of the system to be managed. Experienced database administrators will also find the book useful in solidifying their knowledge and filling in any missing pieces of the Oracle Database puzzle. Table of Contents 1. Getting Started... 2. Redo and Undo 3. Transactions and Consistency 4. Locks and Latches 5. Caches and Copies 6. Writing and Recovery 7. Parsing and Optimizing 8. RAC and Ruin <<Amazon link>> http://www.amazon.com/dp/product/1430239549
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值