SKIP THE SHIPPING
Use code NOSHIP during checkout to save 40% on eligible eBooks, now through January 5. Shop now.
Register your product to gain access to bonus material or receive a coupon.
IBM DB2 UDB Express Edition Version 8.2 delivers everything small to medium-sized businesses need to accelerate time-to-value and dramatically reduce TCO in their database applications. Now, IBM's own experts show exactly how to get started with DB2 Express, and use it to develop, deploy, and manage superior applications from start to finish.
Like DB2 Express itself, this book cuts out the complexity--helping you achieve the full business benefits of today's most advanced database platform simply and quickly. You'll find step-by-step guidance and expert tips for every facet of DB2 Express development and administration, including: application design; development with both Visual Basic .NET and Java; security; deployment; performance tuning; day-to-day administration; and more.
IBM's own DB2 specialists demonstrate how to use DB2 Express' graphical tools to manage DB2 more easily than any other full-function relational database. Along the way, they help you make the most of DB2 Express' powerful "autonomic" features for self-administration, self-tuning, and self-healing to drive down costs throughout the entire application lifecycle.
This book will help you:
Whether you're a developer, administrator, IT manager, or end-user, this definitive single-source guide will help you achieve results fast... and maximize DB2 Express' business value, every step of the way.
Dedication and Acknowledgments.
Foreword.
DB2 Express Book Web Site.
1. Introduction.
About This Book.
Who Should Read This Book.
What Is DB2 Express?
What’s Cool about DB2 Express v8.2.
Learning Objectives.
Book Conventions.
Book Web Site 7
2. Getting Started.
Introduction.
Installing DB2 Express.
First Steps.
DB2 Graphical Tools.
Creating a Database.
DB2 Command Editor.
DB2 Information Center.
Supplemental: Installing DB2 Clients from a Server CD.
Summary.
3. The L8NITE Database Application.
Introduction.
Late Night Convenience Store Requirements
The Data Model.
The Point-of-Sale Application Interface.
Summary.
4. Database Objects.
Introduction.
Schemas.
Data Types.
Tables.
Retrieving Data from the Database.
Table Relationships.
Views.
Indexes.
Supplemental.
Altering the Definition of a Table.
Summary.
Chapter Exercises.
5. Visual Basic .NET Application Development.
Introduction.
What Are .NET and ADO.NET?
.NET Support in DB2.
A Tour of DB2 Tools in Visual Studio .NET 2003.
Getting Started with the L8NITE Application.
Adding the DB2 .NET Data Provider Reference.
Establishing a Database Connection.
Executing Queries.
Displaying Data in the User Interface.
Making Changes to Data in the Database.
Learning More about DataSet, DataTable, and DataRow.
Controlling a Transaction.
Catching Errors with Exception Handlers.
Troubleshooting Using DB2 CLI Tracing.
Summary.
Exercises.
6. Java Application Development.
Introduction.
Why Java?
JDBC in DB2.
Designing a Java Application.
Building the Application Using JDBC.
Retrieving Data Using SQLJ.
Online Resources.
Summary.
Exercises.
7. Maximizing Concurrency.
Introduction.
Transactions.
DB2’s Concurrency Model.
Transaction Design.
Improving the User Experience.
Summary.
Exercises.
8. Working with Functions, Stored Procedures, and Triggers.
Introduction.
The DB2 Development Center.
User-Defined Functions.
Stored Procedures.
Triggers.
Supplemental: Creating UDFs, Stored Procedures, and Triggers Using VS.NET.
Summary.
Exercises.
9. Working with Data.
Introduction.
The LOAD and IMPORT Utilities.
Generating Sample Data.
Generating Large Data Sets Using LOAD FROM CURSOR.
Exporting Data.
Importing DB2 Data into Spreadsheets.
Creating Reports Using Microsoft Excel.
Summary.
Exercises.
10. Performance Tuning.
Introduction.
Performance Tuning.
Optimizing Configuration Using the Configuration Advisor.
Analyzing SQL Using Visual Explain.
Optimizing SQL Performance with the Design Advisor.
Summary.
Chapter Exercises.
11. Implementing Security.
Introduction.
Database Users.
Defining the SYSADM Authority.
Application Users.
Authentication and Authorization.
Group Privileges.
The PUBLIC Group.
Authentication Modes.
Data Encryption.
Data Communications Encryption.
Summary.
12. Deploying to Production.
Introduction.
Extracting DDL from the Database.
Scripting.
Important Deployment Considerations.
Supplemental: Implementing Silent DB2 Installation.
Summary.
13. Automating Maintenance in Production.
Introduction.
Database Operational View.
Backups.
Disaster Recovery.
Database Log Management.
Table Reorganization.
Statistics.
Notification and Contact List.
Automating and Scheduling Maintenance.
Health of the Database.
Storage Management.
Supplemental: High Availability and Disaster Recovery.
Summary.
Exercises.
14. Troubleshooting Tools.
Introduction.
Interpreting Error Codes.
DB2 Defects and Applying FixPaks.
The DB2 Administration Server.
DB2 Journal.
Activity Monitor.
Diagnosing Locks.
Event Monitors.
Other Sources of Help.
Summary.
Appendix A. Development Center.
Introduction.
Installing the DB2 Development Center.
Using the Development Center for the First Time.
Development Center Views.
Customizing the Development Center.
Running Procedures.
Debugging Stored Procedures.
Working with Projects.
Summary.
Index.