1. Trang chủ
  2. » Công Nghệ Thông Tin

Oracle SQL Internals Handbook phần 1 ppt

20 379 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 20
Dung lượng 900,21 KB

Nội dung

[...]... operations to, or to store intermediate results into SQL heavily leverages predicates instead Our goal is writing a simple predicate expression parser in SQL Given an expression like this, (((a =1 or b =1) and (y=3 or z =1) ) and c =1 and x=5 or z=3 and y>7) the parser should output a tree like this OR AND AND OR a = 1 b = 1 OR y = 3 Parsing in SQL 1 z = 1 c = 1 x = 5 AND z = 3 y > 7 Recursive descent parser... xiv Oracle SQL Internals Handbook Parsing in Oracle SQL CHAPTER 1 Parsing in SQL SQL is a high abstraction level language used exclusively as an interface to Relational Databases Initially it lacked recursion, and, therefore, had a limited expression power, but eventually this construct has been added to the language Here we'll explore how convenient SQL is for general-purpose programming SQL programming... Table 17 6 Use a VIEW 17 6 Index 17 8 viii Oracle SQL Internals Handbook Conventions Used in this Book It is critical for any technical publication to follow rigorous standards and employ consistent punctuation conventions to make the text easy to read However, this is not an easy task Within Oracle there are many types of notation that can confuse a reader Some Oracle utilities... an expert Oracle DBA His focus for the past three years has been on performance, reliability, stability, and high availability of Oracle databases Prior to this, he spent four years designing and creating data warehouses in Oracle John can be reached at jweeg@hesaonline.com or http://www.hesaonline.com/ dba/dba_services.shtml xii Oracle SQL Internals Handbook Foreword The process of Oracle SQL tuning... embedding SQL in Java and PL /SQL, and matrix Foreword xiii transposition The text concludes with a discussion of advanced SQL topics such as keyword searches, using SQL with web databases, and calculated columns The tips and tricks in this handbook come from some of the World’s more renown Oracle experts and we hope we have provided you with the tools and knowledge to write and optimize your SQL code xiv Oracle. .. of Oracle' s Cost Based Optimizer, and how it is used to choose the optimal access path to data This book was created in order to meet that need Drawing from some of the World's most highly respected experts on Oracle SQL tuning, this text explorers issues deep inside Oracle' s Cost Based Optimizer, and provides insight into the successful optimization and tuning of SQL within your Oracle database SQL. .. integers Before Oracle 9i we had to take a real table, and add a pseudo column like this: select rownum from all_objects where all_objects is a “big enough” table In Oracle 9i we use table function instead: 2 Oracle SQL Internals Handbook CREATE TYPE IntSet AS TABLE OF Integer; / CREATE or replace FUNCTION UNSAFE RETURN IntSet PIPELINED IS i INTEGER; BEGIN i := 0; loop PIPE ROW(i); i:=i +1; end loop; select... uppercase x Oracle SQL Internals Handbook About the Authors Donald K Burleson is one of the world’s top Oracle Database experts with more than 20 years of full-time DBA experience He specializes in creating database architectures for very large online databases and he has worked with some of the world’s most powerful and complex systems A former Adjunct Professor, Don Burleson has written 15 books, published... which is SQL for Smarties (Morgan-Kaufmann Publishers, 19 99) He is the Vice President of RDBMS at North Face Learning in Salt Lake City Dave Ensor is a Product Developer with BMC Software where his mission is to produce software solutions that automate Oracle performance tuning He has been tuning Oracle for 13 years, and in total he has over 30 years active programming and design experience As an Oracle. .. cost-effective solutions to Oracle performance problems and for his ability to explain performance issues to technical audiences He is co-author of the O'Reilly & Associates books Oracle Design and Oracle8 Design Tips About the Authors xi Jonathan Lewis is a freelance consultant with more than 17 years experience in Oracle He specializes in physical database design and the strategic use of the Oracle database . Tests 14 8 Java: 14 9 PL /SQL: 14 9 Multiple Statements 14 9 Java: 14 9 PL /SQL: 15 0 Truncate 15 0 Java: 15 0 PL /SQL: 15 1 Benchmark Results 15 1 Single Statement Results 15 1 Multiple Statements. All Together 13 4 Some Results 13 9 Now What? 13 9 The Future 14 1 Conclusion 14 2 Caveat 14 2 References 14 2 Chapter 13 - Embedding SQL in Java & PL /SQL 14 3 Java vs. PL /SQL: Where. the SQL? by Dave Moore 14 3 The Power of a Package 14 4 The Flexibility of Java 14 6 Performance 14 7 vi Oracle SQL Internals Handbook Benchmarks 14 7 Environment 14 8 The Tests 14 8

Ngày đăng: 08/08/2014, 20:21

TỪ KHÓA LIÊN QUAN

w