DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. ·...

169
IBM DB2 Connect 9.7 DB2 Connect Server SA30-3966-00

Transcript of DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. ·...

Page 1: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

IBM DB2 Connect 9.7

DB2 Connect Server �� � ��

SA30-3966-00

���

Page 2: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®
Page 3: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

IBM DB2 Connect 9.7

DB2 Connect Server �� � ��

SA30-3966-00

���

Page 4: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�!

� ��� � ��� ���� ��� ���� ��, 151 ���� �� B ������� �� ��� �����.

��� ����

� ���� IBM�� ��� � ��� ���. �� ���� ��� �� ��� ��� ���� ��� ����. � �

� ���� �� ��� ���� ���, � ����� ��� ��� � � �� �� ��� � ����.

����� IBM ��� ����� �� IBM ���� �� ��� ��� � ���.

v ����� ��� ����� IBM Publications Center(www.ibm.com/shop/publications/order)� ������.

v �� IBM ���� ���� IBM Directory of Worldwide Contacts(www.ibm.com/planetwide)� ������.

�� �� ���� DB2 Marketing and Sales�� DB2 ��� ����� 1-800-IBM-4YOU(426-4968)� ������.

IBM� ��� IBM�� �� ��� ��� ��� ���� �� �� ��� ����� ��� ���� ����� ���

� ���.

© Copyright International Business Machines Corporation 1993, 2009.

Page 5: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

��

� 1 � � �� �� �� . . . . . . . 1

� 2 � DB2 Connect �� . . . . . . 3

� 1 � DB2 Connect �� �� . . . . . . . 5

DB2 Connect �� . . . . . . . . . . . . 5

DB2 Connect� IBM i ���� ��. . . . 5

� 2 � DB2 Connect� ���� ���� . . . 7

��� ������� DB2 ���� ��� . . . 7

Java� ���� ��� DB2 ��� ���� ��

� . . . . . . . . . . . . . . . . . . 7

DB2 Connect� ���� IBM ���� DB2 �

��� ��� . . . . . . . . . . . . . 10

�� �� ���� ���� ������� ��

��(Linux Windows) . . . . . . . . 16

Administration Server� �� . . . . . . . . 17

DB2 �� ��� �� ��� ���� ��

���� ��(Linux Windows�� �� �) . 17

������ ����� �� �� IBM Data

Server Client �� . . . . . . . . . . . . 19

� 3 � DB2 Connect �� . . . . . . 21

� 3 � DB2 Connect� �� ��� ����� 23

DB2 Connect� ���� ���� . . . . . 24

DB2 Connect ��� �� ���� ���. . . 25

DB2 Connect �� ����. . . . . . . . 27

DB2 Connect ��� �� ���� ���. . . 29

� 4 � �� � ��� . . . . . . . . 31

� 4 � DB2 ��� �� Java ����� �� 33

� 5 � �� ����(Linux � UNIX) . . . . 37

�� ���� ��(HP-UX). . . . . . . . . 37

� �� �� �� ����(HP-UX) . . . . . 37

�� ���� ��(Linux) . . . . . . . . . 38

�� ���� ��(Solaris � ��) . . . . . 39

� 5 � ��� �� � �� . . . . . . 41

� 6 � DB2 Connect �� ��: �� � �� �

� . . . . . . . . . . . . . . . . . 43

� 7 � ��� � ��� ���� . . . . . . 45

� 8 � DB2 Connect �� �� ��(AIX). . . 47

DB2 Connect �� ��� � ����(AIX) . . 49

CD �� DVD �(AIX) . . . . . . . . 52

� 9 � DB2 Connect �� �� ��(HP-UX) 55

DB2 Connect �� ��� � ����(HP-UX) 57

CD �� DVD �(HP-UX) . . . . . . . 58

� 10 � DB2 Connect �� �� ��(Linux) 59

DB2 Connect �� ��� � ����(Linux) 61

Linux on zSeries� DB2 � �� . . . . . . 62

CD �� DVD �(Linux) . . . . . . . . 63

� 11 � DB2 Connect �� �� ��(Solaris �

� ��) . . . . . . . . . . . . . . . 65

DB2 Connect ��� � ����(Solaris) . . . 67

CD �� DVD �(Solaris � ��) . . . . 68

� 12 � DB2 Connect �� �� ��(Windows) 71

DB2 Connect �� ��� � ����

(Windows) . . . . . . . . . . . . . . 72

DB2 �� �� �� �� � ��� ���

(Windows) . . . . . . . . . . . . . . 73

LDAP ��� ���� �� ��� � �

(Windows) . . . . . . . . . . . . . . 77

DB2 Connect� ���� �(Windows) . . . . 77

��� ID� DB2ADMNS DB2USERS ���

��� ��(Windows) . . . . . . . . . . 78

� 13 � ��� �� ��(Linux � UNIX). . . 81

� �� �� � � ���. . . . . . 81

�� �� �� . . . . . . . . . . . . 82

DB2 ��� �� ���� � . . . . . . 85

db2rfe� ���� �� ��� � �� �

�� . . . . . . . . . . . . . . . . . 87

�� �� FixPack �� . . . . . . . . 88

db2_deinstall� ���� �� DB2 �� ��

(Linux UNIX) . . . . . . . . . . . . 89

© Copyright IBM Corp. 1993, 2009 iii

Page 6: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 6 � �� � ��� . . . . . . . . 91

� 14 � ���� � ��� . . . . . . . . 93

DB2 ���� �� . . . . . . . . . . . 93

���� �� �� . . . . . . . . . . . . 96

���� ��� ��� DB2 �� �� � �

��� � . . . . . . . . . . . . 96

���� ��� ���� DB2 ���� ��

� . . . . . . . . . . . . . . . . 96

db2licm �� . . . . . . . . . . . . 97

db2licm � ��� DB2 �� �� � �

��� � . . . . . . . . . . . . 97

db2licm � ���� DB2 ���� ��

� . . . . . . . . . . . . . . . . 97

� 15 � FixPack � . . . . . . . . . . 99

� 16 � ��� � ����� ���� ��

DB2 Connect �� �� ���� . . . . . . 103

� 7 � ��� � iSeries ������

� �� �� � ��� �� . . . . . 105

� 17 � DB2 Connect�� � �� IBM

i DB2 �� . . . . . . . . . . . . . 107

� 18 � DB2 Connect�� � �� z/OS

DB2 �� . . . . . . . . . . . . . . 109

��� ������ . . . . . . . . . . . 109

z/OS� DB2� �� TCP/IP �� . . . . . . 110

z/OS� DB2 �� . . . . . . . . . . . 112

� 19 � DB2 Connect�� � �� VSE &

VM DB2 �� . . . . . . . . . . . . 115

� 20 � ����� � ����� �� � �

� . . . . . . . . . . . . . . . . . 117

CA� ���� IBM ���� ������ �

�� �� ��(Linux Windows). . . . 117

CLP� ���� IBM ���� ������ �

�� �� �� . . . . . . . . . . . 118

� 8 � �� . . . . . . . . . . . . 119

� 21 � IBM ����� ������� ��

��� �� . . . . . . . . . . . . . . 121

�� �� ���� ���� �� � ��� �

� ������ �� . . . . . . . . . 121

�� �� ���� ���� ������

�� �� . . . . . . . . . . . . . . 122

�� �� ���� ���� ������

��. . . . . . . . . . . . . . . . 123

DCS ��(��� ������) . . . . . . . 124

� 22 � ���� DB2 ����� �� . . . . 125

���� DB2 � �� ��(Linux UNIX) 125

�� ��� DB2 � ��� ���� � �

� �� ID . . . . . . . . . . . . . . 126

DB2 �� ����� �� ��(Windows) . . . 127

DB2 ����� �� ��(Linux UNIX) . . 128

�� ��� �� . . . . . . . . . . . . 128

� 23 � ������ ���� �� . . . 131

DB2 Connect�� ������ ��� �� 131

�� ����� �� . . . . . . . . . 132

� 24 � DB2 Connect �� �� . . . . . . 135

DB2 �� � ��(Windows) . . . . . . . 135

DB2 �� � ��(Linux UNIX) . . . . 136

� 9 � �� . . . . . . . . . . . . 137

�� A. DB2 � �� �� . . . . . . . . 139

DB2 � �����(��� �� PDF ��) 140

��� DB2 �� �� . . . . . . . . . . 142

� ����� SQL �� ��� ��. . . . 143

DB2 �� ��� �� ��� ��� . . . . . 144

DB2 �� ���� ��� ��� � �� . . 144

��� �� ���� ��� �� DB2 �� �

� �� . . . . . . . . . . . . . . . 145

��� �� ���� ��� �� DB2 �� �

� �� �� . . . . . . . . . . . . . 146

DB2 ���. . . . . . . . . . . . . . 148

DB2 ��� � �� . . . . . . . . . . 149

���� . . . . . . . . . . . . . . . 149

�� B. ���� . . . . . . . . . . . . 151

�� . . . . . . . . . . . . . . . . 155

iv DB2 Connect Server � ��

Page 7: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 1 � � �� �� ��

DB2 Connect Server � ��� DB2® Connect™ Server ��� ���� �

�� � �� �� ��� �����. ���� � ��� ��� �� �

�. � ���� ��� ���� DB2 Connect ��� ���� ������ �

� �� � ��� �� ���.

� �� ���

��� ���, ������ ���, �� ��� ���� �� ��� � �

� �� �� ��� ��� � ���.

© Copyright IBM Corp. 1993, 2009 1

Page 8: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

2 DB2 Connect Server � ��

Page 9: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 2 � DB2 Connect ��

© Copyright IBM Corp. 1993, 2009 3

Page 10: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

4 DB2 Connect Server � ��

Page 11: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 1 � DB2 Connect �� ��

DB2 Connect� Linux®, UNIX® Windows® � ����� ���� �

������ �� �����. z/OS®, IBM® i IBM Power Systems®, VSE

VM�� DB2® ������� � � ���. DRDA®(Distributed Relational

Database Architecture™)� ���� �IBM ������� � �� ���.

DB2 Connect ��

DB2 Connect�� DB2 Connect Personal Edition ��� DB2 Connect �� �

�� ���� � �� � � ���.

v DB2 Connect Enterprise Edition

v DB2 Connect Application Server Edition

v System z®� DB2 Connect Unlimited Edition

v System i®� DB2 Connect Unlimited Edition

DB2 Connect ��� �� ��� ��� www.ibm.com/software/data/db2/

db2connect/� �����.

DB2 Connect� IBM i � ����� ��

DB2 Connect ��� ���� System z �� IBM i ��� ���� DB2 ���

� ����� �� ��� ��� �� ����� ���� ������.

DB2 Connect� �� System z IBM i ��� ��� �� � �����.

� 1. ���� System z IBM i ��� ��

�� �� ���� ��

z/OS� DB2 �� 7.1, 8

9

http://www.ibm.com/servers/eserver/zseries/zos/servicetst/� �����.

����� IBM��� IBM�� �� ��� ��� ���� ��� �� ��� ����

�� �� �� RSU(Recommended Service Upgrade)� ���� � ���.

i� DB2(������

i5/OS®� DB2 UDB�

��) V5R3 V5R4

II13348(��� APAR)

System i Preventative Service Planning� �� http://www-912.ibm.com/s_dir/sline003.NSF/

GroupPTFs?OpenView&view=GroupPTFs� �����.

i� DB2 V6R1 PTF: SI30564, SI30588, SI30611, SI30620, SI30621, SI30622, SI30825, SI30827, SI30920, SI30921,

SI31019, SI31101, SI31125, SI31238 SI31480.

System i Preventative Service Planning� �� http://www-912.ibm.com/s_dir/sline003.NSF/

GroupPTFs?OpenView&view=GroupPTFs� �����.

DB2 �� �� 7 �� http://www.ibm.com/software/data/db2/vse-vm/� �����.

© Copyright IBM Corp. 1993, 2009 5

Page 12: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� ���� http://www.ibm.com/support/docview.wss?rs=71&context=SSEPGG

&dc=D600&uid=swg21233566 � ���� �����.

6 DB2 Connect Server � ��

Page 13: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 2 � DB2 Connect� ���� ����

DB2 Connect� ���� � ������ ��� ���� ���� �� DB2

Connect� ��� �� ���� � �� ���� ��� �� � ����

���. ������ DB2 Connect IBM ���� ������ �� � �

, �� �� ���� ���� ������� �� �� ����

�� ����� �� �� IBM Data Server Client ��� �� �� ��

�� ���� ���.

��� ������� DB2 ���� ���

IBM Data Server Client��� ����� ������ �� ��� ��� ��

����� ���� � �� �� ��� ��� �����. IBM Data Server

Client� ���� DB2 �� DB2 Connect ��� ���� ��� � ���. �

� ������ IBM Data Server Client� �� ������� ����� ��

�. Java™ ���� Java � ����� �� ��� ������� ���� �

���.

IBM Data Server Client� Linux, UNIX Windows ����� �� ��.

Java� ���� �� DB2 ��� ���� ���

DB2 Connect ���� JDBC SQLJ� IBM Data Server Driver� ���� �

�� DB2 ������� ���� ����� ������ ��� � ���.

Embedded SQL� �� � ���� ��� ��� ���� ���. Java� SQL

� ���(embed)�� ��� � ���� ��� ��� C, COBOL FORTRAN

�� ����.

v SQLJ JDBC� ��� ��� �� ������ ����� DB2 �����

�� SQLJ �� JDBC ������ � ��� � � �� ��� ����

�.

v � ��� �� �� ���� ���� �� Java ��� � �� �

(NULL)� �� � �� SQL NULL ��� ���� � ���� Java ��

�� �� ��� ��� �� NULL ���� �� � � ��� � ���.

v Java� �� �� �� �� ���� ���� �� ������(″

�� �″ �� � ″��� �″��� ���). Java � ��� ���

������ �� � �� ���� ����� ����� ����. ��

Java� ��� SQLJ �� ���� �� ��, � ��, � ��, ���

© Copyright IBM Corp. 1993, 2009 7

Page 14: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� �� �� ��� ������ �� ���� �� ������� �

��� �� ���� �� ������ ��� ���� ����� �� �

���.

v Java� �� �� �� ��� ���� �� ����� �� SQL� ���

� ������ ������ ��� ���� �� ��� ���.

v ������ ���� ���� Java � ����� � ���� � ����

� JDBC ���� ��� � ���. ����� ����� � ���� ��

� �� ���� ����� ��� ����. ������ ��� JDBC

SQLJ ���� ������ ��� ����.

8 DB2 Connect Server � ��

Page 15: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

JDBC SQLJ ������ IBM Data Server Client� ��� � ����

� ��� � �� � ����� � ��� ��� ����.

JDBC API� �� ��� ��� http://java.sun.com/products/jdbc/ � ���� �

����.

�� 1. JDBC DB2 Connect

� 2 DB2 Connect� ���� ���� 9

Page 16: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 Connect� ���� IBM ����� DB2 ���� ���

DB2 Connect ����� LAN� IBM Data Server Client� IBM ���� ��

�� � � ���� ���� � ���.

��� ���� ���� ��� IBM i� DB2, DB2 �� DB2 ��� ����

� �� ���� ���� � �� ��. ���� ����� ������ ���

� ������ �� ������ ���� ���� ���� �� ���� ��

�� ���� � �� ��� � ���. DB2 Connect �� ��(�: DB2

Connect Enterprise Edition)� Java ����� ���� ������� ��� IBM

���� ���� ����� ��� ���� ���� ������ ����

� ����.

��, DB2 Connect �� ��� �� ��� �� �� �� ���� � �

� ������ ������ ��� � ���. �� ��, DB2 Connect �

�� �� ��� �� ��� � ���.

v ��� � ��� ���� �� �� �� �� �� ���� ��

�� Microsoft® Excel Lotus® 1-2-3® � �����

v BusinessObjects, Brio, Impromptu Crystal Reports � �� �� ���

���� ��� �� ��

v Lotus Approach® Microsoft Access� �� ������ ��

v �����/�� � � ���� PowerSoft PowerBuilder, Microsoft Visual Basic

Borland Delphi� �� � ��

DB2 Connect Enterprise Edition� �� DB2 Connect �� ��� ��� �� �

�� � �����.

v ��� �� Java ���� ���� ������ �����(9 ���� �� 1

�).

v � ��� � �� ������ ���� � �� ��(15 ���� �� 5

9 ���� �� 1 �).

v �� �� ����� ��(AS)� �� ��.

v ��� ���(�: IBM TXSeries® CICS® Encina® Monitor, WebSphere®

Application Server, WebSphere MQ, Microsoft Transaction Server(MTS) BEA

Tuxedo)� �� ��(13 ���� �� 3 �).

DB2 Connect� �� ���� ���� �� �� � �� �� IBM ����

���� �� ���� �����. � ��� DRDA(DRDA)� �� ���.

DRDA� ���� ������ IBM ���� ���� �� �� �����

� ���� �� IBM ���� ������� �� � � ���.

10 DB2 Connect Server � ��

Page 17: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 Connect� IBM Data Server Client� IBM ���� ������� �

� �� �� � �� ��� ��� ���� �� �� ���� IBM ���

� ��� ���� ���. �� ��, DB2 Connect� ��� �� ���� �

�� ��� �� � ���.

DB2 Connect� � ��, ��� ���(TP) ��� �� ��� �� SQL ��

��� ��� ���� � 3 �� ����� �� ��� �� ��

���. � ��, ��� ��� ��� DB2 Connect� ���� CPU� ���

�� �� �� �� ��� ���� ��� � ���.

DB2 Connect ��� �� �� ������ IBM ���� ���� � �

��, ����� ���� �� ���� ��� ����� � �� �

� �� �� � ���. 12 ���� �� 2��� IBM Data Server Client� DB2

Connect �� ��� �� IBM ���� ������ ��� ��� �

� ��� �� IBM � � �����.

IBM ���� ������ ��� ��� ����� � DB2 Connect �

�� ����. IBM Data Server Client� ���� IBM ���� ��� ��

� � � � ����.

� 2 DB2 Connect� ���� ���� 11

Page 18: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� 2. DB2 Connect� ���� IBM ���� ��� ��� �����

12 DB2 Connect Server � ��

Page 19: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� 3. DB2 Connect� ��� ��� ���.

� 2 DB2 Connect� ���� ���� 13

Page 20: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� 4. DB2 Connect� WebSphere Java �� �

14 DB2 Connect Server � ��

Page 21: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� 5. Microsoft Internet Information Server(IIS)� ��� DB2 Connect

� 2 DB2 Connect� ���� ���� 15

Page 22: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� �� ���� ���� ������� �� �� ��(Linux �

Windows)�� �� ���(CA)� ��� ��� �� ������ � ��� ���.

CA� DB2 ������ ��� �� ����. CA� ������� ���� �

�� ��� ���� ������.

�: �� ����� CA� �� DB2 �� ��� �� ����� �� ��. ��

9�� �� DB2 �� ��� Windows x86, Windows x64(AMD64/EM64T), Linux

on x86 AMD64/EM64T� Linux��� �� ��. �� ����� DB2

� ���(CLP)� ���� � ��� � ���.

CA� ���� ��� ��� � ���.

v ������� ������� ������� ��� � �� ���. � ��

��� � �� ��� ��� � ���.

– ������ ���� ���� ���� ���� � ���� ����

�. �� ������� �� ����� ���� ���� � ��.

– �� �� ������� �� �� �� ���� ��� �����. �

��� ��� ������� �� ����� ���� ���� ����.

DB2 Connect Personal Edition� IBM ���� ������� ����

� DB2 Connect ��� ���� IBM ���� ������� ��� �

����.

– � ����� ���� �������� � ���� �����.

v ����� ������� ����� ����� ������� � ��� ��

���.

v ������ �� ������� �� ��� ���� ����� ���� �

��� ���� � ���.

v ����� �� �� �� ��� ������� �� � �����.

v ��� ���� �� ��� ���� ������ ������� ��

���.

v CLI/ODBC ��� ��� ��, ��, ���� CLI/ODBC �� ��� ���

��.

v ����� ����� �� ����� ����. ����� ���� ���

��, ����� ���� ��� ��� ������� �� ��.

v ������ �� ��� �����.

16 DB2 Connect Server � ��

Page 23: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

Administration Server� ��

DB2 Administration Server(DAS)� DB2 �� �� �� �� ���(CA)�

�� � ���. �� �� DB2 �� ��� ���� ��� �� ������

�� ��� �� ����� ��, �� �� ���. Administration Server�

CA�� ���� ������ ������� ������ � �� ��. DAS�

System z(z/OS ��) � ���� ��� ���� �� Linux, Windows UNIX

� ����� �� ����.

Administration Server� �� ���� ��� �� ���. Administration

Server� ���� ���� �� ��. � ���� ���� � ����

Administration Server� �����, Administration Server� �� ���� ��

��. ��� DAS ����� DB2AS��, DB2 � ��� ���� ���

�� ��� ID���.

����: DB2 Administration Server(DAS)� �� 9.7�� ���� ��� �� �

���� ��� � ���. ��� ��� �� 9.7� �� �� �� � ���

�� �� DB2 Administration Server(DAS)� ���� ��� ��� ���

��.

DB2 �� ��� �� � ��� ���� � ������ ��(Linux �

Windows�� �� ��)

DB2 �� ��� ���� �� �� ��� ��� ��� � ���. DB2 ��

��� �� ���(�: DB2 ����� ������ ��, ��� � �, �

���, �� ��, ��� ������ �� �)� ���� �� �� ��

� �� �� ��.

�: �� ����� �� ��� ��� �� DB2 �� ��� �� ����� �

� � � . � � 9� � � � DB2 �� � � � Windows x86, Windows

x64(AMD64/EM64T), Linux on x86 AMD64/EM64T� Linux��� �� �

�. �� ����� DB2 � ���(CLP)� ���� ���� ������

� ��� � ���.

����: �� �� �� ����� �� 9.7�� ���� ��� �� ���

�� ��� � ���. ��� ��� �� 9.7� �� �� �� � ��� �

� �� DB2 Administration Server(DAS)� ���� ��� ��� ����

�.

�� ����� �� �� �� ���� � ���� ��� �� ��� ���

�����.

v OS/390® z/OS� DB2 Universal Database(UDB) �� 7

� 2 DB2 Connect� ���� ���� 17

Page 24: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v z/OS� DB2 UDB �� 8

� ��� ������ � ��� ��� ��� ���� �� �� �����

z/OS� DB2� ����.

�� ���� DB2 �� ������ ��� ������.

1. ��� ������.

v DB2 ���� � ��

v ����� ��� �� DB2 Connect �� � ��

v ����� �� ��� �(DDF) �� ��

v ������ DB2 ����� ���� ��

v ���� DB2 Connect ���� DB2 CLI �� ��

2. DB2 Management Clients Package(DB2� �)� OS/390 z/OS� DB2

Administration Server(DAS)� �� FMID� ������. DAS� OS/390

z/OS� DB2 ��� �� ���� ��� ����. DB2, DB2 Management

Clients Package� OS/390 z/OS� DB2 Administration Server ���

���� ������. ��� ���� � �� ����� �� FMID

��� ���� ���. �� ��� ���� � ���� ���

�� �����.

3. ��� ����� � �� DB2� �� ���� ������.

4. DB2 �� ����� �� ����� DB2 ������� ���� � ��

�� �����. DB2 ������ ��� �, DB2 ������ �� ��

� ���� ���, ��� �� �� ���� ���� ��� ���.

z/OS DB2 UDB �� 8

z/OS� DB2 UDB �� 8� ��� � ��, z/OS �� �

(JDB881D)� ��� ���.

OS/390 � z/OS DB2 UDB �� 7

OS/390 z/OS� DB2 UDB �� 7� ��� � ��, 390 ��

�(JDB771D)� ��� ���.

��, JCL �� ��� ���� DB2� DB2 �� �� �� ���� �

����, DB2� ��� ���� OS/390 z/OS� DB2 Administration

Server(DAS) �� 8(HDAS810)� ��� ���.

�:

a. FMID JDB881D �� JDB771D� �� ��� ���� ���� �� DB2

������ ���� ���.

b. FMID HDAS810� �� ��� ���� ���� DB2 ������

� � �� �� LPAR� ���� � �� ���� ���.

18 DB2 Connect Server � ��

Page 25: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

c. ��� �� �� ����� ��� �� ��� DB2 Management

Clients Package �� ��� ���� ���. �� ��, DAS � �

���(HDAS810)� z/OS� IBM DB2 UDB DB2 Management Clients

Package �� 8� ���.

d. DB2 Administration Server� ���� � �� ��� ���.

5. ���� ��� ���� ����� ������ ������.

6. DB2 Administration Server� ������ ������.

�� ���� DB2� �� ���� � �� ��� ����� ��� ����

�.

http://www.ibm.com/support/docview.wss?rs=64&context=SSEPEK&q1=jdb881d&uid=swg27006262

������ ������ �� �� IBM Data Server Client ��

Data Server Client�� ��� �� ��.

v C/C++, COBOL � Fortran ������(��� �� ���� ���� �

�).

v ���� �����, �� �� � �� ���� Embedded SQL

���� ��.

v � ODBC� ���� ODBC SDK� ����� ����� �� ��

���� �����, �� �� � �� ���� ODBC � DB2 � ��

�����(DB2 CLI) ���� ��. ODBC SDK� Windows � ���

Microsoft� ���� ��� �� ���� ��� �� ���� �� ���

�. Windows � ���� ��� ODBC CLI ����� DB2 Client�

��� Microsoft ODBC SDK(Software Developer’s Kit)� ��� ���

��� �����. �� �� ���� �� ODBC CLI ����� ����

� DB2 Client� �� � �� ���� �� �� ���� ODBC SDK�

�� � � ������ �����.

v IBM Data Server Driver for JDBC and SQLJ�� ��� �� ��.

– JDBC 3 JDBC 4 �� ����� ��

– �� SQL� Java ����� �� �� SQLJ ��

v Java 5 ��� DB2 ��� ���(embedded)�� ���� ��� ��

� �� ��� ���� �� � Java ����� �� �� �����.

v Microsoft Visual Basic Microsoft Visual C++� ���� � �� ��

�� Windows � ��� ADO(ActiveX Data Objects) � OLE(Object

Linking and Embedding) ��� ��(UDF � ���� ����)

� 2 DB2 Connect� ���� ���� 19

Page 26: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v Windows � ��� OLE DB(Object Linking and Embedding Database)

