16.10.2015 Views

Getting Startedwith pureQuery

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

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

Appendix C – Up and Running with DB2 Express-C 343<br />

get dbm cfg<br />

update dbm cfg using<br />

<br />

Retrieves information about the dbm cfg<br />

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

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

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

particular database in question. Table C.4 shows some useful commands to<br />

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 C.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<br />

one particular instance). Table C.5 shows some useful commands to manipulate<br />

the DB2 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 with a value<br />

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

C.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:

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

Saved successfully!

Ooh no, something went wrong!