SQL Tuning


Book Description

A poorly performing database application not only costs users time, but also has an impact on other applications running on the same computer or the same network. SQL Tuning provides an essential next step for SQL developers and database administrators who want to extend their SQL tuning expertise and get the most from their database applications.There are two basic issues to focus on when tuning SQL: how to find and interpret the execution plan of an SQL statement and how to change SQL to get a specific alternate execution plan. SQL Tuning provides answers to these questions and addresses a third issue that's even more important: how to find the optimal execution plan for the query to use.Author Dan Tow outlines a timesaving method he's developed for finding the optimum execution plan--rapidly and systematically--regardless of the complexity of the SQL or the database platform being used. You'll learn how to understand and control SQL execution plans and how to diagram SQL queries to deduce the best execution plan for a query. Key chapters in the book include exercises to reinforce the concepts you've learned. SQL Tuning concludes by addressing special concerns and unique solutions to "unsolvable problems."Whether you are a programmer who develops SQL-based applications or a database administrator or other who troubleshoots poorly tuned applications, SQL Tuning will arm you with a reliable and deterministic method for tuning your SQL queries to gain optimal performance.




Effective Oracle by Design


Book Description

Tom Kyte of Oracle Magazine’s “Ask Tom” column has written the definitive guide to designing and building high-performance, scalable Oracle applications. The book covers schema design, SQL and PL/SQL, tables and indexes, and much more. From the exclusive publisher of Oracle Press books, this is a must-have resource for all Oracle developers and DBAs.




Expert One-on-One Oracle


Book Description

* A proven best-seller by the most recognized Oracle expert in the world. * The best Oracle book ever written. It defines what Oracle really is, and why it is so powerful. * Inspired by the thousands of questions Tom has answered on his http://asktom.oracle.com site. It tackles the problems that developers and DBAs struggle with every day. * Provides everything you need to know to program correctly with the database and exploit its feature-set effectively.




SQL Server Interview Questions and Answers


Book Description

As representatives from the IT community, all of us have had our own experiences of attending interviews - clearing or close to clearing and sometimes with tons of questions and doubts failing miserably. These stories are in the most pleasant or not so pleasant memories of our mind and we will assure you this book will kindle those memories for sure. We have taken tons of interviews and most of the interviews are not revolving around how deep technical and internals you know about the subject - but it revolves around how good you are with the basics.To clear an interview, one doesn't need to know inside-out of a subject, and subjects like "SQL Server" so vast that every single day we learn something new with this product, and even a complete lifetime will fly off if we keep doing this. Again, the various roles one can get into for products like SQL Server are from Database Developer, Database Modelers, Database Architect, Database Administrator and many more. Hence, this book is geared towards demystifying and a refresher for memories on the fundamentals which sometimes are the most important things to clear any type of interview for any role. Some of the concepts discussed are generic and are not tied to any specific version of SQL Server, but most of it the new features introduced with SQL Server have been included in this book.This book is not a shortcut or a sure to crack interview guide but this book gets you prepared in an organized manner. Let us also assure you this is neither a completely comprehensive guide but surely is a great starter nevertheless. Use this to guide you and be mentally prepared for the big day. When faced with this big day, we get overwhelmed and confused about where to start our preparation. And this book is just that secret recipe in your arsenal to get geared up. Sometimes these basics will help you narrow to a solution quickly when given a scenario.Now this book's flow is "Question & Answer" mode from start till the end to help you grasp the concepts faster and to the point. Once you get an understanding of concepts, then if we are twisted with the concept in a scenario it becomes easy to solve them. Most companies have a typical way to do interviews which are based on the scenario as per their environment and these are just combinations of the concepts to fit their need and SLA.Though each of these chapters is bucketed for convenience we highly recommend reading each of the sections nevertheless irrespective of the roles you might be doing as each of the sections have some interesting trivia's working with SQL Server. In the industry, the role of accidental DBA's especially with SQL Server is so common. Hence if you have performed the role of DBA for a short stink and want to brush-up your fundamentals then the respective sections will be a great skim.




Oracle SQL Performance Tuning and Optimization


Book Description

