Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Oracle Database 11g : Underground Advice for Database Administrators

You're reading from  Oracle Database 11g : Underground Advice for Database Administrators

Product type Book
Published in Apr 2010
Publisher Packt
ISBN-13 9781849680004
Pages 348 pages
Edition 1st Edition
Languages
Author (1):
April Sims April Sims
Profile icon April Sims

Table of Contents (14) Chapters

Oracle Database 11g—Underground Advice for Database Administrators
Credits
About the author
About the reviewers
Preface
When to Step Away from the Keyboard Maintaining Oracle Standards Tracking the Bits and Bytes Achieving Maximum Uptime Data Guard and Flashback Extended RMAN Migrating to 11g: A Step-Ordered Approach 11g Tuning Tools Index

Bind peeking and Adaptive Cursor Sharing


This section requires some basic knowledge of tuning, as it pertains to bind peeking and Adaptive Cursor Sharing. Before the 10g Version of Oracle Database, there were performance issues related to bind peeking. The query optimizer takes a quick look (peek) at user-defined bind variables the first time they appear in a cursor. A bind variable is a substitution variable instead of a literal—in this example as A: instead of the literal 100. That peek may or may not be the best value to base the execution plan of a query on. The next time the optimizer encounters that same cursor, no more peeking takes place no matter the bind value, because the cursor is shared among all the queries for the same information.

Why wouldn't the first peek be the best one to use? It depends on the mathematical distribution of the data. For example, a table with three column values—1, 10, 100, contains 245 rows, 2 rows and 6 rows of each value respectively. There is a larger...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}