16.10.2015 Views

Getting Started with Open Source Development

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

124 <strong>Getting</strong> started <strong>with</strong> open source development<br />

update dbm cfg using<br />

<br />

Updates the value of a dbm cfg parameter<br />

Table B.3 - Commands to manipulate the dbm cfg<br />

• Database Configuration File (db cfg) includes parameters that affect the particular<br />

database in question. Table B.4 shows some useful commands to manage the db cfg.<br />

Command<br />

get db cfg for <br />

update db cfg for <br />

using <br />

Description<br />

Retrieves information about the db cfg for<br />

a given database<br />

Updates the value of a db cfg parameter<br />

Table B.4 - Commands to manipulate the db cfg<br />

• DB2 Profile Registry variables includes parameters that may be platform specific<br />

and can be set globally (affecting all instances), or at the instance level (affecting one<br />

particular instance). Table B.5 shows some useful commands to manipulate the DB2<br />

profile registry.<br />

Command<br />

db2set -all<br />

db2set =<br />

Description<br />

Lists all the DB2 profile registry variables that<br />

are set<br />

Sets a given parameter <strong>with</strong> a value<br />

Table B.5 - Commands to manipulate the DB2 profile registry<br />

B.7 Connecting to a database<br />

If your database is local, that is, it resides on the same system where you are performing<br />

your database operation; the connection setup is performed automatically when the<br />

database is created. You can simply issue a connect to database_name statement to<br />

connect to the database.<br />

If your database is remote, the simplest method to set up database connectivity is by using<br />

the Configuration Assistant GUI tool following these steps:<br />

1. Start the Configuration Assistant from the system where you want to connect to the<br />

database. To start this tool, use the command db2ca from a Windows command<br />

prompt or Linux shell. Figure B.9 shows the Configuration Assistant.

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

Saved successfully!

Ooh no, something went wrong!