Written by a Senior Database Administrator who has worked with the Oracle RDBMS for thirty years, this is a book which teaches the skill of SQL Tuning for the Oracle Database. Not a list of one-off tricks or tips, nor a glossing over of topics; this book offers an in-depth process covering discovery, analysis, and problem resolution. Learn the science behind SQL Tuning. Learn and apply the FILTERED ROWS PERCENTAGE Cardinality based method of tuning Determine a query's Driving Table and Join Order Construct Query Diagrams, Data Models, and Join Trees Build and use Count / Filter / and Reconstruction Queries Identify Waste in a Query Execution Plan Zero in on Cardinality Divergence using Estimated vs. Actuals Use the ACCESS / FILTER / COVERAGE strategy to build indexes for Problem Queries Exploit THE 2% RULE in analyzing Access method and Join method Classify queries as Precision Style or Warehouse Style Understand Hash Join mechanics and make Hash Joins go faster Make HINTS work as Detection Tools rather than clubs Avoid early Database Design flaws Manage Statistics and deal with common Statistics problems (NDV, Uniform Distribution, Independence, Dynamic Sampling) (Staleness, Skew, Dependence, Defaulting, Out-Of-Bounds, Transiency, Bloat) Perfect your Question Based Analyis Technique and more Included are: a special chapter for EXADATA, a LAB which demonstrates the cardinality based process of SQL Tuning, and twenty three magical SQL scripts that make the process of SQL Tuning easy to do. Learn the skill of SQL Tuning as taught by an expert who does it for a living, and become the go-to specialist in your company. Chapter 1: DRIVING TABLE and JOIN ORDER Chapter 2: Ways to Use a Query Execution Plan Chapter 3: The Best Indexes for a Query Chapter 4: JOINS Chapter 5: HINTS Chapter 6: BASICS Chapter 7: ROW COUNTS and RUN TIMES Chapter 8: EXADATA LAB: Reverse Engineering the QEP Appendix: Know Your Scripts Scripts for analyzing queries and plans Scripts for examining an active database Scripts for looking at metadata showplan showplanshort showplanconstraints showplancountqueries showplandatamodel showplandrivingtable showplanfilterqueries showplanfrpspreadsheetcode showplanindexes showplannumrows showplanquerydiagram showplantables showplantablesunique loadplanfromcache loadplanfromhist showtopcpu showowner showindexes showconstraints showcolstats showhistograms showallscanrates showallworkareas It's all about the Cardinalities




Oracle PL/SQL for DBAs


Book Description

Focused squarely on the language topics of special concern to DBAs, this text contains a quick tour of the PL/SQL language, extensive coverage of security topics, and methods for DBAs to improve query and database performance with cursors and table functions.




Expert Oracle Database Architecture


Book Description

* Based on a proven best-seller and written by the most recognized Oracle expert in the world and f * Fully revised book, covering bothfor the 9i and 10g versions of the database * Based on what is widely-recognized as the best Oracle book ever written. It defines what Oracle really is, and why it is so powerful * Inspired by the thousands of questions Tom has answered on his http://asktom.oracle.com site. It defines what Oracle really is, and why it is so powerful It and it tackles the problems that developers and DBAs struggle with every day




Mastering Oracle PL/SQL


Book Description

If you have mastered the fundamentals of the PL/SQL language and are now looking for an in-depth, practical guide to solving real problems with PL/SQL stored procedures, then this is the book for you.




Oracle Database Performance Tuning Interview Questions, Answers and Explanations


Book Description

The Ultimate Reference & Learning Guide for Oracle Database Professionals! Over 150 Interview Questions, Answers, and Explanations It's clear that Oracle is the future for enterprise information systems data storage and retrieval - but finding the right reference materials can be difficult. For the first time, over 150 Oracle Database Performance Tuning Certification Questions are here to guide your learning. From helping you to assess your Oracle Performance Tuning skills to evaluating candidates for a job, Oracle Database Performance Tuning Interview Questions will help you understand very quickly what you really need to know, and what you can safely ignore. The book is organized around Oracle Database Performance Tuning basics such as root cause analysis, database design, hit ratios, average latencies, and wait times. Each question includes everything you need to know to master an Oracle Performance Tuning interview or properly evaluate a candidate. More than just a rehash of Oracle documentation and sales presentations, each question is based on project knowledge and experience gained on successful high-profile Oracle implementations. Key certification and interview topics include: . Root cause analysis . Analysis of response time statistics . Queue theory and the basics of database performance . Hit ratios, Average latency, and wait time improvements




Oracle High Performance Tuning for 9i and 10g


Book Description

Includes the three aspects of Oracle database tuning - data model tuning, SQL & PL/SQL code tuning, and physical as well as configuration tuning. This title contains guidance and real-world examples using large datasets. It emphasizes development as opposed to operating system perspective.