linux windows db2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_kr/... · 2009-07-16 ·...

99
Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00

Upload: others

Post on 22-Jul-2020

24 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

Linux, UNIX � Windows�

IBM DB2 9.7

Linux � Windows�� DB2 �� � �� ����

GA30-3960-00

���

Page 2: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!
Page 3: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

Linux, UNIX � Windows�

IBM DB2 9.7

Linux � Windows�� DB2 �� � �� ����

GA30-3960-00

���

Page 4: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�!

� ��� � ��� ���� ��� ���� ��, 83 ���� �� F ������� �� ��� �����.

��� ����

� ���� 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: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

��

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

� 1 � ��� � ��� ���� . . . . . . 3

� 2 � Windows �� ���� . . . . . . . 5

DB2 Server IBM Data Server Client �� ��

��(Windows) . . . . . . . . . . . . . 5

DB2 ��� ���� �� Windows� �� ��

��(Windows) . . . . . . . . . . . . . 7

��� �� �(Windows) . . . . . . . . . 9

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

� 3 � Linux �� ���� . . . . . . . . 13

DB2 Server IBM Data Server Client �� �

���(Linux) . . . . . . . . . . . . . 15

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

� 2 � DB2 �� �� . . . . . . . . 19

� 4 � DB2 Server ��(Windows) . . . . . 21

� 5 � DB2 �� ���� ���� DB2 Server

��(Linux) . . . . . . . . . . . . . . 25

� 3 � �� �� . . . . . . . . . . 29

� 6 � � ��� ���� DB2 Server �� �

�(Linux � Windows) . . . . . . . . . . 31

� 7 � ��� ���(CLP)� ��� �� �� 33

� 8 � �� ����� ������ �� ���

� ���� ������ �� . . . . . . . . 35

� 9 � DB2 ��� �� ��� ��(Linux) . . 37

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

� 10 � DB2 ���� � . . . . . . . . 41

� 11 � db2licm �� ��� DB2 �� ��

�� ���� � ��. . . . . . . . . . . 45

� 12 � ���� ��� ��� DB2 �� ��

�� ���� � ��. . . . . . . . . . . 47

� 13 � DB2 ���� �� �� . . . . . . 49

� 14 � �� ���� �� . . . . . . . . 51

� 5 � �� . . . . . . . . . . . . 53

�� A. �� � ���� DB2 �� �� . . 55

�� �� �� �� . . . . . . . . . . . 55

�� �� ���� . . . . . . . . . . . . 55

DB2 �� ��� ��� �� �� �� . . . 56

�� B. DB2 �� �� �� . . . . . . . . 59

DB2 �� � . . . . . . . . . . . . . 59

�� C. DB2 FixPack �� . . . . . . . . 61

FixPack �� . . . . . . . . . . . . . 61

�� D. DB2 �� �� �� . . . . . . . . 65

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

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

DB2 Administration Server ��(Linux) . . . 66

DB2 Administration Server ��(Linux) . . . 67

�� ���� ��(Linux) . . . . . . . . 67

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

db2_deinstall �� doce_deinstall ��� ���

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

�� E. DB2 �� �� �� . . . . . . . . 71

DB2 � �����(��� �� PDF �) . . 72

�� DB2 �� �� . . . . . . . . . . 74

��� ����� SQL �� � �� . . . . 75

DB2 �� ��� � ��� ��� . . . . . 76

DB2 �� ���� ��� �� �� �� . . . 76

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

�� . . . . . . . . . . . . . . . . . 77

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

�� �� . . . . . . . . . . . . . . . 78

DB2 ��� . . . . . . . . . . . . . . 80

DB2 �� �� �� . . . . . . . . . . 81

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

�� F. ���� . . . . . . . . . . . . 83

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

© Copyright IBM Corp. 1993, 2009 iii

Page 6: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

iv Linux Windows�� DB2 �� �� ����

Page 7: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 1 � �� ����

© Copyright IBM Corp. 1993, 2009 1

Page 8: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

2 Linux Windows�� DB2 �� �� ����

Page 9: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 1 � ��� � ��� ����

��� ����

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

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

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

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

��.

Linux® � ����, /tmp ��� 2GB� ��� � ���.

��� ����

DB2 ����� ����� ��� 256MB� RAM� �����. DB2 DB2

GUI ��� ��� ���� ��, �� 512MB� RAM� �����. ��� �

� ����� 1GB� RAM� �����. � ������ ����� � �

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

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

v IBM® Data Server Client ��� ��, ����� 5�� �� ���� ���

�� �� �������. 5�� ���� ���� ��� 16MB� RAM�

�����.

v �� ����� ����� ���� ��� ���, ����� ��� ��

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

DB2 Server� ��, �� � � �� �� � �� �� ����

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

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

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

v Linux � ���� RAM ��� ��� �� ���� SWAP ��� �

���.

© Copyright IBM Corp. 1993, 2009 3

Page 10: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

4 Linux Windows�� DB2 �� �� ����

Page 11: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 2 � Windows �� ����

DB2 Server � IBM Data Server Client �� ����(Windows)Windows® � ��� DB2 ����� ��� ���� �� ��� ���� �

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

� 1. Windows ��� �� �

�� �� ��� ����

Windows XP Professional(32�

64�)

Windows Vista Business(32�

64�)

Windows Vista Enterprise(32�

64�)

Windows Vista Ultimate(32�

64�)

Windows XP �� �

2 ��

IBM Data Server

Provider for .NET ��

�� �����

CLR �� �����

� .NET 2.0 �����

���� �����.

64� IBM Data

Server Provider for

.NET ������ �

����.

�� Windows Vista �

� �� �����.

���� Windows � ��(32

� 64� �� ���)� ��

� � �� Intel® AMD ��

��

© Copyright IBM Corp. 1993, 2009 5

Page 12: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 2. Windows �� �

�� �� ��� ����

Windows 2003 Datacenter Edition(32

� 64�)

Windows 2003 Enterprise Edition(32

� 64�)

Windows 2003 Standard Edition(32

� 64�)

�� � 2 ��

R2 �� �����.

IBM Data Server Provider for .NET

���� ����� CLR �

� ������ .NET 2.0 ����

� ���� �����.

64� IBM Data Server Provider

for .NET ������ �����.

���� Windows �

��(32� 64� �

� ���)� �� �

� �� Intel AMD

����

Windows Server 2008 Datacenter

Edition(32� 64�)

Windows Server 2008 Enterprise

Edition(32� 64�)

Windows Server 2008 Standard

Edition(32� 64�)

IBM Data Server Provider for .NET

���� ����� CLR �

� ������ .NET 2.0 ����

� ���� �����.

64� IBM Data Server Provider

for .NET ������ �����.

�� Windows Server 2008 �� �

� �����.

�: DB2 ����� ��� �� Windows � ��� ��� ���� ��

DEP(Data Execution Prevention) �� �����.

�� ����� ���

v Windows �� ��� 3.0� �����. � ���� ��� � ��

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

v IBM Data Server Provider for .NET ���� ����� CLR

�� ������ .NET 2.0 ����� ���� �����. x64 ��

��� 32� IBM Data Server Provider for .NET ������

WOW64 � ��� ���� ����.

