Professional Documents
Culture Documents
Raul F. Chong
IBM Toronto Laboratory
Agenda
DB2 Directories
Setup required at the server
Setup required at the client
Other methods to setup connectivity
2
IBM Software Group | DB2 Information Management Software
Agenda
DB2 Directories
Setup required at the server
Setup required at the client
Other methods to setup connectivity
3
IBM Software Group | DB2 Information Management Software
Directories
System database directory
list db directory
Node directory
list node directory
DCS directory
list dcs directory
4
IBM Software Group | DB2 Information Management Software
Agenda
DB2 Directories
Setup required at the server
Setup required at the client
Other methods to setup connectivity
5
IBM Software Group | DB2 Information Management Software
b) SVCENAME
Choose Configure Æ DBM configuration mydb1
Find “Communications” section.
Or
DB2COMM=TCPIP
b) SVCENAME
Right click on instance and choose “Configure parameters...”
Find “Communications” section.
6
IBM Software Group | DB2 Information Management Software
7
IBM Software Group | DB2 Information Management Software
Start > Programs > IBM DB2 > Set-up Tools > Configuration Assistant
8
IBM Software Group | DB2 Information Management Software
Configuration Assistant
Cataloged databases
9
IBM Software Group | DB2 Information Management Software
11
IBM Software Group | DB2 Information Management Software
Agenda
DB2 Directories
Setup required at the server
Setup required at the client
Other methods to setup connectivity
12
IBM Software Group | DB2 Information Management Software
13
IBM Software Group | DB2 Information Management Software
Instance “DB2”
Application db directory node directory
connect to mydb1
user myuser mydb1 mynode network
using mypsw
mydb1
Port = 50000
14
IBM Software Group | DB2 Information Management Software
OR
15
IBM Software Group | DB2 Information Management Software
Configuration Assistant > Selected menu > Add Database Using Wizard
16
IBM Software Group | DB2 Information Management Software
17
IBM Software Group | DB2 Information Management Software
Caution!
Everything might look correct; however, when you try to connect to the
database, you will receive a connection error!
Also ensure the user ID and password you provide to connect to the
remote database is correct
By default the authentication takes place on the DB2 server you are trying to
connect to, therefore, you must provide a user ID and password defined on
that server
18
IBM Software Group | DB2 Information Management Software
Agenda
DB2 Directories
Setup required at the server
Setup required at the client
Other methods to setup connectivity
19
IBM Software Group | DB2 Information Management Software
20
IBM Software Group | DB2 Information Management Software
DB2 Client
Discovery Message
DB2 Server
Search and locate DB2 servers on the
network
DAS Level
DISCOVER=SEARCH
DISCOVER_INST=DISABLE DISCOVER_INST=ENABLE
21
IBM Software Group | DB2 Information Management Software
22
IBM Software Group | DB2 Information Management Software
23
IBM Software Group | DB2 Information Management Software
Good references
DB2 Connectivity Cheat sheet series from developerWorks
(www7b.boulder.ibm.com/dmdd) by Raul F. Chong
24
IBM Software Group | DB2 Information Management Software
What’s Next?
25