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.

Appendix B – Up and running <strong>with</strong> DB2 229<br />

B.5 The DB2 environment<br />

Figure B.8 provides a quick overview of the DB2 environment.<br />

Figure B.8 - The DB2 Environment<br />

The figure illustrates a server where DB2 Express-C has been installed. The smaller boxes<br />

in light green (Environment Variables, Database Manager Configuration File, Database<br />

Configuration File, DB2 Profile Registry) are the different areas where a DB2 server can be<br />

configured, and they will be explained in more detail in the next section. The larger dark<br />

green box represents an instance which in this example has the name myinst.<br />

An instance is an environment where database objects can be created. On the same<br />

server, you can create several instances, each of which is treated independently. For<br />

example, you can use an instance for development, another one for test, and another one<br />

for production. Table B.1 shows some useful commands you can use at the instance level.<br />

Note that the commands shown in this section can also be performed from DB2 GUI Tools.<br />

Command<br />

db2start<br />

db2stop<br />

db2icrt <br />

db2idrop <br />

Description<br />

Starts the current instance<br />

Stops the current instance<br />

Creates a new instance<br />

Drops an instance

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

Saved successfully!

Ooh no, something went wrong!