DB2 Database Configuration
Step 1
Step 2
Step 3
Step 4
Step 2: Create the Sample DataSource Object
Point your browser to the WebSphere Application Server Administrative Console:
http://localhost:9090/admin
Update the Db2JdbcDriver, if necessary:
Expand
Resources > JDBC Drivers
and select
Db2JdbcDriver
Modify Server Class Path to the location of the JAR file containing the DB2 JDBC driver classes on your system:
On OS/2: Point to the
db2java.zip
file in the
DB2_ROOT\sqllib\jdbc20
directory.
On Windows: Point to the
db2java.zip
file in the
DB2_ROOT\sqllib\java
directory.
On UNIX: Point to the
db2java.zip
file in the
DB2_ROOT/sqllib/java12
directory.
Click
OK
Save your configuration
Create the Sample DataSource Object:
Expand
Resources > JDBC Drivers > Db2JdbcDriver
and select
Data Sources
Click
New
Use these values in the property sheet (the rest can be left blank):
Name:
DB2 Samples DataSource
JNDI Name:
jdbc/sample
Description:
Samples Gallery DB2 DataSource
Category:
Samples
Database Name:
SAMPLE
Default User ID:
wsdemo
Default Password:
wsdemo1
Click
OK
Save your configuration