< Previous | Next >

Creating a connection to the XMLDB database

The workbench provides wizards that make it easy for you to connect to both DB2 and non-DB2 databases and to display the status of your connections. The New Connection wizard creates a connection to a database that is displayed in the Database Explorer view. Using the view, you have the option to create a DB2 database connection. For the purposes of this tutorial you connect to the XMLDB database.

To create a connection to the XMLDB database:

  1. In the Database Explorer view, right-click and select New > Connection. The New Connection wizard opens.
  2. In the Database field, type XMLDB.
  3. Select the DB2 UDB database manager that matches the DB2 server that manages the XMLDB database. You must connect via a JCC driver 3.0 or greater.
  4. Specify the user ID and password that you want to connect with, and click Finish. The new connection is displayed in the Database Explorer.