v MDAC 2.8� �����. DB2 �� ��� MDAC 2.8� ����

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

�: �� ��� MDAC(�: 2.7)� �� ���� � ��, DB2 �� �

MDAC� 2.8� ��������. �� ��� ��, MDAC 2.8� ��

���. ��� ��� ��, MDAC 2.8� ���� ���� ��� �

�� �� ���� �����. ��� ��� ��� MDAC� �� �

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

v LDAP(Lightweight Directory Access Protocol)� ����� Microsoft®

LDAP ���� �� IBM Tivoli® Directory Server v6 ����(DB2

����� ��� ��� IBM LDAP ������� �)� ���

6 Linux Windows�� DB2 �� �� ����

Page 13: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

���. Microsoft Active Directory� ���� �� �� ����

db2₩Windows₩utilities ��� � db2schex ��� ���

�� ��� � � ���.

Microsoft LDAP ����� Windows � ��� ���� ���.

v ��� �� ���� DB2 �� ����(setup.exe)� ���, �

�� ��(db2fs)� ���� �� ���� � ��� �����.

– Firefox 2.0 ��

– Internet Explorer 6.0 ��

– Mozilla �� ���� 1.7 ��

– Safari 3.0 ��

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

Windows� DB2 ��� ���� ���� ��� ��� ��� ����� ��

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

�. ��� ���, Windows ���� Windows� �� �� �� ��� �

��.

� ���� Windows ���� ��� ��� ����� ��� ��� �

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

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

����� Windows ���� ��� ����� �� � ���� DB2 ��� �

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

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

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

��� �����.

v ��� ���� FixPack, ��(add-on) ��� ����� ��� �� ���

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

���.

v ��� ���� DB2 ��� �� ��� � ����. Windows Vista( � �

�) � ����� ���� ���� DB2 ��� �� ��� � ���

.

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

1. �� -> ��� ��� gpedit.msc� ������. �� �� �� ����.

2. � � �� -> �� ���� –> Windows ���� –> Windows �� ���

� �����.

� 2 Windows �� ���� 7

Page 14: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

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

v Windows �� ���� �� ��� �����. �� �� �� �� �

��� �����.

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

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

v ��� �� ���� ��� � � � �� �����(� ��� �� �

���, FixPack ������ �� ��).

4. ��� ��� ��� ����� �� ��� ������.

a. ��� �� –> � ���� –> Windows ���� –> Windows �� �

���� �����.

b. �� ��� ���� ���(�). �� � ��� �� ��� ��

��.

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

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

�� ������.

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

6. ����: FixPack ��� �� �� �� ��� ������.

v sqllib₩cfg ��� �� �� �� ��� ������.

v FixPack ��� ����� ��� ������ ����� allowlockdownpatch

� �� ��� ������(Windows Installer SDK ���� ��� ��).

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

v PC� �������.

v ����� gpupdate.exe� ������.

� ����� �� �� ���� � �� ���� DB2 Server ��, Client

FixPack� ��� � � ��� ����� �����.

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

v ����� ����� �� ��� ��� ��� ��� ��(SYSADM) �

� ��� ��(SYSCTRL) �� ��� �� ���� DB2 ���� �� DB2

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

v �� ��� ��� � ����� DB2 ���� ��(�: db2icrt, db2idrop,

db2iupdt �� db2iupgrade)� �� � ���.

8 Linux Windows�� DB2 �� �� ����

Page 15: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

v db2start �� db2stop �� �� �� �� � ����� START DATABASE

MANAGER �� STOP DATABASE MANAGER �� ��� ����

���.

Windows �� �� ��� ��� regedit ��

Windows �� � ��� ��� ��� regedit� ���� ����.

1. ����� �� HKEY_LOCAL_MACHINE₩

SOFTWARE₩Policies₩Microsoft₩Windows��

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

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

v AlwaysInstallElevated� �� REG_DWORD=1� ������.

v AllowLockdownBrowse� �� REG_DWORD=1� ������.

v AllowLockdownMedia� �� REG_DWORD=1� ������.

v AllowLockdownPatch� �� REG_DWORD=1� ������.

v DisableMSI� �� REG_DWORD=0� ������.

v EnableUserControl� �� REG_DWORD=1� ������.

3. ����� �� HKEY_CURRENT_USER₩

SOFTWARE₩Policies₩Microsoft₩Windows��

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

4. �� ��� ������ ������.

v AlwaysInstallElevated� �� REG_DWORD=1� ������.

��� �� ��

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

HKEY_LOCAL_MACHINE₩SOFTWARE₩Policies₩Microsoft₩Windows

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

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

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

Windows ���� DB2 ��� ��� ��� ����� SYSADM,

SYSMAINT �� SYSCTRL� �� �� ��� DB2 ��� �� �

���.

��� �� ��(Windows)� ����� Windows � ���� ����� ��� ��� ��� ��

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

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

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

� 2 Windows �� ���� 9

Page 16: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

1. �� -> ��� ��� secpol.msc� ������. Windows 2008 Windows

Vista(��)�� ��� ��� � ��� secpol.msc� ������. ���

�����.

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

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

�.

4. �� ���� ��� ��� ��� ������.

5. ��� �� —> ��...� ������.

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

7. ��� �����.

� �� Windows � �� �� ��, �� ��� � � ��� ���� � �

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

DB2 ��� ��� �� ����(Windows)����, ����� ��� � �� ��� ��� ��� �� DB2 ��� ��

���� ��� ��(SYSADM) ��� ����. ����� �� ����� �

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

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

DB2_GRP_LOOKUP=local� ��� �� � � ����(�� �� ��)� ��

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

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

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

���� �� DB2 ����� ��� � � ���� ��� ��(��� ��

��)� �����.

� � ���� SYSADM ��� ����, �� ��� �� �� � � ����

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

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

DB2_GRP_LOOKUP=local� ���� �� � � � ����� � ��� ��

SYSADM ��� ���� ����.

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

� ���� � ��� SYSADM ��� �� � � ���� ������. ��

� DB2 �� ��� SYSADM_GROUP� �� �� ���� ������.

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

10 Linux Windows�� DB2 �� �� ����

Page 17: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

db2 update dbm cfg using sysadm_group global_groupdb2stopdb2start

� 2 Windows �� ���� 11

Page 18: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

12 Linux Windows�� DB2 �� �� ����

Page 19: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 3 � Linux �� ����

DB2 Server � IBM Data Server Client �� ����(Linux)Linux � ��� DB2 ����� ��� ���� �� ��� ���� �� �

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

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

v x86(Intel Pentium®, Intel Xeon® AMD) 32� Intel AMD ����

v x64(64� AMD64 Intel EM64T ����)

v POWER®(Linux� ���� IBM eServer™ OpenPower®, iSeries®, pSeries®, System

i®, System p® POWER Systems)

v eServer System z® �� System z9®

Linux� ���� �� � ��� ��� ����.

v RHEL(Red Hat Enterprise Linux) 5 Update 2

v SLES(SUSE Linux Enterprise Server) 10 �� � 2

v SLES(SUSE Linux Enterprise Server) 11

v Ubuntu 8.0.4.1

���� Linux ��� �� �� ��� ��� ������ http://www.ibm.com/

