16.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

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

76 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

2.2.4 Reusing connections <strong>with</strong> connection profiles<br />

When you created a connection to an existing database in the previous section, you<br />

created a connection profile. Connection profiles store the details about how to connect to<br />

a database in a file so that other members of your group can share and re-use the same<br />

connections. Connection profiles also allow you to save the password and standardize the<br />

JDBC driver <strong>for</strong> each connection.<br />

Note:<br />

To learn more about exporting and importing connection profiles, see the following topic<br />

in the <strong>Data</strong> <strong>Studio</strong> In<strong>for</strong>mation Center:<br />

http://publib.boulder.ibm.com/infocenter/dstudio/v3r1/topic/com.ibm.datatools.connection<br />

.ui.doc/topics/cdbconn_impexp.html<br />

For a more advanced solution that gives database administrators an efficient way to<br />

share connections <strong>with</strong> others on the team, see the developerWorks article entitled<br />

Managing database connections using the <strong>Data</strong> <strong>Studio</strong> web console, which you can find<br />

here:<br />

http://publib.boulder.ibm.com/infocenter/dstudio/v3r1/topic/com.ibm.datatools.connection<br />

.ui.doc/topics/cdbconn_impexp.html<br />

2.2.5 Organizing databases <strong>with</strong> instances<br />

A <strong>DB2</strong> instance is a logical database manager environment where you catalog databases<br />

and set configuration parameters. When you install <strong>DB2</strong> on Windows, the installer creates<br />

a default instance called<strong>DB2</strong>. On Linux and UNIX, you select the name of the initial<br />

instance during installation. <strong>Data</strong> <strong>Studio</strong> has tools to help you manage instances, however,<br />

to create or drop instances, you will need to use another tool such as the <strong>DB2</strong> command<br />

line processor on Windows, or from a Linux/UNIX shell.<br />

2.2.6 Stopping and starting instances<br />

To view the instance associated <strong>with</strong> your current database, in the Administration Explorer,<br />

expand the tree under the machine node that your database server runs on as shown in<br />

Figure 2.9.<br />

Note:<br />

For instances that are automatically created by <strong>Data</strong> <strong>Studio</strong>, you might see the port<br />

number instead of the actual instance name. This is automatically updated once you<br />

connect to any database under that instance.<br />

To start or stop the instance, select the instance and right-click it. You will see the options<br />

to start or stop it, as shown in Figure 2.9. You can also per<strong>for</strong>m other operations at the

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

Saved successfully!

Ooh no, something went wrong!