Oracle Core: Essential Internals for DBAs and Developers and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $7.30 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading Oracle Core: Essential Internals for DBAs and Developers on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Oracle Core: Essential Internals for DBAs and Developers [Paperback]

Jonathan Lewis
4.8 out of 5 stars  See all reviews (13 customer reviews)

List Price: $39.99
Price: $31.44 & FREE Shipping. Details
You Save: $8.55 (21%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $24.77  
Paperback $31.44  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

November 23, 2011 1430239549 978-1430239543 1

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

Frequently Bought Together

Oracle Core: Essential Internals for DBAs and Developers + Oracle Database 11g Release 2 Performance Tuning Tips & Techniques (Oracle Press)
Price for both: $71.35

Buy the selected items together


Editorial Reviews

About the Author

Jonathan Lewis has been working in the information technology industry for nearly 25 years, and has been using the Oracle relational database management system for more than 20. For the past 16 years, he has worked as a freelance consultant, often spending only one or two days at a time with any client to address critical performance problems. He also advises on design and implementation problems, and on how to make best use of the most appropriate Oracle features for a given project. Jonathan is also renowned throughout the world for his tutorials and seminars about the Oracle database engine and how to make best use of it. Having visited 42 countries at last count, his exceptional ability has earned him an O1 visa from the United States, allowing him to do consultancy and lecture work there. Jonathan has written two books about Oracle (Practical Oracle8i, Addison-Wesley, 2000; Cost-Based Oracle Fundamentals, Apress, 2005), and has contributed to two others (Oracle Insights, Apress, 2004; Oracle Database 10g New Features, Oracle Press, 2004). He also writes regularly for the UKOUG magazine, and occasionally for other publications around the world. In the limited amount of time he has leftover, Jonathan also publishes high-tech Oracle articles on his blog at jonathanlewis.wordpress.com.

Product Details

  • Paperback: 280 pages
  • Publisher: Apress; 1 edition (November 23, 2011)
  • Language: English
  • ISBN-10: 1430239549
  • ISBN-13: 978-1430239543
  • Product Dimensions: 7.5 x 0.6 x 9.2 inches
  • Shipping Weight: 1.1 pounds (View shipping rates and policies)
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (13 customer reviews)
  • Amazon Best Sellers Rank: #71,692 in Books (See Top 100 in Books)

Customer Reviews

4.8 out of 5 stars
(13)
4.8 out of 5 stars
3 star
0
2 star
0
1 star
0
Most Helpful Customer Reviews
20 of 24 people found the following review helpful
Format:Paperback|Amazon Verified Purchase
I pre-ordered a paperback copy of this book three months ago from Amazon and also purchased a PDF copy of the book from Apress. It was a long, nearly six year wait since the publication of the author's "Cost-Based Oracle Fundamentals" book, and I am fairly certain that many of those who read the "Cost-Based Oracle Fundamentals" book were looking forward to reading volume two in the anticipated three part series.

The author of this book is a well known Oracle Ace Director who has written at least three books since the year 2000 and contributed to a handful of other books. In addition to writing books, the author has also maintained a technical Oracle Database blog since 2006, and contributed to a number of Oracle focused Internet forums (Usenet, Oracle-L, AskTom, Oracle OTN) dating back to at least 1994. The book's primary technical reviewer is also a well known Oracle Ace Director and Oracle Certified Master who also maintains a technical Oracle Database blog and "living" Oracle reference site with deeply technical articles.

Did the book's contents meet the level of expectations provided by the book's cover and the publisher's description of the book? Shortly before the book arrived, I assumed that the book was targeted at people who might have struggled with the "Cost-Based Oracle Fundamentals" book. The back cover of this book states that the book targets readers with knowledge ranging from beginners to intermediate. I was surprised to find that chapter one lasted all of four pages, and that page seven introduced the reader to the first of many symbolic block dumps. It was at this point that the obvious becomes obvious - this book is intended to take the reader on a journey that is far deeper, more intense, and more densely packaged than pretty much any other Oracle Database book published in the last five or ten years. Reading the book twice might be required for full comprehension of the material, and a third read-through a year or two later might be a welcome reminder of how Oracle Database works under the covers to produce the pretty pictures painted by Enterprise Manager. In short, before reading this book, be certain to understand the Oracle Database concepts, and have a reasonable understanding of Oracle performance troubleshooting (read either the Performance Tuning Guide from the Oracle documentation library or the book "Troubleshooting Oracle Performance").

This book fills a key void in the Performance Tuning Guide from the Oracle documentation library: what is the next step when the Oracle wait interface fails to identify the source of a particular performance problem? There is no recipe for that solution; the solution is to understand what triggers Oracle Database to behave as it does. This book pieces together the under-the-hood understanding through the detailed inter-mixing of many Oracle statistics, performance views, X$ structures, latches, parameters, wait events, and Oracle error messages.

While there are a handful of problems/errors in the book, the vast majority of those problems are simple word substitutions or keystroke errors (for example, putting in an extra underscore or removing an underscore from an Oracle keyword on one page, while correctly specifying the keyword elsewhere in the book) that are fairly easy to identify and work around. The author devoted a section of his blog to quickly address potential errors found in the book, and to expand the book's contents as additional information becomes available.

In short, if you need to drill into Oracle Database performance problems beyond what is provided by the Oracle wait interface, this is the key book that glues together the bits and pieces of information that Oracle Database exposes (and selectively hides).

Comments on the Book's Contents:
* The test scripts used in the book show evidence that those scripts were often run on different Oracle Database versions, and the differences found in the output from those versions are often described in the scripts.
* While mostly avoiding Oracle features that require additional cost licenses, features that require an extra cost license, such as partitioning, state that an extra cost license is required.
* Description of symbolic block dump: starting byte position (follows @ sign), lock byte (lb:). (page 7)
* Description of change vector dump: operation code (KDO Op code), update row piece (URP), block address being updated (bdba:), segment header block (hdba:), interested transaction list (itli:), table number (tabn:), row number in the block (slot:), number of columns in the table (ncol:), number of columns updated (nnew:), increase in the row length (size:). (page 8)
* Description of ACID (pages 11-13)
* Due to an optimization (private redo and in-memory undo) in 10g, a session only needs to obtain the public redo allocation latch once per transaction, rather than once per change. (page 15)
* Points out an error in the Oracle Documentation, and in some books about LGWR writing a commit record to the online redo log. (page 28)
* Plenty of forward and backward references in the book.
* Undo block dump: transaction ID (xid:), block renewed incarnation number (seq:) (pages 32-33)
* A single undo block may contain undo records from multiple transactions, but only from a single active transaction. (page 34)
* Data block dump: interested transaction list index (Itl), transaction ID of a transaction that modified the block in the format of undo segment.undo slot.undo sequence number (Xid), undo record address in the format of absolute block address.block sequence number.record in the block (Uba), bit flag indicating state of the transaction (Flag), rows locked by the transaction (Lck), commit SCN or space available if the transaction committed (Scn/Fsc), cleanout SCN (csc:), last change SCN (scn:), number of times the block has changed at the SCN (seq:), row locked by transaction number (lb:) (page 37-38)
* For an index, the initrans parameter only applies to leaf blocks. (page 38)
* Helpful scripts (snap_9_buffer, snap_9_kcbsw, snap_11_kcbsw, snap_myst, snap_rollstat, snap_stat) in chapter 3's script library that create packages used for calculating the delta values of various statistics from Oracle's various performance views. The scripts often describe previously achieved results from Oracle Database versions ranging from 8.1.7.4 through 11.2.0.2. The script libraries for chapters 2, 6, and 7 include packages for monitoring the delta values of statistics from additional performance views.
* Parallel query execution, serial direct path read scans, and accesses to read-only tablespaces can result in repeated delayed block cleanout related work. In the cases of parallel query execution and serial direct path read scans, the cleaned out version of the block is not copied from the PGA to the SGA as a "dirty" block. (page 50)
* The spin and sleep approach to acquiring latches changed in recent Oracle Database releases. Rather than sleeping progressively longer times after each spin when attempting to acquire a latch, the process simply goes to sleep and waits for the process holding the latch to notify the process at the top of the list that is waiting for the latch. (page 72)
* Decoding TX lock ID1 and ID2 values into undo segment, slot, and wrap number. (page 77)
* The book tries to be specific regarding changes made in Oracle database versions, such as the change in 9.2.0.5 when the SESSION_CACHED_CURSORS parameter started controlling the number of PL/SQL cursors that were automatically held open, rather than the OPEN_CURSORS parameter. (page 89)
* The book states: "There is one particularly interesting difference between latches and mutexes: latches are held by processes, while mutexes are held by sessions..." (page 91)
* Default block sizes other than powers of 2 (12KB, 5KB, 4.5KB, etc.) are possible, but may be viewed as unsupported by Oracle support. The book makes a good case for using (only) 8KB block sizes, providing an exception for a 4KB block size as a secondary choice on some Linux platforms. (page 98)
* The book frequently addresses topics that are incorrectly described in other resources. For example, referencing the touch count of blocks to determine which block is the source of latch contention. (page 104)
* Recently discovered potential ACID durability problem described in detail. (page 129)
* Describes problems related to measuring LGWR performance through examination of LOG FILE SYNC wait event durations. (page 134)
* One of the threats of newer hard drives with larger sector sizes (4 KB rather than 512 bytes) is that redo wastage will increase. (page 136)
* The book mentions setting event 10120 to trigger relative file numbers to differ from absolute file numbers when new datafiles are created. Some information on the Internet incorrectly describes this event number as disabling index fast full scans. An interesting side-effect of experimenting with this event is that the database can contain multiple datafiles with the same relative file number (in different tablespaces), even when there are few datafiles in the database. (page 143)
* Oracle checkpoints described: Instance recovery checkpoint, Media recovery checkpoint, Thread checkpoint, Interval checkpoint, Tablespace checkpoint, PQ tablespace checkpoint, Close database checkpoint, Incremental checkpoint, Local database checkpoint, Global database checkpoint, Object reuse checkpoint, Object checkpoint, RBR checkpoint, Multiple object checkpoint (pages 148-149)
* Serial direct path read in 11.1 and later will perform a PQ tablespace checkpoint before the direct path read begins. Read more ›
Was this review helpful to you?
9 of 12 people found the following review helpful
5.0 out of 5 stars The best book on Oracle in 10 years February 20, 2012
Format:Paperback|Amazon Verified Purchase
Certainly the best book on Oracle internals since Steve Adams book (Steve has unfortunately left the field). I remember a friend with a PhD in math and a chess master who felt intimidated by Jonathan's "Cost-Based Oracle". What makes is work more impressive is that it it based on personal investigation - dumps and testing. It is unfortunate that Oracle Corporation, in it's pursuit of galactic domination, has closed many doors to information and has threatened writers with "attempting to reverse engineer their product". Fewer and fewer technical papers come out of Oracle every year. The RDBMS, application software, training, consulting... May I use the word "monopoly"? I want to create BI software/hardware that uses Oracle. Do you seriously think Oracle wants to help me? Bill Gates is trying to eradicate childhood diseases, Larry Ellison is trying to eliminate anyone not generating income for him. If I weren't so lazy (one of Larry Wall's virtues of a programmer), I'd switch to SQL Server or dive into the noSQL fray. Pardon the flame there. It's a very good book .
Comment | 
Was this review helpful to you?
11 of 15 people found the following review helpful
5.0 out of 5 stars The Oracle internals resource for the next 10 years December 22, 2011
Format:Paperback
As the technical reviewer of this book I can say that this book is the best Oracle internals book out there! It will probably become THE technical source for Oracle internals information for the next 10 years, just like Steve Adams'es Oracle Internal Services book was in the previous decade. This is not a "tips and tricks" book where you'd just learn to apply a "best practice" fix X for symptom Y and hope that the problem goes away (often it doesn't as "Y" wasn't the root cause after all).