software/data/db2/linux/validate/� ������.

����� ���� ��

DB2 32� ����� ��� Linux � ��� ���� ���� 64� �

��� ������� �� DB2 64� ����� ��� ��� �� ����

��. ����� ����� ��� �� ��� ������. ��� �� 32

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

�� ����.

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

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

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

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

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

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

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

© Copyright IBM Corp. 1993, 2009 13

Page 20: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

�� ����

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

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

���.

Linux ��� ��� ��� �� �� �� �� ������ � �� ��

�. Linux ��� �� �� ��� �� �� �� ���� ��� ���.

�� �� ���� /etc/sysctl.conf� ���� ���.

sysctl ��� ��� �� �� �� ����� ��� � �� ����

�����.

��� ����

�� �� SLES RHEL ��� �� �� ���� �����.

v libaio.so.1� �� I/O� ���� DB2 ����� ��� �����.

v libstdc++so.6� DB2 ����� �� ����� �����. ��� IBM

Tivoli SA MP(System Automation for Multiplatforms) �� IBM Tivoli

Monitoring for Databases: DB2 Agent� ����, libstdc++so.5� ����

�.

SLES RHEL� �� �� ����

��� � ��

libaio DB2 ����� ��� ��� �� ������ �����.

compat-libstdc++ libstdc++so.6� �����(POWER� Linux� ��� �).

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

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

v SUSE10 RHEL5 ���� �� ksh93 �� �����. pdksh � �

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

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

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

– rsh

– ssh

���� DB2 ����� ���� ��� DB2 ���� ��� �� � rsh

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

14 Linux Windows�� DB2 �� �� ����

Page 21: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

����� ��� ����� ����� rsh-server ��� ���� � �

��( � �). rsh ssh� �� ��� ��� DB2 �� ��� ���.

rsh ��� � ��� ����� ��� �� inetd(�� xinetd)� ����

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

� ��� �� DB2RSHCMD �� �� ��� ���. � ����� �

� ���� ��� rsh� �����.

v nfs-utils ���� �� ���� ���� ����� ���� ��� ���

�����.

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

� ���. �� Linux ��� ��� Linux �� ��� �����.

SUSE Linux� �� �� ����

��� � ��

pdksh �� ksh93 �. ���� ����� ���� � ��� �����.

openssh � ���� ���� �� �� �� ��� � ��( ��� � �

���) ��� �� � � �� ��� ��� �����. rsh� �

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

� ���� ����.

rsh-server � ���� ���� ��� � ��� ��� ��� � � ��

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

�� ���� ���(rsh, rexec, rlogin rcp). ssh� ����� DB2

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

nfs-utils ���� �� ��� �� ��. � ��� ���� ��� � ��

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

Red Hat� �� �� ����

���� ��� � ��

/System Environment/Shell pdksh �� ksh93 �. ���� ����� ���� � �

�� �����.

/Applications/Internet openssh � ���� �� �� �� ��� � �

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

��� ��� ���� ���. rsh� �

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

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

�.

/System Environment/Daemons openssh-server � ���� �� �� �� ��� � �

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

��� ���� ���. rsh� �� DB2

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

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

� 3 Linux �� ���� 15

Page 22: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

Red Hat� �� �� ����

���� ��� � ��

/System Environment/Daemons rsh-server � ���� ���� ��� � ��� �

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

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

� �����. ssh� ����� DB2 ��

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

�� ���.

/System Environment/Daemons nfs-utils ���� �� ��� �� ��. � ��

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

���� � ���.

����� ����

v (���� ��) Kerberos ��� �����, IBM Network Authentication

Service ���� v1.4 ��� �����. NAS �����

https://www6.software.ibm.com/dl/dm/dm-nas-p�� ����� � ���.

v ��� �� ��, � �� ��(db2fs)� ���� �� ���� � ���

�����.

– Firefox 2.0 ��

– Mozilla �� ���� 1.7 ��

v ��� ���� ��� ��� ����� ��� �� � X Window ���

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

– DB2 �� ��� ��� Linux � ��� DB2 ����� ��� �

���� ��

– x86� Linux AMD 64/EM64T� Linux�� �� DB2 ��� ��� ��

�� ��

v Micro Focus� SLES 11� COBOL ���� ��� �� ��� ���� ��

��.

��� ��� Linux ����

RHEL 5 ����� SELinux(Security-Enhanced Linux)� �� ��� �� �

�� ��, SELinux ������ �� �� ���� ����.

SELinux� ������� �� ��� �� �� ����� �� � ��� �

�����.

v /etc/sysconfig/selinux ��

v sestatus �� �

v SELinux ����� �� /var/log/messages ��

SELinux� �� ��� ��� �� � ��� ������.

16 Linux Windows�� DB2 �� �� ����

Page 23: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

v �� ��� ��� � � ��� ��� setenforce 0 �� �

v /etc/sysconfig/selinux� ���� ��� ���

RHEL 5 ����� DB2 ����� �� ��� ���� DB2 ����� ��

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

������. �� SELinux �� sqllib/samples ��� �����,

�� ��� ��� �� ����(Linux)�� ������ ��� ��� ��, � �� �� ����� ���.

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

����. �� ��, LDAP� � �� ��� � ���� ��� ����

��� � ���.

�: NIS(Network Information Services) NIS+(Network Information Services Plus)

�� DB2 �� 9.1 FixPack 2���� ���� ����. � �� �� ���

�� ����� �� �� ���. LDAP(Lightweight Directory Access

Protocol)� �� �� ��� �� ��� �� � ������.

�� ���� �� ���� �� �, ���� ��� �� ��� DAS� ���

�� ����� �� ��(DAS) ���� 1� �� ��� ����� �����.

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

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

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

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

� 3 Linux �� ���� 17

Page 24: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

18 Linux Windows�� DB2 �� �� ����

Page 25: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 2 � DB2 �� ��

© Copyright IBM Corp. 1993, 2009 19

Page 26: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

20 Linux Windows�� DB2 �� �� ����

Page 27: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 4 � DB2 Server ��(Windows)

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

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

���.

���� �

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

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

v Windows�� LDAP� ��� DB2 Server� Active Directory� ����� �

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

v IBM Tivoli Monitoring for Databases: DB2 Agent� ��� �� ��, DB2

��� ���� �� ����, �� ��� �� ��� ″DB2 �� ���

� ��� IBM Tivoli Monitoring for Databases: DB2 Agent ��″ ��� �

����.

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

��. LocalSystem� DAS DB2 ���� ���� ���� DB2 ����

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

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

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

�� �� VS2005 ��� ������ ���� � ���. VS2005 ���

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

VS2005 ��� ������ Microsoft ��� ����� ���� � ����

���. 32� ���� �� vcredist_x86.exe� ����� 64� ���

� �� vcredist_x64.exe� ���� �� ����� ���.

v ��� ���, �� ����� ����� �� � ��� ��� ��� �

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

v �� ���� �� ���� �� ���� ����(�: Windows ����

₩₩hostname₩sharename)��� DB2 �� ��� ���� ����. DB2 ���

���� �� ���� ����� Windows ���� ��(�� �� Z:)�� �

�� ���.

����

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

