16.10.2015 Views

Getting Started with WebSphere Application Server

Create successful ePaper yourself

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

226 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> Community Edition<br />

Figure B.5 - The DB2 Command Window<br />

You can easily identify you are working in the DB2 Command Window by looking at the<br />

window title which always includes the words DB2 CLP as highlighted in the figure. From<br />

the DB2 Command Window, all commands must be prefixed <strong>with</strong> db2. For example, in the<br />

above figure, two statements are issued:<br />

db2 connect to sample<br />

db2 select * from staff<br />

For Linux, the equivalent of the DB2 Command Window is simply the Linux shell (or<br />

terminal) where the DB2 environment has been set up by executing the db2profile file.<br />

This file is created by default and added to the .login file for the DB2 instance owner. By<br />

default the DB2 instance owner is db2inst1.<br />

B.4.2.2 DB2 Command Line Processor<br />

The DB2 Command Line Processor (CLP) is the same as the DB2 Command Window, <strong>with</strong><br />

one exception that the prompt is db2=> rather than an operating system prompt. To start<br />

the DB2 Command Line Processor on Windows, use Start -> Programs -> IBM DB2 -><br />

DB2COPY1 (Default) -> Command Line Tools -> Command Line Processor or alternatively<br />

from a DB2 Command Window or Linux shell type db2 and press Enter. The prompt will<br />

change to db2 as shown in Figure B.6.

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

Saved successfully!

Ooh no, something went wrong!