By Steven Feuerstein
Second Edition
October 2007
Pages: 292
ISBN 10: 0-596-51410-7 |
ISBN 13: 9780596514105
![]()
![]()
![]()
![]()
(Average of 1 Customer Reviews)
Oracle PL/SQL Best Practices summarizes PL/SQL best practices in nine major categories: overall PL/SQL application development; programming standards; program testing, tracing, and debugging; variables and data structures; control logic; error handling; the use of SQL in PL/SQL; building procedures, functions, packages, and triggers; and overall program performance.
Full Description
This book offers practical answers to some of the hardest questions faced by PL/SQL developers, including:
- What is the best way to write the SQL logic in my application code?
- How should I write my packages so they can be leveraged by my entire team of developers?
- How can I make sure that all my team's programs handle and record errors consistently?
This book is a concise and entertaining guide that PL/SQL developers will turn to again and again as they seek out ways to write higher quality code and more successful applications.
"This book presents ideas that make the difference between a successful project and one that never gets off the ground. It goes beyond just listing a set of rules, and provides realistic scenarios that help the reader understand where the rules come from. This book should be required reading for any team of Oracle database professionals."
--Dwayne King, President, KRIDAN Consulting
Cover | Table of Contents | Colophon
Featured customer reviews
Excellent..., December 07 2007
Oracle PL/SQL Best Practices
Steven Feuerstein
O’Reilly – 2nd Edition
http://www.oreilly.com/catalog/9780596514105/index.html
This is a great reference for PL/SQL Programmers. The book covers most aspects of PL/SQL code from start to finish. The style used is somewhat narrative and even entertaining. The author lists several pitfalls in each chapter. The “pitfall story” talks about why programmers might write sub-optimal code in the first place, how to recognize the problem, what is the root cause of the problem, and how to fix the problem. Each example lists code with the issue in place and then the “patched” code after the best-practice has been implemented. Most of the example center around a database at the fictional company used to tell the stories, but the examples are forms of common issue found in most any Oracle database.
The reference does not teach the SQL language itself outside the context of PL/SQL programming. It does cover how to write better SQL in some cases and gives advice on encapsulation of SQL, packaging SQL, and auto-generating SQL. Also, best practices for how to use SQL are covered.
By following the guidelines, PL/SQL code would be easier to maintain and debug, especially for someone who did not write the code or for the developer who has not looked at the code in a while. Also, the “best practice” code had better security feature although the author does not cover security extensively. Some of the examples of “in-application” SQL would be vulnerable to SQL injection attacks and the recommendation by the author to encapsulate the SQL into procedures or packages mitigates this risk. The best-practice code runs more efficiently in most cases as well.
Chapters generally cover:
Overall best programming practices
Standards
Testing
Variables
Loops and Branches
Error Handling
Encapsulation of SQL
Functions and Procedures
Performance
This is an excellent reference for those who program PL/SQL.
Media reviews
"Steven Feuerstein's Oracle PL/SQL Best Practices, 2nd Edition provides the author's years of programming, teaching and writing experiences in a set of 'best practices' for developing applications...[it] is covered...in chapters which are quick and easy to consult."
-- James Cox, The Bookwatch