����.

© Copyright IBM Corp. 1993, 2009 21

Page 28: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

��� �� A-Z, a-z 0-9� ��� 64�� � ��� �����.

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

v XML �� ��� ��� ����� ���� � ������ ����

�.

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

�� � ����.

– IBM Data Server Runtime Client

– IBM Data Server Driver Package

– DB2 �� ��

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

v Windows Vista �� Windows 2008 ���� � � ��� ���� ��, �

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

�� �� �(��� ��� ��) ��� ���� DB2ADMNS ��

DB2USERS ��� �� ���. ���� ��� �� � ��� ��� ��

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

�.

����

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

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

2. DB2 ����� �� DVD� � ��, ����� �����. �����

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

�� �� ���� ��� Windows ���� ��� DB2 ����� �

� DVD� �� � setup �� �� ��� DB2 �� ����� ���

���.

3. Passport Advantage�� DB2 ����� ��� ����� ��, � ���

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

��� DB2 �� ��� �� � setup �� �� ��� DB2 �� �

���� ������.

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

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

��.

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

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

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

22 Linux Windows�� DB2 �� �� ����

Page 29: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

� ��� � ���.

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

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

� �� ����� �� DB2 �� 8, �� 9.1, �� �� 9.5 ��� ��

������ ��(add-on) ��� ������.

6. DB2 �� ��� ��� �� ���� �� �� �� ���� ���

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

� ����� �� ���� F1� �����. ��� ��� ��� ��

� � ���.

����, DB2 ����� ��� Program_Files₩IBM₩sqllib ��� ���

�, ��, Program_Files� Program Files ��� ��� �����.

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

� ���� _xx� ����, ��, xx� 01�� ��� ��� DB2 ��� ��

�� �����.

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

� ��

v ��� �����.

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

�� �� ��� ��� �� ��� My Documents₩DB2LOG₩ ��� � ��

�� ��� ����. �� ��� �� DB2-ProductAbrrev-

DateTime.log(�: DB2-ESE-Tue Apr 04 17_04_45 2008.log)���.

Vista 64�� � DB2 ��� ���� 32� OLE DB Provider� ��� ��

IBMDADB2 DLL� ���� ��� ���. � DLL� ����� �� ���

�����.

c:₩windows₩SysWOW64₩regsvr32 /s c:₩Program_Files₩IBM₩SQLLIB₩bin₩ibmdadb2.dll

�� Program_Files� Program Files ��� ��� �����.

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

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

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

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

� 4 DB2 Server ��(Windows) 23

Page 30: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

DB2 Express Edition � DB2 Workgroup Server Edition ��� ��

DB2 Express Edition �� � ����� �� �� ��� 4GB���.

DB2 Workgroup Server Edition �� � ����� �� �� ��� 16GB

���.

����� ���� �� �� INSTANCE_MEMORY ����� �

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

� 9.1 �� 9.5�� ���� � �� ���:

v �� 9.1 DB2 ����� ��� �� ��� �� ��� �

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

�� ���� ����.

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

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

24 Linux Windows�� DB2 �� �� ����

Page 31: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 5 � DB2 �� ���� ���� DB2 Server ��(Linux)

� ���� Linux � ���� DB2 �� ��� ���� �� �����.

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

���� �����.

���� �

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

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

v ���� ����� ���� �� ������(Firefox 2.0+, Mozilla 1.7+ �

� SeaMonkey 1.1.4).

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

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

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

� DB2 ����� �� DVD� ����� Passport Advantage®�� �� �

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

v � ��� DB2 ����� ��� ��� ��, ��� ��� ���

� ���.

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

� ���� ��� ��� ������ ���� � � X Windows ���

��� � ���. X Windows ��� � ��� ������. �� ���

���� ������� ������. �� ��, export

DISPLAY=9.26.163.144:0.���.

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

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

v IBM Tivoli Monitoring for Databases: DB2 Agent� ��� �� ��, DB2

��� ���� �� ����, �� ��� �� ��� ″DB2 �� ���

� ��� IBM Tivoli Monitoring for Databases: DB2 Agent ��″ ��� �

����.

����

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

����.

v XML �� ��� � �� UTF-8� ���� � ��� ����� ��

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

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

© Copyright IBM Corp. 1993, 2009 25

Page 32: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

����

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

1. � DB2 ����� �� DVD� � ��, �� ��� ��� DB2

����� �� DVD� ����� � ��� �����.

cd /dvdrom

��, /dvdrom� DB2 ����� �� DVD� ��� �� �����.

2. DB2 ����� �� ���� ����� ��, �� ��� ���� untar�

���.

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

gzip -d product.tar.gz

��, product� ����� ��� �����.

b. �� ��� Untar����.

Linux �� ��

tar -xvf product.tar

��, product� ����� ��� �����.

c. ��� �����.

cd ./product

��, product� ����� ��� �����.

�: ��� ��� ����� ���� �� ��� ��� ��� ���

�. ��� ��� ��� ����(�: ./nlpack)� ���� �� ��

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

3. ����� �� ���� � ���� ./db2setup ��� ��� DB2

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

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

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

��� ��� � ���.

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

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

������.

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

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

� ���� F1� �����. ��� ��� ��� ��� � ��

�.

26 Linux Windows�� DB2 �� �� ����

Page 33: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� ��� ��, DB2 ����� ��� �� $HOME/sqllib ��� ��

��, �� $HOME� �� ���� �����.

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

Linux /opt/ibm/db2/V9.7

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

���� _xx� ����, ��, _xx� 01�� ��� ��� DB2 ��� ��

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

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

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

v ��� ��(a–z), ��� ��(A–Z) � ��(_)� ��� � �

v 128� ���� �

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

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

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

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

– �� ��� ��, DB2 �� �� �� ��� db2setup.log���.

– �� ��� ��, DB2 �� �� �� ��� db2setup_username.log�

��. ��, username� �� �� � ��� �� ��� ID���.

v DB2 �� �� ��. � ��� Java™�� ���� �� �� ��(�: ��

�� ��)� �����.

– �� ��� ��, DB2 �� �� �� ��� db2setup.err���.

– �� ��� ��, DB2 �� �� �� ��� db2setup_username.err�

��. ��, username� �� �� � ��� �� ��� ID���.

���� ��� �� ��� /tmp ��� �����. �� ��� ��� ���

� ���.

� �� db2setup.his ��� ���� ����. �� DB2 �� ���� DB2

�� �� ��� ��� DB2_DIR/install/logs/ ��� � � �

db2install.history� ��� ����. ��� �� ���� ��, DB2 �� �

��� db2install.history.xxxx� ��� ����. ��, xxxx� �� ��

� � ��� �� �� 0000-9999� �����.

� 5 DB2 �� ��� ��� DB2 Server �� 27

Page 34: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

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

��� ����.

� ��

v ��� �����.

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

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

� ./db2setup ��� �� ��� �� ���.

Linux x86� ��, DB2 ����� ���� �� � � �� ����� � �

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

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

���.

DB2 Express Edition � DB2 Workgroup Server Edition ��� ��

DB2 Express Edition �� � ����� �� �� ��� 4GB���.

DB2 Workgroup Server Edition �� � ����� �� �� ��� 16GB