This book is for the people who want to take their Oracle internals knowledge to the next level, so that they could understand and find the root causes of problems themselves the next time some unexpected problems show up. Even if the problem is an unfamiliar, completely new one, with solid fundamentals and internals knowledge, you'll be much better equipped to diagnose and fix it for good.

Finally I'd like to say that Jonathan has a very good style of explaining complex topics in a simple and relevant way - in addition to the deep technical details, you'll also find out why some of the internal mechanics in Oracle work as they do, what's their benefit and what are the possible side-effects.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Oracle Core Review
I completed reading JL's Oracle Core Essential Internals for DBAs and Developers. I knew what I was in for because I also read his first book on the Oracle Optimizer. Read more
Published 10 days ago by George Loewenthal
5.0 out of 5 stars Essential reading for every DBA from novice to expert
Jonathan is the master of undertanding Oracle. He strips the core of the Oracle transaction architecture down to its essentials in a very clear manner.
Published 29 days ago by Dennis W. Willaims
5.0 out of 5 stars a must read for Oracle related
It proved again Jonathan Lewis is worth the O1 VISA to the US. I'm very surprised that it can go so deep without the source code. It's really amazing.
Published 1 month ago by Hongyuan Han
5.0 out of 5 stars Wow - Great book, great author
It is a great book on oracle internals with an exceptionaly easy and understandable approach. Even not that good of a DBA like me can actually understand and get a glimpse into the... Read more
Published 2 months ago by Ludmil Johnev
5.0 out of 5 stars Simply perfect
Every Oracle expert knows Jonathan Lewis and all his work about internals.
His books, like "Practical Oracle 8i" and "Cost-Based Oracle Fundamentals", and the so many... Read more
Published 8 months ago by Corrado Piola
5.0 out of 5 stars great for juniors too
I agree with all the positive reviews present here on Amazon as of today.

I would elaborate on the "experience level" that is allegedly required to read this book: this... Read more
Published 10 months ago by Alberto Dell'era
4.0 out of 5 stars Excellent walk through for Oracle internals
Jonathan has written an excellent and concise text on database internals for Oracle 11g.
My favorite part is the quick tips on how to understand the nuts and bolts of the... Read more
Published 14 months ago by Benjamin S. Prusinski
5.0 out of 5 stars The Oracle magic explained
Another outstanding book from Jonathan Lewis. The book is a textbook on Oracle Internals for Oracle practioners. Read more
Published 17 months ago by Thanh Tran
5.0 out of 5 stars Deep internals and most complete till date book
The book contents is deep, the details is complete although I must say it is not easy read but I understand that it is not easy to explain these sort of things in plain... Read more
Published 17 months ago by li-shan cheng
5.0 out of 5 stars Ground breaking book
This book contains all the information about the Oracle internal mechanisms that I always wanted to know and some more. It's not an easy book to read. Read more
Published 17 months ago by Mladen Gogala
Search Customer Reviews
Only search this product's reviews


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Listmania!

Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category