�� ��

v Windows � ��� C#� Visual Basic .NET ���� � CLR .NET �

v �� � � �� IBM_DB gem� ���� Ruby � Ruby on Rails

���� ��: Ruby� ��� ��� �� ��� ���� ���� � �

����� ��� � �� ��. Rails��� �� RoR(Ruby on Rails)� �

����� � �� ��� ��-��-���� � �� �� �� ��

����� ������.

v ���� ����� � �� ���� PHP Hypertext Preprocessor

���� ��: PHP� ��� ���� � ������ ��� � ��

��. �� �� �� ����� �����.

v IBM Data Studio� ������ �� � DBA��� ��� Eclipse �

�� ���� ������. IBM Data Studio� ���� �� �� ���� �

���, SQL Java ���� ���� ��, �� ����, ��� ��

� � ���� ����, DB2 Informix® ��� ��� SQL XQuery� �

��� ��� XML ��� ��� ���� � � �� � ���.

v SQL�� ������� ������� �� ad hoc ��� ���� �

�� �� � ���(CLP)� ���� ��� SQL

v �� ����� � ��� �� �� ��� � DB2� ����� ��

� ��� � � � �� ���� API ��. �� ��, AIX®� IBM COBOL

� � ������ �����.

20 DB2 Connect Server � ��

Page 27: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 3 � DB2 Connect ��

© Copyright IBM Corp. 1993, 2009 21

Page 28: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

22 DB2 Connect Server � ��

Page 29: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 3 � DB2 Connect� �� � �� �����

� ����� ����� ��, DB2 Connect� � �� �� ���� �����

�� �� ����� ������ � �� ���. ��� ������ DB2

Connect ��, DB2 ��, DB2 ����� ������ ������ ���.

�� ��, DB2 Connect� �� �� �� ���� ���� ��� ��� � DB2

Connect� �� �� �� ���� ���� ��, DB2 Connect ��� ���

� � �� ��� ��� �� ����� ������ � �� ���.

DB2 Connect ��� DB2 Connect ��� �� ���� ��� DB2 Connect �

���, �� �� ��� �� ��� DB2 Connect ������ �����

�� ����� �����. DB2 Connect �� 8 �� DB2 Connect ���� �

�, �� DB2 Connect �� 8� ��� � DB2 Connect� �� �� �� ���

� ������ ���. DB2 Universal Database(UDB) �� 8� ���� ��

� �� ��� ��� �� ��� DB2 Connect�� ��� �����.

���� ���� ��� ��� � ����� ����� ���� �� ��

���� �� ��. ��� ���� DB2 Connect� � �� �� ���� �

���� ������� ��� �� �� ���� ���� ���.

v DB2 Connect �� ������ DB2 Connect� �� �� �� �����

��� � �� �� ����, ��� �� DB2 Connect ������ ���

��� ��� �� ��� �� ��� ������ ����� ��

��.

v DB2 ��� �� �� �� ����� ��� � �� �� ���� ��

����� �������. DB2 �� 9.7� ����� DB2 �� ����

��� �����.

v ����� ����� ������ ��� DB2 ����� ��� �����.

DB2 �� 9.7� ����� ����� ���� ��� �����.

v ������ ����� ������ DB2 Connect� �� �� �� ���

�� ���� DB2 Connect� �� �� �� ����� �� �� ����

� ���� ���� ���� �� �� ��. ���� ������ ����

�� ��� � � � ����� ���� DB2 �� 9.7� �� ���

� DB2 Connect� ��� �� � ��� ���� �� �� ����

��. ������ ������ DB2 ��� ��, DB2 �� 9.7� ��

��� ������ ����� � ���� ��� ������.

� �� ���� ��� ���� ��� ���� ����. ��� �� �

���� ��� ��� ���� ���� ��� ��� �����. ����

© Copyright IBM Corp. 1993, 2009 23

Page 30: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

������ �� ��� ��(��, ���� � �� ����)� ���

��� ��� � �� � ���. ���� ���� ����� �� �

�� �� ���� ����� �� ��.

v ���� �� ��� �� �� ����� ���� ���� ���

v ���� �� ���� �� �� �� ���� �� �� ���� ��

v ����� �� ���� ���� ��� ��� � ��� ������

��� �� �� ���� ���

v �� ���� DB2 ��� ����� ���� �� ���� �� �� ���

� �� �� ���� ���

DB2 Connect ��� �� ���� ���, ���� ��� �� ����

���� ��� ������ DB2 ��� �� ���� ���, ���� ��

� �� ���� ���� �����.

DB2 Connect� ����� ����

������ DB2 Connect� �� �� �� ���� ����� ��, ����

�� ����� ���� ���� �� ��� ���.

������ ������ ���� ��� ��� � ��� ������ ��

��� � �� �����.

DB2 Connect �� 8.2.2 �� ���(�� 8.1 FixPack 9� ��)�� ��

�� �� ���� ����� ��, ������ �� �� �����

��� �� ����. ������ ������ ��� � � ��

�� ���� ���� �� �� �� SERVER���.

DB2 Connect Server � DB2 Connect Personal Edition� � �� SNA ���

� ��� ����.

DB2 Connect �� 9.1 �� ����� ����� �� �� TCP/IP

�� � ����� SNA �� � ���� �� �� �� �����

� ���.

DB2 �� � ����� �� ����� ���� DB2 Connect ���� �

��.

DB2 �� ������ �� ���� �� ����� DB2 Connect

��� ������ ���� �� ��.

v DB2 �� 9.7� ����� �DB2 ��� ���� ����� ���

���� ����� ��� �� �� ����� �� ��� �� �

�� �����.

24 DB2 Connect Server � ��

Page 31: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v DB2 �� 9.7� ����� ������� ���� ����� ��(�

�, ������ DB2 �� � � ��)� ������. �� ��

� 2�� ��� � �� ����� ����� �� �� �� ���

DB2 Connect ���� � ���� ����.

DB2 ����� � �� � ���

DB2 �� 9.7�� DB2 ����� �� ��� �������. ���

�� � �����. � �� �� ����� ��� �� �����

DB2 �� 9.7� �� ��� ����� �� ��� ��� �����.

DB2 Connect� �� ����� ����

���� � ��� DB2 Connect ��� �� ����� � �����

� ������ ����. �� ��� 2 �� �� �� ������ �

� �� �� ��� DB2 Connect ��� � � ���. �� ��

��� � �� �� ��� ���� ������� ��� � ��� �

���. ��� �� ������� ��� � �� ���� ���� �

�� ���� �� �� �� ���.

������ �� ������� ��� �� �� �� �� ���� �

������ � �� ��� DB2 Connect ���� ��� �� �

� ��� �� �� ��� ���. �� ���� �� �� �� ��

�� ����� ���� ��� ��� � �� ��� �� ����

�� ����� ������.

�� �� ���� ���� ���� ����� � ���� ��

����.

DB2 Connect ��� � ����� ���

DB2 Connect ��� ������� �� � � ��� ��� �� ���

����.

DB2 Connect ���� ���� DB2 ��� �� �� ���� ���� ���

���.

1. 24 ���� �DB2 Connect� ���� ������ ���� ����� �

�� � � � ���� �� ����� ��� ���� ��� �� ��

�� ���� ��� �����.

2. DB2 �� 9.7� ����� �DB2 �� �� � �� �� ��� �

�� ���� �� ��� � � � � �� ��� ������. � ���

���� ���� ��� ��� ��� ���� � ���� �� �����

�� ��� �� ���.

� 3 DB2 Connect �� 9.7 ���� 25

Page 32: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

3. ����: DB2 Connect ��� ��� �� ���(SPM) �� ��� �

�, DRDA ��� �� ���� ���� ��� �� ��� ���� �

�� � ����� ���� �� ����(indoubt) ��� � ���� ���

� ��� �LIST DRDA INDOUBT TRANSACTIONS �� ����

��.

4. ����: ��� �� ��� ������� � �� �� �� ���

� ���� ���� ������ ����� ������.

a. ����� ������� ���� ��� �� ��� ���� ��

� � ����� ���� � ����(indoubt) ��� � ���� ���

� ��� �LIST INDOUBT TRANSACTIONS �� ������.

b. DB2 �� 9.7� ����� �������� ����� ��� ����

��� ��� ��� ��� ������ �� �� ��� ��� �

����.

c. DB2 �� 9.7� ����� ����� � ������ �� ��� �

�� ����� � ����� ����� � � ���� ��� �

� ���� ���� ��������.

d. DB2 �� 9.7� ����� ��� ���� ����� ��� ���� �

����� ����� ��� �� � ����, �� �� ����

�� ����� �� ���� �� �� DB2 �� 9.7� ����

� ������� �� �� ���� �� �� �� ���� ���

������.

e. Linux ��: DB2 �� 9.7� ����� ��� ��� �� ��

� �� �(Linux)� ��

5. ����: DB2 Connect ������ ������� � ��, ��� ���

���� �� ���� ���� �� ��� ��� IBM WebSphere �� �

�: ���� �� 9� ��� ������� ����� �� ��� ��� �

����.

6. Windows ��: DB2 �� ����� ��� ��� � ��� ���� ��

� ��, DB2OLD₩conv ���� �� ��� ��� ���. ���, DB2OLD

� �� DB2 Connect ��� �����. DB2 Connect ��� �� �� ��

���� ������ � ��� ���� DB2 Connect ������ � �

� �� ���� ����� � �� �� ��. �� � ��� ���� �

� �� ����.

7. ����: �� ��� DB2 Connect ��� ������ ���� ��

�� ���, �� ��� ������ �� ������ �����

�� ���� ����� ������.

8. DB2 Connect� �� �� �� ����� diaglevel ������ �� ��

� �� ����� 3(���) ���� ��� �� ��� �� ���

26 DB2 Connect Server � ��

Page 33: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ���� db2diag �� ��� �� ��. � ����� 2 ��� ���

��, ��� � ������ � �� �� �� �� �� �� �

� �� ��� ��� ������ �� � ����� 3 ���� ��

���.

9. ����� DB2 Connect ��� ����� ������. ��� ��� DB2

�� 9.7� ����� ����� �� DB2 ��� ����� ��� ��

� �����.

DB2 Connect �� �����

DB2 Connect ��� �� �� �� ������ DB2 Connect ��� ��� �

��� � ���� ��� DB2 Connect ����, ��� �� ��� �� �

�� DB2 Connect ������ ������� ����� �����.

DB2 Connect �� ��� ��� ������ �����, DB2 Connect �

� ���� �� � � � �� ������� ��� �� ��� ���

��� DB2 Connect ������ ���������. DB2 Connect ���

�� ��� ������� DB2 � ��� � �� ��� � ���. DB2

Connect ������ ������� �� �� ��� ��� �� ��� ��

�� ����.

Linux UNIX ����� DB2 Connect� �� ��� �� � DB2 Connect

����� ���� ������ ���. DB2 ������� ����� �� �

�� � ������� ��� ����� ����. � ����� ��� �

�, �� ��� ����� ���� DB2 ������ ������, � DCS

������� ������ ���.

Windows � ���� � �� ���� �� DB2 Connect ��� ����

������ � � ���. DB2 Connect ����� ���� ���� ��.

��� �� ��, DB2 Connect� �� ��� � ��� �� � DB2 Connect

����� ���� ����� � ���.

� ���� DB2 Connect� �� ��� � ��� ��� ����� � �

� ������� ������ ��� �� ���. Windows�� ���� �

�� DB2 Connect ��� ���� �������, DB2 �� 9.7� ����

� �DB2 �� ����(Windows)� ��� ��� ��� �� ������.

����

�� ��� DB2 Connect� ������ �� ��� ������.

v ��� �� ��� � �� ��� ��� �� ������.

� 3 DB2 Connect �� 9.7 ���� 27

Page 34: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

– UNIX� �� � ���

– Windows� �� ���

v SYSADM ��� �� ������.

v DB2 Server �� �DB2 ������ ��� � ����� ��� ��� �

���� ���� ������. Linux UNIX � ��� �� �����

�������.

v DB2 �� 9.7� ����� �DB2 ��� ���� �� ��� ��� ���

���.

v DB2 �� 9.7� ����� �DB2 �� ����� �� �� ���� �

���� ��� ������.

v �� ���� ���� ������. ��, ������� �����.

����

v ����� ����� �� ��� DB2 Connect� ��� � ���� �

���. ��� ��� DB2 �� 9.7� ����� �32�� 64�� DB2 �

�� �� �� ����� ��� �����.

v �� DB2 �� 9.7� ����� �DB2 ��� �� ���� ����� ��

� � ���� ����� DB2 Connect ���� �� ��.

DB2 Connect �� 7� ��, �� DB2 Connect �� 8� ���� ���. ���

��� http://publib.boulder.ibm.com/infocenter/db2luw/v8/topic/com.ibm.db2.udb.doc/

conn/t0008566.htm� �����.

DB2 Connect ��� ������� ��� ������.

1. ���� ���� ���� ��� DB2 Connect ��� �� �� ��

� ��������. db2cfexp ��� ���� �� ���� ������.

$ db2cfexp cfg_profile backup

backup � � ������� � ����� ������ �� ��� ��

����� ���� ���� �� ���� �� ��� ���. �� �

� � ���� ���� ��� ���� � ���.

2. DB2 � ��� ���� DB2 Connect �� ��� � �� � ���

� �� � � � ������.

3. . DB2 �� 9.7� ����� ����� ����� ��� ��� db2iupgrade

� ������.

4. DB2 �� 9.7� ����� ������� ����� ��� ��� ���

�� ��� �� ��� DB2 Connect ������ ������� �

�������. ��� ���� � �� � ���� DB2 Connect �� ��

���� ������� ����� �� ���.

28 DB2 Connect Server � ��

Page 35: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 Connect ��� ����� � � �� �� ���� ���(�: � �

� �� ��, �� ���� �� �, �� � �� ���� �� ��)

� ������.

DB2 Connect ��� �� ����� ���

DB2 Connect ��� ����� ��� �� �� ���� ���� ����

DB2 Connect ��� ��� �� ���� ��� ���� ����� ���� �

��.

DB2 Connect ���� ���� DB2 ��� �� �� ���� ���� ���

���.

1. DB2 Connect ��� �� ���� ����� � � �� diaglevel ���

��� �� ��� �� ����� 4� ��� ��, � ����� ��

�� �� �� ��� ������.

2. DB2 �� 9.7� ����� �DB2 �� ��� ���� ��� ��� ��

���. DB2 �� ��� ��� � � � DB2 ��� �� �� �� ���

� ��� ����� �� �� ����� � �� �, � ����� ��

� �� ����� ���. ������� �� � ��� ������ �

�� �� � �� �������.

3. �� �� �� ���� DB2 �� ����� ��� ��� � ��� ��

�� ��� �� DB2OLD/conv�� �� �� �� ��� DB2DIR/conv� �

����. ��� DB2OLD� DB2 Connect ��� �� �� ��� ����

DB2DIR� � DB2 Connect ��� �����. �� � ��� ����

��� ��� ��.

Windows � ���� ��� ���� DB2 Connect ��� ����� �

�, DB2 Connect ��� �� �� ���� ���� ��� �� ���

��� � ��� ���� DB2PATH₩conv ���� ����� � ���.

��� DB2PATH� � DB2 Connect ��� �����.

4. � ��� �� z/OS� DB2 �� �� IBM i� DB2 ��� �� �

� DB2CONNECT_ENABLE_EURO_CODEPAGE ����� ��� ��

DB2 Connect ����� ��� �� ��� �� ����� � ��

�� � ��� �� ��� ��� ���� �� ��� �� ��

(CCSID)� �� ��.

5. ����: DB2 Connect ���� ������� ������ DB2 Connect

��� �� ���� ����� � � �� �� ���� �� ��� �

� 3 DB2 Connect �� 9.7 ���� 29

Page 36: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�, DB2 �� 9.7� ����� ���� �������� �� ���� ��

�� ��� �����. ��� �� ����� �� DB2 Connect ��� �

��� ������.

6. ����: ���� � �� DB2 �� 9.7� ����� ������� �

������ �� ��� �����

7. ����: DB2 Connect ������ ������� � ��, ������ �

������ ����� �� ���� ����� ���� �� IBM

WebSphere �� ��: ���� �� 9� ��� ��� � ������ ��

� ��� ��� ������.

8. DB2 Connect �� ����� � ���� ������. ����� �� �

������ �� � ������. ��� � ���(CLP)�� �

���� ��� �����.

db2 CONNECT TO DATABASE sample user mickey using mouse

��� ������� � � ��� ��� ���� ���. �� �

� ���� ������.

��, ����� ��� ���� DB2 Connect ��� ��� �� ��

��� ������.

� �, �� ��� ��� ���� ���. �� � �� ��� �� DB2

Connect ��� ��� ���� �� �� ���� ���� ���.

30 DB2 Connect Server � ��

Page 37: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 4 � �� ���

© Copyright IBM Corp. 1993, 2009 31

Page 38: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

32 DB2 Connect Server � ��

Page 39: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 4 � DB2 ��� �� Java ����� ��

Java �� ��� ���� ���� ��� ��� �� ��(UDF)� ��� Java

������ ����� Java� IBM SDK(Software Development Kit)� ���

��� ��� �� � �� ��� ���� ���.

� �� ����� Java� IBM SDK� ���� �� ��� Java� SDK� �

� ��� � �� �� DB2 � �� �� � ��� ���� ���

��� Java� SDK� � ��.

Java� SDK� IBM Data Server Runtime Client �� IBM Data Server Driver

Package� �� ��� ����.

�� �� � �� ���� �� ��� DB2 ��� Java� SDK ��� ��

�� ���.

�� �� � Java SDK ��

AIX SDK 6

Itanium �� ���� HP-UXJ2SE HP-UX 11i ���� HP SDK, IBM for IBM Software,

�� 6 ��� ��� 3� �� ��

Linux on x86 SDK 6 ��� ��� 3

Linux on AMD64/EM64T SDK 6 ��� ��� 3

Linux on zSeries® SDK 6 ��� ��� 3

Linux on POWER® SDK 6 ��� ��� 3

Solaris � �� SDK 6 ��� ��� 3

Windows x86 SDK 6 ��� ��� 3

Windows x64 SDK 6 ��� ��� 3

�:

1. Java ����� SDK� developerWorks® � ���� http://www.ibm.com/

developerworks/java/jdk/index.html�� ���� � ���. Java� SDK�

���� �� �� � � ��� � Java� SDK� �� Linux, UNIX

Windows� DB2 ������ ����� � � �� �����.

�: Windows � �� ���� ��, Eclipse� IBM Development Package

���� ������.

2. DB2 GUI ��� Linux on x86, Linux on AMD64/EM64T, Windows x86

Windows x64��� �� ��.

3. Windows x86 Linux on x86:

v 32�� SDK� ��� �

© Copyright IBM Corp. 1993, 2009 33

Page 40: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v 32�� ����� Java �� �� ���

4. ���� �����(Windows x86 Linux on x86):

v 32�� ������ ���

v 32�� Java �� �� ���� ��

v 64�� ����� Java �� �� ���

���� Java ������ �� �����

�� �� Java� SDK� ���� ��� �����. ��� �� ��� ���

�� �� �� ��� �� ��.

Java� SDK� ����� ��� �� ��� �� ��� ��� ����� �

���. ������ ������ Java� SDK� ��� ���� � ����

��� ���� Java� SDK� �� �� �� ��� ��� ����.

Java� SDK� �IBM ��� ��� Java ����� �� ��� ���� �

� ��. � Java ���� ��� ��� �� ��� ���� ���� ��,

Linux, UNIX Windows� DB2 ������ ��� ��� Java� IBM SDK

�� �� ��. ��� DB2 ���� ��� Java ���� ��� ��� �

� ��(UDF)� ���� � �� ����� � 1� “Java ���� ��� �

�� �� ��(UDF)”� �����.

� 2. Java� SDK� Linux, UNIX Windows� DB2 ������ �� ��

JDBC ����

db2java.zip ��

db2jcc.jar� ��

Java ����

JDBC ����

db2jcc4.jar� ��

Java ����

Java ���� ����

� �� �� �� DB2 �� ��

AIX 1.4.2 - 6 6 1.4.235 ���� 6 - 65 N/A

Itanium �� ����

HP-UX

1.4.2 - 61 61 1.4.235 ���� 6 - 6 N/A

Linux on POWER 1.4.2 - 63,4 63,4 1.4.235 ���� 6 - 6 N/A

Linux on x86 1.4.2 - 62,3,4 62,3,4 1.4.235 ���� 6 - 6 5 - 6

AMD64 Intel®

EM64T ����

Linux

1.4.2 - 62,3,4 62,3,4 1.4.235 ���� 6 - 6 N/A

Linux on zSeries 1.4.2 - 63,4 63,4 1.4.235 ���� 6 - 6 N/A

Solaris � �� 1.4.2 - 62 62 1.4.235 ���� 6 - 6 N/A

Windows on x86 1.4.2 - 62 62 1.4.35 ���� 62 - 6 5 - 6

AMD64 Intel

EM64T ���� ��

Windows on x64

1.4.2 - 62 62 1.4.235 ���� 6 - 6 5 - 6

�:

34 DB2 Connect Server � ��

Page 41: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

1. Hewlett-Packard�� �� � � Java� SDK� �� ��� IBM Data Server

Driver for JDBC and SQLJ�� ���� ��� ����� ������ �

��� ���� �� �� ��.

2. Sun Microsystems�� �� � � Java� SDK� �� ��� IBM Data Server

Driver for JDBC and SQLJ�� ���� ��� ����� ������ �

��� ���� �� �� ��.

3. Java 1.4.2 SR6� SDK� �� ��� SUSE Linux Enterprise Server(SLES) 10

� ����. Java 1.4.2 SR7� SDK� �� ��� RHEL(Red Hat Enterprise

Linux) 5� ����.

4. Linux�� Java 6� SDK ��� ���� Java 6 SR3 ��� SDK� ���

�.

5. Java 6 SR2 ��� SDK� ���� �� DB2LIBPATH=java_home/jre/

lib/ppc64� �����.

6. Java� IBM SDK 1.4.2�� ��� ��� �� ��(UDF) Java ����

���� �� 9.7�� ���� ��� �� ����� ��� � ���. Java�

IBM SDK 1.4.2� ��� � ��� 2011� 9����. � �� ��� Java

SDK 1.4.2 ���� ���� �� ����. DB2 �� 9.1, DB2 �� 9.5 �

� DB2 �� 9.7� ��� Java� SDK� ���� Java ���� ���

��� �� ��(UDF)� ����� � ���� ��� � ���.

�� �� DB2 ������ ��� �� �� �� IBM Data Server Driver for

JDBC and SQLJ ��� �����.

� 3. IBM Data Server Driver for JDBC and SQLJ� Linux, UNIX Windows� DB2 ����

�� FixPack ��� ��

DB2 �� � FixPack ��

IBM Data Server Driver for JDBC and SQLJ

��1

DB2 �� 9.1 3.1.xx

DB2 �� 9.1 FixPack 1 3.2.xx

DB2 �� 9.1 FixPack 2 3.3.xx

DB2 �� 9.1 FixPack 3 3.4.xx

DB2 �� 9.1 FixPack 4 3.6.xx

DB2 �� 9.1 FixPack 5 3.7.xx

DB2 �� 9.5 3.50.xx, 4.0.xx

DB2 �� 9.5 FixPack 1 3.51.xx, 4.1.xx

DB2 �� 9.5 FixPack 2 3.52.xx, 4.2.xx

DB2 �� 9.5 FixPack 3 3.53.xx, 4.3.xx

DB2 �� 9.7 3.57.xx, 4.7.xx

� 4 DB2 ��� �� Java ���� �� 35

Page 42: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�: n.m.xx. n.m ��� �� ���� ��� GA �� �� FixPack �� ���

�����. xx� IBM Data Server Driver for JDBC and SQLJ� � ��� APAR

����� �� ��� � �� ��.

36 DB2 Connect Server � ��

Page 43: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 5 � �� ����(Linux � UNIX)

��� ����� DB2 Connect �� DB2 ��� ��� � �� �� ��

����� ���� � � ���. � �� �� ����� ���� ��� �

� �� �� �� ���� � ��� �� ���.

�� ���� ��(HP-UX)DB2 ��� HP-UX�� � �� ����� ��� �� �� ����� ����

���. �� �� ���� �� ���� ���� ����� ���.

�� ����� ����� �� ��� �� ���.

�� ����� ����� ��� ������.

1. sam � ���� ��� �� ���(SAM)� ������.

2. �� �� ���� �� ������.

3. �� ���� ���� �� ������.

4. ����� ����� �� ���� ��/� �� � �� ������.

5. ��� �����.

6. ����� �� �� �� ����� �� � �� �����.

7. �� �� �� ���� �� � �� � �� ���� �� --> ��� �

� ��� ������.

���� �� �� ���� �� ����, HP-UX � ��� ���� ���

��.

���� �� �� ����(HP-UX)

DB2 64�� ������ ���� �� �� HP-UX ���� ��, db2osconf

� ���� ���� ��� �� �� ���� �� � � � ���. db2osconf

���� $DB2DIR/bin��� ��� � ���. ��� $DB2DIR� DB2 ���

��� � ������.

© Copyright IBM Corp. 1993, 2009 37

Page 44: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� ���� ��(Linux)DB2 ������ ���� ��� �� Linux �� ����� ������. Linux

� ��, DB2 ������ ���� �� ��� �� �� ����� ����

���� ����.

�� ����� ����� � ��� �� ���.

Red Hat SUSE Linux�� �� ����� ����� ��� �� �����

�.

1. ipcs -l � ������.

2. �� ���� ���� � ����� ��� ��� �����. ���

� ��� ���� �� // ��� ��� �������.

# ipcs -l

------ �� ��� �� --------�� ���� � = 4096 // SHMMNI�� ���� ��(KB)= 32768 // SHMMAX�� � �� ���(KB) = 8388608 // SHMALL�� ���� ��(���) = 1

------ ���� �� --------�� �� � = 1024 // SEMMNI��� �� ���� = 250 // SEMMSL�� ���� ��� �� = 256000 // SEMMNS���� ��� �� �� � = 32 // SEMOPM���� ��� = 32767

------ ���: �� --------�� � ��� �� = 1024 // MSGMNI�� ��� ��(���) = 65536 // MSGMAX��� �� � ��(���) = 65536 // MSGMNB

