Book Image

JDBC 4.0 and Oracle JDeveloper for J2EE Development

Book Image

JDBC 4.0 and Oracle JDeveloper for J2EE Development

Overview of this book

Table of Contents (20 chapters)
JDBC 4.0 and Oracle JDeveloper for J2EE Development
Credits
About the Author
About the Reviewer
Preface

Setting the Environment


The following preliminary setup is required before configuring a JDBC connection with the DB2 9 database from the WebSphere application server 6.1:

  1. 1. Download and install the DB2 9 database from http://www.ibm.com/developerworks/downloads/im/udb/?S_TACT=105AGX28&S_CMP=TRIALS.

  2. 2. Create a sample database, SAMPLE, in the DB2 9 database server.

  3. 3. Create an example table comprising a catalog of journal articles in the database. The SQL script to create the example table is listed below:

CREATE TABLE DB2ADMIN.Catalog(CatalogId VARCHAR(25) PRIMARY KEY NOT NULL, Journal VARCHAR(25), Section VARCHAR(25), Edition VARCHAR(25), Title VARCHAR(75), Author VARCHAR(25))
INSERT INTO DB2ADMIN.Catalog VALUES('catalog1', 'developerWorks', 'Java Technology', 'Nov 2004', 'Getting started with enumerated types', 'Brett McLaughlin');
INSERT INTO DB2ADMIN.Catalog VALUES('catalog2', 'developerWorks', 'XML', 'Apr 2005', 'Transform Eclipse navigation files to DITA navigation files', 'Loretta...