16.10.2015 Views

Getting Started with DB2 Express-C

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

292 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>DB2</strong> <strong>Express</strong>-C<br />

2. If the script fails in any of the steps, try to figure out the problem by reviewing the<br />

error messages. A typical problem when running the script is that you may need to<br />

change the paths of the files as they may be located in different directories. You<br />

can always drop the database and start again issuing this command from the <strong>DB2</strong><br />

Command Window or Linux shell:<br />

db2 drop database mydb<br />

3. If you receive an error while trying to drop the database because of active<br />

connections, issue this command first:<br />

db2 force applications all<br />

4. After successfully running the script, use the <strong>DB2</strong> Control Center, or IBM Data<br />

Studio to verify that the items and clients tables are created and that they contain<br />

4 and 7 rows respectively.<br />

5. With the mydb database created and <strong>with</strong> the two tables loaded, you can now<br />

connect to it, and perform the queries shown in Listings 15.7 through 15.19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!