v � ��� ��� �� � �� ���� SHMMAX SHMALL� �

�� �� �������. SHMMAX� Linux ���� � � ���

����� �� �����. ��� SHMALL� ���� � � ��� �

��� �� �����.

– SHMMAX �� ���� �� ����� ���� ��� �� ���

�. ��� x86 ���� �� ���� 268435456(256MB)�� 64��

���� ���� 1073741824(1GB)���.

– SHMALL� ��� 8GB(8388608 KB = 8GB)� ��� ���. �

� ���� ��� �� � DB2� ����� ���� �� ���� �

90%� ����. �� �� ��� ���� DB2� �� ����� 16GB

� ��� � � �� SHMALL� 3774873(16GB� 90%� 14.4GB�

� �� 4 KB(�� ��� ��)� �� �)�� ��� ���. ipcs

�� SHMALL� KB� �����. ����� � �� ��� �� �

���. DB2 �� 9.7� ������ �� SHMALL �� ����

38 DB2 Connect Server � ��

Page 45: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� �� SHMALL �� 4GB ����� ��� ���. � ��� �

�� ���� � �� ��� �� FCM(Fast Communication Manager)

�� �� ���.

v �� ���� � ��� �� �� ��� �� �� ����. �� �

��� sem� � �� ��(SEMMSL, SEMMNS, SEMOPM SEMMNI)

�� �� ��. SEMMNS� SEMMSL� SEMMNI� �� ����. �

����� �� ������ �� �� ��� �(SEMMNI)� ��� �

��. ����� SEMMNI� ��� �� ���� �� �� �� ���

������ �� ���� �� ����� �� �� ����� ��

�� �� ���� �� � ��� ���.

v � �� ���� ���� �� ���� �� ����.

– MSGMNI� ��� � � ���� �, MSGMAX� ��� ��� �

� ���� ��, MSGMNB� �� ��� ��� ����.

– MSGMAX� 64KB(� 65535 ��)� ���� MSGMNB� 65535� �

�� ���.

3. � �� ����� ����� /etc/sysctl.conf ��� ������. � ��

� ���� ��� ��� ������. �� �� ��� ��� � ����

� �� ����.

kernel.sem=250 256000 32 1024#Example shmmax for a 64-bit systemkernel.shmmax=1073741824#Example shmall for 90 percent of 16 GB memorykernel.shmall=3774873kernel.msgmax=65535kernel.msgmnb=65535

4. -p ����� �� sysctl� ���� �� ��� /etc/sysctl.conf���

sysctl �� ������.

sysctl -p

5. ���� �� ����� ����� ��� ������.

v (SUSE Linux) boot.sysctl� ���

v (Red Hat) rc.sysinit ���� ����� ���� /etc/sysctl.conf �

�� ����.

�� ���� ��(Solaris ��)DB2 ������ ���� ��� ���� ��� ���� �� �� �����

���� �� ����. db2osconf ���� ���� � �� ����� �

� � ���. ��� �� ����(/etc/project)� ����� Solaris ��� �

����.

� 5 �� ����(Linux UNIX) 39

Page 46: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� ����� ����� � ��� �� ���.

db2osconf � ����� �� DB2 ������ ���� ��� ���.

db2osconf ���� $DB2DIR/bin��� ��� � ���. ��� $DB2DIR� DB2

��� ��� � ������.

�� ����� ��� ��� ���� ����� ���.

�� ����� ����, ��� �� /etc/system ��� � �� �����

set parameter_name = value

�� ��, msgsys:msginfo_msgmax ���� �� ���� �� �� /etc/system

�� � ������.

set msgsys:msginfo_msgmax = 65535

/etc/system ��� ��� � ���� �������.

40 DB2 Connect Server � ��

Page 47: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 5 � ��� �� � ��

© Copyright IBM Corp. 1993, 2009 41

Page 48: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

42 DB2 Connect Server � ��

Page 49: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 6 � DB2 Connect �� ��: �� � �� ��

DB2 Connect Enterprise Edition� �� DB2 Connect �� �� �� �� �

������. DB2 Connect �� ��� �� IBM ���� ������ ��

� �� � � �� � � �� ������ � ��. ��� ��, ���

�� �� �� �� �� ��� �� � ���. �� ��� ��� �

�� ���, ��� � � DB2 Connect ������ �� �� ���

�� � ��� ��� � ���.

DB2 Connect �� ��� � ���� ���� �� ��� ����.

1. ��� �� ��� DB2 Connect� ��� ��� �����.

2. ��� � ��� ������ ��� � � ���� ����

�� ����� ������.

3. IBM ���� ������ ��� DB2 Connect ��� � �����

������ ������.

4. DB2 Connect ����� �����. � ��� � ���� IBM �

��� � ���� �����. � ��� DB2 Connect �� ���

��� �� �� �� ����� ���� �� ��� ������.

5. � ��� DB2 Connect� IBM ���� ������ � � �

����. DB2 Connect� ���� �� TCP/IP � �� ��� � ��

�. �� �� ���(CA) �� DB2 � ���(CLP)� ���� IBM �

��� ������� ��� � ���.

6. DB2 Connect�� ���� ��� ���� IBM ���� ����

��� ������.

7. � ������.

8. (����) �� ��� �� �� ��� � �� ����.

9. WebSphere, ��� ��� �� ��� ����� �� ����� �

����, �� �� �� ������ �����. WebSphere �� ��

��� DB2 Connect �� �� ��� ��� � ��� �� ���� ��

� �����. �� ��� ���� ���� ���� � ��� �

����.

10. IBM Data Server Client� ��� ������. � � ���� ��

���� ��� �� ��� IBM Data Server Client�� IBM ����

������ ���� � ����� � ��� � ������.

11. DB2 Connect� �� ������ IBM ���� ���� ��� ��

�� ���� ������.

© Copyright IBM Corp. 1993, 2009 43

Page 50: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

12. IBM ���� ������ ��� �� ������ ��� �� �

� ��� ��� � IBM Data Server Client� �����.

13. �� �� ������ DB2 Connect� � ��� �����. ���

�� �� ��� ��� �� IBM Data Server Client� ��� �

� ���.

14. z/OS� DB2 �� Linux, UNIX Windows� DB2 ������� ���

� � ��� � �����, IBM Data Server Client� �����.

44 DB2 Connect Server � ��

Page 51: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 7 � ��� � ��� ����

��� ����

��� �� �� ����� ���� ���� � � ���� ���

�� ��� �� �� �����. DB2 � ��� �� �, �� � �

�� �� � �� ��� ����� ���� �� �� ���� �����.

� ������, ���� �� ��� �� �� ����� ���� �

��.

Linux UNIX � ����, /tmp ���� 2GB� � � � �� ��

�.

��� ����

DB2 ������ ����� ��� 256MB� RAM� ����. DB2 DB2

GUI ��� ���� ���� ��, �� 512MB� RAM� ����. ��� �

� ����� 1GB� RAM� ����. � ������ ����� �� �

� �� ����� �� �� ��� ����� ���� ����.

��� ����� �� ��� �� ��� � �� ���.

v Itanium �� ���� HP-UX �� 11i�� �� �� DB2 ���� ��

512MB� RAM� ����.

v IBM Data Server Client ��� ��, ����� 5�� �� ����� �

�� ��� �������. 5�� ����� � ��� 16MB� RAM�

����.

v ��� ����� ������ ���� ��� ��, ������ ��� ��

���� ����� ������ �� ��� ����.

DB2 ��� ��, �� � � ��� �� �� ��� �� ����� �

� ���� ���� ��� �� ���� �����. �� �� ��, �

�� � ���� �� �� ��� ��� ���� ��, �� ��, ��

� � �� ��� �� ��� ����� �����.

v Linux UNIX � ���� RAM ��� ��� � �� ���� SWAP �

� � ��.

© Copyright IBM Corp. 1993, 2009 45

Page 52: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

46 DB2 Connect Server � ��

Page 53: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 8 � DB2 Connect �� �� ��(AIX)

� �� �� ���� AIX� DB2 Connect ��� ���� DB2 � �

�� ������.

DB2 � ���� DB2 ��� � ��� ����� Java �� � ���

��. � ���� ���� ���� � �� � � ���. ��� �� DB2

Connect ��� �� � ���.

v � �� ��� ��

v ���� db2_install ��. � ��� �� � ��� SMIT� ���

� DB2 ��� ���� �� � ����. DB2 ��� ����� ���

� � ���� � �� � ���� �� � �� ����� ���� ��

�.

����

�� ���� �� ��� ������.

v �� �� ��� ��� ���� DB2 Connect� �� � ���. ���

�� �� ��� ��� �� ��� �����.

v ���� �� � � ����� ������.

– �� ��� ����

– ����, �� ���� ����

v ��� ���� DB2 �� DVD� ���� ���.

v DB2 Connect �� ���� �� ��� ���. ��� �� DB2 Connect �

� ��� ��� ��, �� ��� ��� ��� �� ���.

v ��� I/O� �� ��� ������. DB2 Connect �� ��� ��� �

� �� ��� ���.

v ���� �� �� DB2 ��� ���� DB2 Server �� ����� ��

DB2 �� �(Linux UNIX)� ��� �����.

v DB2 � ��� ��� � ������. ���� ����� DB2 �

��� ����� ��� ��� ������ ���� � � X Windows �

���� �� ���. X Windows ��� �� ��� ������. ��

��� � �� � � � � � � � � � � � � � . � : e x p o r t

DISPLAY=9.26.163.144:0.

© Copyright IBM Corp. 1993, 2009 47

Page 54: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v LDAP(Lightweight Directory Access Protocol) �� � ����� ��� �

�� ��� ��, DB2 � ��� ���� �� �� DB2 ���� ��

�� ���� ���. ���� �� ��� ��� ��� �� ����� ���

�����.

�: DB2 �� 9.1 FixPack 2��� �� � �� ���(NIS) �� � ��

��� ���(NIS+) �� ���� ����. ��� �� �� ��� �� �

����� ��� � ���. LDAP(Lightweight Directory Access Protocol)�

�� ��� ��� �� ���� � �� � ���.

DB2 � ��� ���� AIX� DB2 Connect Enterprise Edition� �� DB2

Connect �� ��� ���� ��� ������.

1. DVD� ��� ���� ������.

cd /db2dvd

��� /db2dvd� DVD� � ��� �����.

2. DB2 Connect �� ���� ������ �� ��� ��� ���� untar

�� ���.

a. �� ��� ��� ������.

gzip -d product.tar.gz

��� product� ���� ������ ��� �����.

b. �� ��� untar����.

tar xvf product.tar

c. ���� ������.

cd ./product/disk1

�: ��� ��� ������ ��� ���� untar����. ��� �

� ���� �����(�: ./nlpack/disk2)� ����, � ����

�� �� ���� � ���� �� � ���.

3. DB2 � ��� ����� �� ���� � ����� ./db2setup

� ������. �� � IBM DB2 � ����� ����. �� CD� �

�� ��, �� �� �� �� �� �� ��� ���� �� CD �� �

��� db2setup � ���� DB2 Connect �� CD� �� �� �

��� � �� ������. � ��� � ����� ��� ��� ���

� �� ��� � ���.

4. � �� ����� DB2 � �� � ��� �� ���� �����

�. DB2 � ��� ��� � � ���� ��� � ���. ���

���� ���� ��� �����. ��� ��� ���� �� � �

� ���. �� DB2 � �� � ���� �� ���� DB2 ��

48 DB2 Connect Server � ��

Page 55: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ����� � ��. � � ����, DB2 Connect �� ���

/opt/IBM/db2/V9.5 �� � ��� ���� � ��.

� ���� �� ��� ���� ��� ����, DB2 Connect �� �

��� _xx� �� ��. ��� xx� 01�� ���� �� DB2 �� �� �

� ��� �����.

��, �� DB2 ������ �� � ��� ��� �� ���.

DB2 Connect ��� �� � ��� � � ����� ./db2setup � �

��� ��� � �� �� ���.

��� � �� db2setup.log db2setup.err� /tmp ���� ���.

�� ��� ��� ��� �� ���.

DB2 ���� �� ��� �� �� �� �� ���� � DB2 ��� ���

� ���� DB2 �� ��� ��� ���. DB2 �� ���� DB2 ����

�� DB2 �� ��� �� ��� ���. DB2 Server �� �DB2 �

��� ���� DB2 �� �� �(UNIX)� ��� �����.

DB2 Connect �� ��� �� ����(AIX)AIX � ���� DB2 Connect �� ��� ��� �� ��� ���� �

� � ��, ����, ���� �� ����� ���� ������.

DB2 Connect Enterprise Edition� �� DB2 Connect �� ��� ����, �

� ����� ��� ���.

� 8 AIX 49

Page 56: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� ����

� 4. AIX � ����

�� �� ���

AIX �� 5.3

v 64�� AIX ��� ��

v AIX 5.3 TL(Technology Level) 9� ���

(SP™) 2 APAR IZ03063

v �� C++ ��� ���� xlC.rte 9.0.0.8

xlC.aix50.rte 9.0.0.8(��) �� ��� �� �

��. � �� ��� 2008� 6�� AIX� IBM

C++ Runtime Environment Component ��

� ���� ���.

AIX �� 6.12

v 64�� AIX ��� ��

v AIX 6.1 TL 2

v �� C++ ��� ���� xlC.rte 9.0.0.8

xlC.aix61.rte 9.0.0.8(��) �� ��� �� �

��. � �� ��� 2008� 6�� AIX� IBM

C++ Runtime Environment Component ��

� ���� ���.

64�� CHRP(Common Hardware Reference

Platform) � �1

���� AIX � ��� ��� � � ��

���

v1CHRP � � ����� ����� lscfg � ���� Model

Architecture: chrp� ���� ������.

v2AIX 6.1�� � �� �� WPAR(Workload Partition), � ���

WPAR ����� WPAR� ���. DB2 �� ��� WPAR

��� �� ��. ��, AIX 6.1� JFS2 �� ��� �� �� ���

����� �� �����.

����� ����

v 64�� ��� ����� bosboot � ������.

64�� ��� ����� � ��� �� �� �� � ����

���.

ln -sf /usr/lib/boot/unix_64 /unixln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unixbosboot -ashutdown -Fr

v ����� � ��� ����� ��� ������ �����

�� �� ���� ���� �� ����� �����.

v IBM AIX XL C C++ �� � ����� AIX� �� IBM C++ �

�� �� ����� ���� � ���.

50 DB2 Connect Server � ��

Page 57: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v ��� ���� �� �(db2fs)� ����� �� ���� � ��

� ����.

– Firefox 1.0 ��

– Mozilla �� ���� 1.7 ��

– Safari 3.0 ��

v �� AIX ��� �� ��� ��� www.ibm.com/support/docview.wss?

&uid=swg21165448� �����.

�� ����

�� �� � ��� �� �� ����� ���� ���.

v TCP/IP � �� �� ����� ��� ����.

v LDAP(Lightweight Directory Access Protocol) ��� ��, IBM

SecureWay™ Directory Client V3.2.1 ��� ����.

NFS(Network File System)�� DB2 �� ��

NFS(Network File System)�� DB2 �� �� � �� ����. NFS�� DB2

��� ��� ��(�� ��, /opt/IBM/db2/V9.5� NFS ��� ��� ��

�� ��� ��� � �� ��� ��) � �� �� � �� ���

�. �� DB2 ��� �� NFS� ��� �� �� ���� ���� ���.

�� ���� ��� ����.

v �(�� � �� ��� ��)

v �� ��(� �� ��� ���� ��)

v ����(��� ��� �� ��)

v NFS �� �� ��� � ���.

��� ���� NFS ��� ��� ���� � �� �� �� ����.

v � ��� � ��� ����� ��

v �� �� ��(�� ��, � ���� �� ��� ���� ��� ���.)

v DB2 ������ �� � ����� ���� ��� ������ ��

�.

v DB2 �� �� ���� �� ��, �� DB2 �� �� ���� db2ls

� ���� ��� ����� ���.

v DB2 �� ��� ��� �� ��� ��� ����.

v ���� ���� � ���� ��� �� ��� ��� ����.

��� ����� http://www.ibm.com/developerworks/db2/library/long/

dm-0609lee�� ″NFS � �� ����� UNIX Linux� DB2 �″ ��

� �����.

� 8 AIX 51

Page 58: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

CD �� DVD ��(AIX)

��� ��� �� ��� ��� �� �� ����� � �� ���.

SMIT(System Management Interface Tool)� ���� AIX� CD �� DVD�

���� �� �� ������.

1. ����� ��� �����.

2. mkdir -p /disc � ���� �� � ��� ������. ���, disc

� CD �� DVD � �� ���� �����.

3. smit storage � ����� SMIT� ���� �� �� ���� ��

����.

4. SMIT� ���� �� ��� —> �� ��� � / � / �� / �� —>

CDROM �� ��� —> CDROM �� ��� �� ������.

5. �� ��� �� ��� ��� ������.

v ���� �� �� CD �� DVD �� ���� �� ��� ����

��. CD �� DVD �� ���� �� �� ��� ��� ���. �

�� �� ��� � ���� ��� ��� CD �� DVD �� �

��� ����� ���� �� �� ��� ���� ���. � ����

/dev/cd0� �� ���� �����.

v �� �� ��� �� � �� ���� ������. ���

� �� ���� /disc���.

v ��� ���� ��� �������? ��� �� ���� �� �

��� �� �� �� ��� ����.

v ��� ��� �� �� �� ��� � � ��� SMIT� � ����.

6. � ��� smit mountfs � ���� CD �� DVD �� ���� �

����.

7. �� ��� � ��� ��� ������.

v �� ��� �� �� � CD �� DVD �� ���� �� ��� �

�����. ��� �� ��� /dev/cd0���.

v �� ���� �� �� � ��� ������. ��� � �

�� /disc���.

v �� ���� �� �� cdrfs� ������. �� � � �� ��

� �� ���� ��� ��� �����.

v �� � ���� �������? ��� �� ������.

v ��� ���� ���� ��� ��� �� �����.

52 DB2 Connect Server � ��

Page 59: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

CD �� DVD �� ���� ������. CD �� DVD� ��� ��� �

���� ��� �� cd /disc � ������. ���, disc� �� �

�� ������.

� 8 AIX 53

Page 60: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

54 DB2 Connect Server � ��

Page 61: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 9 � DB2 Connect �� �� ��(HP-UX)

� �� �� ���� HP-UX� DB2 Connect ��� ���� DB2 �

��� ������.

DB2 � ���� DB2 ��� � ��� ����� Java �� � ���

��. � ���� ���� ���� � �� � � ���. ��� �� DB2

Connect ��� �� � ���.

v � �� ��� ��

v ���� db2_install ��. � ��� �� � ��� swinstall� ��

�� DB2 ��� ���� �� � ����. DB2 ��� ����� ��

�� � ���� � �� � ���� �� � �� ����� ���� �

��.

����

�� ���� �� ��� ������.

v �� �� ��� ��� ���� DB2 Connect� �� � ���. ���

�� �� ��� ��� �� ��� �����.

v ���� �� � � ����� ������.

– �� ��� ����

– ����, �� ���� ����

v ��� ���� DB2 �� DVD� ���� ���.

v DB2 Connect �� ���� �� ��� ���. ��� �� DB2 Connect �

� ��� ��� ��, �� ��� ��� ��� �� ���.

v ���� �� �� DB2 ��� ���� DB2 Server �� ����� ��

DB2 �� �(Linux UNIX)� ��� �����.

v DB2 � ��� ��� � ������. ���� ����� DB2 �

��� ����� ��� ��� ������ ���� � � X Windows �

���� �� ���. X Windows ��� �� ��� ������. ��

��� � �� � � � � � � � � � � � � � . � : e x p o r t

DISPLAY=9.26.163.144:0.

v LDAP(Lightweight Directory Access Protocol) �� � ����� ��� �

�� ��� ��, DB2 � ��� ���� �� �� DB2 ���� ��

�� ���� ���. ���� �� ��� ��� ��� �� ����� ���

�����.

© Copyright IBM Corp. 1993, 2009 55

Page 62: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�: DB2 �� 9.1 FixPack 2��� �� � �� ���(NIS) �� � ��

��� ���(NIS+) �� ���� ����. ��� �� �� ��� �� �

����� ��� � ���. LDAP(Lightweight Directory Access Protocol)�

�� ��� ��� �� ���� � �� � ���.

DB2 � ��� ���� HP-UX� DB2 Connect Enterprise Edition� �� DB2

Connect �� ��� ���� ��� ������.

1. DVD� ��� ���� ������.

cd /db2dvd

��� /db2dvd� DVD� � ��� �����.

2. DB2 Connect �� ���� ������ �� ��� ��� ���� untar

�� ���.

a. �� ��� ��� ������.

gzip -d product.tar.gz

��� product� ���� ������ ��� �����.

b. �� ��� untar����.

tar xvf product.tar

c. ���� ������.

cd ./product/disk1

�: ��� ��� ������ ��� ���� untar����. ��� �

� ���� �����(�: ./nlpack/disk2)� ����, � ����

�� �� ���� � ���� �� � ���.

3. DB2 � ��� ����� �� ���� � ����� ./db2setup

� ������. �� � IBM DB2 � ����� ����. �� CD� �

�� ��, �� �� �� �� �� �� ��� ���� �� CD �� �

��� db2setup � ���� DB2 Connect �� CD� �� �� �

��� � �� ������. � ��� � ����� ��� ��� ���

� �� ��� � ���.

4. � �� ����� DB2 � �� � ��� �� ���� �����

�. DB2 � ��� ��� � � ���� ��� � ���. ���

���� ���� ��� �����. ��� ��� ���� �� � �

� ���. �� DB2 � �� � ���� �� ���� DB2 ��

� ����� � ��. � � ����, DB2 Connect �� ���

/opt/IBM/db2/V9.5 �� � ��� ���� � ��.

56 DB2 Connect Server � ��

Page 63: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ���� �� ��� ���� ��� ����, DB2 Connect �� �

��� _xx� �� ��. ��� xx� 01�� ���� �� DB2 �� �� �

� ��� �����.

��, �� DB2 ������ �� � ��� ��� �� ���.

DB2 Connect ��� �� � ��� � � ����� ./db2setup � �

��� ��� � �� �� ���.

��� � �� db2setup.log db2setup.err� /tmp ���� ���.

�� ��� ��� ��� �� ���.

DB2 ���� �� ��� �� �� �� �� ���� � DB2 ��� ���

� ���� DB2 �� ��� ��� ���. DB2 �� ���� DB2 ����

�� DB2 �� ��� �� ��� ���. DB2 Server �� �DB2 �

��� ���� DB2 �� �� �(UNIX)� ��� �����.

DB2 Connect �� ��� �� ����(HP-UX)HP-UX � ���� DB2 Connect �� ��� ��� �� ��� ����

�� � ��, ����, ���� �� ����� ���� ������.

HP-UX� DB2 Connect �� ��(�: DB2 Connect Enterprise Edition)� ��

�� �� ����� ���� ���.

�� ����

� 5. HP-UX � ����

�� �� ���

HP-UX 11i v2(11.23.0505)

v May 2005 Base Quality(QPKBASE) ��

v May 2005 Applications Quality(QPKAPPS) �

HP-UX 11i v3(11.31)

Itanium® �� HP Integrity Series Systems

����� ����

v ��� ���� ��� ����� ����.

v �� HP-UX ���� �� ��� ��� www.ibm.com/support/

docview.wss?&uid=swg21257602� �����.

�� ����

TCP/IP� ��� � ���.

v TCP/IP � �� �� ����� ��� ����.

� 9 HP-UX 57

Page 64: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

CD �� DVD ��(HP-UX)� ��� HP-UX�� DB2 �� CD �� DVD� ��� ��� ���.

��� ��� �� ��� ��� �� �� ����� � �� ���.

HP-UX� DB2 �� CD �� DVD� ���� ��� ������.

1. ����� CD �� DVD� �����.

2. ��� CD �� DVD ����� �� � ���� � ���� ���

���. mkdir /cdrom � ���� /cdrom� � ���� ������.

3. ��� ioscan -fnC disk � ���� ���� �� ��� ����

�. � � ��� �� CD �� DVD ���� �� �� �� �

�� �����. �� ��� /dev/dsk/c1t2d0� ����.

4. � �� ���� CD �� DVD ����� �����.

mount -F cdfs -o rr /dev/dsk/c1t2d0 /cdrom

5. ls /cdrom � ���� �� ���� �� �� �� ������.

6. ��������.

CD �� DVD �� ���� ������. ����� CD �� DVD� ��

��� � �� cd /disc � ������. ���, cdrom� � �� ���

���.

58 DB2 Connect Server � ��

Page 65: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 10 � DB2 Connect �� �� ��(Linux)

� �� �� ���� Linux� DB2 Connect ��� ���� DB2 �

��� ������.

DB2 � ���� DB2 ��� � ��� ����� Java �� � ���

��. � ���� ���� ���� � �� � � ���. ��� �� DB2

Connect ��� �� � ���.

v � �� ��� ��

v ���� db2_install ��. � ��� �� � ��� rpm� ����

DB2 ��� ���� �� � ����. DB2 ��� ����� ����

� ���� � �� � ���� �� � �� ����� ���� ���.

����

�� ���� �� ��� ������.

v �� �� ��� ��� ���� DB2 Connect� �� � ���. ���

�� �� ��� ��� �� ��� �����.

v ���� �� � � ����� ������.

– �� ��� ����

– ����, �� ���� ����

v ��� ���� DB2 �� DVD� ���� ���.

v DB2 Connect �� ���� �� ��� ���. ��� �� DB2 Connect �

� ��� ��� ��, �� ��� ��� ��� �� ���.

v ���� �� �� DB2 ��� ���� DB2 Server �� ����� ��

DB2 �� �(Linux UNIX)� ��� �����.

v DB2 � ��� ��� � ������. ���� ����� DB2 �

��� ����� ��� ��� ������ ���� � � X Windows �

���� �� ���. X Windows ��� �� ��� ������. ��

��� � �� � � � � � � � � � � � � � . � : e x p o r t

DISPLAY=9.26.163.144:0.

v LDAP(Lightweight Directory Access Protocol) �� � ����� ��� �

�� ��� ��, DB2 � ��� ���� �� �� DB2 ���� ��

�� ���� ���. ���� �� ��� ��� ��� �� ����� ���

�����.

© Copyright IBM Corp. 1993, 2009 59

Page 66: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�: DB2 �� 9.1 FixPack 2��� �� � �� ���(NIS) �� � ��

