DB2 Configuration Pertemuan 2 Matakuliah: T0413 Tahun: 2009.

11

Transcript of DB2 Configuration Pertemuan 2 Matakuliah: T0413 Tahun: 2009.

DB2 ConfigurationPertemuan 2

Matakuliah : T0413Tahun : 2009

Bina Nusantara University 3

DB2 Configuration

Bina Nusantara University 4

• Review configuration file– get dbm cfg

• Update configuration file– update dbm cfg using <parameter> <value>– Eg: update dbm cfg using INTRA_PARALLEL YES

• Some parameters are dynamically changed, others need a db2stop/db2start

Database Manager Configuration file (dbm cfg)

Bina Nusantara University 5

Control Center > (expand) Instances folder > (right-click) Instance > Configure Parameters

DBM CFG from the Control Center

Bina Nusantara University 6

DB2 Configuration

Bina Nusantara University 7

• Review configuration file– get db cfg for <db alias>or– get db cfg (If already connected to a db)

• Update configuration file– update db cfg for <db alias> using <parameter>

<value>– Eg: update db cfg for sample using

CHNGPGS_THRESH 30

• Some parameters are dynamically changed, others need to “stop” and “start” a database

Database Configuration file (db cfg)

Bina Nusantara University 8

Control Center > (expand) All Databases folder > (right-click) Database > Configure Parameters

DB CFG – From the Control Center

Bina Nusantara University 9

DB2 Configuration

Bina Nusantara University 10

list all currently set variables

db2setdb2set –alldb2set –lrdb2set <parameter>=<value>

Eg: db2set db2comm=tcpip

A place to specify environment or platform specific settingse.g. settings for RAID, optimizer paths not yet fully integrated, communication protocols, environment specific performance enhancements

Settings can be applied to various levelsenvironment instance global (all instances)

list variables set for instance

list all available variables for platform

sets a variable

The DB2 Registry

Bina Nusantara University 11

• DB2COMM– Specifies the communication managers that are

started when the database manager is started.

• DB2_EXTSECURITY– On Windows, prevents unauthorized access to DB2

by locking DB2 system files

Example of DB2 Registry variables