���.

����� ���� �� �� INSTANCE_MEMORY ����� �

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

� 9.1 �� 9.5�� ���� � �� ���:

v �� 9.1 �� 9.5 DB2 ����� ��� �� ��� ��

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

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

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

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

28 Linux Windows�� DB2 �� �� ����

Page 35: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 3 � �� ��

© Copyright IBM Corp. 1993, 2009 29

Page 36: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

30 Linux Windows�� DB2 �� �� ����

Page 37: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 6 � � ��� ���� DB2 Server �� ��(Linux �

Windows)

SAMPLE ������ ��� ���� DB2 Server ��� ������ �

�� � ���.

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

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

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

�� ��� Linux(x86 AMD64/EM64T ��) Windows(x86

AMD64/EM64T ��)��� �� ����.

1. Linux� �� ���� ���� ���� �������.

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

v Windows � ��� ��, ��� � �� ���� -> IBM DB2 -> [DB2

�� �] -> �� �� -> � ��� ������.

v Linux Windows � ��� �� db2fs ��� ��� � ��� ��

� � ���.

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

��. Windows� �� SAMPLE ������ ��� � � ����, Linux

� �� SAMPLE ������ ��� ��� ��� � ���.

4. � ��� ���� 2-3� �� �����. SAMPLE ������ ���� �

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

5. �� ��� ������. Windows� �� ��� � �� ���� -> IBM

DB2 -> [DB2 �� �] -> � � �� —> �� ��� ������. Linux

���� ��, db2cc ��� ������.

6. �� �� ��� �� �����, ���� ��� � SAMPLE ������

SAMPLE ����� ����� � � ���. �� ����� ��� �

� �� ��� �� ���� SAMPLE ����� ��� ������.

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

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

��� ��� �� SAMPLE ������ ��� ��� ����� �� � �

��. ��� �� ������ ����� SAMPLE ������ ������.

db2 drop database sample ��� ��� SAMPLE ������ �����.

© Copyright IBM Corp. 1993, 2009 31

Page 38: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

32 Linux Windows�� DB2 �� �� ����

Page 39: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 7 � ��� ���(CLP)� ��� �� ��

SAMPLE ������ ���� SQL ��� �� �� ��� ��� �

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

���

v � ��� � SAMPLE ����� ����� ���� ����

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

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

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

1. SYSADM ��� � ���� ���� �������.

2. db2start ��� ��� ����� �� ���� ������.

3. db2sampl ��� ��� SAMPLE ������ ������.

� ��� ���� 2-3� �� �����. �� ��� ���, �� ���

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

SAMPLE ������ �� � ���� ����� �� SAMPLE� ���

�������.

4. SAMPLE ������ ���� �� 20� ���� �� ��� ��� ��

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

�����.

connect to sample"select * from staff where dept = 20"connect reset

��� ��� ����.

ID NAME DEPT JOB YEARS SALARY COMM---- --------- ------ ----- ------ -------- ---------10 Sanders 20 Mgr 7 98357.50 -20 Pernal 20 Sales 8 78171.25 612.4580 James 20 Clerk - 43504.60 128.20190 Sneider 20 Clerk 8 34252.75 126.50

4 record(s) selected.

��� ��� �� SAMPLE ������ ��� ��� ����� �� � �

��. db2 drop database sample ��� ��� SAMPLE ������ ���

��.

© Copyright IBM Corp. 1993, 2009 33

Page 40: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

34 Linux Windows�� DB2 �� �� ����

Page 41: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 8 � �� ����� ���� � ���� ���� �

��� �

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

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

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

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

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

v �� ��� ��

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

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

� �� �� � ���.

���

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

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

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

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

v Linux� ��, � �� �� ��� ���� ���� ��� ��� ���

��� ���� � � Xwindow ������ � ���. �� ��� ��

�� ������� ������. �� ��, export DISPLAY=9.26.163.144:0.

���.

v Linux�� ���� db2inst1 ���� ��� ������� ������. �

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

�� ��� �����.

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

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

v � ����: ������ ��� �����.

v �� ����: � ������ ��� �����. � ������ ��

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

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

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

© Copyright IBM Corp. 1993, 2009 35

Page 42: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

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

36 Linux Windows�� DB2 �� �� ����

Page 43: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 9 � DB2 ��� �� ��� ��(Linux)

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

Linux � ��� �� �� DB2 ��� � �� ��� � ���.

v DB2 �� �

v ��� ���(CLP)

v ��� ��� ���(CLPPlus)

v �� �� ���

v �� ��

v � ��

v Query Patroller

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

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

v db2icrt

v db2iupdt

v db2nrcfg

v db2nrupdt.

db2icrt db2iupdt ��� ���� �� ���. db2nrcfg db2nrupdt�

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

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

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

v db2_deinstall(�� ��� ���� �� DB2 �� ����� �� � �

�� ���)

v db2idrop.

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

v db2addicons − � �� ��

v db2rmicons − � �� ��

db2addicons ��� ��� �� �� ���� �� DB2 ���� ��� ���

� � ���. ���� ��� Instance_HOME/sqllib/db2profile(� �

� ����) �� Instance_HOME/sqllib/db2chsrc(C � ����)� ��� �

�� � ���. �� Instance_HOME� ��� �� �������.

© Copyright IBM Corp. 1993, 2009 37

Page 44: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

38 Linux Windows�� DB2 �� �� ����

Page 45: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 4 � DB2 �� ��� ��

© Copyright IBM Corp. 1993, 2009 39

Page 46: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

40 Linux Windows�� DB2 �� �� ����

Page 47: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 10 � 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� ���� �� � ��� ����� ��

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

���� �� ��� 42 ���� � 3� ��� �����.

����� DB2 ����� ��� ����� �����(PVU(Processor Value

Unit)� �� �� ���) �� ��� �� ���� ��� � ���. DB2

Express Edition� ���� ��� � ���. IBM Database Enterprise Developer

Edition� ����� ��� �������. DB2 Storage Optimization �� �

����. � �� PVU��� ��� � ���. �, �� ����� ����

PVU�� ��� ��� ��� ����.

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

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

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

�� �� �� ���. �� ��, ����� ����� DB2 Enterprise Server

Edition� ��� ��, ����� DB2 Performance Optimization �� ���

���.

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

CD� �� ��, ��� �� ���� � �� � ���.

© Copyright IBM Corp. 1993, 2009 41

Page 48: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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 �� �� �� ���� ��

� 3. 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 ��)

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(�� �� �� �� ���

�)

42 Linux Windows�� DB2 �� �� ����

Page 49: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 3. DB2 ���� �� (��)

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

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� �� ���� ��� � ��, ��� �� �������.

� 10 DB2 ���� 43

Page 50: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

44 Linux Windows�� DB2 �� �� ����

Page 51: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 11 � db2licm ��� ��� DB2 �� �� �� ��� �

��

db2licm ��� ��� ���� � ���� ������(���� ����

�� �).

� ���� ����� ��� ���� ��(*.lic)� � ���. 41 ���� �

10 �DB2 ���� ���� �����.

Windows � ���� -a �� ���� �� db2licm ��� ����� �� �

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

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

db2instance_path₩bin₩db2licm -a filename