��� ���(NIS+) �� ���� ����. ��� �� �� ��� �� �

����� ��� � ���. LDAP(Lightweight Directory Access Protocol)�

�� ��� ��� �� ���� � �� � ���.

DB2 � ��� ���� Linux� DB2 Connect Enterprise Edition� �� DB2

Connect �� ��� ���� ��� ������.

1. DVD� ��� ���� ������.

cd /db2dvd

��� /db2dvd� DVD� � ��� �����.

2. DB2 Connect �� ���� ������ �� ��� ��� ���� untar

�� ���.

a. �� ��� ��� ������.

gzip -d product.tar.gz

��� product� ���� ������ ��� �����.

b. �� ��� untar����.

tar xvf product.tar

c. ���� ������.

cd ./product/disk1

�: ��� ��� ������ ��� ���� untar����. ��� �

� ���� �����(�: ./nlpack/disk2)� ����, � ����

�� �� ���� � ���� �� � ���.

3. DB2 � ��� ����� �� ���� � ����� ./db2setup

� ������. �� � IBM DB2 � ����� ����. �� CD� �

�� ��, �� �� �� �� �� �� ��� ���� �� CD �� �

��� db2setup � ���� DB2 Connect �� CD� �� �� �

��� � �� ������. � ��� � ����� ��� ��� ���

� �� ��� � ���.

4. � �� ����� DB2 � �� � ��� �� ���� �����

�. DB2 � ��� ��� � � ���� ��� � ���. ���

���� ���� ��� �����. ��� ��� ���� �� � �

� ���. �� DB2 � �� � ���� �� ���� DB2 ��

� ����� � ��. � � ����, DB2 Connect �� ���

/opt/IBM/db2/V9.5 �� � ��� ���� � ��.

60 DB2 Connect Server � ��

Page 67: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ���� �� ��� ���� ��� ����, DB2 Connect �� �

��� _xx� �� ��. ��� xx� 01�� ���� �� DB2 �� �� �

� ��� �����.

��, �� DB2 ������ �� � ��� ��� �� ���.

DB2 Connect ��� �� � ��� � � ����� ./db2setup � �

��� ��� � �� �� ���.

��� � �� db2setup.log db2setup.err� /tmp ���� ���.

�� ��� ��� ��� �� ���.

DB2 ���� �� ��� �� �� �� �� ���� � DB2 ��� ���

� ���� DB2 �� ��� ��� ���. DB2 �� ���� DB2 ����

�� DB2 �� ��� �� ��� ���. DB2 Server �� �DB2 �

��� ���� DB2 �� �� �(UNIX)� ��� �����.

DB2 Connect �� ��� �� ����(Linux)Linux � ���� DB2 Connect �� ��� ��� �� ��� ���� �

� � ��, ����, ���� �� ����� ���� ������.

DB2 Connect Enterprise Edition� �� DB2 Connect �� ��� ����, �

� ����� ��� ���.

��� ����

���� ��� ����.

v x86(Intel Pentium®, Intel Xeon® AMD Athlon)

v x64(Intel EM64T AMD64)

v POWER(Linux� ���� �� iSeries®, pSeries®, System i, System p®

POWER ���)

v System z (�� eServer™ zSeries)

� ����

���� Linux ��� �� �� ��� ����� http://www.ibm.com/

db2/linux/validate� ������.

�� �� ����� ���� � �� ���. �� �� �����

/etc/sysctl.conf� � ��. DB2 Information Center� �� ����

��(Linux) �� �����. sysctl � ���� ��� �����

� ����� ��� �� ��� �� � �� ���� �����.

����� ����

� 10 Linux 61

Page 68: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v DB2 Connect� ��� �� DB2 � ��� ����� DB2 ��

� ��� ����� ��� ��� ������ ���� � � X

Window ��� ����� ����.

v ��� ���� ��� ����� ����.

�� ����

TCP/IP � �� �� ����� ��� ����.

Linux on zSeries� DB2 �� ��

Linux� �� �� IBM zSeries� DB2 ��� ���� Linux � ��� ��

� �� � ���� ���� ���. FTP� ���� � ���� � ��

� ���� NFS �� ���� � ���� �� DVD� ��� � � �

��� ���.

�� ��

�� DB2 �� � ���� ������.

FTP� �� �� ��� ���

Linux� �� �� IBM zSeries ����� ��� ������.

1. �� � ������.

ftp yourserver.com

��� yourserver.com� DB2 �� � ���� � FTP ��� �

����.

2. ��� ID� ��� ������.

3. �� � ������.

binget product file

��� product file� �� �� �� ��� �����.

NFS� �� DB2 �� DVD� �� �� ���� ���

Linux � ���� �� DVD� ����� ��� ������.

1. �� �� DVD� �����.

2. DVD� �� ���� ��������. �� ��, DVD�

/db2dvd� �� �� /db2dvd ���� ��������.

3. Linux� �� �� IBM zSeries ����� �� � ���� �

���� NFS �����.

mount -t nfs -o ro nfsservername:/db2dvd /local_directory_name

62 DB2 Connect Server � ��

Page 69: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

���, nfsservername� NFS ��� ��� ��� ����, db2dvd�

NFS ��� ������ ���� ��� ����,

local_directory_name� �� ���� ��� �����.

4. Linux� �� �� IBM zSeries ����� DVD� ��� �

���� ������. cd /local_directory_name � ���� � �

� ��� � ���. ��� local_directory_name� �� DVD�

� ��� �����.

CD �� DVD ��(Linux)

��� ��� �� ��� ���� �� ���� � ���.

Linux � ���� CD �� DVD� ���� ��� ������.

1. ����� CD �� DVD� �� �� � ������.

mount -t iso9660 -o ro /dev/cdrom /cdrom

��� /cdrom� CD �� DVD� � �����.

2. ��������.

CD �� DVD �� ���� ������. ����� ��� �� CD ��

DVD� ��� � �� cd /disc � ������. ���, cdrom� � ��

������.

� 10 Linux 63

Page 70: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

64 DB2 Connect Server � ��

Page 71: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 11 � DB2 Connect �� �� ��(Solaris ��)

� �� �� ���� Solaris � ��� DB2 Connect ��� ���� DB2

� ��� ������.

DB2 � ���� DB2 ��� � ��� ����� Java �� � ���

��. � ���� ���� ���� � �� � � ���. ��� �� DB2

Connect ��� �� � ���.

v � �� ��� ��

v ���� db2_install ��. � ��� �� � ��� pkgadd� ���

� DB2 ��� ���� �� � ����. DB2 ��� ����� ���

� � ���� � �� � ���� �� � �� ����� ���� ��

�.

����

�� ���� �� ��� ������.

v �� �� ��� ��� ���� DB2 Connect� �� � ���. ���

�� �� ��� ��� �� ��� �����.

v ���� �� � � ����� ������.

– �� ��� ����

– ����, �� ���� ����

v ��� ���� DB2 �� DVD� ���� ���.

v DB2 Connect �� ���� �� ��� ���. ��� �� DB2 Connect �

� ��� ��� ��, �� ��� ��� ��� �� ���.

v ���� �� �� DB2 ��� ���� DB2 Server �� ����� ��

DB2 �� �(Linux UNIX)� ��� �����.

v DB2 � ��� ��� � ������. ���� ����� DB2 �

��� ����� ��� ��� ������ ���� � � X Windows �

���� �� ���. X Windows ��� �� ��� ������. ��

��� � �� ������� ������.

�: export DISPLAY=9.26.163.144:0.

v LDAP(Lightweight Directory Access Protocol) �� � ����� ��� �

�� ��� ��, DB2 � ��� ���� �� �� DB2 ���� ��

�� ���� ���. ���� �� ��� ��� ��� �� ����� ���

�����.

© Copyright IBM Corp. 1993, 2009 65

Page 72: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�: DB2 �� 9.1 FixPack 2��� �� � �� ���(NIS) �� � ��

��� ���(NIS+) �� ���� ����. ��� �� �� ��� �� �

����� ��� � ���. LDAP(Lightweight Directory Access Protocol)�

�� ��� ��� �� ���� � �� � ���.

DB2 � ��� ���� Solaris � ��� DB2 Connect Enterprise Edition

� �� DB2 Connect �� ��� ���� ��� ������.

1. DVD� ��� ���� ������.

cd /db2dvd

��� /db2dvd� DVD� � ��� �����.

2. DB2 Connect �� ���� ������ �� ��� ��� ���� untar

�� ���.

a. �� ��� ��� ������.

gzip -d product.tar.gz

��� product� ���� ������ ��� �����.

b. �� ��� untar����.

tar xvf product.tar

c. ���� ������.

cd ./product/disk1

�: ��� ��� ������ ��� ���� untar����. ��� �

� ���� �����(�: ./nlpack/disk2)� ����, � ����

�� �� ���� � ���� �� � ���.

3. DB2 � ��� ����� �� ���� � ����� ./db2setup

� ������. �� � IBM DB2 � ����� ����. �� CD� �

�� ��, �� �� �� �� �� �� ��� ���� �� CD �� �

��� db2setup � ���� DB2 Connect �� CD� �� �� �

��� � �� ������. � ��� � ����� ��� ��� ���

� �� ��� � ���.

4. � �� ����� DB2 � �� � ��� �� ���� �����

�. DB2 � ��� ��� � � ���� ��� � ���. ���

���� ���� ��� �����. ��� ��� ���� �� � �

� ���. �� DB2 � �� � ���� �� ���� DB2 ��

� ����� � ��. � � ����, DB2 Connect �� ���

/opt/IBM/db2/V9.5 �� � ��� ���� � ��.

66 DB2 Connect Server � ��

Page 73: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ���� �� ��� ���� ��� ����, DB2 Connect �� �

��� _xx� �� ��. ��� xx� 01�� ���� �� DB2 �� �� �

� ��� �����.

��, �� DB2 ������ �� � ��� ��� �� ���.

DB2 Connect ��� �� � ��� � � ����� ./db2setup � �

��� ��� � �� �� ���.

��� � �� db2setup.log db2setup.err� /tmp ���� ���.

�� ��� ��� ��� �� ���.

DB2 ���� �� ��� �� �� �� �� ���� � DB2 ��� ���

� ���� DB2 �� ��� ��� ���. DB2 �� ���� DB2 ����

�� DB2 �� ��� �� ��� ���. DB2 Server �� �DB2 �

��� ���� DB2 �� �� �(UNIX)� ��� �����.

DB2 Connect ��� �� ����(Solaris)Solaris � ���� DB2 Connect ��� ��� �� ��� ���� ��

� ��, ����, ���� �� ����� ���� ������.

Solaris� DB2 Connect ��� ���� �� ����� ���� ���.

� 6. Solaris � ����

�� �� ���

Solaris 10 Update 5

v 64�� ��

v �� 127128-11

Solaris x64(Intel 64 �� AMD64)

Solaris 9

v 64�� ��

v �� 111711-12 111712-12

v �� ��� ��� �� �� 122300-11

Solaris 10 Update 5

v 64�� ��

v �� ��� ��� �� �� 125100-07

UltraSPARC �� SPARC64 ���

�� �� ����

