Java Programming with Oracle JDBC
JDBC is the key Java technology for relational database access. Oracle is arguably the most widely used relational database platform in the world. In this book, Donald Bales brings these two technologies together, and shows you how to leverage the full power of Oracle's implementation of JDBC. You begin by learning the all-important mysteries of establishing database connections. This can be one of the most frustrating areas for programmers new to JDBC, and Donald covers it well with detailed information and examples showing how to make database connections from applications, applets, Servlets, and even from Java programs running within the database itself. Next comes thorough coverage of JDBC's relational SQL features. You'll learn how to issue SQL statements and get results back from the database, how to read and write data from large, streaming data types such as BLOBs, CLOBs, and BFILEs, and you'll learn how to interface with Oracle's other built-in programming language, PL/SQL. If you're taking advantage of the Oracle's relatively new ability to create object tables and column objects based on user-defined datatypes, you'll be pleased with Don's thorough treatment of this subject. Don shows you how to use JPublisher and JDBC to work seamlessly with Oracle database objects from within Java programs. You'll also learn how to access nested tables and arrays using JDBC. Donald concludes the book with a discussion of transaction management, locking, concurrency, and performance--topics that every professional JDBC programmer must be familiar with. If you write Java programs to run against an Oracle database, this book is a must-have.
Author brings JDBC and Oracle together, and shows how to leverage the full power of Oracle's implementation of JDBC. If you write Java programs to run against an Oracle database, this book is a must-have. Softcover.
Reviewer: L. Johnson (Central Valley CA USA)
I'm prototyping an Oracle database application "engine" for use in a planning and estimation application (as in project management). The idea was to use Java and Oracle 8i's object-relational features, specifically to take advantage of performance improvements and generally to get the advantages of object oriented design. I had reached the point of implementing Oracle's CustomDatum interface when I got this book. I was initially disappointed when I opened the book and found it discussed on the last eleven pages of the section on Object-Relational SQL. But then I read the Introduction, the first chapter, and on and on....
It's immediately obvious Mr. Bales is familiar with actual process of developing real applications. He has presented this complex and complicated subject in a direct and pleasant manner for advanced programmers. Relatively new to Java but very familiar with Oracle, I found his organization of the material very helpful - and the sections on Relational SQL and Object-Relational SQL based on sound knowledge and experience. Mr. Bales includes a final Section on Essentials where he discusses transactions and locking, performance and trouble shooting - all very practical and extremely useful if you are developing serious applications. And yes, those last eleven pages were very helpful.
I have not found a book that addresses using Oracle JDBC in application development directly, and have found few books that address database application development very well - but this book does both. One small thing I thought was missing were guidelines for using weakly typed object SQL vice strongly typed - in other areas good advice was offered.
Before I bought this book, I used Oracle's documentation at otn.oracle.com. This required a file of bookmarks, several large block diagrams, lots of notes and much patience. It's much better to start with this book - and get a well-organized and coherent view along with practical advice and examples, before wading into Oracle's extensive documentation.