��, db2instance_path� DB2 ����� ���� ����, filename� ��

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

�.

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

INSTHOME/sqllib/adm/db2licm -a filename

��, INSTHOME� ���� ��� ��� ����, filename� �

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

�. DB2 ����� ��� ��� ���� db2licm ��� �� � ���.

�� ��, ��� �� ��� ���� ��, AIX®, HP-UX �� Solaris �

����� /opt/ibm/db2/V9.7/adm���.

© Copyright IBM Corp. 1993, 2009 45

Page 52: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

46 Linux Windows�� DB2 �� �� ����

Page 53: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 12 � ��� ��� ��� DB2 �� �� �� ��� �

��

���� ���� ���� �� �� ��� Linux �� Windows � ����

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

���� ���.

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

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

Administration Server(DAS)� ���� ��� ��� �����.

� ���� ����� ��� ���� ��(*.lic)� � ���. 41 ���� �

10 �DB2 ���� ���� �����. Linux � ���� ���� ��

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

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

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

�� ������.

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

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

4. ���� ��� ��� ������. ���� �� �� ��� ����.

5. ����� ���� (*.lic)� ������.

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

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

© Copyright IBM Corp. 1993, 2009 47

Page 54: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

48 Linux Windows�� DB2 �� �� ����

Page 55: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 13 � DB2 ��� �� ��

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

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

�� ���� db2licm ��� ��� �� ���� ������.

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

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

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

a. ���� ��� ��� db2licm -l ��� ������.

b. ���� ��� ������.

v License Type: ″Developer″� ���� �� DB2 ����� ���

Linux, UNIX® Windows� Database Enterprise Developer Edition�

���� �� �����. � ��, IBM Database Enterprise Developer

Edition ���� �� ����� DB2 �� ���� ��� ����

�.

v License Type: ″Restricted use″� ���� DB2 ����� ���

� IBM ��� ���� �� �����. � ��, ���� ��� �

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

v License Type: ″License not registered″� ���� �� �� ��

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

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

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

a. db2licm �� �� ���� ��� ENV_FEATURE_INFO �� �� ��

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

v db2licm ��� ��� �� ���� ����� ��� �� ��� �

�����.

db2licm -g filename

��, filename� ��� � �� �� �����.

v ���� ���� �� ���� ����� ���� → �� �� ��

� ������.

v ENV_FEATURE_INFO �� ��� �� ��� ��� ������ �

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

SELECT * FROM SYSIBMADM.ENV_FEATURE_INFO

© Copyright IBM Corp. 1993, 2009 49

Page 56: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

�� ��, �� ���� �� ″In Violation″�� �����.

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

50 Linux Windows�� DB2 �� �� ����

Page 57: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 14 � �� ��� ��

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

�� � ��� ���.

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

��� ����� ��� DB2 Server ��� ��� ���� �� �� �� �

� FixPack ���� ��� DB2 ����� �� ��� ��� � ���.

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

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

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

v Passport Advantage�� ����� ��� ��

v IBM���� �� � ��� �� � ��� CD

2. ���� �� �� db2licm ��� ��� ���� � ������.

�: 32� Linux� DB2 Enterprise Server Edition� �� �� ����� �

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

© Copyright IBM Corp. 1993, 2009 51

Page 58: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

52 Linux Windows�� DB2 �� �� ����

Page 59: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 5 � ��

© Copyright IBM Corp. 1993, 2009 53

Page 60: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

54 Linux Windows�� DB2 �� �� ����

Page 61: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

�� �� �� ��

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

��� ��� � ���.

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

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

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

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

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

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

�� DB2 �� DVD� ���.

db2/platform/samples

�� platform� �� ���� � � �����.

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

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

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

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

�� Linux � ��� ���� /tmp� � ���.

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

�� �����.

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

�� �� ����

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

v �� 8�� ��� �� �� �� 9�� ��� �� �� �� �� ��

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

� ��� �� �� ��� DB2 �� 9 ��� ���� ���� ��� �

��(�: �� 9.5 ��), �� ��� DB2 �� 8� ���� ��� � ��

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

9� ���� ��� � ����. �� �� �� 9� ��� ��� ��

�� �����.

© Copyright IBM Corp. 1993, 2009 55

Page 62: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

v Linux � �� �� ����� ��� �� ��� �� ���� ��� �

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

�� ��� �����.

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

– DB2 �� ��� �� �� � ���� �� �� �� ��� ����

� � � ���.

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

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

� ��� � ���.

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

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

����.

– � ��� ��� �� ��� �� �� db2isetup �� -r ���� ��

� � ����. �� ��� ��� ���� db2isetup ���� ����

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

- FILE ��� ��� �

- �� ��� ���� � �: PROD, LIC_AGREEMENT ��

INSTALL_TYPE

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

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

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

v �� �� �� ���� ���� ��, �� ��� ��� �� ��� ���

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

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

� ��� ��� ���.

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

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

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

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

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

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

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

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

�����.

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

56 Linux Windows�� DB2 �� �� ����

Page 63: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

4. �� �� � ��� �� ��, �� �� �� ��� �� ��� �����

�.

5. ��, �� � �� �� �� � ��� �� �� � �� �� ��

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

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

� � ��� ������. ���� �� �� ��� Prod_<abbrev>.rsp��

directory1� � ���.

�:

a. �� �� � �� �� �� ��� ����, � �� ������ ��

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

�.

b. ���� ����� ��� ��� ��, �� �� ��� �����(�

��� � � �� ��� � � �� ��). � � � �� �� �

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

�� ��� Prod_<abbrev>_addpart.rsp�� directory2� � ���.

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

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

8. ��� ����� � �����.

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

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

ENCRYPTED� �� ��� �����. �� ��, ��� ����.

DAS_PASSWORD = 07774020164457377565346654170244883126985535505156353ENCRYPTED = DAS_PASSWORD

ENCRYPTED ��� ��� � �� ��� ��� �� ��� �� �

����.

�� A. �� ��� ��� DB2 �� �� 57

Page 64: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

58 Linux Windows�� DB2 �� �� ����

Page 65: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� B. DB2 �� �� ��

DB2 �� ��

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

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

� ���� �� ��

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

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

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

v ���, � ��� ��� �� � ��� �� ��

v ���� �� �� �� � IBM ��� ��

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

v ��� ��

v � �� ��

v Linux � ��� �� � � ��

v Windows � ���� �� �� �� DB2 ��� ��� �� �� ���

�� ����.

����

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

v Windows � ��� �� �� ��� �� ��

����

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

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

db2updserv

v � �� ��:

– db2fs ��� ��� � ��� ��� � ���.

– Windows � ��� ��, ��� � �� ���� -> IBM DB2 -> [DB2

�� �] -> �� �� -> � ��� ������.

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

© Copyright IBM Corp. 1993, 2009 59

Page 66: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

v Windows � ��� �� ��� � ��� ��� ��� ��� ���

� -> IBM DB2 -> [DB2 �� �] -> �� -> DB2 �� ��� �����

�.

v Linux � ��� �� ���� ��� IBM DB2 -> DB2 �� ��� ���

���.

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

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

60 Linux Windows�� DB2 �� �� ����

Page 67: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� C. DB2 FixPack �

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 61

Page 68: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

��� 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 � ��� ���� ���� � ��, ��� ��� �� FixPack� ��

��� ���� ���� � ��, ��� ��� �� FixPack� �����. ��

� FixPack� ���� �� � ����. �� �� ��� FixPack� ��� �

��� �� ��� FixPack ��� �� ���. �� ��, Linux�� ��

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 � ��:

– NFS(Network File System)� DB2 ����� ��� � ���� FixPack

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

IPC(Interprocess Communication) NFS� ���� ��� ��� ����

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

62 Linux Windows�� DB2 �� �� ����

Page 69: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

– ��� �� fuser �� lsof� ��� � �� ���� installFixPack ���

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

�� FixPack� ���� �� �� ��� ������. 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 Server ��� ��� ��� ���� �� �

� �� �� FixPack ���� ��� DB2 ����� �� ��� ���

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

����� ���� �� � �� ����� ������� ��� 90�� ��

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

� ��

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

Linux�� �� ��� ��, db2rfe ��� ��� �� �� �(�: ����

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

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

�� ��� FixPack� ��� ��� db2rfe ��� �� �� ���. ���

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

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

FixPack ��� � ���. �� ��� DB2 ��� FixPack� ����� DB2

�� � FixPack� ��� ���.

�� C. DB2 FixPack �� 63

Page 70: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

64 Linux Windows�� DB2 �� �� ����

Page 71: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� D. DB2 �� �� �

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 �

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

�� ��� db2unins �� ��� �����.

© Copyright IBM Corp. 1993, 2009 65

Page 72: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

���� ��� ��/�� �� ����� db2unins /p �� �� db2unins /u

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

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

Windows ����� �� DB2 ��� ��� ����� db2unins /f ��� �

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

��� ��� �� ��(�: DB2 �����)� ��� ����. � ��� /f

���� �� ��� �� ��� ��� db2unins ��� �����.

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

DB2 ��� � ��� ��� ��� � ���� ���� ����. Linux�� 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 �� ���� ������.

DB2 Administration Server ��(Linux)

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

66 Linux Windows�� DB2 �� �� ����

Page 73: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

DB2 �� �� �� � �� DB2 ��� ����� DAS� �� ���. �

DB2 ��� � ��, dasupdt ��� �� DAS� � DB2 ��� ���

� �� � ���. DAS� �(drop)��� ��� ���� �� DAS� ���

���.

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

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

1. DB2 Administration Server ���� �������.

2. db2admin stop ��� ��� DB2 Administration Server� ������.

DB2 Administration Server ��(Linux)

�� DB2 ��� ����� DB2 ��� ���� �� DB2 Administration

Server(DAS)� ��� ���.

DB2 ��� ����� � DB2 ��� � ��, DB2 DAS� ����� DB2

���� dasupdt ��� �����.

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

DAS� ����� ��� ������.

1. root ��� �� ���� �������.

2. DAS� ������.

db2admin stop

3. �� ��� ��� DAS� ������.

DB2DIR/instance/dasdrop

�� DB2DIR� DB2� ��� � ��� �����. Linux� ��� �� �

�� /opt/ibm/db2/V9.7���.

�� ���� ��(Linux)

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

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

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

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

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

������.

DB2DIR/bin/db2ilist

�� D. DB2 �� �� �� 67

Page 74: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� DB2DIR� DB2 �� 9 �� �� ���� ��� �����. Linux�

��� �� ��� /opt/ibm/db2/V9.7���.

3. .profile� ���� �� �� ����� �����.

. INSTHOME/sqllib/db2profile (bash, � � �� � �)source INSTHOME/sqllib/db2cshrc (C �)

�� INSTHOME� ����� �����.

4. �� ��� � ��� � ���.

v $HOME/sqllib/db2systm ����� �� ��� �� ��

v $HOME/sqllib/db2nodes.cfg �� �� ��

v $HOME/sqllib/function�� ��� �� �� �� ��(fenced)� ���

���� �����

5. db2stop force ��� ��� DB2 ����� �� ���� ������.

6. db2 terminate ��� ��� ����� ������ ������.

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

DB2 ���� ��(Linux)

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

����.

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

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

�� DB2 �� 9 ��� ���� ���� DB2 ��� ���� �� DB2 ���

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

���� ��, DB2 ����� ���� DB2 ������ dasupdt ��� ��

� ���.

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

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

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

� � ���.

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

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

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

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

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

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

68 Linux Windows�� DB2 �� �� ����

Page 75: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

2. ����: ��� ������� ��� � �� ���� ��� ���� �

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

������ �(drop)� � ���.

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

DB2DIR/instance/db2idrop InstName

�� DB2DIR� DB2� ��� � ��� �����. Linux� ��� �� �

�� /opt/ibm/db2/V9.7���.

db2idrop ��� ���� ���� ���� ��� ���� INSTHOME/sqllib

��� �����. ��, INSTHOME� ����� ����,

InstName� ����� ��� �����. /sqllib ��� ��� � � �

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

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

4. ����: root ��� � ���� ���� ��� ��� ID ��� �

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

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

�: ���� �� ���� �� ��� � ���� �� � ��

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

db2_deinstall �� doce_deinstall ��� ���� DB2 �� ��

(Linux)

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

��� ��� �����. db2_deinstall ��� ����� �� DB2 ��� ���

��. doce_deinstall ��� doce_deinstall ��� ��� �� ��� � DB2 �

� ��� �����. � ��� Linux � ����� �� ����.

����� DB2 ��� ���� �� 66 ���� �DB2 �� �� ��(Linux)��

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

�:

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

v rpm �� SMIT� �� �� � �� ��� ��� DB2 ��� ���

� ����.

v doce_deinstall ��� Linux x32 x64��� �� ����.

�� ���� ALL DB2 ��� ����� ��� ������.

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

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

�� D. DB2 �� �� �� 69

Page 76: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

v �� ���� ��� DB2 ���� �� ����� DB2DIR/install �

��� db2_deinstall -F ��� �����.

v �� ���� ��� �� DB2 ��� ����� DB2DIR/install ��

�� db2_deinstall -a ��� �����.

v �� ��� ��� DB2 ��� ����� DB2DIR/install ����

db2_deinstall -r <response_file> ��� �����. �� �� ��� ��

� ��� �� ��� � ���(�: doce_deinstall -r db2un.rsp).

v �� ���� DB2 �� ��� ����� DB2DIR/install ����

doce_deinstall -a� �����.

v �� ��� ��� DB2 �� ��� ����� DB2DIR/install ��

�� doce_deinstall -r <response_file>� �����. �� �� ��� �

�� �� ��� �� ��� � ���(�: doce_deinstall -r doceun.rsp).

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

70 Linux Windows�� DB2 �� �� ����

Page 77: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� E. 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 71

Page 78: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

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

� � � � � � � � � w w w . i b m . c o m / s u p p o r t / d o c v i e w . w s s ? r s = 7 1

&uid=swg2700947�� ����� � ���.

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

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

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

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

�: DB2 �� ��� PDF �� ��� ���� �� �����.

� 4. 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�

72 Linux Windows�� DB2 �� �� ����

Page 79: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 4. 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�

�� E. DB2 � �� �� 73

Page 80: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

� 4. 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�

� 5. 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�

� 6. 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 �� ��� ��� ��

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

74 Linux Windows�� DB2 �� �� ����

Page 81: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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. ����� ����� ��� �� �� ��� ������. ��� ��

�� ��� 72 ���� �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 ��

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

�� E. DB2 � �� �� 75

Page 82: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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. ��� �� � ��� � �� ���� ������ ������.

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

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

76 Linux Windows�� DB2 �� �� ����

Page 83: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

– �� �� ��� �����, �� ��� � �� �� � ���

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

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 ��� ���� �����.

�� E. DB2 � �� �� 77

Page 84: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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 �� ��� ��� ��� ��� �� ���� ��

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

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

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

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

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

78 Linux Windows�� DB2 �� �� ����

Page 85: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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. �� ����� ���� � �����.

�� E. DB2 � �� �� 79

Page 86: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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 ���

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

80 Linux Windows�� DB2 �� �� ����

Page 87: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�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�� ���� ���� � � �� � ��� ��, �� �� ��� � ��

��.

�� E. DB2 � �� �� 81

Page 88: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

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

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

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

���.

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

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

IBM� � �� ��� �� ��� ��� ���� ����. ��� �� ��,

��� �� ���� ���� �� ��� ��� ��� (� �� ��� �

�) ����� ����� ��� ��� �� �� � ���� �����.

82 Linux Windows�� DB2 �� �� ����

Page 89: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� F. ����

� ��� ���� ���� �� ����� ��� ����. 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 83

Page 90: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

�� ����� ���, �� ��� ���� �����. IBM� � ��� �

�� �� /�� ���� �� �� �� ��� �� /�� �� � �

��.

� ���� �� IBM� � ���� �� ��� ��� ���, � ���

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

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

� ��� ���.

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

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

(i) ����� ��� ���� � ���(� ��� ��) �� �� ��

(ii) ��� ��� �� ��� ���� � ���� �� ��� ��� �� �

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

135-700

����� � � ��� 467-12, ���� ���

�� �..�. �� �

������

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

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

����� �� ��� IBM� IBM �� ��, IBM ��� ���� ��(IPLA)

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

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

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

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

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

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

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

IBM ��� �� ��� �� ��� ���, �� �� �� � �� �� �

���� �� ����. IBM��� ��� ���� ���� �����, IBM

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

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

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

���.

84 Linux Windows�� DB2 �� �� ����

Page 91: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

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

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

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

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

��� ����:

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

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

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

�, �� �� ��� ���� IBM� �� �� � �� �� �� �� ���

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

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

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

� ���� ″� ���″ �����. IBM� �� ���� ���� �� ��

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

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

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

© (��� ��) (��). � �� ��� IBM Corp.� �� ����� ���

��. © Copyright IBM Corp. _enter ��_. All rights reserved.

��

IBM, IBM �� ibm.com®� � ��� ��� IBM Corp.� �� �� ��

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

�� ��� � “��� �� ��”(www.ibm.com/legal/kr/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� �����.

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

�� F. ���� 85

Page 92: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

86 Linux Windows�� DB2 �� �� ����

Page 93: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

��

�������

59

DB2 �� �� 77, 78

�� ��

�� 67

�������

�� ��� ��� ����� �� 35

��

�� ��� ��� ����� �� 35

� �� 76

SQL� 75

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

�������

�� 41

��

���� �� 47

db2licm �� 45

�� � 49

�� ���� �� 51

���� ��

���� �� 41

���� �� 47

�� � 49

�� ���� �� 51

�� ����

� 68

�� 68

��� �� ���� 3

��

db2idrop 68

db2ilist 67

db2sampl 33

�� (��)

db2start 10

db2stop 67

db2_deinstall 69

doce_deinstall 69

FORCE APPLICATION 67

��� ���(CLP)

�� �� 33

��

�� 71

���� 81

�� 72

PDF 72

�� ��

�� � �� 81

��� 81

�� ��

��� �� 81

��� 81

������ ��

Windows 9

�� ���� 68

��

��

�� 74

��

�� ���� 17

����

Linux 13

Windows 5

�� ��

55

�� �� �� 55

� �� �� �� 31

CLP� ��� � 33

Windows �� �� 7

�� ��

DB2 �����

Windows 65

db2_deinstall �� 69

© Copyright IBM Corp. 1993, 2009 87

Page 94: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

�� �� (��)

doce_deinstall �� 69

�� � ���

� � �� 37

����� ����

Linux 13

Windows 5

��� ��� ��

DB2 �����

Windows 10

�������

��� 3

�� 3

� �� ����

Linux 13

Windows 5

�� ��

�� 55

��

55

�� 55, 56

��

DB2 �� �� 56

����

�� �� 81

����

��

�� 68

�� �� 67

� 68

�� 68

����� ��

�� �� �� 55

�� ��� ��

����� �� 35

���

�� �� 81

�� �� 81

Visual Explain 80

��

�����

�� ��� �� 35

�� (��)

�� ����� 31

DB2 �� ��� ��� �� �� 56

��

�� ���� 68

DAS 67

DB2 �����

Windows 65

���� 83

��

�� �� 67

�� ���� 67

���� ��

�� �� 59

��

DB2 �� 31

�������

����

Linux 13

Windows 5

��

DB2 ��

� �� �� 31

DDB2 Administration Server(DAS)

�� 67

�� 67

DB2 Server

��

Windows 21

DB2 �� �� 74

DB2 �� ��

�� �� �� 56

DB2 �� ��

�� 77, 78

� �� �� 76

�� 76

� 76

db2licm ��

���� �� 41

88 Linux Windows�� DB2 �� �� ����

Page 95: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

db2licm �� (��)

���� �� 45

�� � 49

db2_deinstall ��

DB2 �� �� 69

doce_deinstall ��

���� 69

FFixPack

�� 61

LLinux

�� ���� 13

��

DB2 �� ���� 68

Linux �����

libaio.so.1 13

libstdc++so.5 13

NNFS(Network File System) ��

Linux� �� 13

SSAMPLE �����

�� �� 31

����� 31

SQL�

� �� 75

SYSADM

Windows 10

sysadm_group �� ��� 10

UUNIX

��

DB2 �� 69

DB2 �� ���� �� 68

VVisual Explain

��� 80

WWindows � ��

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

�� �� �� 7

��� �� � 9

��

DB2 Server(DB2 �� �� ��) 21

DB2 Server(����) 5

IBM Data Server Client(����) 5

��� ��� �� 10

DB2 �� �� 65

�� 89

Page 96: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

90 Linux Windows�� DB2 �� �� ����

Page 97: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!
Page 98: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

����

GA30-3960-00

Page 99: Linux Windows DB2public.dhe.ibm.com/ps/products/db2/info/vr97/pdf/ko_KR/... · 2009-07-16 · Linux, UNIX Windows IBM DB2 9.7 Linux Windows DB2 GA30-3960-00!

Spineinformation:

Lin

ux,

UN

IX�

Win

do

ws�

IBM

DB

29.

7L

inu

x�

Win

do

ws�

�D

B2

��

��

��

��

���