″Recommended & Security Patches″� � ���(http://sunsolve.sun.com)

�� �� � ���. SunSolve ��� � ����� �� ��� �

″��″ �� � � �����.

� 11 Solaris 67

Page 74: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

J2SE Solaris � �� �� ����� �� ����. �� � ���

http://sunsolve.sun.com�� �� � ���.

64�� Fujitsu PRIMEPOWER ����� DB2 Connect� �� �� ��

� ����.

v �� 912041-01� ����� ����� Solaris 9 �� �� ��

112233-01 ��.

Solaris � ��� Fujitsu PRIMEPOWER ���

http://download.ftsi.fujitsu.com/� FTSI�� ���� � ���.

Solaris�� DB2 ������ ���� ��� � � � ���� ��

�� www.ibm.com/support/docview.wss?&uid=swg21257606� ����

�.

DB2 ������ ��� Solaris ZFS filesystems Logical

Domains(LDoms)� �����.

����� ����

v SUNWlibC ����� Solaris� DB2 Connect� ��� � ���

�. � ����� � ��� http://sunsolve.sun.com�� �� � �

��.

v ��� ���� ��� ����� ����.

�� ����

TCP/IP� ��� � ���.

v TCP/IP � �� �� ����� ��� ����.

v ��� �� �� DB2 Connect� Sun Cluster 2.2� �� ��.

– ���� �� �� � TCP/IP���.

– 2� ���� ���� ����. ���� � ��� SPM ��

� �� ����(spm_log_path ������ �� ����� ��

��� � � �), � � ���� ��� TCP/IP ��(�� ��

� ��, IP �� )� ��� �� � ����� �� ��.

CD �� DVD ��(Solaris ��)

NFS� ���� ��� ����� CD �� DVD����� ���� ��� �

��� CD �� DVD �� ���� � ��� ���� ������ ���.

�� ��� ��� �� �� ����� � ���� �� �� ���.

Solaris � ���� CD �� DVD� ���� ��� ������.

1. ����� CD �� DVD� �����.

68 DB2 Connect Server � ��

Page 75: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

2. �� �� ���(vold)� ����� �� �� ��, ��� /cdrom/cd_label

�� ���� � ��(CD �� DVD ���� /cdrom/unnamed_cdrom�

�� ���� �� ��).

�� �� ���� ��� ����� ���� � ��� �� �� �

�� CD �� DVD� �����.

a. �� � ���� ��� ��� �����.

ls -al /dev/sr* |awk '{print "/" $11}'

� � CD �� DVD ��� ��� �����. � ��� �

/dev/dsk/c0t6d0s2 ���� �����.

b. �� � ���� CD �� DVD� �����.

mkdir -p /cdrom/unnamed_cdrommount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom/unnamed_cdrom

���, /dev/dsk/c0t6d0s2� �� ��� ��� ��� ��� ��

�� /cdrom/unnamed_cdrom� CD �� DVD � ���� ����

�.

�: NFS� ���� ��� ����� CD �� DVD����� ���

� ��� ���� CD �� DVD �� ���� � ��� ���� ��

���� ���. ��, �� ����� � ��� ���� �� �� ��

�� ��� ���.

3. ��������.

CD �� DVD �� ���� ������. ����� ��� �� CD ��

DVD� ��� � �� cd /disc � ������. ���, cdrom� � ��

������.

� 11 Solaris 69

Page 76: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

70 DB2 Connect Server � ��

Page 77: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 12 � DB2 Connect �� �� ��(Windows)

��� DB2 � ��� ���� Windows � ��� DB2 Connect Enterprise

Edition� �� DB2 Connect �� ��� ��� ��� �� ���. �� �

��� ���� DB2 Connect �� ��� �� � ���.

����

DB2 � ��� ���� �� ��� ������.

v ���� �� � � ����� ������.

– �� ��� ����

– ����, �� ���� ����

v LDAP� ����� DB2 Server �� �LDAP ��� ���� �� ��

� � � (Windows)� ��� �����.

v ��� ���� ���� �� ���� �� ����. ��� ���� DB2

��� ��� Windows ���� �� ��� ��� ��� �� ��� ��

� ��� ��� �� ���.

– � ��� ��� ��

– �� ���� ��

– ��� ��

– ��� �� �� ��

� ��� �� �� �� ��� � �� � ������ ����

�� ��� � ����.

v ���� ���� DB2 Connect� ����, DB2 Connect� ���� �

(Windows) ��� �����.

v DB2 � ��� ���� Windows� DB2 Connect �� ��(�: DB2 Connect

Enterprise Edition)� ���� ��� ������.

1. ��� ��� � ���� ���� �������.

2. �� � � ���� ��� � �� �� ���� �����.

3. DVD� ����� �����. �� �� ��� DB2 � ��� ��

�� �� ��. DB2 � ��� ��� ��� ��� �� ���

� ���� �����. �� ��� � ���� ����� ���

� ���� �� ��� ��� ��, DB2 � ��� ���� ���

� ���.

© Copyright IBM Corp. 1993, 2009 71

Page 78: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

4. DB2 ����� ����. � ��� � ����� ��� ��� ���

� �� ��� � ���.

5. � �� ������, �� � ���� ��� �� ������.

��� ���� ��� ��� �� ��� � ���. ��� ����

���� ��� �����. ��� ��� ���� �� � � �

���.

�� ��� � � �� ���� �� �� �� ���� �� ����

� ���. ��� �� ��� ��� DB2-<Product Abrreviation>-<Date

Time>.log���(�: DB2-CEE-10-06-2006_17_23_42.log). ��� �� ��

� My Documents₩DB2LOG ���� ���.

v DB2 � ��� ���� ���� ��� ������.

1. ��� ��� �� � � ������.

2. �� �� �� � ������.

x:₩setup /i language

��� � ��� ����.

– x:� DVD ����� �����.

– language� ��� ��� �� �� �����(�: ��� ��, EN).

3. ��� �����.

DB2 ���� �� ��� �� �� �� �� ���� � DB2 ��� ���

� ���� DB2 �� ��� ��� ���. DB2 �� ���� DB2 ����

�� DB2 �� ��� �� ��� ���.

DB2 Connect �� ��� �� ����(Windows)Windows � ���� DB2 Connect �� ��� ��� �� ��� ����

�� � ��, ����, ���� �� ����� ���� �����

�.

DB2 Connect �� ��(�: DB2 Connect Enterprise Edition)� ���� �� �

���� ���� ���.

��� ����

���� Windows � ��(32�� 64��)� ��� � � �� Intel

AMD ���

�� �� ����

�� � ����� ���.

v ��� 2 ��� ��� Windows XP Professional Edition(32��

64��)

72 DB2 Connect Server � ��

Page 79: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v ��� 2 ��� ��� Windows 2003

– Standard Edition(32�� 64��)

– Enterprise Edition(32�� 64��)

– Datacenter Edition(32�� 64��)

v Windows Server 2008

– Standard Edition(32�� 64��)

– Enterprise Edition(32�� 64��)

– Datacenter Edition(32�� 64��)

�� Windows Server 2008 ��� � �� ��.

����� ����

v MDAC 2.8� ����. DB2 � ��� MDAC 2.8� �� ��

� � �� �� MDAC 2.8� ����.

v ��� ���� ��� ����� ����.

�� ����

v � ���� TCP/IP� ���� �����.

Windows(64–��) ����

v 32�� UDF ���� ���� �� ��.

DB2 �� �� ��� �� �� ��� ���(Windows)

Windows� DB2 �� ��� �� �� ��� �� ��� ���� ���

�.

v � ��� ���

v ��� ��� - �� ��� ��� ���� ����. � �� �� �

��� ��� � ���.

– DB2 Administration Server(DAS) ��� ���

– DB2 ���� ��� ���. DB2 Enterprise Server Edition ��� ��

� LocalSystem ���� ��� �� ���.

� ��� ���� �� ���� ���� ������. DB2 � ��

� ���� �� � ��� ���� ���� ���. � �� � ��� �

��� ����� DB2 � ���� � ��� ���� ��� � ��

�.

�� ��� ��� ��� ��� �� �� �� DB2 ���, ��� ID

�� �� �� ��� ��� ���.

� 12 Windows 73

Page 80: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

Windows��� �� ��

DB2 ��� � � Windows � � �����. � � �� ��� �� DB2

��� ����� ��� ���� DB2ADMNS �� DB2USERS ��� ����

���.

DB2 � ���� � �� � ��� �����. � �� � ��� ����

� �� ��� ��� � ���.

� � �� ����� DB2� ��� �� DB2 ���� �� �� �� �

���� �� �� �� � ���� ������. DB2 ��� �� �

DB2 ��� �� �� ���� ������. �� �� ��� DB2ADMNS

DB2USERS���. �� �� ��� ��� �� ��, �� ��� �����

�� ��. �� ��, ���� �� ��� ��� � ���.

DB2 �� ��� ����

�� ���� ��

�� ����� �� �� ��� ��� ���� ����. ����

� ��� ���� �� ��� ���� ��� ��� ��� ���.

��� �� ��, ���� ��� ���� ��� � ���. � ��

Windows ��� �� ���� ���� ��� ���� �� ��� �

�� Windows� ��� �� ��� �� ���� ���.

Windows 2008 Windows Vista ����, ����� �� ��� �

��, DB2 � ��� �� ��� �����.

� ��� ����� ″�� ��� � ���� ���″ ��� ���

����.

�� ��� �� �� ����� ��� ���� �� ��, � �

�� ID� ���� ��� ��� ��� ��� ���.

� � LocalSystem ���� �� ��� ��� ��� ���� ��

��� �� DB2 Enterprise Server Edition� ������.

DB2 �� ����� ��� �� ��

DB2 � ���� ��� �� ��� ��� ���� ����. DB2

� ���� ��� �� ��� ��� �����.

v � ��� ��� ��

v �� ���� ��

v ���� ��� ��

v ����� ���

v ��� ��

74 DB2 Connect Server � ��

Page 81: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v ��� �� �� ��

DB2 Administration Server(DAS) �� ����

DB2 Administration Server(DAS)�� �� �� ��� ��� ����

����.

� �� �� ��� ��, � ��� LocalSystem ���� ���

�� ���. ��� ��� db2₩windows₩samples ���� � �

� ��� �����.

LocalSystem ���� DB2 Enterprise Server Edition� ��� �� �

�� ���� DB2 � ��� �� ��� � ���.

DAS� �� ��� DB2 ���� GUI �� �� ���� ����

� ���� �� DB2 �� ������. DAS�� DAS ���� ���

� DAS ���� ���� ����� �� ���� ��� ��� ��

�� ���.

DB2� ��� �� DAS ��� ���� ����� DB2 � ��

� ���� �� ��� �� ���. DB2 � ��� ���� � �

�� ��� ���� ����� �� ��� � ���� ��� ��

�� ��� ��� ���� ��� ��� �� ���. ��� ��

�� �� ��� ���� ��� ��� ��� ���. � �����

��� �� ��� ��� �� ��.

v � ��� ��� ��

v ��� ��

v �� ���� ��

v ���� ��� ��

v ����� ���

v ��� ���(Windows XP Windows Server 2003 � ����

���� �� ��� ��� �)

v ��� �� �� ��

� � � �� �� ��, DB2ADMNS ��� ��� �� ��� �

���. ���� � ��� ��� � �, � ��� ���� ���

�� ����. ��� ���� �� �� ��� ��� ������ ��

�.

″��� ��″ ��� DB2 �� ����� ���� ��� ��� �

���� ��� ���� ����.

��� ���� � ����� ���� ��� ��� ����� �

�� ��� ����, ��� ���� �� ���� ���� � ��

� 12 Windows 75

Page 82: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� ��� ��� �� ��. � � ��� ���� � � ��� ��

��� ��� ���� �� ������ ���� ���� �� ��.

�� �� �� ����� �� �� ��� � �� DAS ���� �

� �� DB2 ���� �� SYSADM ��� �� � �� ����.

���, ��� ��� ��� ���� SYSADM ��� ����.

DB2 ���� �� ����

��� ���� �� ��� ���� ��� ��� ��� ���.

DB2 ������ �� �� ��� ��� ���� ����. �� DB2

����� ����� ��� � ��� ��� ���� ����. DB2� �

���� ��� � � ��� ��� ���� ������. �� ��� �

�� �� LocalSystem ���� ���� ��� DB2 ������ �

����� ��� �� ������ �� ���� �� ��� ��� �

��� ���� ��� ����. ��� ��� ���� �����

�� ��, ��� ��� ���� ���� ����� ���� ���.

� � LocalSystem ���� ���� DB2 Enterprise Server Edition�

��� �� ��� �� �� ��� �� ���.

DB2� ��� �� DB2 ���� ��� ���� ����� DB2

� ���� �� ��� � ���. DB2 � ��� ���� � �

�� ��� ���� ����� �� ��� � ���� ��� ��

�� ��� ��� ���� ��� ��� �� ���. � ����

� ��� �� ��� ��� �� ��.

v � ��� ��� ��

v ��� ��

v �� ���� ��

v ��� ��

v ���� ��� ��

v ����� ���

v ��� �� �� ��

� � � ���� DB2ADMNS ��� �� ��� �� ��. ���

� � ��� ��� � �, � ��� ���� ��� �� ����.

��� ���� �� �� ��� ��� ������ ���.

″��� ��″ ��� DB2 �� ����� ���� ��� ��� �

���� ��� ���� ����.

��� ���� � ����� ���� ��� ��� ����� �

�� ��� ����, ��� ���� �� ���� ���� � ��

76 DB2 Connect Server � ��

Page 83: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� ��� ��� �� ��. � � ��� ���� � � ��� ��

��� ��� ���� �� ������ ���� ���� �� ��.

LDAP ���� ���� �� ���� ��� ��(Windows)Windows Server 2003�� LDAP(Lightweight Directory Access Protocol) ��

� �� �� ����� DB2 ���� ��� �� ��� ����� Active

Directory �� � �� ���. DB2 ��� ��� �� � ���� ���

� ���.

��� �� � �� ��� �� ��.

v � ��� ID� Active Directory� � ��� ��� �� � ��, � �

� ��� �� DB2 ����� Active Directory� DB2 ��� ����

��.

v � �� ��� �� ������� ���� Active Directory� ���� �

�.

��� �� � �� �� DB2 ��� ���, ������� ����� �

��� �� ��� ������� ������ ���.

Windows ��� ���� � �� ��� �� �� ���.

��� �� � ��� ��� ������.

1. ��� ���� �������.

2. � �� ��� � ��� ���� ���� � DVD���

db2schex.exe ���� ������. ��� �� ������ �� ���

�� ��� � ���� ��� � ���.

runas /user:MyDomain₩Administrator x:₩db2₩Windows₩utilities₩db2schex.exe

��� x:� DVD ���� ��� �����.

db2schex.exe� � �� DB2 �� �� �� ��� � ���.

DB2 Connect� ���� ��(Windows)���� ��� ��� ���� POWER ��� ��� ��� ���.

������ ���� �� DB2 Connect� �� �� ��� ������

HKEY_CURRENT_USER ��� ���� ���. DB2 Connect� ���� �

� �� �� � � ������ HKEY_LOCAL_MACHINE �� ��� � �

��� �� ��� HKEY_CURRENT_USER�� ����� ���.

� 12 Windows 77

Page 84: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

Windows ��� ��� ���� ���� ��� ���� �� ��� �

� Windows �� �� �� ���� ���. �� ��, 64�� � ���� 32

� � D B 2 C o n n e c t P e r s o n a l E d i t i o n � � � � �� � ���

HKLM₩Software₩Wow6432Node� �� ���� �� ��� ���� ���.

�: ���� ��� ���� ���� �� �� ����� ��, DB2 ���

��� �� VS2005 ��� ������ ��� ���. � ��� VS2005

��� ������ �� DB2 ��� �� � ���. VS2005 ��� ���

��� Microsoft ��� ����� ��� � ���� ���. 32�� ���

� �� vcredist_x86.exe� ���� 64�� ���� �� vcredist_x64.exe�

������.

��� �� ���� �� �� ��� �� ����� ���. ��� DB2

Connect ��� ��� � ���� ��� �� ��� ��� ��� � ���

�, ���� ���� ���� ����� �� � ���� �� ��.

��� ��� ���� � � �� �� �� ����� � ����.

v ����� DB2 Connect� �� � ���� ��� ���� DB2 Connect�

���� ���. ���� ��� �� ��� �� ���� ����. ��

�� ��� ���� ��� �� ��� � ���� �� �� � � �

�� �� ���.

v ����� DB2 Connect� �� � �� ����� ��� ���� DB2

Connect� ���� ���. � ������, �� ���� ��� ���

� ���� ����� ��� �� ���� �� ��.

v ���� DB2 Connect� �� � ����� ��� ���� DB2 Connect�

���� ���. � ������, �� ���� ��� ���� ����

����� ��� �� ���� �� ��. ������ �� � �� �� �

� ��� ���.

v ���� ���� DB2 ��� � ��� � ����. Windows Vista( � �

�) � ����� ���� �� ���� DB2 ��� � ��� � ���

�.

��� ID� DB2ADMNS � DB2USERS ��� ��� ��(Windows)DB2 �� � � �� ���� �� DB2 ����� ��� ���� ��

���� DB2USERS �� DB2ADMNS ��� ���� ���� ���. DB2

� ���� � �� � ��� �����. � ��� ����� �� ��� �

�� � ���. �� �� ��� DB2ADMNS DB2USERS���.

����

v DB2 ��� ��� �� ���.

78 DB2 Connect Server � ��

Page 85: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v DB2 ��� ��� �� DB2 ����� � �� � �� ���

� � �� � �� ���� ���� ���.

���� ��� ��� ����� ��� �� ������.

1. ��� �� � ��� ������.

2. lusrmgr.msc� ��� � ��� �����.

3. �� �� � � � ������.

4. ��� ������.

5. ��� ���� ������.

6. � ��� �����.

7. ��� �� �����.

8. �� �����.

9. �� ��� ������.

10. ��� �����.

�� ����� � � �� ���� ��� ��� ��, db2extsec.exe

� ���� �� �� �� ��� � ���. ���� ��� ���� ���

� ��� �� ���� ���� � �� �� . �� �� , ��� ID�

DB2ADMNS ��� ���� �� � ����� ����� ����� �� ��

����� ���.

� 12 Windows 79

Page 86: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

80 DB2 Connect Server � ��

Page 87: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 13 � ��� �� ��(Linux � UNIX)

�� 9.5 ���� � ��� � ���� ��� ��� FixPack� �� �

���, ����� ����, �� ����� � ��� � ����. �� �

� ���� ���� ��� ���� Linux UNIX ����� ��� � �

��.

DB2 � ���� �� � �� �� ����� ���� ���� ���

��. �� ���� � �� �� ����� ��� ��� ��� � ��

�. � �� �� �� DB2 ��� ���� ���� �� ���.

DB2 ��� �� ��� ��� ���� �� �� ��� �� ���

DB2 ����� ���.

�� �� ��� �� �� ��� �����.

v ��� ���� � � ���� �� DB2 ��� ���� � ��� ��

� ���� � �����

v ����� ��� ���� ���� ������ ��� �� DB2 ��� �

��� ����� ��

v � ��� ��� ��� DB2 ��� ����� ����� ���

ISV(Independent Software Vendor)

� ��� �� �� ���� � � �� ���� � �� ���� ��

� ���. � ���� db2rfe � ���� �� ��� ��� � �� �

���.

�� ��� ��� �� �� ���

� �� �� ��� �� �� ��� �� � �� ��� �� �

����.

� � �� DB2 ��� ����� ��� � ���� ��� ���

� �� ��.

� ����� ��, �� ���� DB2 ��� �� ��� ��� � ���

�. �� �� �� $HOME/sqllib ���� � ��. ��� $HOME� �

� ���� � ���� �����. ��� sqllib ��� ��� ���

��� ����� � �� ����� ����.

© Copyright IBM Corp. 1993, 2009 81

Page 88: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� �� �� �� ����� ��� � ���. ���� ��� ���� �

� � ��� ��� ID� � ��.

�� ��� ��� DB2 ����� � � ���. �� � ���

�� �� ��� �� �� DB2 �� �� ���� ��� �� ��.

�� �� � �� �� � � ���� �����.

� 7. � �� �� � � ���

�� �� �� ��� ��

���� � ���� ���

� �

� ���. DB2 ��� ���� �

��� ��� � ��.

�� DB2 ����� ��� �� � �� �

� �� �� �� ��� �� ��. �����

� �� ����� ���.

��� �� ���� ��.

DB2 ��� � �� �� ��

����.

�� ���� ���� ��� � ��� ��� �� �� �

�� � ��� �� ����.

� ��� ��� �����

��������.

��� ��� ��

� �� �� � � ��� ��� �� ��� ��� � �� ��

�. � ����� �� �� ���� ��� ��� � ��� �� ��� �

� ���.

�� �

��� �� �� DB2 ��� �� ���� ���� ����.

v DB2 Query Patroller

v DB2 Net Search Extender

v ��� �� DB2 �� ��

�: ��� �� DB2 �� ��� �� ����� � ��� �

��� �� ���� ���� ����. ��� �� � DB2 �

���� ��� ���� �� �� ��� �� DB2 �� ��� �

���� ��� � ���.

�� � �� �

�� � ��� �� ���� ��� � ����.

v DB2 Administration Server(DAS) �� (dascrt, dasdrop, daslist,

dasmigr dasupdt)

v �� �� ���

82 DB2 Connect Server � ��

Page 89: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v �� ��

v db2governor� ����� ��� �� ���� ����.

v WLM(Work Load Manager)�� �� DB2 ����� DB2 ��� �

���� ���� ����� ���� ��� �� ��. ��� ��

�� ����� ���� �� SQLCODE ��� ���� ����.

v ��� ��� � �� DB2 ����� �� ��� ���� ����.

Health Monitor �

��� �� Health Monitor �� �� ���� ���� ����.

v �� � � ���� �� ��� � ��

v �� �� ���

�� ������ �

� �� �������� �� ��� �� ��. ������ ��

� � ��� � ����.

DB2 �� ��

�� ����� ��� � db2ls � ���� �� � �����

��� � ���� �� ����. ��� ��� db2ls ��� �

����.

DB2 �

�� ���� ��� DB2 �� ��� �� � ���.

DB2 ���� �

�� ���� � �� ��� DB2 ����� �� ��. ���� �

���� ��� � ����.

���� ����� �� � �� DB2 ���� ��

� � �� �� �� ����� �� � ��� ��� �

���. ��� �� ����� �� ����� ��� �� ���

� ����� ��(drop)� � ���(db2_deinstall ��).

� ��� �� ���� ���� DB2 ����� � ��� �� ��

��� ����� ��(drop)� � ���.

DB2 ���� ��

�� DB2 ���� � �� ���� ��� � ����.

db2icrt

DB2 ��� �� ���� ��� ��, � ����� ���

� ���� �� ��. �� ����� �� ��� ��� �

����. ��� ���� ��� ����� ���� �� ����

�� � �� db2nrcfg� ��� � ���.

� 13 �� �(Linux UNIX) 83

Page 90: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

db2iupdt

db2iupdt � �� ������ ��� � ����. �� �

� DB2 ����� ����� �� � �� (db2nrupdt)�

������. ��� �� ����� ���� �� �����

�� ����. �� DB2 ��� ��� � ���� ���� ��

���.

db2idrop

�� � �� ���� ���� ����� ��(drop)� � �

���. DB2 ����� ��(drop)��� DB2 ��� � ���

� ���.

db2iupgrade

� ��� �� ��� ����� ���� ����. �� �

���� ������� db2nrupgrade � ������.

����� �

� ����� � ��� �� ����� ����� � ����.

DB2 ���� ����� �� � �� �� � ��

� � �� �� �� ���� ��� � ���. ��� DB2

��� �� �� �� ����� ��� �� �� �� �� � �

��.

v FixPack ��

v � ��

v ��(add-on) �� �

ulimit � ��

UNIX Linux�� ulimit � ��� �� ��� �� ��� ��

��� ��� �����. � ����� �� ������ ��� ��

�� ���� �� �� ulimit �� ���� �����. ��� �

� ����� �� ulimit �� � ��� ��� � ���. �� �

��� �� �� ���� �� ��. ulimit �� ����� � ���

����.

db2rfe� ���� ��� � �� ��

�� ��� db2rfe � ���� �� � � ���� ��� ���.

�� �� �� ���� ���� ��� � ����.

v � �� �� ��

v ����(HA) �

v /etc/services ���� ��� ��� ���� �

84 DB2 Connect Server � ��

Page 91: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v ��� ��� ��(ulimits)� ��� �. � �� AIX�� �� ��. ��

������ ��� ��� ��� ���� ��� ���.

�� ��� � � �� (db2rfe)� ���� ��� �� �� ��

� ����. db2rfe ��� ������ � ��� �� ���� ����

���.

��� ���� ��

� �� �� ��� DB2 ��� �� �� ����. �� �� � ��

�� ��� ���� ���� DB2 ��� �� ���� �� �� db2rfe

� ����� ���� �� ���� �� �� ���� ��� ���. ��

���� �� ��� ��(dbm cfg) ���� �� ����� ���� �� ��

� � ���.

v clnt_pw_plugin(����� ��� ID-�� ���� �� ����)

v group_plugin(�� ���� �� ����)

v srvcon_pw_plugin(�� �� ������ ���� � �� ��� ID-�� �

���)

DB2 �� ��� ���� ��

���� DB2 ������ ��� �� ���� �� � ���.

��� ��

DB2 ������ ��� �� ���� ��� �� � �� �� ��

���� �� �� ��� �� ���. ��� �� �� ��� ��� ��

� �� ��(Linux UNIX)�� �����.

�� ���� DB2 ������ ��� ��� �� ���� ��� ���

�.

v � DVD� �� � �� ��� �� �� � DVD� �� ��

�.

v DB2 ����� ��� ��� � � � ��� ID� �� ���.

��� ID� ���� ����� ��� ����.

– guests, admins, users local ��� �� ��� �� �

– ��� ��(a–z), ��(0–9) �� ��(_)� ��� � �� �

– 8� ����� �

– IBM, SYS, SQL �� ��� ��� � ��

� 13 �� �(Linux UNIX) 85

Page 92: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

– DB2 ���(USERS, ADMINS, GUESTS, PUBLIC �� LOCAL) �� SQL

���� � ��

– DB2 ���� ID, DAS ID �� �� ID� �� � ��� �� �� ��

� ID� ��� � ��

– � ��� ��� � ��

– � ��� ID� ���� �� �� ��� ID� ��� ���� ��� ID�

� �� ��� ������.

- ��� ID� �� � ���

- ��� ��� � ���

v � �� ��� ���� ���� ���� ���� � ���� �

��� �� ����� �� ��.

v AIX �� 5.3�� ��� ��(AIO)� �� ��� ���. �����

IOCP(I/O Completion Port)� �� ���� �����.

v � ���� � DB2 ���� ���.

DB2 � ��� ��� ��� ����.

– ��� ��(a–z), ��� ��(A–Z) �� ��(_)� ��� � �� �

– 128� ����� �

– ����� ��� � ��

– ��� �� ��� ��� � ��

� ���� �� ��

DB2 ������ ��� �� ���� ��� �� �� ����� � �

���. �, �� ���� �� ����� ����� � ��� DB2 ���

��� ��� ��� �� ���� �� �� ��� ����.

����

�� �� ����� ��� ������.

1. �� ���� �������.

2. �� �� ��� ���� DB2 ������ ��� �����. � � �

�� ����.

v DB2 � ��(GUI �)

v db2_install

v � ��� � db2setup (�� �)

�: �� ���� DB2 ������ ��� �� ���� ��� � �

��� � ���� FILE �� �� ��.

86 DB2 Connect Server � ��

Page 93: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

3. DB2 ������ ��� �� �� �� DB2 ����� ����� � �

�� � � ��� ���. �� DB2 ���� ��� $HOME/sqllib/

db2profile(� � � � ����) �� $HOME/sqllib/db2chsrc(C � �

���)� ��� ���� ��� ��� � � ��� �� ���. ���

$HOME� �� ���� � ������.

�� �

DB2 ������ ��� �� �� � �� ��� ��� �� ��(ulimits)

� ������. �� ulimit �� ���� ��� DB2 ���� � �� � �

�� ��� �� �� � ���. ��� ��� �� DB2 ������ ���

��� �� � ���.

db2rfe� ���� ��� ���� �� �� �� ��

�� ��� ���� �� ����� db2rfe � ���� �� �� �

�� �� ���.

� ���� � ��� ����.

�� ��� ���� �� ��� �� �� ��� ��� ��� ���

���.

1. � �� ��� �����. � �� � �� ��� �� ��.

v $HOME/sqllib/instance/db2rfe.cfg� �� DB2 ����� �� ��

��� �� ���� ���.

v $HOME/sqllib/cfg/db2rfe.cfg.sample� ���� �����.

��� $HOME� �� ���� � ������.

2. �� ��� ���� ��� � �� �� � ��� �� ��� ����

�.

3. �� �� ��� �� �� ������. � �� ��� db2rfe � �

����. ��� �� ��� ����.

INSTANCENAME=db2inst2SET_ULIMIT=NOENABLE_HA=NOENABLE_OS_AUTHENTICATION=NORESERVE_REMOTE_CONNECTION=NO

**SVCENAME=db2c_db2inst2**SVCEPORT=48000

RESERVE_TEXT_SEARCH_CONNECTION=NO**SVCENAME_TEXT_SEARCH=db2j_db2inst2**SVCEPORT_TEXT_SEARCH=55000

�:

� 13 �� �(Linux UNIX) 87

Page 94: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v INSTANCENAME ����� �� ���� DB2 � ���� �� �

���.

v SET_ULIMIT ����� AIX��� ��� � ���. �� � ���

�� � ��� �� ���� ulimit �� � ��� ���.

v �� �� ���� NO���.

v �� ����(�: SVCENAME)� ��� �� �� ��. ��� **� �

� ��.

v ����� YES� ��� �� ����� �� �� ����� �� �

��� ��� �� ���� �� ����. ���� �� �� �� ���

�. ���� ��� �� �� �� ��� ������.

�� �� �� ��� �� ��� �� ��� ���� �� ��� ��

���� ���.

v ����

v � �� �� ��

v DB2 �� ��, ��� �� db2j_db2inst2 55000 �� �

��� �� �� ��� ��� �� ��� ��� �� ������.

INSTANCENAME=db2inst2SET_ULIMIT=NOENABLE_HA=YESENABLE_OS_AUTHENTICATION=YESRESERVE_REMOTE_CONNECTION=NO

**SVCENAME=db2c_db2inst2**SVCEPORT=48000

RESERVE_TEXT_SEARCH_CONNECTION=YESSVCENAME_TEXT_SEARCH=db2j_db2inst2SVCEPORT_TEXT_SEARCH=55000

4. � ��� � ����� �������.

5. $HOME/sqllib/instance ���� ������. ��� $HOME� �� ��

�� � ���� �����.

6. �� ��� ���� db2rfe � ������.

db2rfe -f config_file

��� config_file� 87 ���� 3��� ��� �� �����.

�� ��� � �� �� �� ��� ����, FixPack� �����

� ���� ������ �� db2rfe � �� ������.

��� ��� FixPack ��

FixPack� �� �� ���� ���� ����� � �� ��� �����

� �� FixPack� ���� �� ����.

88 DB2 Connect Server � ��

Page 95: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

FixPack� �� �� ���� �� �� �� ��� � ���� ���

ID� ����� ���.

db2rfe � ���� �� ��� � �� �� ��� �� ����

db2rfe � ��� � ���� �� ��� ��� ���. FixPack� ��� �

� � �� �� �� ��� ��� � �� ��� ����.

�� �� FixPack� ����� ��� ������.

1. FixPack� FixPack �� ��� �� ������.

�: installFixPack � –b � � �� ��� �� ����.

2. ����: db2rfe � ������. �� ��� � �� �� �� �

�� ��� ��� �� �� �� ��� ��� db2rfe � �� �

��� ���. � � ���� ���� � ��� ����.

�: � �� ���� �� ��� �� � $HOME/sqllib/instance/

db2rfe.cfg� ��� ���� db2rfe � ��� � �� ��� �� ��

� � �� FixPack �� � � �� ��� ������ ����. ���

$HOME/sqllib/cfg/db2rfe.cfg.sample� ���� ���. FixPack� ��

��� �� �� � � �� ��� �� $HOME/sqllib/cfg/

db2rfe.cfg.sample� � �� �����.

db2_deinstall ���� ��� DB2 �� ��(Linux � UNIX)� ������ db2_deinstall � ���� �� DB2 �� �� ����� �

��� �� �����.

db2_deinstall � ���� �� �� ����� ���� ���.

�:

v � ���� � �� �� �� DB2 ��� �� ��. � ���� ��

DB2 ��� � ���� �� �� ���� ���.

v � ���� ����, �� ���� db2_deinstall � ���� DB2 �

�� � ��� � ���. �� �� �� db2_deinstall �� �

�� ��� � � �� –f sqllib �� � � ���.

v db2_deinstall� �� ���� ���� DB2 ��� � ���� �� ��

��� ��(drop)�� �����. �� db2_deinstall� ����� DB2 ��

� ��� � ���� � ��� ����.

v rpm �� SMIT� �� �� � �� ���� ���� DB2 ��� ���

� ����.

�� ���� �� DB2 ��� � ����� ��� ������.

� 13 �� �(Linux UNIX) 89

Page 96: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

1. DB2 ��� ��� � ��� ��� ID� ���� �������.

2. $HOME/sqllib/install ���� ������. ��� $HOME� � ����

��.

3. db2_deinstall � ������.

�:

v db2_deinstall � –a � � �� ���� DB2 ��� ��� ����

� �� ��� sqllib_bk�� � ���� �����.

v db2_deinstall � –a –f sqllib � � �� ���� � ����� ��

sqllib ������ �� ��. sqllib� ����� ��� � ���

� db2_deinstall –a –f sqllib� ���� �� �� �� ��� �����.

v � ���� ����, �� �� �� db2_deinstall � –F �

� �� ���� �� ���� �� DB2 �� ��� � ���.

90 DB2 Connect Server � ��

Page 97: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 6 � �� � ���

© Copyright IBM Corp. 1993, 2009 91

Page 98: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

92 DB2 Connect Server � ��

Page 99: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 14 � ���� � ���

����� � DB2 Connect �� ��� ��� � , � ������ DB2

Connect ����� ����. ��� DB2 Connect ��� ����� ���� �

���� � ��, DB2 ���� �� �� db2licm � ��� � ���.

DB2 ���� ��

DB2 ������ ��� �� ���� ���� �� ���� �� ��

�� � � �� �� ���. ��� ���� � ����� ���� ��

�� ���� �� ����� �� �� �� ��� � ��.

���� ����� ��� �� ��� ���� ����. �� DB2 ������ �

� � ��� ���� �� � ��� �� ���� �� ��. �� �

�, db2ese.lic� DB2 Enterprise Server Edition� �� �� ���� ����

�.

���� � �� DB2 ������ ��( DB2 Connect ��) � ���

������ �� �����. ���� � �� � ��� ��� ���

� �� CD� /db2/license ���� ���. �� ��, db2ese_u.lic� �

��� �� Linux, UNIX Windows� DB2 Enterprise Server Edition -

Authorized User Option Activation CD� ���. ���, DB2 ������ �

� � �� ���� � ���� ����. ��� DB2 Express-C DB2

Connect Personal Edition� �� ��� CD� ���� ����� � ���

�� ���� �� ��. �� DB2 Personal Edition� �� ��� �����.

DB2 Personal Edition� ��� CD� ���� �� � ��� ����� �

�� ���� �� ��.

���� �� �� 94 ���� � 8� �����.

����� DB2 ������ ��� ����� ���(PVU(Processor Value

Unit)� �� ��� ���) �� ��� ��� ���� ��� � ���. DB2

Express Edition� ��� ��� � ���. IBM Database Enterprise Developer

Edition� ��� ��� �������. DB2 Storage Optimization �� �

����. � �� PVU�� ��� � ���. , �� ������ ����

PVU� ��� ��� ��� ����.

�� ��� ��� �� �� DB2 ������ ��� ��� �� � ���

���� � ���� ���. DB2 ������ �� DB2 �� �� �

��� � ����. �� DB2 ������ ��� ��� �� ��� ���

© Copyright IBM Corp. 1993, 2009 93

Page 100: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� �� ��� ���. �� ��, ��� ����� DB2 Enterprise Server

Edition� ��� ��, ��� DB2 Performance Optimization �� ����

���.

DB2 ������ �� �� �� �� � ��� � ���� ����� ��

CD� �� ��, ��� �� ���� � �� � ���.

v Passport Advantage®: Passport Advantage � ���(http://www.ibm.com/software/

lotus/passportadvantage/)�� �� CD ���� �� � ���. Passport

Advantage� ��� �, �� �� �� �� CD ���� ���

�� ���.

v PartnerWorld®: ��� ���� � �� PartnerWorld� ������.

PartnerWorld � ���(http://www.ibm.com/partnerworld/pwhome.nsf/weblook/

index_pub.html)� �����.

v DB2 �� �� ���� �� � ���: ���� � ���� �� ��, IBM

� ����� ������.

��� ���� � �� � DB2 ������ ��� ���� �� ����

� ���� ���. �� ���� � �� ���� ����� ���. ���

� �� DB2 ������ �� �� ����, ���� �� ������

�, DB2 ������ ��� �� ���� � ��� �� ����. DB2 �

����� �� ���� �� http://www.ibm.com/software/sla�� ��� �

���.

DB2 ������ �� �� �� �� ���� ��� �� � ��� �� �

��.

v db2licm ���� �� ��

v �� �� �� ���� ��

� 8. DB2 ���� ��

���� �� �� DB2 ������ �� �� ��

db2aac.lic DB2 Advanced Access Control �

db2conpe.lic DB2 Connect Personal Edition

db2consv.lic DB2 Connect Server(����� ��)

db2consv_as.lic DB2 Connect Application Server Edition

db2consv_ee.lic DB2 Connect Enterprise Edition

db2consv_is.lic System i� DB2 Connect Unlimited Edition

db2consv_zs.lic System z� DB2 Connect Unlimited Edition

db2dede.lic IBM Database Enterprise Developer Edition

db2dpf.lic DB2 Database Partitioning Feature

db2ese.lic DB2 Enterprise Server Edition(����� ��)

db2ese_c.lic DB2 Enterprise Server Edition(CPU � )

94 DB2 Connect Server � ��

Page 101: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 8. DB2 ���� �� (��)

���� �� �� DB2 ������ �� �� ��

db2ese_u.lic DB2 Enterprise Server Edition(�� ��� ��

� � )

db2exp.lic DB2 Express Edition(����� ��)

db2exp_c.lic DB2 Express Edition(CPU � )

db2exp_s.lic DB2 Express Edition(�� � )

db2exp_sftl.lic DB2 Express Edition(�� � �� � ���

�)

db2exp_u.lic DB2 Express Edition(�� ��� ��� � )

db2exp_uftl.lic DB2 Express Edition(�� ��� ��� � �

� � ����)

db2expc_uw.lic DB2 Express-C(���)

db2geo.lic DB2 Geodetic Data Management �

db2hrese.lic DB2 Enterprise Server Edition� Homogeneous

Replication �

db2haexp.lic DB2 Express Edition� DB2 High Availability �

db2pe.lic DB2 Personal Edition

db2poese.lic DB2 Ente rp r i se Serve r Ed i t ion � DB2

Performance Optimization �

db2so.lic DB2 Storage Optimization �

db2wse.lic DB2 Workgroup Server Edition(����� ��)

db2wse_c.lic DB2 Workgroup Server Edition(CPU � )

db2wse_u.lic DB2 Workgroup Server Edition(�� ��� ��

� � )

bwdb2.lic DB2� Base Warehouse �

ewdb2.lic DB2 Enterprise Warehouse �

iwebe.lic InfoSphere™ Warehouse Enterprise Base Edition

iwde.lic InfoSphere Warehouse Developer Edition

iwdpb_c.lic InfoSphere Warehouse Departmental Base Edition

− CPU �

iwdpb_u.lic InfoSphere Warehouse Departmental Base Edition

− �� ��� ��� �

iwdp_c.lic InfoSphere Warehouse Departmental Edition −

CPU �

iwdp_u.lic InfoSphere Warehouse Departmental Edition − �

� ��� ��� �

iwee.lic InfoSphere Warehouse Enterprise Edition

sam31.lic IBM Tivoli® SA MP(System Automation for

Multiplatforms)

_t.lic� �� ���� ��� � ��, ��� �� �������.

� 14 ���� ��� 95

Page 102: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

���� �� ��

���� ��� ��� DB2 �� �� �� ���� � ��

���� ���� ���� �� �� ���� Linux �� Windows � ����

� ����� ������. � �� ���� �� ��� �� �� ���� �

���� ���.

����: ���� ��� �� 9.7�� ���� ��� �� ����� ��� �

���. ��� ��� �� 9.7� �� �� �� � ��� �� �� DB2

Administration Server(DAS)� ���� ��� ��� �����.

� ���� � ��� ��� ���� ��(*.lic)� �� ���. 93 ����

�DB2 ���� ���� �����. Linux � ����� ���� ��� �

��� ��� � ���� �� �� �� ��� ��� ���.

DB2 ���� � ���� ��� ������.

1. �� ���� � �� ���� ��� ����. � ����� �����

���� ������.

2. ����� ������.

3. ��� �� �� �� ��� ��� �� ��. ��� ������.

4. ���� ���� �� ������. ���� �� �� ��� ����.

5. ����� ���� (*.lic)� ������.

6. ��� �� ���� � ������.

���� ���� ���� ��� �� �� �����.

���� ��� ���� DB2 ���� �� ��

DB2 Connect Enterprise Edition� �� ���� ��� DB2 Connect ��� �

�� � � � ��� �� ���� ������. InfoSphere Replication Server

�� InfoSphere Federation Server� �� ���� ��� �DB2 ��� ��� �

� ��� �� ���� ������.

����: ���� ��� �� 9.7�� ���� ��� �� ����� ��� �

���. ��� ��� �� 9.7� �� �� �� � ��� �� �� DB2

Administration Server(DAS)� ���� ��� ��� �����.

���� ��� ���� ���� ��� ���� ��� ���� �� �� �

�� ������.

1. ���� ��� ���� ���� �� ������.

96 DB2 Connect Server � ��

Page 103: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

2. ���� �� ��� ��� ���� �� ������. �� ��, ��� �

���.

v InfoSphere Replication Server �� InfoSphere Federation Server �� ��

� ��� ��� �� ���� ���� ��� ��� ����� �� ��

����.

v DB2 Connect �� �� ��� ����� ��� �� �� �� �� �

� � ��� ���� ��� ��� ���� �� ������.

db2licm � ��

db2licm �� ��� DB2 �� �� �� ���� � ��

db2licm � ���� ���� �� ���� ������(���� ���

�� �).

� ���� � ��� ��� ���� ��(*.lic)� �� ���. 93 ����

�DB2 ���� ���� �����.

Windows � ���� -a ����� �� db2licm � ����� �� �

�� �� � � ��� ��� ���.

v Windows � ���� �� � ���� DB2 ���� � �����.

db2instance_path₩bin₩db2licm -a filename

���, db2instance_path� DB2 ����� ���� ����, filename� ��

� �� �� �� ���� ���� ��� �� �� �� �� ����

�.

v Linux �� UNIX � ���� �� � ���� DB2 ���� � �

����.

INSTHOME/sqllib/adm/db2licm -a filename

���, INSTHOME� ���� ��� � ���� ����, filename� �

�� �� �� �� ���� ���� ��� �� �� �� �� ����

�. DB2 ������ ��� �� ���� db2licm � �� � ���.

�� ��, �� � ��� ���� ��, AIX, HP-UX �� Solaris � �

���� /opt/IBM/db2/V9.7/adm�� Linux � ����� /opt/ibm/db2/

V9.7/adm���.

db2licm �� ���� DB2 ���� �� ��

DB2 Connect Enterprise Edition� ��, ���� ��� ��� DB2 Connect �

�� � � � ��� �� ���� ������.

� 14 ���� ��� 97

Page 104: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

InfoSphere Replication Server �� InfoSphere Federation Server� ��, ����

��� �DB2 ��� ��� �� ��� �� ���� ������.

1. db2licm � ���� ���� ��� ���� �� ID� ����. �

� ID ��� ����� �� � ������.

db2licm -l

�� ID� �� ID �� ���� ���.

2. ���� ��� ���� ��� ���� �� �� �� � ��� ���

���. �� ��, ��� ����.

v InfoSphere Replication Server �� InfoSphere Federation Server �� ��

� ��� ��� ��, �� � ������.

db2licm -c isrs concurrent

��

db2licm -c isfs concurrent

v DB2 Connect �� �� ��� ��� ��� ���� �� � ����

��.

db2licm -p db2consv concurrent

98 DB2 Connect Server � ��

Page 105: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 15 � FixPack ��

��� �� ���� �� FixPack ���� DB2 ������ ��� ����

�� �����. FixPack� ��� ���� �� �� ��� � � �

��� �� ������.

� ���� �� ��

DB2 FixPack�� IBM�� ��� � �� ���(APAR(Authorized Program

Analysis Reports))� �� ���� ����� ��� ��� ���� �� �

���� ���� ���. APARLIST.TXT ����� FixPack� ��� ���

�� �� �� �� ����� ���� � ���. ftp://ftp.software.ibm.com/

ps/products/db2/fixes/english-us/aparlist/.

FixPack� �� ��. � ��� DB2 ��� �� FixPack�� ��� DB2 ���

�� FixPack� �� �� ����� ���� ���.

�� �� FixPack ���� ��� ����.

v � �� ���

� �� ����� �� DB2 ������ �� �� IBM Data Server

Client� �� �� ��� �� ���� ���. � ��� � ��� DB2

������ �� ��� �� ���� DB2 ������ �� FixPack� �

� �� DB2 ������ �� ��� ��� � ��� �����. Data

Server Client FixPack� �� ������ �� �� � ��� ��� � �

FixPack� DB2 ������ �� FixPack� �� ��. �� ��, DB2

Enterprise Server Edition, DB2 Workgroup Server Edition, DB2 Express Edition,

DB2 Personal Edition, zSeries� DB2 Connect Enterprise Edition, DB2 Connect

Application Server Edition, DB2 Connect Unlimited Edition i5/OS� DB2

Connect Unlimited Edition� ���. DB2 ������ �� FixPack� ��

�� Data Server Client� ����� � ���.

�� FixPack ���� DB2 �� � �� ����� ��� ���� � �

� ���� ���� DB2 ������ �� ��� �� � ���.

v � �� DB2 ������ ��� �� FixPack

��� �� ������ ���� ��(add-on) ��� �� ���� � FixPack

� ������. (�: IBM Data Server Runtime Client �� DB2 Query Patroller).

© Copyright IBM Corp. 1993, 2009 99

Page 106: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�� DB2 ������ ��� �� DB2 ������ �� ����� Data

Server Client� �� � �� FixPack� ���� ���. ��, � �� �

�� FixPack� ������.

Windows ���� ��, ��� DB2 ��� � ��� DB2 ������ ��

(Data Server Client �� DB2 ������ ��� �� �� ��� �� ��)

� ��� �� FixPack �� ���� �� �� ��� ��� �� FixPack

� ����� �� ���� ���.

v �� FixPack

�� FixPack ��� �� � ��� DB2 ������ ��� ��� � �

�� �� ��.

�� DB2 ������ ��� �� DB2 ������ �� ����� Data

Server Client� �� � �� FixPack� ��� ����. � �� � �� �

�� FixPack� ���� ���.

Linux� UNIX � ���� ���� ��� � ��, �� ��� �

FixPack� ����. ��� FixPack� ��� �� � ����. �� �� �

� FixPack� ��� ����� �� ��� FixPack ��� ��� ���. ��

��, Linux �� UNIX�� �� FixPack� �� ��� �� DB2 ������ �

�� ��� �� DB2 ������ ��� ����� �� FixPack ���

FixPack ��� ���� ���.

����

v DB2 �� 9.7 FixPack� DB2 �� 9.7 GA(General Availability) �� DB2 �

� 9.7 FixPack ���� ��� � ���.

v FixPack� ��� �� �� DB2 ����, DAS �� �� DB2 ���

�� ������ ���� ���.

v �� � ������ ��� �� FixPack� ��� �� �� ������ �

� ���� ������ �� ���� ���� ���. ���� � ��

���� �� ��� �� �� ������ �� ��� FixPack� ���

���. ����� ��� �� ���� ��� FixPack ��� ����� ��

�.

v Linux �� UNIX� ��

– NFS(Network File System)� DB2 ������ ��� � ���� FixPack

� ��� �� �� ����, DB2 Administration Server(DAS),

IPC(Interprocess Communication) ��� NFS� �� �� ����

�� ��� �� ������ ��� ����� ���� ���.

100 DB2 Connect Server � ��

Page 107: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

– ��� fuser �� lsof� ��� � �� ���� installFixPack �

��� DB2 ��� �� � ����. DB2 ��� ���� ���� ��

�� FixPack� ��� �� �� � � ������. UNIX��� ���

��� ���� � fuser � ����. Linux��� fuser �� lsof

� ����.

�� � � �� ����� installFixPack � �����.

v ����� ������� FixPack� ��� �� ������ autobind� �

���� ����� �� ��� �� ���.

v DB2 FixPack� �� IBM Data Studio Administration Console �� IBM Data

Studio �� ���� ����.

����

FixPack� ���� ��� ������.

1. FixPack ���� ������.

2. FixPack� ��� �� � ���� ������.

3. FixPack � ���� ���� FixPack� �����.

4. FixPack� �� � � ���� ������.

5. �� DB2 ������ �� ����� ������.

��� ����� ���� DB2 �� ��� ��� ��� ���� �� ��

� �� FixPack ���� ���� DB2 ������ �� ��� �� �

���. � ���� ��� � DB2 ������ ��� �� � �� �

���� ��� �� � �� ����� ������ ��� 90�� �� �

�� ��� �� ��.

�� �

�� ���� � � � �� �� ��� � �� ������.

Linux� �� UNIX�� �� �� ��, db2rfe � ���� � �� �

(�: ���� � �� �� ��)� �� ���� � � ���. � �

� �� DB2 ������ �� � �� �� ��� � ���� ��� �

� �� �� ��� ��� FixPack� ��� �� db2rfe � �� ���

� ���. ����� ��� �� �� ��� �����.

�� ���� �� �� DB2 ��� � �� ��� ��� �� ��� �

� FixPack ��� � ���. �� ��� DB2 ��� FixPack� ����� DB2

�� � FixPack� ��� ���.

� 15 FixPack �� 101

Page 108: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

102 DB2 Connect Server � ��

Page 109: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 16 � ��� � ����� ��� �� DB2 Connect ��

�� ����

DB2 Connect ��� ���� ��� � ���� ��� ����� ��

�� ������(�: z/OS� DB2)� � � ���. �� ���� DB2

Connect ��� ��� �� ����� ������ ��� ��� ���� � �

� �� ��� �� ���. ���� �� �� ��� �� �� ��� �

����.

© Copyright IBM Corp. 1993, 2009 103

Page 110: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

104 DB2 Connect Server � ��

Page 111: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 7 � ��� � iSeries ������� �� � � ��� �

© Copyright IBM Corp. 1993, 2009 105

Page 112: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

106 DB2 Connect Server � ��

Page 113: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 17 � DB2 Connect�� �� �� IBM i� DB2 ��

DB2 Connect� IBM i� DB2 ���� ���� ��� ��� ����� ��

�� �����.

� ���� ��� �� ���.

1. �� �� � ��. DSPNETA� ���� � ��� �� � ���.

2. �� ��� ��. �� �� � ��� WRKLIND � ���� � ��� ��

� ���.

WRKLIND (*elan)

��� ��� ��

WRKLIND (*trlan)

�� � ��� ��

WRKLIND (*all)

�� ��� ��

3. ��� ��. DSPNETA� ���� � ��� �� � ���.

4. TCP/IP �� �� ��� ��. �� �� X’07’6DB(X’07F6C4C2’)���.

���� �� i� DB2�� �� ��. 16��� ��� ����� �

QCNTEDDM���.

5. ��� ������ ��. DSPRDBDIRE� ���� � ��� �� � ���.

��� �� ��� ����. ��� �� ��� *LOCAL� � �� ���

��� ����� �� RDBNAME� ����. *LOCAL � � ���, �

� ����� ��� DSPNETA ���� ��� ��� ��� ��� �

���.

��� ����.

© Copyright IBM Corp. 1993, 2009 107

Page 114: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

��� ������ ���� �� ��

�� . . . . . .. . . . .

��� ���� Enter� ����.5=���� �� 6=���� ��

�� ���

�� ������ �� ���

_ ____________________

_ DLHX RCHAS2FA

_ JORMT2FA JORMT2FA

_ JORMT4FD JORMT4FD

_ JOSNAR7B RCHASR7B

_ RCHASR7B *LOCAL

_ RCHASR7C RCHASR7C

_ R7BDH3SNA RCH2PDH3

_ RCHASDH3 RCHASDH3

IBM Power Systems ���� � ����� ��� ��, �� ���� �� �

�����.

� 9. IBM Power Systems� �� ����

�� ���� � �� �

A-1 �� �� � �� SPIFNET

A-2 �� ��� �� 400009451902

A-4 ��� �� SYD2101A

A-5 TCP/IP �� �� ��� �� X’07F6C4C2’(���)

A-6 ��� ������ �� NEW_YORK3

��� ��� DB2 Server for VSE & VM SQL Reference(SC09-2989)� �DRDA

Considerations� �� �����.

108 DB2 Connect Server � ��

Page 115: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 18 � DB2 Connect�� �� �� z/OS� DB2 ��

� ����� DB2 Connect� DB2 � TCP/IP � ��� � �� ���

�� �����.

DB2� �� ��� �� ��� (2� ���)� ��� ��� ���� ��, �

� ��� �� ��� ���� �� ��� �� ��� ��� ��� ���

��.

DB2 Connect�� �� ����� DB2� ����� ��� �� ��

� ���� ���.

v z/OS� DB2� �� TCP/IP ��

v z/OS� DB2 ��

��� ������

�������� ��� � � ���� ��� ������ �� ���(RDBMS)

� �� � �� ��. DB2 Connect� ���� �� ������ �����

��� ��� ���� � �� ��� � � ���. DB2 Connect �� �

������ �� ��� �� � ���.

System z

z/OS� DB2. LOCATION NAME�� ��� z/OS� DB2 �����.

LOCATION NAME� TSO� �����, �� �� �� �� � ��

� ���� �� SQL ��� ���� �� � ���.

select current server from sysibm.sysdummy1

LOCATION NAME� �� �� ��� ��(BSDS)� ���� �� �

�� �(DDF)� ��� � ���� DSNL004I ���

(LOCATION=location)�� �� ��. LOCATION NAME� �� 8��

�� ��� ����, ������ �� db ��� ���� �

� 8 z/OS ��� ���� � �� ���. z/OS -display ddf � �

��� DB2 �� �� ��, ��� ��, IP �� ��� �����.

VSE DBNAME�� ��� ������ �� �� ���� VSE� DB2

VM �� DBNAME�� ��� CMS �� ���� ���� VM� DB2

IBM Power Systems ��

IBM i � ��� � ��� IBM i� DB2. ���� ���� � �

© Copyright IBM Corp. 1993, 2009 109

Page 116: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

��� �� ����� ���� � ��� IBM Power Systems ���

��� ������� ��� � ���.

z/OS� DB2� �� TCP/IP ��

� ����� DB2 Connect ��� � z/OS� DB2 �� 7 �� � TCP/IP

��� ���� ��� �� ���. ������� �� �� �����.

v TCP/IP� �� � ��� ������� ����. �� ��� �

� ��� ���� �� �� ��� ��� ����� ���� �� ��

�� �� ��.

v � ������� z/OS� DB2 �� 7 ��� �����.

v �� �� ���� ���� ������.

v DB2 ������ ���� ������.

1. TCP/IP � �� DB2 Connect� ���� �� ��� ������ ���

DB2 Connect �� ��� �� ��� ���� ���. TCP/IP� �� �

� ��� ��� �� �� ��� �� � �� ���.

v DB2 Connect ��� �� TCP/IP services hosts ��� ��

UNIX � Linux

/etc/

Windows XP � Windows Server 2003

��� %SystemRoot%₩system32₩drivers₩etc₩. ��� %SystemRoot%�

Windows � �� ���� �����.

�� ����� � ��� ����� �� �� ��� �� ��� ���

��� ����� � � ���.

v � z/OS� DB2 ���� ���� ��� ��

v z/OS� DB2� ��� TCP/IP �� ��

�: �� ��� �� ��� DB2 Connect ��� � DB2 � ��

� ����.

�� �� 446� DB2 Connect ��� ����� ��� �� ���

� ��.

v ���� DB2 Connect ��� � �� TCP/IP ��� ��� ��

v DB2 ������ ��� �� ��

v IBM ���� ���� CONNECT �� ������� �� � ��

� ��� ID ��

2. � ��� �� ���� �� �� � ��� DB2 ���� �����.

�� �� ���� ���� DB2 Connect� ��� ������ �� �

110 DB2 Connect Server � ��

Page 117: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

TCP/IP � ������.

� 10. ��� ��

�� �� � � �� �

TCP-1 ��� �� A.D.B.User

TCP-2 � �� (123)-456-7890

TCP-5 ��� ID ADBUSER

TCP-6 ������ � db2390

TCP-7 �(TCPIP�� �) TCPIP TCPIP

� 11. ���� �� � ��

�� �� � � �� �

TCP-8 ��� �� MVSHOST

TCP-9 ��� IP �� 9.21.152.100

TCP-10 ��� �� db2inst1c

TCP-11 �� �� 446 446

TCP-12 �� �� NEW_YORK3

TCP-13 ��� ID

TCP-14 ��

�:

a. ��� ���� ���� ���� IP �� TCP-9� �� � ���.

TSO NETSTAT HOME

b. �� �� TCP-11� ����, DB2 �� ���� ���� �� ��� �

��� DSNL004I� ������.

� 12. DB2 Connect ��� � �� � ��

�� �� � � �� �

TCP-18 ��� �� mcook02

TCP-19 IP �� 9.21.27.179

TCP-20 ��� �� db2inst1c

TCP-21 �� �� 446 446

� 13. DB2 Connect ��� � DB2 ��� �

�� �� � � �� �

TCP-30 � �� MVSIPNOD

TCP-31 ������ �� nyc3

TCP-32 ������ mvsipdb1

TCP-33 DCS ������ �� nyc3

3. TCP/IP ���� �� ��� �� �� ������.

� 18 z/OS� DB2 111

Page 118: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

a. DB2 ���� ��� ��� IP ��� ��� �� ������(TCP-8

TCP-9).

b. DB2 Connect ��� � ��� ��� IP ��� ��� �� ����

��(TCP-18 TCP-19).

c. � ��� ��� �� �� �� ��� �����(TCP-10�� TCP-20

�� TCP-11�� TCP-21).

d. � DB2 ������ ��� �� ��� �����.

e. ��� ������ � ��� ID ��� ��� �� �����.

4. System z ���� ��� ������.

a. ��� �� �� ��� ��� ������.

b. �� ��� ��� ��� ������.

c. ���� �� �� ��� ��� ���� Services ��� ������.

d. ���� DB2 Connect ��� � ��� �� IP ��� ��� �

�(�� DB2 ���� �� ��� ��� �� ��)� ������.

e. � ���� �� �� ��� �� ��� ������. ����

��� �� � ���� �� �� ����� ������.

f. DB2 ���� ���� ��� ��� ID, �� ������ �� ���

�� �� ������.

g. �� � � ��� ���� TCP/IP�� ��� ��, � � �� ��� �

��� DB2 Connect ��� PING����. �� ��, ��� ����.

ping remote_host_name -p port_number

�: DB2 Connect� �� 9 ������ �� �� 7 ������� ���

� �� � PING � ���� ����.

http://www.ibm.com/servers/eserver/support/zseries/�� System z �� ��� �

���.

z/OS� DB2 ��

DB2 Connect� ���� ��, DB2 ���� �� DB2� ���� DB2 Connect

��� ���� � ���� ���. � ���� DB2 Connect �����

� DB2 ������ ��� ��� ���� �� �� �� �� ���

���. ��� �� z/OS� DB2 � ��� �����.

v �� 7 ��� http://www.ibm.com/software/data/db2/zos/v7books.html�� ��

� � ���.

v �� 8 ��� http://www.ibm.com/software/data/db2/zos/v8books.html�� ��

� � ���.

112 DB2 Connect Server � ��

Page 119: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v �� 9 ��� http://www.ibm.com/software/data/db2/zos/v9books.html�� ��

� � ���.

�� ���� ��

z/OS� DB2 �� 7� ��, APARs PQ50016, PQ50017 PK05198� ����

� ������.

�� �� ��� ��� ���� http://www.ibm.com/servers/eserver/zseries/zos/

servicetst/� �����.

� 18 z/OS� DB2 113

Page 120: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

114 DB2 Connect Server � ��

Page 121: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 19 � DB2 Connect�� �� �� VSE & VM� DB2 ��

DB2 ��� ����� ��� ��� ��� �� ��� DB2 Server for VSE

& VM SQL Reference(SC09-2989)� �DRDA Considerations� �� �����.

© Copyright IBM Corp. 1993, 2009 115

Page 122: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

116 DB2 Connect Server � ��

Page 123: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 20 � ����� � ����� �� �� ��

DB2 Connect� ��� ��� ����� ������ ��� ��� �, � ��

� � � ��� ����� ��� ���. �� �� ���(CA) ��

� ���(CLP)� ���� �� ���� ���.

CA� ���� IBM ����� ������ ��� �� �� ��(Linux �

Windows)

� ���� �� �� ���(CA)� ���� DB2 Connect ��� �� IBM

���� ������ ��� �� ��� ���. CA� ������

�� ������ ��� ���� � ��� � � DB2 GUI ����

�.

�: �� ����� CA� �� DB2 �� ��� �� ����� �� ��. ��

9�� �� DB2 �� ��� Windows x86, Windows x64(AMD64/EM64T), Linux

on x86 AMD64/EM64T� Linux��� �� ��. �� ����� IBM ��

�� ������ ��� �� � ���� � DB2 � ���(CLP)� �

�� � ���.

DB2 Connect ��� � ��� �� � ���.

IBM Data Server Client

IBM Data Server Client� DB2 Connect �� ��� �� IBM ���

� ������� ��� � � ���.

DB2 Connect Personal Edition

DB2 Connect Personal Edition� ���� IBM ���� �������

� � � ���. DB2 Connect �� ��� �� � �� �

��.

����

v �� �� ���� DB2 Connect ��� � ���� ���. �� ��

���� IBM Data Server Client� ��� ��� � ���.

v � � ����� �� ����� ��� ��� ���� ���. ���,

�� � ���� � � ����� � �� ���� ���� ��

� ��� �����.

�� ���� CA� ���� ������� � ���� � ��� � ��

�(� �� � � � �� ��� �).

© Copyright IBM Corp. 1993, 2009 117

Page 124: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v ����� ���� ���� �������

v CA� ���� ���� �������

CLP� ���� IBM ����� ������ ��� �� �� ��

DB2 � ���(CLP)� ���� DB2 Connect ��� IBM ���� ���

��� � TCP/IP � ���� ��� � ���.

����

DB2 Connect� IBM ���� ������ �� ��� TCP/IP � ����

���� �� ��� ������.

v TCP/IP� DB2 Connect ��� IBM ���� ���� �� �����.

v �� ���� �� ����.

– ��� ��(hostname) �� IP ��(ip_address)

– ��� ��(svcename) �� �� ��/�� (port_number/tcp)

– � ������ ��(target_dbname)

– �� ������ ��(local_dcsname)

– � ��(node_name)

DB2 Connect ��� IBM ���� ������ ��� TCP/IP ��� ����

����� ��� ������.

1. DB2 Connect ���� TCP/IP� ������.

2. � ��� �CATALOG TCPIP/TCPIP4/TCPIP6 NODE � ��� �

����.

3. � ��� �CATALOG DCS DATABASE � ��� �����.

4. � ��� �CATALOG DATABASE � ��� �����.

5. IBM ���� ������ ��� ��� ������ ������.

6. SQL ��, �� 2� �CONNECT(� 1) �� ��� ��� IBM ��

�� � ������.

�: TCP/IP �� ���� ��, TCP/IP� �� IBM ������ ��� �

�� �� ���� �� �� ���. ���, TCP/IP� ���� ��� DB2 �

�� ����� ����� ����� �� ��� �� ����� �� ���

��! �� � ���. TCP/IP SO_KEEPALIVE �� � � ���� TCP/IP

� �� ��� �� � �� ��.

118 DB2 Connect Server � ��

Page 125: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 8 � ��

© Copyright IBM Corp. 1993, 2009 119

Page 126: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

120 DB2 Connect Server � ��

Page 127: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 21 � IBM ����� ������� �� ��� ��

DB2 Connect� ��� ��� ����� ������ ��� ��� �, � ��

� � � ��� ����� ��� ���. � ���� �� �� ��

�(CA) �� DB2 � ���(CLP)� ���� ������ ��� ��, �

� ���� ��� �� ���.

�� �� ���� ���� �� � � � ������ �� ��

�� �� ���(CA)� ���� �� ��� ������� ��� � ���.

�� �� ���� ������ � ���� �� ��� ������.

v � DB2 ��� ID� �� ������.

v DB2 Server �� DB2 Connect �� ��� �� ����� � ����

��, ����� �� SYSADM �� SYSCTRL ��� � ��� ID� ��

� �� ������.

�� ���� �� �� �� ��� ���� ��� �� � ���.

v ���� ���� �� ��.

v DB2 Administration Server(DAS)� ��� ����� �� �� ����.

v ��� � � �����. ���, ��� 1�� �� �� �����. � �

� ��� ���� ��� � ���� ����. � � � � ���� ��

DB2DISCOVERYTIME ����� ��� �� � ���.

v ��� ���� � �� �� �� ��� ����� ��� � �� ��

�� �����.

�� ��� IPv6� ���� �� ��� IPv6 ��� ���� ����� ��

� �� ��.

v ���� �� ��� ��� ����� ���.

v �� �� ��� � �� ��� ���� IPv6 � �����.

�� �� ���� ������ � ����� ��� ������.

1. � DB2 ��� ID� ���� �������.

2. CA� ������. CA� Windows� �� ���� �� Windows UNIX

��� � ���� db2ca � ���� ��� � ���.

3. CA �� ��� � ���� �� �� ������ �� �����

�. ������ � ��� ����.

4. ���� �� �� �� ��� ��� �����.

© Copyright IBM Corp. 1993, 2009 121

Page 128: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

5. �� ��� �� � ��� �� ���� ������ �� �� ���

� ����� �� ��� �� � ��� �� ���� �� �� �� ��

�� ������. ���� ���� �� ��, ��� �� �� ��� �

���. ���� ���� �� ��� �� �� ��.

6. ��� ������� ��� ��� ��� ��� � � � ����. ���

���� ������. ��� �����.

7. ������ �� �� �� ������ � ����, �� �� � �

������ �� ��� ����� ������.

8. ODBC� �����, � ������� ODBC ��� ��� �����. �

�� ����� ODBC� ��� ���.

9. �� �����. ��� ������� �� ��� � ���. �� ��

CA� � ����.

�� �� ���� ���� ������ �� �� ��

��� ������� �� ��� � ������� ���� ��� �� ��

� � �� �� �� ��� ���� ��� � ���. � ���� � �

��� ���� � ���� �� ���, ����� ����� �� ��.

�� �� ���(CA)� ���� ������� �� � ���� ���� �

� ��� ������.

v � ������� �� � DB2 ��� ID� ��� �� ������.

v DB2 �� �� DB2 Connect �� ��� �� ����� � ��� ��,

������ �� ��� ����� �� SYSADM �� SYSCTRL ���

� ��� ID� ��� �� ������.

CA� ���� ������� �� � ���� ����� ��� �����

�.

1. � DB2 ��� ID� ���� �������.

2. CA� ������. CA� Windows� �� ���� ����� db2ca �

���� ��� � ���.

3. CA �� ��� � ���� �� �� ������ �� ����

��.

4. ������� �� � ��� �� �� �� ���� ��� ��

���.

5. LDAP(Lightweight Directory Access Protocol)� ���� ��, DB2 ��

�� ���� ��� ���� �� �� ������. ��� ����

�.

122 DB2 Connect Server � ��

Page 129: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

6. ���� ��� ����� �� � ���� �� �� ������.

(��: APPC, APPN �� NetBIOS� ���� � �� ����� � �� �

��� ����.) DB2 Connect� ���� ��� � TCP/IP� ��� �

�, ������ ��� ��� �� OS/400 ���� ��� ���� �

� ���. � ���� ����, ��� �� OS/400® ������� ��

���� �� ��� � ���.

v DB2 Connect ������ �� ��� ������ �� ��� �

�� �� ������.

v � � ����� ��� � � �� �� ������.

��� �����.

7. � �� �� ����� ���� ��� �����.

8. ������ �� �� ����� ��� ������� ������ �

���� ������ �� �� �� ������ � ������. ��

� �� OS/400 ������� ���� ��, ������ �� �� OS/390

�� z/OS ������� �� ��, OS/400 ������� RDB �� ��

VSE� VM ������� DBNAME� ������. �����, ��� � �

������ �� �� ��� ��� � ���.

��� �����.

9. ODBC� �����, � ������� ODBC ��� ��� �����. �

�� ���� �� ODBC� ��� �� ������. ��� ����

�.

10. �� � �� ��� � ��� ���� ��� ������ ����

��� ���� ��� ������.

11. ��� � �� ��� ��� ��, ��� ��, � ��� � �� �

�����. � ��� ��� �� �� ���� � �� ��. �����

��� ��� � ���. ��� �����.

12. �� � �� ���, ��� ��� � � � ������.

13. �� �����. �� � ������� ��� � ���. �� �� �

� ���� CA� �����.

�� �� ���� ���� ������ �� ���

�� ��� ������ � ���� ���.

������ � �����, ��� ������.

1. �� �� ����� ������.

� 21 IBM ���� ������� �� ��� �� 123

Page 130: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

2. ���� ���� ������� ����� � �� ���� � ��

� ������. �� �� ����.

3. ��� �� �� �� ������(CLI� ���). ��� � ���

�� ��� � ���. ��� ������� �� � ��� ID� �

�� ���� � ��� �����. ��� �� � ���� ���

� � ���� �� ��. ��� ����, ��� ���� �� �

�. �� ��� �� �����, ���� ���� ������� ���� �

�� � �� ������ �� ������.

� ��(�: IBM Data Studio)�� ��� �� ��� �� � �� DB2

�� SQL30081N �� ���� �� � ���. ��� ������ ���

� ����� �� � ��� �� � ��� � � ���. ��� �� �

��� ��� ���� ������ �� ����� ������.

DCS ��(��� ������)� �� �� ��� ��� DCS ���� ���� DCS(��� ������)

� � ��� � ���.

1. �� ��� � ��� ��� �� ���� �� ��� ������.

2. ����� DCS � � ������.

3. � �� ���� DCS ��� �����. ��� ���� �� �� �� �

���.

124 DB2 Connect Server � ��

Page 131: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 22 � ���� DB2 ����� ��

DB2 ������ �� DB2 �� ��� �� �� �� ����� �� ��

� ��� � ���. �� �� ��� ���� ���, ��� DB2 ��� �

���� ��� �����. ����� �� ��� ���� ��� �� ���

��� ��� IBM Data Server Runtime Client ����� �����.

�� �� ���� ��� �, ��, ���, ����, ��, ���, ���

��, ���, ���, ����, ����, ����, ���, ����, ����

���� ���.

����� �� ���� ���, �����, ������, �����, ����, �

���, ����, ��� �, ���, �� ��, ������ ���

���.

DB2 ���� ���� ��� DB2 ������� ���� ��� ��� �

��. DB2 ���� ���� ��� ���� ��� � � ��� �����. �

�� ��� DB2 ������� ���� ��� � �����.

���� DB2 �� ��� �(Linux � UNIX)

db2setup � �� �� ��� ��� �� � ��� �����. � �

�� �� ��� db2setup� ���� DB2 � ��� ��� � �� ���

�� ��.

���� ��� � ���� ����� DB2 ������� ���� �� ��

�� ��� ��� ��, �� � ���� LANG �� ��� ��� ���

���� ��� db2setup� ��� � ���.

�(sh), ��(ksh) � bash �:

LANG=<locale>export LANG

C �:

setenv LANG <locale>

��� locale� DB2 ������� ���� �����.

© Copyright IBM Corp. 1993, 2009 125

Page 132: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ��� DB2 �� ���� ��� � ��� �� ID

���� �� ��� �� ��� DB2 � ��� ����� �� ID� ��

�� ���� DB2 � ��� ��� � ���. � ��� �� ���� �

���� �� ��� ���.

Windows � ���� -i ����� �� setup.exe� ���� �� ��� �

�� � �� �� �� ��� � ���.

Linux UNIX � ��� �� LANG �� ��� ��� ���� DB2 �

��� ���� �� ����.

� 14. �� ID

�� �� ID

���(Windows ������ �� �) ar

��� ��� � br

����� bg

��� cn

��� tw

������ hr

�� cz

��� dk

����� nl

�� en

���� fi

�� fr

��� de

���� el

���� hu

����� it

��� jp

��� kr

���� no

���� pl

��� � pt

��� ro

���� ru

�� �� sk

������ sl

���� es

���� se

�� tr

126 DB2 Connect Server � ��

Page 133: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 �� ����� �� �(Windows)DB2 ����� ��� ���, ��� ��� �� ������ ���� ��

���. DB2 ��� �� � �� �� �� ��� ��� � � �� ��.

� �, DB2 ����� ��� �� �� ����� �� � ��� ��� �

���.

DB2 ���� ���� ��� DB2 ������� ���� ��� ��� �

��. DB2 ���� ���� ��� ���� ��� � � ��� �����. �

�� ��� DB2 ������� ���� ��� � �����.

��� DB2 ����� ��� ���� ��� �� ���. DB2 � ��

� ���� DB2 ��� �� � DB2 �� ����� ��� ���� ���

�. DB2 ��� ����� ��� ���� ����� ��(, �� ���� �

�)� ��� ��, DB2 �� ����� ��� ���� � �� ����,

� �� ��� ���� �� ���� �����.

Windows�� DB2 ��� ����� ��� ����� Windows � ���

�� �� ��� ���� ���.

Windows � ���� DB2 �� ����� ��� ����� ��� �����

�.

1. ���� �� �� � �� �� ������.

2. �� � �� ��� �� � ��� ��� ��� ������. Windows 2008

Windows Vista ��� ��, � ��� �� �� ������.

3. �� ��� �� � ��� ��� ��� ���� ��� ������.

4. ���� ����� �� ��� �� ��� ��� ��� ������.

Windows 2008 Windows Vista ��� ��, �� �� ��� �

��� �� ���� ��� �� �� ��� ��� ��� ������.

������ �� ���� ��� �����.

5. � �� ���� �� ��� �� ��� �� �� �� �� ����

� �� �� ����� � ��� ������. Windows 2008

Windows Vista ��� ��, �� �� ��� ������ ��� �����

�� ��� �� �� �� ���� ������.

6. �� ����� �� �� �� ������ �� �� ��.

�� ��� �� ��� �� �� ��� � �� ���� �����.

� 22 DB2 � �� ��� ��(NLS) 127

Page 134: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 ����� �� �(Linux � UNIX)DB2 ��� ����� ��� ���, ��� ��� �� ������ ����

�����. DB2 ��� �� � �� ��� �� ��� ��� � � ��

��. � � ����� ��� ��� � �� ����� ��� ��� ��,

� ���� �� � �� �����.

DB2 ���� ���� ��� DB2 ������� ���� ��� ��� �

��. DB2 ���� ���� ��, � ���� ��� � � ��� DB2 ���

���� ���� ��� � �����.

��� DB2 ����� ��� �� ��� ���� ��� �� ���. DB2

� ��� ���� DB2� �� � DB2 ����� �� ��� ����

�� � ���. DB2 ��� ����� ��� ���� ����� ��(, ��

���� ��)� ��� �� DB2 ����� ��� ���� � �� ��

���. � �� ��� ���� �� �� ��� DB2 ����� ��� ��

��.

DB2 � ��� ����� ��� ��� ���� DB2 ��� �� � DB2

����� �� ��� ���� �� � ���.

����� �� �� �� ��� ����� $ locale -a � ������.

DB2 ����� ��� ����� LANG �� ��� ��� ��� ����

�.

� �(sh), � �(ksh) bash �:

LANG=<locale>export LANG

C �:

setenv LANG <locale>

�� ��, DB2 ��� ��� ������ ���� �� �� ���

��� � LANG �� ��� ��(�: fr_FR)� ��� ���.

�� ��� ��

�� � �� ���� ��� � ���� �� ��� ��� � � ����

����� ���.

�� ��, DB2 Connect ��� ��� �� System i ������ �� � ��

�� ��� � ��� �� � ����� ��� CCSID� �� � ��� ��

128 DB2 Connect Server � ��

Page 135: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

��. � ��� �� � ���� CCSID� ���� ��, � ���� ���

� ���� CCSID�� �� ��� �� ��. � ��� ��� ����� �

� ��.

������� �� �� ���� SQL�� �� ���� �� ��. ������

�� ��� �� ���� � ���� �� ��. �� ���� ��� � �

��� ���� ����. �� ��, �!� ���� FOR BIT DATA �� ��

����. ��� �� ��, � ��� �� �� � ��� �� CCSID� ��

�� �� �� ���� �� ��.

DB2 Connect� ���� ����� � ��� ��, ��� �� ��.

1. DB2 Connect� SQL� �� ���� System z� ����.

2. z/OS� DB2� ��� ��� � ���� ���� ��� � SQL�� ��

�� �����.

3. z/OS� DB2� �� �� DB2 Connect ��� ����.

4. DB2 Connect� �� ��� ��� � ���� �����.

��� ��� ��, �� �� ″BiDi CCSIDS″� IBM�� ���� DB2 Connect

�� �����.

������ ��� ��� ��� ������ �� ��, ��� �� CCSIDS�

���� ��� ��� � ���.

DB2 Connect� � ���� ��� �� System i ��� CCSID � ����

��� ���� ���� �� � � ��� ��� �����.

� 22 DB2 � �� ��� ��(NLS) 129

Page 136: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

130 DB2 Connect Server � ��

Page 137: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 23 � ������ ������ ��

DB2 Connect� ���� ���� ������ ���� ����� ��� �

� � ����� �������.

DB2 Connect�� ������ ���� ��

������ ���(���, ����, REORG, � ���)� DB2 CLI �

� ��� ������� ���� � �������� ��� � ���. �

� � ���� �� �� � ���� ����� DB2� �� �� ���� �

�� ��� � �� �� ������ ���� � ��, � �� DB2

�� �� �� ���� � � ���� ���.

���� ���� ��� �����, �� � �� ��� �� SQL�� �

��� � �� �� ��� �� � �������.

�� ��� � ���(����� Windows� �� sqllib) ��� bnd �

���� �� �� .lst ��� �� ��� ��. ��� � ��� �� ��.

v IBM ���� ������ ��� ��� ������ �����, IBM

���� ��� �� �� �� ����� ������.

connect to dbalias user userid using passwordbind path/bnd/@ddcsmvs.lst blocking all sqlerror continue

messages mvs.msg grant publicconnect reset

���, path� DB2PATH ����� �� �����.

v ������ ���� DB2 ������� ����� ��� � � �

�� �� �� �� � ��� ������.

– CA(�� �� ���)

1. CA� ������.

2. ���� ����� ������� ������.

3. �� ��� �� ��� ���� ������.

4. ����� ��� �� ��� ������.

5. �� ��� �� � � ������.

6. ��� ID� ��� ���� ������� ����. � ��� ID�

� ������� �� � ��� ��� ��� �� ���. ���

� �����.

– � ���

© Copyright IBM Corp. 1993, 2009 131

Page 138: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

1. x:₩sqllib₩bnd� bnd ���� ������. ��� x:� DB2� �

� ����� �����.

2. ������� ���, �� �� � ���� �� � �

�����.

connect to database_alias

���, database_alias� ��� ������� � �����.

3. �� �� � ���� �� � ������.

"bind @db2ubind.lst messages bind.msg grant public""bind @db2cli.lst messages clibind.msg grant public"

� ��� bind.msg� clibind.msg� � ��� ����, public��

EXECUTE� BIND ��� �� ��.

4. �� � ���� ������� �� � ������.

connect reset

�:

1. db2ubind.lst ���� ������ ���� �� ��� ���� �

�� �� ��(.bnd) �� ���� ���. db2cli.lst ���� DB2

CLI� DB2 ODBC ����� �� ��� ���� � �� �� ��

(.bnd)� �� ���� ���.

2. ��� � �� � � � �� !���.

3. BINDADD ��� � ��, DB2 CLI �� ODBC ����� �� �

�� � DB2 CLI ��� ���� �� ��. �� �� ������

������� ���� �� ��, �� �� ���� �� ���

� ���� ���� �� �� ��� � ���.

�� ������ �

IBM Data Server Client� �� DB2 ������ ���� ��� � ��

�.

��� �� ��� �� ������ DB2 ������� ���� � ��

�.

v Embedded SQL, API, ���� ���, ��� �� �� �� DB2 CLI �

� ���� IBM Data Server Client� ���� �� �����

v ODBC �����

v JDBC �� SQLJ ������ ���� Java �����

v PHP �����

v Ruby �� Ruby on Rails �����

132 DB2 Connect Server � ��

Page 139: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

v Perl �����

v Python �����

Windows � ���� ��� DB2 ������� ���� �� ���.

v Microsoft Visual Basic Microsoft Visual C++� ��� ADO(ActiveX Data

Object)

v OLE(Object Linking and Embedding) ��� �(UDF ���� ���)

v OLE DB(Object Linking and Embedding Database) �� ��

������ ����� ��� ������.

1. ��� ���� �� ��� ������.

2. DB2 ���� ������� � ������ ���� ������ ��

���� ������ ������. ���� �� ��, � ������ �

��� �� ���� db2start � ��� ���.

3. ������ ���� ������� � � �� ������.

4. (����)�� �� ������ ������ ���� � �� ��� �

�����.

5. ������ ������.

� 23 ������ ����� � 133

Page 140: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

134 DB2 Connect Server � ��

Page 141: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 24 � DB2 Connect �� ��

����� DB2 Connect ��� ���� �� ��� ���. ���� � �

�� �� DB2 Connect ��� �� �� � �� ����� �� � ���

� ���.

DB2 �� �� ��(Windows)� ������ Windows � ���� DB2 ��� ��� ���� �� ��

���. �� DB2 ���� ������� � �� ��� �� ���� � �

��� ������.

�� DB2 ��� � �� ��� ���� �� DB2 ��� ��, � ��

� ���� �� � �� ��� ����� db2swtch � ������. ��,

DB2 Administration Server(DAS)� ���� � ���� �� ��� ����

� �� ���� DAS� ������. ��� �� �� � �� � db2admin

create � ���� DAS� ����� �� �� �� DAS� ������

�.

Windows�� DB2 ��� ����� ��� ������.

1. (����) �� �� �� drop database � ���� �� ������� �

�����. ��� ������� � �� ��� ��� ������. ���

���� ����, �� ���� �����.

2. �� DB2 ��� ���� ������. � �� Windows ��� ��

� ����� db2stop � ��� � � � ���. DB2 ��� ���

� �� DB2 ��� ���� ���� � ��� ���� DB2 DLL�

� ��� ��� �� ���� � �� ���� �� ��. DB2 �

�� ���� �� ��� ��/��� ��� ��, � �� �� ����

�.

3. DB2 ��� ���� �� � �� � � ���.

���� �/��

Windows ���� �� ���� � ��, ��� ��/�� �� �

��� DB2 ��� ������. Windows � ���� ���� �

�� ���� ��� �� ��� � �� ���� �����.

db2unins ��

DB2DIR₩bin ���� db2unins � ���� DB2 ��, � ��

��� ��� � ���. � � ��� /p ����� ����

�� DB2 ��� � ��� �� ���. � ��� ���� /u �

© Copyright IBM Corp. 1993, 2009 135

Page 142: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

���� �� DB2 ��, � �� ��� � ��� � ���. �

�� ��� db2unins ��� �����.

���� ��� ��/�� �� ����� db2unins /p �� db2unins /u

� ���� �� DB2 ��� ��� � � �� ����. �� ��� ��

� ���� �� � �� � � ���� ���.

Windows ����� �� DB2 ��� ��� ����� db2unins /f � ��

����. � � ����� �� DB2 ��� �� ��� �����. ���

���� ��� �� ��(�: DB2 ������)� ��� �� ��. � � /f

����� �� ���� �� ��� ��� db2unins � �����.

DB2 �� �� ��(Linux � UNIX)� ���� Linux �� UNIX � ���� DB2 ��� ���� �� ���

��.

DB2 ��� � ��� �� ��� � ���� ��� ����. Linux ��

UNIX�� DB2 ��� ��� �� � ��� ���� ��� ���� �

�� � ���.

�: � ���� � ���� �� DB2 ��� �� ��. �� ���� �

� ���� �� DB2 ��� � ���� ��� ���.

DB2 ��� ����� ��� ������.

1. ����: ������� �� ��(Drop)����. �� �� �� drop database

� ���� ������� ��� � ���. ������ ��� �� �

������ ���� �� ����� ���� �� ���� ��� �� ��

��.

2. DB2 Administration Server� ������. DB2 Server � ���� ���

���.

3. DB2 Administration Server �� �� dasupdt � ���� DB2

Administration Server� �� � ��� ������. DB2 Administration

Server� ����� DB2 Server � ���� �����.

4. �� DB2 ����� ������. DB2 Server � ���� ������.

5. DB2 ���� �� �� db2iupdt � ���� ����� �� � ���

������. DB2 ����� ����� DB2 Server � ���� ����

�.

6. DB2 ��� ������. DB2 Server � ���� ������.

136 DB2 Connect Server � ��

Page 143: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 9 � �

© Copyright IBM Corp. 1993, 2009 137

Page 144: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

138 DB2 Connect Server � ��

Page 145: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� A. DB2 � �� ��

DB2 � ��� �� �� ���� �� ��� � ���.

v DB2 �� ��

– �� � (���, �� � � )

– DB2 ��� �� ���

– � ���

– ���

v DB2 ��

– PDF ��(���)

– PDF ��(DB2 PDF DVD)

– ��� ��

v � ���

– ���

– ��� ���

�: DB2 �� ��� ��� PDF �� ��� ���� � �� �� ��. ��

��� ��� �� �� �� ����� ���� ibm.com�� DB2 �� ��

� �����.

ibm.com�� �� DB2 � ��(�: � �, �� IBM Redbooks® ��)�

����� ���� � ���. ��� DB2 �� �� ����� ���� �

��� �����. http://www.ibm.com/software/data/sw-library/

�� ��

DB2 ��� �� ��� �����. DB2 ��� ���� ��� ��� �

��� � �� [email protected]�� �� ��� �����. DB2 �� �

��� ��� �� ��� ��� � � � �� ����. ��� ��� � �

��� � �� �� � ���� �� �������. �� �� �� ��� �

�� �� ��� ��� ��, � URL� �����.

DB2 �� ��� ��� �� � �� �� ��� ���� ���. ���� �

� � �� DB2 � ���� � ��, �� ��� IBM ��� ��� ���

�����.

© Copyright IBM Corp. 1993, 2009 139

Page 146: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 � ����(���� �� PDF ��)

�� �� IBM Publications Center(www.ibm.com/shop/publications/order)�� �

�� � � DB2 ������ �� ���. PDF ��� �� DB2 �� 9.7

��� ��� ��� www.ibm.com/support/docview.wss?rs=71

&uid=swg2700947�� ���� � ���.

�� ��� � � ��� � ����, �� �� �� ��� �� �� ��

��� � �� �� ���.

���� ��� �� �� ��� �����. �� ��� ��� �� � �

��� �� ���� ������.

�: DB2 �� ��� PDF �� ��� ���� �� �� ��.

� 15. DB2 � ��

�� �� � � � � �� ��

�� API �� SA30-3958-00 � 2009� 8�

�� � � SA30-3955-00 ��� 2009� 8�

Call Level Interface

Guide and Reference,

Volume 1

SC27-2437-00 � 2009� 8�

Call Level Interface

Guide and Reference,

Volume 2

SC27-2438-00 � 2009� 8�

� �� SA30-3959-00 � 2009� 8�

��� �� ���

�� ��

SA30-3969-00 � 2009� 8�

��� � ����

�� ��

SA30-3970-00 � 2009� 8�

������ �� ��

�� ��

SA30-3951-00 � 2009� 8�

������ ����

�� ��

SA30-3953-00 � 2009� 8�

������ � �� SA30-3971-00 � 2009� 8�

DB2 Text Search Guide SC27-2459-00 � 2009� 8�

Developing ADO.NET

and OLE DB

Applications

SC27-2444-00 � 2009� 8�

Developing Embedded

SQL Applications

SC27-2445-00 � 2009� 8�

Developing Java

Applications

SC27-2446-00 � 2009� 8�

140 DB2 Connect Server � ��

Page 147: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 15. DB2 � �� (��)

�� �� � � � � �� ��

Developing Perl, PHP,

Python, and Ruby on

Rails Applications

SC27-2447-00 ��� 2009� 8�

Developing User-defined

Routines(SQL and

External)

SC27-2448-00 � 2009� 8�

Getting Started with

Database Application

Development

GI11-9410-00 � 2009� 8�

Linux Windows��

DB2 � �� ���

GA30-3960-00 � 2009� 8�

��� �� SA30-3972-00 � 2009� 8�

DB2 Server � GA30-3962-00 � 2009� 8�

IBM Data Server Client

GA30-3963-00 ��� 2009� 8�

Message Reference

Volume 1

SC27-2450-00 ��� 2009� 8�

Message Reference

Volume 2

SC27-2451-00 ��� 2009� 8�

Net Search Extender

Administration and

User’s Guide

SC27-2469-00 ��� 2009� 8�

���� �����

��

SA30-3973-00 � 2009� 8�

pureXML Guide SC27-2465-00 � 2009� 8�

Query Patroller ��

��� ��

SA30-3974-00 ��� 2009� 8�

Spatial Extender and

Geodetic Data

Management Feature

User’s Guide and

Reference

SC27-2468-00 ��� 2009� 8�

SQL Procedural

Languages: Application

Enablement and Support

SC27-2470-00 � 2009� 8�

SQL ��, �� 1 SA30-3956-00 � 2009� 8�

SQL ��, �� 2 SA30-3957-00 � 2009� 8�

��� � ����

�� � �

SA30-3952-00 � 2009� 8�

DB2 �� 9.7� ���

SA30-3961-00 � 2009� 8�

Visual Explain ��� SA30-3968-00 ��� 2009� 8�

�� A. DB2 � �� �� 141

Page 148: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� 15. DB2 � �� (��)

�� �� � � � � �� ��

DB2 �� 9.7� ��

��

SA30-3967-00 � 2009� 8�

Workload Manager

Guide and Reference

SC27-2464-00 � 2009� 8�

XQuery Reference SC27-2466-00 ��� 2009� 8�

� 16. DB2 Connect �� � ��

�� �� � � � � �� ��

DB2 Connect Personal

Edition � ��

SA30-3965-00 � 2009� 8�

DB2 Connect Server �

��

SA30-3966-00 � 2009� 8�

DB2 Connect ��� �

SA30-3964-00 � 2009� 8�

� 17. Information Integration � ��

�� �� � � � � �� ��

Information Integration:

Administration Guide for

Federated Systems

SC19-1020-02 � 2009� 8�

Information Integration:

A S N C L P P r o g r a m

Reference for Replication

and Event Publishing

SC19-1018-04 � 2009� 8�

Information Integration:

Configuration Guide for

Federated Data Sources

SC19-1034-02 ��� 2009� 8�

Information Integration:

SQL Replication Guide

and Reference

SC19-1030-02 � 2009� 8�

Information Integration:

Introduction to Replication

and Event Publishing

GC19-1028-02 � 2009� 8�

� DB2 �� ��

��� DB2 ��� �� ��, ��� ����� ��� � �� �� �� �

� ���� �� �� ����. ���� �� ��� IBM ������ ���

DB2 ��� ��� � ���. DB2 PDF �� DVD� �� ��� ��� �

�� � ��� �� �����. �� ��, DB2 ��� ��� ��� ���

���� ��� � ����.

142 DB2 Connect Server � ��

Page 149: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 PDF �� DVD�� ��� � � ��� DB2 ��� ��� ��� IBM

�� � ��� � ���. ���� ��� �� IBM Publications Center�

� ����� ��� ��� �� ���. �� �� �� ���� ��� ���

����, ���� �� ��� IBM ������ ��� DB2 ��� ��� �

���. DB2 PDF �� DVD� �� ��� ��� �� ��� �� ����

�.

�: � ��� ��� DB2 ��� http://publib.boulder.ibm.com/infocenter/

db2luw/v9r7� DB2 �� ���� ��� ��.

��� DB2 ��� ����� ��� ������.

v �� �� �� ���� ��� DB2 ��� ����� ��� � �� ���

����� http://www.ibm.com/shop/publications/order� IBM Publications Center

� ������. �� �� ��� ������ ��/��/��� ��� �� �

� ���� �� ����� �����.

v �� ��� IBM ������ ��� DB2 ��� ����� ��� �����

�.

1. �� � ��� � ���� �� �� ���� �� ��� ��� ����

�.

– www.ibm.com/planetwide� � IBM ��� ��� ���

– http://www.ibm.com/shop/publications/order� IBM Publications � ���.

�� ��� �� �� � ���� ������ �� ��, �� �� ��

� ���� ���. � ����� ″� ��� ��″ ��� ������.

2. ��� ��� ��, ��� DB2 ��� ������.

3. ����� ����� ��� � �� ��� ������. ��� �

�� ��� 140 ���� �DB2 � �����(��� �� PDF ��)�

� �����.

� ����� SQL �� ��� �

DB2 ��� SQL�� �� ���� ��� �� SQLSTATE �� �����.

SQLSTATE ���� SQL �� SQL �� ��� �� ��� ���.

SQL �� ���� ����� � ���� �� ��� ������.

? sqlstate or ? class code

���, sqlstate� � 5�� ��� � SQL ���� class code� SQL ���

�� 2�� ��� �����.

�� ��, ? 08003� 08003 SQL ��� �� ���� ����, ? 08� 08 ��

� �� �� ���� �����.

�� A. DB2 � �� �� 143

Page 150: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

DB2 �� ��� � � � ���

DB2 �� 9.7 ��� �� DB2 �� �� URL� http://publib.boulder.ibm.com/

infocenter/db2luw/v9r7/���.

DB2 �� 9.5 ��� �� DB2 �� �� URL� http://publib.boulder.ibm.com/

infocenter/db2luw/v9r5/���.

DB2 �� 9 ��� �� DB2 �� �� URL� http://publib.boulder.ibm.com/

infocenter/db2luw/v9/���.

DB2 �� 8 ��� �� �� 8 �� �� URL� http://publib.boulder.ibm.com/

infocenter/db2luw/v8/���.

DB2 �� ���� ��� ��� �� �

DB2 �� ��� ���� �� �� ��� ��� �� � � �����. ��

� ��� ��� ���� �� ��, DB2 �� ��� �� �� � � ��� �

����.

v Internet Explorer ������ ��� ��� � � ����� ��� ����

��.

1. Internet Explorer�� �� —> ��� � —> �� �� �����. �

� �� � �� ����.

2. ��� ��� �� �� �� � �� ������ ������.

– �� � ��� ����� �... �� �����.

�: ��� ������ ��� ��� � � ���� � �� ���

���� ���� ����.

– ��� � �� �����, ��� ��� � �� ��� �� ��

�� � � � ��� �� �� �� �����.

3. ���� ��� � � ���� �� ��� ��� ��� DB2 �� ��

� �� ��.

v Firefox �� Mozilla ������ ��� ��� �� � � ����� ���

������.

1. �� —> �� —> �� ��� �� � �� �� ������. �

� � �� �� ��� �� ��.

2. ��� ��� �� �� �� � �� ������ ������.

– �� � ��� ����� �� �� ��� ��� ��� ��� ��

�... �� �����.

144 DB2 Connect Server � ��

Page 151: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

– ��� � �� �����, ��� ��� � �� ��� �� ��

�� � � � ��� �� �� �� �����.

3. ���� ��� � � ���� �� ��� ��� ��� DB2 �� ��

� �� ��.

�� ���� � �� ���� � ��� �� �� ��� ��

��� ���� ���.

� � �� ���� ��� �� DB2 �� �� ��

��� �� DB2 �� ��� ����� ���� ���.

��� ��

DB2 �� 9.7 �� ��� �� �� ���� ���. ��� ��� DB2 Server

�� �DB2 � ��� ���� DB2 �� �� �� ��� �����. �

� �� �� ���� �� ��� ����� �� �� ���� �� �

�.

� ���� �� ��

��� DB2 �� ��� �� �� ���� ��� � ���.

v �� �� - �� �� �� � ��� �����. �� ��� � �� ��

��� �� � �� ��� ��� � �� � � �� �� ����. ��

�� ��� ����� ���� �� ���� �� ��� ����� ��

�� ���.

v �� �� - �� ��� �� ��� ��� ����� �� ������. �

� ��, �� �� ��� ����� ��� ��� ��� ��, �� �

�� �� �� �� ��� � �� ���� ��� ���� �� �

���. , �� ��� ����� �� ��� ��� �� ���� �����

���. �� ��� �� ��� � �� ��� � ����.

����

� ��� �� �� ���� �� ���. �� ��� �� ����� ���

� �� ���� ��� �� DB2 �� �� �� ��� ��� �����.

��� �� ���� ��� �� DB2 �� ��� ���� ����� ��� �

�����.

1. Linux � ��� ��

a. �� ��� �� ��� ������. DB2 �� ��� /opt/ibm/

db2ic/V9.7 ���� ��� � ��.

�� A. DB2 � �� �� 145

Page 152: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

b. � ����� doc/bin ���� ������.

c. ��� �� ic-update ����� ������.

ic-update

2. Windows � ��� ��

a. �� ����.

b. �� ��� �� ��� ������. DB2 �� ��� <Program

Files>₩IBM₩DB2 Information Center₩Version 9.7 ���� ���

� ��. ��� <Program Files>� ��� �� ���� ��� ��

���.

c. � ����� doc₩bin ���� ������.

d. ��� �� ic-update.bat ��� ������.

ic-update.bat

��

DB2 �� ��� ���� ��� ��. ����� �� �� ��, �� ���

� �� ��� ��� �� ��. �� �� ��� ��� � �� ��, ����

��� �� ��. �� ��� doc₩eclipse₩configuration ���� ���.

� �� �� ��� ��� ��� �����. �: 1239053440785.log

� � �� ���� ��� �� DB2 �� �� �� ��

DB2 �� ��� ��� �� ��, IBM���� �� ����� �� �� �

���.

��� �� DB2 �� ��� ���� ����� ��� ������.

1. ����� DB2 �� ��� ��� � ��� ���� �� ������. ��

� ���� �� ��� ���� ���� �� �� � �� ���� �

� ��� ���� � ���� ����� ��� � ���. DB2 �� ��

� ��� ��� �� ��� ���� �� ��.

2. �� �� ����� ����� �� �� ������. ��� � ��

��� � ��, �� �� ���� �� ��� � �� � ���.

�: ���� �� �� ��� DB2 �� �� ����� ��� � ��,

���� �� DB2 �� ��� �� ��� ���� �� ���� ��

�� ����� ������. �� � �� �� ����� ���� ���

� �� ���� �� ���� ��� ������ �� ���� ��� �

��� ��� ���� ���� �� � � �� � ���.

�� ��� �� ��� �� �� ���� ��� ������. ��

� �� �� ��� ����� ��� � ���.

146 DB2 Connect Server � ��

Page 153: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

3. ��� �� ��� ��� � ����� DB2 �� ��� �������.

�: Windows 2008, Windows Vista ��� �� � � ��� ��� � ��

�� ���� ���. �� ��� ���� �� �� ��� ��� ��

� � ���� �� ��� �� �� � ���� ��� ������.

��� �� ���� ��� �� DB2 �� ��� ����� ��� �����

�.

1. DB2 �� ��� ������.

v Windows� ��, �� → ��� → �� �� → ���� �����. �� �

� DB2 Information Center ���� �� ��� �� �� � ���

������.

v Linux� ��, �� � ������.

/etc/init.d/db2icdv97 stop

2. ��� ���� �� ��� ������.

v Windows� ��:

a. �� ����.

b. �� ��� �� ��� ������. DB2 �� ��� <Program

Files>₩IBM₩DB2 Information Center₩Version 9.7 ���� ��

� � ��. ��� <Program Files>� ��� �� ���� ��

� �����.

c. � ����� doc₩bin ���� ������.

d. ��� �� help_start.bat ��� ������.

help_start.bat

v Linux� ��:

a. �� ��� �� ��� ������. DB2 �� ��� /opt/ibm/

db2ic/V9.7 ���� ��� � ��.

b. � ����� doc/bin ���� ������.

c. ��� �� help_start ����� ������.

help_start

���� �� � ����� ��� ��� �� ��� �� ��.

3. �� �( )� �����. (JavaScript™� ������ �� ��� ���.)

�� ��� ��� ���� ���� �� �����. �� ��� ����

�� �� ��.

4. � ���� ����� �� ���� ��� � ���� ��� ����

�.

5. � ���� � �� �� �����.

�� A. DB2 � �� �� 147

Page 154: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

6. ��� �� ��� ������.

v Windows� ��, � ���� doc₩bin ���� ��� � ��� ��

help_end.bat ��� ������.

help_end.bat

�: help_end ���� ���� help_start ���� ��� ��� ��

�� ��� ���� � �� � ���� ���. help_start.bat

� ��� � Ctrl+C �� �� ���� ���� ���.

v Linux� ��, � ���� doc/bin ���� ��� � ��� ��

help_end ����� ������.

help_end

�: help_end ������ help_start ����� ��� ���� ��

� ���� � �� � ���� ���. help_start ����� �

�� � �� ���� ���� ���.

7. DB2 �� ��� �������.

v Windows� ��, �� → ��� → �� �� → ���� �����. �� �

� DB2 Information Center ���� �� ��� �� �� � ���

������.

v Linux� ��, �� � ������.

/etc/init.d/db2icdv97 start

��� DB2 �� ���� �� ��� ��� �� ��.

DB2 ���

DB2 ���� DB2 ��� ���� ��� ���� � ����. ��� �

����� �����.

���� ��

�� ��(http://publib.boulder.ibm.com/infocenter/db2help/)�� XHTML ��� �

��� � � ���.

�� ����� � ���� �� �����. �� ���� �� ���

� ���� �����.

DB2 ���

���� ��� � � �����.

148 DB2 Connect Server � ��

Page 155: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

�pureXML®�(pureXML Guide)

DB2 ������� ��� XML ���� � �� �� XML ��� �

��� �� �� ��� � ���.

Visual Explain ���� �Visual Explain�

� �� �� �� Visual Explain� ���� SQL�� ��, ���

�� � ���.

DB2 ��� �� ��

DB2 ������ �� �� � ��� ��� ���� ��� ��� � �

�� �� ��� ��� � ���.

DB2 ��

��� � ��� DB2 ��� � �� �� DB2 �� ��� ���

��� �� �� �����. DB2 � �� ���� ���� ��

�� ���� ��� ��, � ���� ���� �� � DB2

������ ���� �� � � ���� ��� �� � �� �

�� ���.

DB2 � �� � ���

���� �� �� �� �� � � ���� DB2 � �� � �

��� �����. � �� ����� �� DB2 ��, � �,

APAR(Authorized Program Analysis Report �� �� ��), FixPack

�� ��� �� ��� ���. ��� � � � ���� ��� ��

�� �� � � �� � ���.

��� DB2 � �� � ���� �����. http://www.ibm.com/software/

data/db2/support/db2_9/

����

�� �� �� � �� ��� � ���.

��� �: �� �� ��� ���� ��� ��� ��� � �� ���, �

�� ��� �� � ���. IBM� ��� �� ��� � � �� � ��

� �� �� ����� 2�� ���� �� � ����.

��� �: �� �� ��� ���� ��� ��� ��� � �� �� �

� ���� �, �� ��� � ���. ��� IBM� �� �� �� �

�� 2�� ���� ���� � � �� � ��� �, �� �� ��� � ��

��.

�� A. DB2 � �� �� 149

Page 156: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ���� ���� ��� ��� ����, � ��� � �� ��� ��, �

��, ���� �� �� �� ���� �� ��� ��� ���� �� ���

�� �� ����� ���� ����.

IBM� � �� ��� IBM� ��� ���� ���� ��� �� �����

���� ���� ��� �� ���� � ����� ��� ��� ��� �

���.

��� �� �� �� ��� ���� �� �� �� �" ��� ���

���� ���� � ��� ���, �� �� ���� � ���.

IBM� � �� ��� �� ��� ��� ���� ����. ��� �� ���,

��� �� ��� ���� �� ��� ��� ���� ( �� ��� �

�) ����� ���� ��� ��� �� �� � ���� �����.

150 DB2 Connect Server � ��

Page 157: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� B. ����

� ��� ���� ���� �� ������ ��� ����. �IBM ���

�� ��� � �� �� �� �� ��� ���� �� ��� � ���.

IBM� �� ���� � �� �� ��, ��� �� �� ���� �� ��

���. �� ��� � � �� ���� �� ��� �� IBM �����

������. � ��� IBM ��, ��� �� ���� ���� �� �� IBM

��, ��� �� ����� ��� � �� �� ����� ����. IBM�

�� ���� ���� �� �, ���� �� ��, ��� �� ���� �

� ��� �� ���. ��� �IBM ��, ��� �� ���� �� ��

�� ��� ���� �����.

IBM� � ��� �� � �� ��� �� ��� ��� �� �� ��

� �� � ���. � �� ����� �� ��� �� ������ ����

�� ����. ����� �� ����� ���� ������.

135-700

���� ��� �"� 467-12, ��������

�� ��.�.� ����

�����

����: 080-023-8080

2 �� �� ��(DBCS) ��� �� ���� ��� �� IBM ������ �

���� �� ��� �� ����� ���.

Intellectual Property Licensing

Legal and Intellectual Property Law

IBM Japan, Ltd.

3-2-12, Roppongi, Minato-ku, Tokyo 106-8711 Japan

�� ��� ��� �� ���� �� ���� ��� ����. IBM�

��� �� ���, ��� �� ��� ���� �� ��� ��� ����

(, �� ��� ��) ����� ���� ��� ��� ���� � �� ���

���� �����. �� ����� �� ���� �� �� ��� ��� ��

��� ���� ����, � ��� ���� �� �� ���.

© Copyright IBM Corp. 1993, 2009 151

Page 158: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ���� ���� ���� ���� ���� ��� � � ���. � �

�� ����� ����, ��� ��� ���� �� ��. IBM� � ���

� �� /�� ���� �� �� �� ���� �� /�� ��� � �

��.

� ���� ��� �IBM� � ���� � ��� ��� ���, �� ���

�� �� � ���� ����� �� �� ����. �� � ���� � � �

IBM �� � � ��� ���� �� � ��� ���� �� ��� ��� ��

� #��� ���.

IBM� ��� ��� ���� �� �� ��� ����� ��� ���� ��

� ��� ��� ����� ��� � ���.

(i) ����� ��� ���� �� ���(� ��� ��) � �� �

(ii) �� ��� �� ��� ��� � ���� �� ��� ��� �� �

��� ���� �� ��� ������.

135-700

���� ��� �"� 467-12, ��������

�� ��.�.�. ����

�����

��� ��� �� �(�� ��, �� �� ) ��� ��� � ���.

� ��� �� ����� ��� ��� ���� �� �� �� ��

����� ��� � � IBM� IBM �� ��, IBM ��� ���� ��(IPLA)

�� �� �� ��� �� ��� ����.

� ��� ��� �� � ���� ��� ���� �� ����. ��� ��

� ���� ��� �� ��� �� � ���. �� ���� � �� ��

��� ����� � ��, ��� ��� ���� ����� ���� � ��

���� ���� ��� ����� ��� � ����. �� �� �� ���

�� ����� �� ��� �� �� �� � ���. � �� ���� ��

���� ��� �� ���� ���� ���.

�IBM ��� �� ��� �� ��� ��, �� � �� �� �� �� �

���� �� ����. IBM��� ��� ���� ���� �����, �IBM

��� ��� �� ���, ��� �� �� �� ���� ��� � ����.

�IBM ��� �� �� ����� �� ��� ��� ������.

IBM� ���� �� �� ��� �� �� �� �� �� �� ��� �

���.

152 DB2 Connect Server � ��

Page 159: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

� ���� ��� ���� ��� ���� � ���� �� ��� ��

���. �� ���� ��� �� ���� �� ��� ��, ��, ��

��� ��� ��� � ���. �� ��� �� ��� ��� �� �� ��

��� ����� �� ���� ����.

��� ����:

� ���� �� � ������ ���� ��� ���� ��� � � �

����� �� ���. ��� ��� � ���� �� ��� �� � �

��� ����� ���� �����(API)� ���� ������ �, �

�, �� �� ��� ��� IBM� �� ��� ���� �� �� � ��

�� ��� ���� �, �� ��� � ���. ��� � ���� �

� ���� ��� ��� �� ����. ��� IBM� ��� ���� �#

�, ��� �� �� �� ����� ��� ����. � ���� ��

� ���� ″� ���″ �� ��. IBM� � ���� ���� �� �

�� �� ��� �� ��� �� ����.

��� � ��� �� �� ��� ���� ���� ��� ��� �� �

�� ��� ����� ���.

© (��� ��) (�). � �� ��� IBM Corp.� � ����� ��

��. © Copyright IBM Corp. _enter �_. All rights reserved.

��

IBM, IBM �� ibm.com®� �� ��� �� IBM Machines Corp.� ��

�� ������. �� �� ��� ��� IBM �� �� ��� �����.

� � IBM � � �� � “� � � � � � �”(www.ibm.com/legal /

copytrade.shtml)� ���.

�� ��� �� ��� �� �� ������.

v Linux� �� �� �� ���� ���� Linus Torvalds� ������.

v Java �� Java �� ��� �� �� �� ���� ���� Sun

Microsystems, Inc.� �����.

v UNIX� �� �� �� ���� ���� The Open Group� ������.

v Intel, Intel ��, Intel Inside®, Intel Inside ��, Intel® Centrino®, Intel Centrino

��, Celeron®, Intel® Xeon®, Intel SpeedStep®, Itanium Pentium� �� �

� �� ���� ���� Intel Corporation� �� �� ������.

v Microsoft, Windows, Windows NT® Windows ��� �� �� �� ���

� ���� Microsoft Corporation� �����.

�� ��, �� ��� ��� �� ��� �� �� �������.

�� B. ���� 153

Page 160: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

154 DB2 Connect Server � ��

Page 161: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

��

����

DB2 Connect 5

����

DB2 �� �� 145, 146

�� �� 17

��

�� �� ��� �� 117

DB2 Connect �� �� 43

TCP/IP 118

�� �� ��� 121

��

������ 122

��� ������ ��� 117

System i ������ ��� �� 117

� � 121

��

������ 123

������

���

DB2 Connect 10

JDBC 7

��� ��

�� 128

������

�� 121, 122

�� 123

��� ������ 109

������ �� ��

�� 17

������ ����� 131

���

�� �� 144

SQL� 143

��� �

�� �� � � � � 81

��� �

Windows 77

�� ���� ���� 45

�� �� �

Windows 127

�������

�� 93

�� �

���� �� 96

db2licm 97

���� �� 96

db2licm 97

��� 93

���� ��

���� �� 93

���� �� � 96

���� � 96

��

���� DB2 ����� �� 125

� �� �

�� � 87

� �

��� � 81

��� 81

���

CD �� DVD

AIX 52

HP-UX 58

Linux 63

Solaris � �� 68

��� ���� 45

���� �� 117

db2licm 97

db2osconf 37

db2rfe - � � �� 82, 87

© Copyright IBM Corp. 1993, 2009 155

Page 162: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

(��)

db2secv82 78

db2setup 125

� ���(CLP) 121

DB2 AD ����� �� 19

��

�� 139

���� 149

��� 140

PDF 140

��� �

�� � �� 149

��� 149

��� �

��� �� 149

��� 149

����� �� 117

��� ��

��� 131

� �

������ �� 121

��

Windows �� �� � 127

��� �� 78

�� �

�� 81

��� � 81

� �� � �� 87

� 85

� �� 89

��� 81

�� 82

FixPack 89

�� ����

�� 89

�� 89

������ ��

� 78

DB2ADMNS 78

DB2USERS 78

��� ���

�� �� ��� ���(Windows) 73

���� ���(Windows) 73

DB2 Administration Server(Windows) 73

�� ���� ���

DB2 Connect �� 25

�� ���� ���

DB2 Connect �� 29

��

�� ���� 89

��

�� 17

��

���

�� 142

LANG �� �� 125, 128

DB2 Connect �� �� 43

DB2 ������ ��� ���(Windows) 73

DB2 ��� �� ���� � 85

Linux on S/390� DB2 62

Linux on zSeries 62

� �� 135

� � 136

�� 89

DB2 ������

Windows 135

���� ������ ��

�� �� ��� 122

��

�� ����(HP-UX) 37

���� 7

��� ��

DB2 Connect� 10

����� CCSID ��

�� �� 128

��

��� �� 128

�� ID� DB2 � �� 126

���� �� 125

����

��

DB2 Connect 24

DB2 Connect 27

156 DB2 Connect Server � ��

Page 163: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

���� (��)

DB2 Connect �� 9.5 23

�� 16

�� �� ��� 16

�� ��� �� DRDA ��� 110

�� 117

� �� VSE VM

DB2 Connect�� DB2 �� 115

� 7

����

�� 45

��� 45

���

�� 131

�����

ODBC 131

����� �

IBM Data Server Client �� 19

JDBC 7, 132

ODBC �� 132

� �� �� �� 1

����

�� �� 149

����

�� �� 89

����� �� 125

��

UNIX 128

Windows 127

������ ��(NLS)

�� ��� �� 128

db2setup �� 125

���

��� � 149

��� � 149

Visual Explain 148

�� 135

�� ���� 89

DB2 ������

Windows 135

DB2(�)

Linux 136

UNIX 136

dcs � 124

�� ��

�� 17

���� 151

�� �

��� �� 128

�����

���� ������ 122

����� �� ���� 37

� (HP-UX) 37

db2osconf (HP-UX) 37

HP-UX�� �� 37

Linux�� �� 38

Solaris � ���� �� 40

�� ���� ��

HP-UX 37

Linux 38

Solaris � �� 40

� ���

��

�� 128

���� �� 125

�� �����(CLI)

DB2 AD ����� �� 19

�����

�� 7, 16

��� 7

�����

������ 123

��

�� �� 17

�� ��

DRDA ��� ��� �� 110

��������

IBM Data Server Client �� 19

�� 157

Page 164: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

����

�� � 82

��� ������

����� 103

TCP/IP �� 118

AActiveX ��� ����

DB2 AD ����� �� 19

AIX

DB2 Connect �� �� 47

DB2 Connect �� �� ���� 49

CD �� DVD � 52

CCCSID(��� �� �� ID)

��� �� 128

CD

AIX�� � 52

HP-UX�� � 58

Linux�� � 63

Solaris � ���� � 68

DDB2 Administration Server(DAS)

�� 17

DB2 Administration Server(DAS) � 17

DB2 Connect

�� 10

�� ��

�� 43

�� ���� ��� 25

�� ���� ��� 29

�(��) 43

�(AIX) 47, 49

�(HP-UX) 55, 57

�(Linux) 59, 61

�(Solaris � ��) 65

�(Solaris � ��) 67

�(Windows) 71, 72

���� 77

DB2 Connect (��)

� (��)

��� 103

����

�� 23, 24

��� 27

�� 5

��� �� 5

System i �� 5

VSE VM� DB2 115

zSeries �� 5

DB2 �� �� 142

DB2 � ��

�� ID 126

DB2 �� ��

�� 145, 146

�� ��� �� 144

�� 144

�� 144

DB2ADMNS ��

��� �� 78

db2licm

���� �� 93

���� �� � 97

���� � 97

db2osconf

�� �� ���� � � 37

db2rfe

� � �� 82, 87

db2setup

�� � 125

DB2USERS ��� ��

��� �� 78

DCS �

�� 124

DVD

AIX 52

HP-UX 58

Linux 63

Solaris � �� 68

EEmbedded SQL �����

IBM Data Server Client �� 19

158 DB2 Connect Server � ��

Page 165: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

FFixPack

�� � 89

�� 99

HHP-UX

� �� 58

DB2 Connect �� 55, 57

�� �� ����

� � 37

�� 37

Ii5/OS

DSPRDBDIRE 107

IBM Data Server Client

��� ������ 103

IBM Data Server Driver for JDBC and SQLJ ��

DB2 �� ��� �� �� 33

IBM i

DB2 Connect �� 107

DB2 Connect� DB2 �� 107

DSPNETA 107

WRKLIND 107

iSeries

DB2 Connect �� 107

DB2 Connect� DB2 �� 107

DSPNETA 107

DSPRDBDIRE 107

WRKLIND 107

JJava

��� ������ ��� 7

DB2 �� �� 33

IBM Data Server Client �� 19

JDBC(Java Database Connectivity)

����

�� 33

IBM Data Server Client �� 19

LLANG �� ��

� 125, 128

Linux

DB2 Connect �� �� 59

zSeries DB2 ������ 62

� ����

DB2 Connect �� �� 61

��

DB2 �� ���� 89

DB2(�) 136

�� ���� �� 38

CD �� DVD � 63

NNLS(��� ��)

�� ��� �� 128

OODBC(Open Database Connectivity)

����� �� � 131

OLE(Object Linking and Embedding)

DB2 AD ����� �� 19

OS/390

DB2 ������ ��� �� 112

OS/390 z/OS� DB2 Universal Database

��� �� �� 112

PPower Systems

IBM i

DB2 Connect� �� �� 5

WRKLIND 107

SSDK

Java

�� �� 33

Solaris � ��

DB2 Connect �� �� 65

�� ���� �� 40

�� 159

Page 166: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

Solaris � �� (��)

CD �� DVD � 68

Solaris � ��

����, DB2 Connect �� �� 67

SQLJ

DB2 AD ����� �� 19

SQL(Structured Query Language)

Visual Explain�� �� 17

SQL�

��� �� 143

System i

������ ��

TCP/IP �� 118

DB2 Connect �� 5

System z

DB2 Connect� �� �� 5

S/390

� 62

TTCP/IP

��

��� 110

�� ��

��� ������ �� 118

System i ������ �� 118

z/OS� DB �� 109

UUNIX

��

DB2 �� ���� 89

DB2(�) 136

DB2 ����� �� �� 128

VVisual Explain

�� 17

��� 148

VTAM

DB2 Connect� �� z/OS �� 109

WWindows � ��

�� �� �

�� 127

��� ���

DB2 �� �� � 73

DB2 Connect �� ��(����) 72

DB2 Connect �� ��(���) 71

DB2 Connect(���� ���� ��) 77

DB2 � �� 135

ZzSeries

Linux� DB2 ������ � 62

z/OS

DB2 ������ ��� �� 112

z/OS� DB2

�� ��� ���� �� 17

160 DB2 Connect Server � ��

Page 167: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®
Page 168: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

����

SA30-3966-00

Page 169: DB2 Connect Serverpublic.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009. 7. 16. · JDBC SQLJ IBM Data Server Client . JDBC API http ... ® ® ( : IBM TXSeries® CICS®

Spineinformation:

IBM

DB

2C

on

nec

t9.

7D

B2

Co

nn

ect

Ser

ver

��

��

���