db2 9.5 linux, unix windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_kr/...linux, unix,...

243
DB2 9.5 Linux, UNIX Windows 9 5 SA30-3486-00

Upload: others

Post on 03-Aug-2020

54 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2 �� 9.5Linux, UNIX � Windows�

��� ��

�� 9 ��� 5

SA30-3486-00

���

Page 2: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving
Page 3: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2 �� 9.5Linux, UNIX � Windows�

��� ��

�� 9 ��� 5

SA30-3486-00

���

Page 4: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�!

� ��� � ��� ���� ��� ���� ��, 207 ���� �� C ������� �� ��� �� ����.

��� ����

� ���� 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, 2007. All rights reserved.

Page 5: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��

� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix

� �� ��� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix

� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix

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

� 1 � DB2 �� 9.5� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

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

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

��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

�� �� ��� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

���� ��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

�� ��� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

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

DB2 Connect �� 9.5 ��� �� �� DB2 �� 9.1 FixPack ���. . . . . . . . . . . . . 21

� 3 � �� ��� � ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

��� DB2 Client ���� � ��(Windows) . . . . . . . . . . . . . . . . . . . . . 23

�� ��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

� 4 � �� ���� ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

��� �� �� ���� �� . . . . . . . . . . . . . . . . . . . . . . . . . 25

��� �� ���� �� ��� ��� ��� . . . . . . . . . . . . . . . . . . . . . . 26

���� multithreaded ����� TCO(Total Cost of Ownership) �� . . . . . . . . . . . . . . 27

� ��� ������ �� ���. . . . . . . . . . . . . . . . . . . . . . . . . . 28

��� �� ��� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

� �� ���� AUTOMATIC�� ���� �� �� �� . . . . . . . . . . . . . . 30

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

db2look ��� � ������ ��� DDL �� . . . . . . . . . . . . . . . . . . 36

SQL� �� DB2 �� �� �� ��� . . . . . . . . . . . . . . . . . . . . . . 36

���� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

���� � ����� ���� � � . . . . . . . . . . . . . . . . . . . . . . . 37

�� ����� �� ���� �� . . . . . . . . . . . . . . . . . . . . . . . . . 38

�� ���� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

�� ���� ����� RUNSTATS ���� � �� . . . . . . . . . . . . . . . . . . 39

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

�� �� �� �� �� � . . . . . . . . . . . . . . . . . . . . . . . . . . 41

� 6 � �� ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

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

© Copyright IBM Corp. 1993, 2007 iii

Page 6: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� �� �� �� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

��� �� �� ��� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

LBAC(Label-Based Access Control) �� �� �� �� . . . . . . . . . . . . . . . . 52

� 7 � �� ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

LOB �� � �� �� ��� ��� . . . . . . . . . . . . . . . . . . . . . . . . . 53

�� ��� �� �� � �� �� � ��� �� �� �� . . . . . . . . . . . . 54

��� �� �� ��� MDC ��� �� �� � . . . . . . . . . . . . . . . . . . . 55

���� �� � �� �� ��. . . . . . . . . . . . . . . . . . . . . . . . . . . 56

OLAP �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

�� ����� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

NO FILE SYSTEM CACHING ������ �� ��� �� ��� �� . . . . . . . . . . . . . 57

DB2 Spatial Extender �� �� � . . . . . . . . . . . . . . . . . . . . . . . . . . 58

�� �� � ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

� 8 � pureXML ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

XQuery ��� ���� XML ��� ��� �� �� . . . . . . . . . . . . . . . . . . . . 61

��� pureXML� � ���� �� . . . . . . . . . . . . . . . . . . . . . . . . . . 62

pureXML ���� ��� �� � . . . . . . . . . . . . . . . . . . . . . . . . 62

�� �� � �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

��� ��� XML ��� � ��� � �� . . . . . . . . . . . . . . . . . . . . . . 63

XSLT ���� XML ���� � ��� �� �� . . . . . . . . . . . . . . . . . . . . 63

SQL/XML XQuery ��� ��� ��� . . . . . . . . . . . . . . . . . . . . . . 64

���� ������� XML ��� �� �� . . . . . . . . . . . . . . . . . . . . . . 65

� XML ��� �� �� �� �� �� �� �� �� . . . . . . . . . . . . . . . . . 65

XML ��� �� ��� �� � XML ��� �� ��. . . . . . . . . . . . . . . . . . 66

XQuery ���� ��� ��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . 66

XQuery ��� ��� ��, �� �� � . . . . . . . . . . . . . . . . . . . . . . 67

XQuery ��� ��� ����� �� �� ��� �� . . . . . . . . . . . . . . . . . . . 67

� �� ��� ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

����� �� XML ��� ��� �� ���� �� � �� �� . . . . . . . . . . . . 68

� 9 � ������ ��� ���� . . . . . . . . . . . . . . . . . . . . . . . . . . 71

ID � �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

PHP ��� DB2 ��� ��(Linux, AIX Windows) . . . . . . . . . . . . . . . . . . . 72

Ruby on Rails �� � ��� DB2 ��� ��(Linux, AIX Windows) . . . . . . . . . . . . 73

Perl ����� pureXML �� �� �� �� . . . . . . . . . . . . . . . . . . . . 74

IBM Database Add-Ins for Visual Studio 2005 . . . . . . . . . . . . . . . . . . . . 74

�� ��� SQL� � ��� �� �� � . . . . . . . . . . . . . . . . . . . . . . . 76

�� ��� � �� ��� SET �� . . . . . . . . . . . . . . . . . . . . . . . . 77

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

10� � ��� ��� � �� 10� ���� ��� �� � . . . . . . . . . . . . . . . 78

JDBC SQLJ �� ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

JDBC 2.0 JDBC 3.0 �� . . . . . . . . . . . . . . . . . . . . . . . . . . 80

JDBC 4.0 �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

IBM Data Server Provider for .NET�� IBM Informix Dynamic Server, IBM UniData IBM UniVerse

�� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

iv ��� ��

Page 7: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

CLP�� CLIENT APPLNAME �� ����� ��� �� . . . . . . . . . . . . . . . . . 94

DB2 Developer Workbench �� �� . . . . . . . . . . . . . . . . . . . . . . 95

� �� ��� ���� �� ��� . . . . . . . . . . . . . . . . . . . . . . . . 98

��� �� �� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

� 10 � ����, ��, �� � �� ����. . . . . . . . . . . . . . . . . . . . . . . 99

��� ���� �� ���� � ���� � ��� �� . . . . . . . . . . . . . . . 99

��� DB2 ACS(Advanced Copy Services) API� ��� ���� �� �� . . . . . . . . . . 100

� �� �� ��� �� �� �� ��� . . . . . . . . . . . . . . . . . . . . 101

��� �� ��� ��� DB2 ���� ���� �� ����� ��� . . . . . . . . . . . 102

� �� �� ��� ������ ��� �� . . . . . . . . . . . . . . . . . . . . 103

HADR �� ��� �� � �� � � �� ��� � �� �� . . . . . . . . . . . . 103

� ��� ���� � �� � ������ �� �� ��� . . . . . . . . . . . . 104

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

��� ���� � ��� ��� �� ��� . . . . . . . . . . . . . . . . . . . . 106

��� �� ���� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . 107

� 11 � ��, �� � FixPack ���� . . . . . . . . . . . . . . . . . . . . . . . . 109

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

AIX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

DB2 ���� � �� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . 110

�� FixPack�� �� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . 110

FixPack �� �� ���� ��(Linux UNIX) . . . . . . . . . . . . . . . . . . . . 110

��� ���� DB2 �� �� ��(Linux UNIX) . . . . . . . . . . . . . . . . . . . 111

��� � �� � ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

�DB2 ��� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

���� ��(Linux UNIX)�� ��� �� � ��� � . . . . . . . . . . . . . 113

Windows Vista � ��� � ���� . . . . . . . . . . . . . . . . . . . . . . . 113

� 12 � ����� ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

���� �� ���� . . . . . . . . . . . . . . . . . . . . . . . . 115

���� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

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

� 13 � �� ����. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

��� CCD �� � �� UOW CD �� �� . . . . . . . . . . . . . . . . . . 119

DECFLOAT ��� � � ��� ��� . . . . . . . . . . . . . . . . . . . . . . . . 119

� 14 � ���� ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

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

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

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

Big5-HKSCS–Unicode ���� ��� ������� HKSCS� ���� � �� �� �� . . . . . 122

UPPER(UCASE) LOWER(LCASE) �� �� �� ��� . . . . . . . . . . . . . . . . 123

� 15 � ��� �� � ��� �� ���� . . . . . . . . . . . . . . . . . . . . . . . 125

��� � �� ��� ��� �� �� � . . . . . . . . . . . . . . . . . . . . . 125

�� v

Page 8: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

SQL �� ��� �� ��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

��� �� ��� ��� ��� � . . . . . . . . . . . . . . . . . . . . . . . . . 126

�� ��� ��� ��� � . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

�� ��� ���� ��� �� ��� ��� . . . . . . . . . . . . . . . . . . . . . 127

��� �� �� ������ ��� � . . . . . . . . . . . . . . . . . . . . . . . 127

� 2 � ��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

� 16 � ��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

�� ��� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

� ������� ��� � ���� ���� . . . . . . . . . . . . . . . . . . . . 131

������ ��� SECADM �� � . . . . . . . . . . . . . . . . . . . . . . . 132

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

��� �� ��� ���� �� �� � . . . . . . . . . . . . . . . . . . . . . 133

��� � �� �� �� �� � . . . . . . . . . . . . . . . . . . . . . . 134

Memory Visualizer� �� ��� ��� ��. . . . . . . . . . . . . . . . . . . . . . 139

�� ��� �� � �� � . . . . . . . . . . . . . . . . . . . . . . . . . 140

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

�� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

�� ��� �� ��� ���� �� . . . . . . . . . . . . . . . . . . . . 141

��� REFRESH TABLE SET INTEGRITY�� ALLOW NO ACCESS �� ��� � . . 142

������ �� ���� � . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

�� �� ��� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

�� ����� � �� � . . . . . . . . . . . . . . . . . . . . . . . . . . 148

���� � ��� �� ���� ���(AIX, Linux, Solaris Windows) . . . . . . . . . . 151

�� ��� DB2ADMNS �� DB2USERS ��� �� ��� �(Windows Vista) . . . . . . . . 153

�� �� ��� ��� ��� �� �(Windows) . . . . . . . . . . . . . . . . . . 153

FixPack ��� �� � �� � �(Linux UNIX) . . . . . . . . . . . . . . . . 153

��� ��� ��� �� �� �� �� ��� . . . . . . . . . . . . . . . . . . . 154

Information Integrator �� ID � � . . . . . . . . . . . . . . . . . . . . . . . . 155

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

��� JDBC ���� Java ����� � . . . . . . . . . . . . . . . . . . . . . . 155

ResultSetMetaData� IBM Data Server Driver for JDBC and SQLJ �� 4.0� �� �� �� . . . . 156

��� ��� �� �� ���� ���� SQLException � . . . . . . . . . . . . . . . 157

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

(Linux UNIX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158

ID � �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159

� ���� � � � ����� � . . . . . . . . . . . . . . . . . . . . 160

�� CLI/ODBC ���� �� � ��� �� �� . . . . . . . . . . . . . . . . . 160

db2Load db2Import ��� ��� � ID �� . . . . . . . . . . . . . . . . . . 161

���� � ID� � �� �� �� � . . . . . . . . . . . . . . . . . . . . . 161

�� �� ���� API� � ID� � �� ��� � � . . . . . . . . . . . . . . . 162

���� �� SYSFUN ��� SYSIBM �� ��� �� . . . . . . . . . . . . . . . . . 162

�� ����� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163

CLP ��� �� ���� � . . . . . . . . . . . . . . . . . . . . . . . . . 163

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

REDISTRIBUTE DATABASE PARTITION GROUP � � . . . . . . . . . . . . . . . 164

vi ��� ��

Page 9: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� �� �� � ������ �� �� . . . . . . . . . . . . . . . . . . . . 165

db2audit � � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165

db2ckmig � � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

db2mtrk � � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

��� ��� �� �� � �(Linux UNIX) . . . . . . . . . . . . . . . . . . . . 169

OS ��� �� �� �(Linux UNIX) . . . . . . . . . . . . . . . . . . . . 169

� 17 � ���� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

�� ����� � ��� ���� �� . . . . . . . . . . . . . . . . . . . . . . . 173

GET AUTHORIZATIONS �� ���� �� . . . . . . . . . . . . . . . . . . . . . . 175

sqluadau API� ���� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176

�� ��� �� ���� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . 176

�� �� �� SQLOGCTL.LFH� ��� �� ��� . . . . . . . . . . . . . . . . . . . 178

IMPORT � � CREATE REPLACE_CREATE� ���� �� . . . . . . . . . . . . . . 179

XML Extender� ���� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

� datastream ��� ��� ���� �� . . . . . . . . . . . . . . . . . . . . . . . 180

WORF(Web Object Runtime Framework)� ���� �� . . . . . . . . . . . . . . . . . . 181

db2Import db2Load API� piActionString ��� � � ���� �� . . . . . . . . . . . . . 181

�� � �� ��� �� �� �(Linux UNIX) . . . . . . . . . . . . . . . . . . . . 182

� 18 � ��� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

�� ���(ESTORE) �� �� � . . . . . . . . . . . . . . . . . . . . . . . . . 183

AWE(Address Windowing Extensions) �� �� �(Windows) . . . . . . . . . . . . . . . . 183

db2icrt, db2ilist db2iupdt� �� -w � �(Linux UNIX) . . . . . . . . . . . . . . . 184

DB2 � �� �� �. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

�� ����� � �� �� � . . . . . . . . . . . . . . . . . . . . . . . . . 185

db2undgp � �� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

db2licm �� -n � �� � . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

CLISchema CLI � �� � . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

� 19 � DB2 �� 9.5 ��� ��� �� DB2 �� 9.1 FixPack ���� . . . . . . . . . . . . 189

� 3 � �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

�� A. �� ��� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

�� B. DB2 �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197

DB2 �� ���(��� �� PDF �) . . . . . . . . . . . . . . . . . . . . . . 198

�� DB2 � �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

�� ����� SQL �� ��� ��. . . . . . . . . . . . . . . . . . . . . . . . . 201

DB2 �� ��� �� ��� ��� . . . . . . . . . . . . . . . . . . . . . . . . . . 201

DB2 �� ���� ��� ��� �� �� . . . . . . . . . . . . . . . . . . . . . . . 201

��� �� �� ��� ��� DB2 �� �� �� . . . . . . . . . . . . . . . . . . . 202

DB2 ���. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204

DB2 ��� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

�� C. ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

�� vii

Page 10: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211

viii ��� ��

Page 11: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� �� �� ��

� �� Linux®, UNIX® Windows®� DB2® Database �� 9.5 ��� DB2

Connect™ ��� ��� �� �� ��� �� ��� �����.

� �� ���

� �� Linux, UNIX, Windows� DB2 �� 9.5� DB2 Connect �� 9.5��

��� � �� �� � ��� �� 9.5� �� 9.1� ���� �� ���

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

� ���� ���.

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

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

�� 9.5� �� �� ��� �� ��� 1 ���� � 1 � ���� �

��� � ����.

�� 9.5� �� �� ��� �� ��� 129 ���� � 2 � ��� �

��� � ����. � ���� �� 9.5� ���� �� ��� � � ��

�� ��� ����.

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

���.

�� 9.1 ���� 189 ���� � 19 � �DB2 �� 9.5 ��� �� �� DB2

�� 9.1 FixPack ������ FixPack 3( �� FixPack)� �� ��� �

�(�� 9.5�� �� � ��� � �� �� ��� ��� ��)� ���

��.

� �� ��

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

� 1 �: ��� ��

3 ���� � 1 � �DB2 �� 9.5� ���

� ���� DB2 �� 9.5� �� � � �� ��� ��

� ����.

© Copyright IBM Corp. 1993, 2007 ix

Page 12: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

� ���� DB2 Connect ��� �� �� DB2 �� 9.5� ��

���� �� ����.

23 ���� � 3 � ��� ��� � �����

� ���� �� 9.5� �� �� ��� ���� �� ����.

25 ���� � 4 � ��� ���� �����

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

�� ����.

41 ���� � 5 � ����� �� �����

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

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

47 ���� � 6 � ��� �����

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

�� ����.

53 ���� � 7 � ��� �����

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

��� �� ����.

61 ���� � 8 � �pureXML �����

� ���� � pureXML™ �� ��� �� ����.

71 ���� � 9 � ������� ��� �����

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

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

� �� ����.

99 ���� � 10 � �����, ��, �� � �� �����

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

� ����.

109 ���� � 11 � ���, �� � FixPack �����

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

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

115 ���� � 12 � ������ �����

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

���.

119 ���� � 13 � ��� �����

� ���� SQL ��� �� � �� ��� �� ����.

x ��� ��

Page 13: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

121 ���� � 14 � ����� �����

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

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

125 ���� � 15 � ���� �� � ��� �� �����

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

��� �� ����.

� 2 �: ��� ��

131 ���� � 16 � ���� ���

� ���� ������ ��, ������ ��, ���� CLP

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

���.

173 ���� � 17 � ����� �� ���

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

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

183 ���� � 18 � ���� ���

� ��� �� 9.5� ���� �� ��� ���� ����.

189 ���� � 19 � �DB2 �� 9.5 ��� ��� �� DB2 �� 9.1 FixPack

�����

� ���� �� 9.1 FixPack 3( �� FixPack)� ��� ����� �

� ��(�� 9.5�� �� � ��� � �� �� ��� ��� �

�)� �� ����.

� 3 �: ��

�� ��� �� ��

� ���� �� 9.5� ��� �� ��� �� ��� �� � ��� �

����.

DB2 �� �� ��

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

� ��� �����.

����

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

� ��� �����.

� �� �� �� xi

Page 14: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

xii ��� ��

Page 15: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 1 � ��� ��

� ��� Linux, UNIX Windows� DB2 �� 9.5�� �� ��� ��� �

�� �� �� ����.

3 ���� � 1 � �DB2 �� 9.5� ���

� ���� DB2 �� 9.5� �� � � �� ��� ��

� ����.

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

� ���� DB2 Connect ��� �� �� DB2 �� 9.5� ��

���� �� ����.

23 ���� � 3 � ��� ��� � �����

� ���� �� 9.5� �� �� ��� ���� �� ����.

25 ���� � 4 � ��� ���� �����

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

�� ����.

41 ���� � 5 � ����� �� �����

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

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

47 ���� � 6 � ��� �����

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

�� ����.

53 ���� � 7 � ��� �����

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

��� �� ����.

61 ���� � 8 � �pureXML �����

� ���� � pureXML �� ��� �� ����.

71 ���� � 9 � ������� ��� �����

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

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

� �� ����.

99 ���� � 10 � �����, ��, �� � �� �����

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

� ����.

© Copyright IBM Corp. 1993, 2007 1

Page 16: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

109 ���� � 11 � ���, �� � FixPack �����

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

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

115 ���� � 12 � ������ �����

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

���.

119 ���� � 13 � ��� �����

� ���� SQL ��� �� � �� ��� �� ����.

121 ���� � 14 � ����� �����

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

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

125 ���� � 15 � ���� �� � ��� �� �����

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

��� �� ����.

2 ��� ��

Page 17: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 1 � DB2 �� 9.5� ��

Linux, UNIX Windows� DB2 �� 9.5�� �� ���� ���� ����

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

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

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

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

�� 9.5��� ��� ��� �� ��� � �� ��� ��� �� ��

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

�������.

�� 9.5�� �� �� � �� ��� ����.

��� �� ����

��� �� ��� COMPRESS ��� ��� ��� ��� ��

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

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

��. ��� ��� 30 ���� ���� �� �� � ����.

��� ���� �� ��

�� 9.5��� �� ��� �� �� ���� ��� �� ��

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

� ��� � �� �� �� ��� �����. ID �� ���� �

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

�� � ����.

��� ��� 41 ���� � �� �� �� �� �� �� 47

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

multithreaded ���� ��

DB2 ��� ��� �� ��� �� multithreaded ����� ����,

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

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

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

�� ��� ��� ���� ��� �����. �� 9.5 ���� IBM®

�� Windows �� ���� multithreaded ����� ������. ��

9.5�� � �� ��� multithreaded ����� ��� ����. ���

��� 27 ���� ����� multithreaded ����� TCO(Total Cost of

Ownership) ���� � ����.

© Copyright IBM Corp. 1993, 2007 3

Page 18: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ����

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

����. �� 9.5�� �� �� � ��� ����.

v ��� IBM Data Server Driver for ODBC, CLI, and .NET �����

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

� �� � ������ � ���� �(ISV)�� ����� ��

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

���. ��� ��� 23 ���� ���� DB2 Client ���� �

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

v �� FixPack� �� �� �� ��� � �� � �(db2iupdt

dasupdt � ��)� �������. �� �� ��� ���

���. ��� ��� 110 ���� �FixPack �� �� ���� ��

(Linux UNIX)�� � ����.

v �� ��� ���� Linux UNIX �� ���� �� ���� ��

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

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

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

UNIX)�� � ����.

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

�� 9.5� �� ��� ���� ��� ������ ��� ���

����. �� 9.5�� �� ��� ������ ��� ��� ���

�.

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

�� ����, ������� �� ���� ��� SQL� �� ��

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

� �� �� ���� � ����. ��� ��� 28 ���� �� �

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

v BACKUP DATABASE ��� � �� ������� �� ��

� � �� ��� � ����. ��� ��� 104 ���� �� ���

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

����.

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

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

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

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

�� 9.5��� �� ���� ��� ��� ��� ���

HWM(High Water Mark)� �� �� ����� ��� �� � ���

4 ��� ��

Page 19: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

� ��� 38 ���� ��� ����� �� ���� ���� �

����.

�� �� �� ����

�� 9.5�� ��� �� ������� � ��� � � ��

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

���� �� ��� ��� 142 ���� ��� �� ��� ��� �

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

� 30 ���� � � �� ���� AUTOMATIC�� ����

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

�� ��� ����

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

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

��� �� ��(SYSPROC.AUTOMAINT_GET_POLICY

SYSPROC.AUTOMAINT_GET_POLICYFILE)� ���� � ����

(SYSPROC.AUTOMAINT_SET_POLICY

SYSPROC.AUTOMAINT_SET_POLICYFILE)� ��� � ����. �

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

�� � ����.

v ���� �

v � ��

v � �� �� ���

v � �� RUNSTATS

��� ��� 99 ���� ���� ���� �� ���� � ��

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

�� 9.1� �� ����

�� 9.1��� IBM�� �� �� ��� �� ��� ��� �����

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

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

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

� �����.

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

�� ���� DB2 ������ ��� ��� ������ RUNSTATS

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

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

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

� 1 � �� 9.5� �� 5

Page 20: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

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

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

�.

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

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

v DB2 ������ �� �� �� ��� �� � �� FCM(Fast

Communication Manager) � � �� ���� �����.

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

��.

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

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

� � ����.

v DB2 Runtime Client� ���� � ��� ��� ����� ���� ��

� � ����.

�� ��

″Fast communications manager (Linux and UNIX)″(Partitioning and Clustering

Guide)

″Fast communications manager (Windows)″(Partitioning and Clustering Guide)

″� �� �� ��″(DB2 Servers� �� �)

″Automatic statistics collection″(Data Servers, Databases, and Database Objects

Guide)

″Self-tuning memory″(Data Servers, Databases, and Database Objects Guide)

″IBM Data Server Clients � ″(IBM Data Server Clients� �� �)

″Automatic reorganization″(Tuning Database Performance)

″Automatic storage″(Data Servers, Databases, and Database Objects Guide)

�� ���

″Copying schemas″(Data Movement Utilities Guide and Reference)

�� ��

″ALTER TABLE statement″(SQL Reference, Volume 2)

″Supported administrative SQL routines and views″(Administrative Routines and

Views)

″Multiple DB2 copies overview″(Data Servers, Databases, and Database Objects

Guide)

6 ��� ��

Page 21: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� � ���

�� 9.5�� �� ��� ��� ���� ��� ��� ��� ��� �

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

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

�� 9.5�� �� �� � �� ��� ��� ����.

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

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

��� ����. �� 9.5�� �� �� ��� ����.

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

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

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

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

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

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

��� � ��� �����. ��� ��� 26 ���� ���� �� �

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

v � ��� ��� �� �����. NNSTAT(Nickname Statistics) �

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

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

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

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

v �� ��� �������. ��� ��� 57 ���� ��� ����

� �� � ����.

LOB �� �� ��

LOB ��� �� ���� LOB ���� ���� ��� ��� �

���. �� 9.5�� �� ��� �����.

v � ���� ��� LOB ��� � � �� � � ����. � �

�� LOB ���� �� � �� ���� �� ���� � �

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

v ��� �� �����. ��� �� ���� ���� LOB �

� ��� � ����. � ����� ��� LOB � �� DB2

Clients��� ��� ��� �� �����.

��� ��� 53 ���� �LOB �� � �� �� ��� ����� �

����.

�� ���� ��� ����(MDC) �� ���

MDC ���� ��� ��� ��� � �� ID(RID) ��� ���

� 1 � �� 9.5� �� 7

Page 22: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��� � ����. ��� RID �� ��� ��� ��� ��

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

�� �� �� ��� MDC ��� �� �� ��� � ����.

�� ���

�� ��(optimistic locking)� �� ����, ��� ���� ����

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

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

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

� ����� � ���. ��� ��� 54 ���� ��� ��� ��

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

�� 9.1� �� ����

�� 9.1��� IBM� �� ���� �� ��� ��� ��� ��

�� ��� �� ����. �� 9.1� ��� ��� �� ����.

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

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

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

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

v � RID. �� ��� ��� ��� ��� ���� ��� �� �

� � ����.

v �� � �� 64�� �� ��� 8KB �� �

�� ��

″Database managed space″(Data Servers, Databases, and Database Objects Guide)

″Materialized query tables″(Tuning Database Performance)

″Statistical views″″(Tuning Database Performance)

″Moving data using a customized application (user exit)″(Data Movement Utilities

Guide and Reference)

″Data row compression″″(Data Servers, Databases, and Database Objects Guide)

�� ��

″SQL and XML limits″(Data Servers, Databases, and Database Objects Guide)

��� ��

�� 9.1� �, IBM�� pureXML ��� �����, DB2 ������ ���

� � �� XML ��� ��� ������. �� 9.5� �� ���

��� ��� ��� XML ���� �� ���� ��� ��� ��� �

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

8 ��� ��

Page 23: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� 9.5�� �� � pureXML ��� ����.

�� XML ��� ��

��� � ����� ��� � �� XML ���� DB2 ��� �

��� ���� ��� � ����. ��� ��� 62 ���� ����

pureXML� � ���� ���� � ����.

pureXML �� ��

pureXML ��� �� ���� �� ��� ���, �� �� XML

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

���� SQL/XML XQuery� ��� , XML ��� �� ��

��, �� ��� ��, XML �� �� �� ��� ����. �

�� ��� 62 ���� �pureXML ���� ��� �� ��� �

����.

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

DB2 XQuery� �� ���� XML ��� �� � �����

�����. ��� XQuery� ��� ����, ��� ��� ��� ��

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

XQuery� ��� ���� XML ��� �� ��, ��, ����� ��

� � � ����. ��� ��� 61 ���� �XQuery ��� ����

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

��� ��� �� XML ��

�� 9.5� �� ��� ��� �� XML ��� �����.

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

��� �� �� ��� ���� � � � ����. ��� ��� 63

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

v ��� ��� ��� �� ��� � ��� ��, �� XML ���

� �� XML ��� � ��� � � �����. ��� ��� 63

���� ���� ��� XML ��� � ��� � ���� � ��

��.

XML� HTML, �� ��� � �� ���� ���� �

XSLT(Extensible Stylesheet Language Transformation)� XML� ����

�� �� �����. pureXML� �� ���� �� XSLT �

�� �� XML� ��� ��� �����. ��� XSLTRANSFORM �

�� ������� �� XML ��� HTML, �� ��� �� � XML

���� �����. ��� ��� 63 ���� �XSLT ���� XML �

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

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

���� �� ���. �� 9.5�� �� ��� ����, �� �

� 1 � �� 9.5� �� 9

Page 24: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� � ��� �� ��� ������ ��� XML ��� ���

� � � � ����. UPDATE XMLSCHEMA � XSR_UPDATE

� �� ���� ��� XML ��� ���� �� �� XML

���� ��� � ����. ��� ��� 66 ���� �XML ��� �

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

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

�� pureXML ��� ���� �������� ��� � ����. �

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

�� ��� ����. ��� enable_xmlchar �� ���� ���

SQL ��� ���� ����� � ����� ������ � ���

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

�� ���. ��� ��� 65 ���� ����� ������� XML �

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

SQL/XML � XQuery� �� �� ��� ��

SQL/XML XQuery� �� ���� � �� ��� ��� ���

XML ���� �� ���� � ��� �� � ����. �� 9.5

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

v SQL/XML XQuery� ��� ��� ����� ���� ���

���. ��� ��� 64 ���� �SQL/XML XQuery ��� �

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

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

��. �� ��� �, �� SQL/XML � ��� ��� �� �

� � ���� ���. ��� ��� 67 ���� �� �� �

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

v �� SQL/XML � ��� ��� �����.

v XQuery �� ���� � �� ��, ��� ��� �� ���

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

����. ��� ��� 67 ���� �XQuery ��� ��� �����

�� �� ��� ���, 66 ���� �XQuery ���� ��� ���

��� 67 ���� �XQuery ��� ��� ��, �� �� ��

� � ����.

pureXML� �� � ����

pureXML� �� ��� �� �� �� �� ���� �� �

����.

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

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

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

10 ��� ��

Page 25: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v �� XML ��� ���(XSR)� ��� ��� XML ���� ���

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

��� ��� 68 ���� ������ �� XML ��� ��� �� �

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

�� 9.1� �� ����

�� 9.1� IBM� ���� �� ��� XML ��� ��� �����.

pureXML ���� �� �� � � ��� � ��� � (�� ���� ��)

XML� �����. �� ���� XML� seamless ���� ���� �

��� ����, ��� XML ��� � ��� ���, � ��� SQL

XQuery �� XML ���� ���� � ��� � �� ��� �����.

�� 9.1�� �� �� pureXML ��� ����.

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

����.

– � XML ��� � . �� ��� � ��� XML ��� �� ����

����� ��

– XML ���� ���� �� ���� �� XQuery

– SQL� SQL/XML ����� XML ��� �

– XML ��� ��

v ��� XML ���� ���� ���� � �� � �����.

– Developer Workbench. XML ��, XML ��� � XML ��� �

��

– DB2 CLP(Command Line Processor). XML ��� � ��

– Explain �� Visual Explain GUI ��. SQL/XML �� XQuery� �

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

– ���� ��� �� XML� ��� ���� �� XML �� �

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

– SQL �� ������ XML� ��� CREATE PROCEDURE �

�� �� ��� � XML� ���� ��� XML ���� SQL

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

�� ��

″Explain facility″(Tuning Database Performance)

″Visual Explain″(Visual Explain ���)

″XML data type″(pureXML Guide)

″Querying XML data″(pureXML Guide)

� 1 � �� 9.5� �� 11

Page 26: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″Indexing XML data overview″(pureXML Guide)

�� ��

″CREATE PROCEDURE statement″(SQL Reference, Volume 2)

″Command line processor features″(Command Reference)

�� ��

″Introduction to XQuery″(XQuery Reference)

��� �� � ���

�� 9.5�� ���� �� ���� �� �� ����� ��� �� ��

� �� ��� ����.

IT ��� ��� �� � �������. sensitive ���� ��� �

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

�� �� ���� ����� ��� ����. �� 9.1� ��� ���

�� �� �� 9.5� ��� �� ���� sensitive ���� ���� �

�� � ����.

�� 9.5�� �� � �� ��� ����.

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

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

�(SECADM ��� ��)� ���, ��, PUBLIC, � �� �� ��

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

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

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

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

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

�. (��� �� � ��� �� ��� ������� ��� �� �

����.) ��� ��� 50 ���� ���� �� �� ����� � ��

��.

����� ���� ��

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

� ��� ����. ���� ID� �� �� �� ��� �����.

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

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

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

LBAC(Label-based access control) ����

LBAC��� � � � �� �� ��� ��� �� ����� �

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

12 ��� ��

Page 27: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

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

���. ��� ��� 52 ���� �LBAC(Label-Based Access Control)

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

� �� ����

�� 9.5� �� ��� �� �� ���� �� ��� ������

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

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

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

��� ��� �� ���(SECADM �� ��)��� ����. ��� �

�� 49 ���� ��� �� �� �� ��� � ����.

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

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

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

� �, �, ��(drop)��� �� ��� � � ����. ��� ��

� 47 ���� ����� ����� �� ��, 50 ���� ���� �

� �� ���� 49 ���� ��� �� �� �� ��� � ��

��.

�� 9.1� �� ����

�� 9.1� � IBM��� sensitive ���� ����� �� � ��� �

�����. �� 9.1� ��� ��� �� ����.

v LBAC� ���� ��� ��� �� ��

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

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

v �� �� �� ��� ��� ���� ����, sensitive ���� ��

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

(SECADM)

v ������ ��� ���� ��� � �� CREATE DATABASE �

� � RESTRICTIVE �

�� ��

″Security administration authority (SEC ADM)″(Database Security Guide)

″Label-based access control (LBAC) overview″(Database Security Guide)

″LDAP-based authentication and group lookup support″(Database Security Guide)

�� ��

″CREATE DATABASE command″(Command Reference)

� 1 � �� 9.5� �� 13

Page 28: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

���� � ��� ��

�� 9.5��� � ������ ���� � �� �� �� �����

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

� ���� �� ���.

�� 9.5�� �� � ���� ��� �� ��� ����.

��� ��� ��

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

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

��� �� ��� � ����. ��� ��� 99 ���� ���� �

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

� ����.

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

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

� �� ��� ��� ��� � ����. ��� ��� 101 ����

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

���.

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

v IBM TSM(Tivoli® Storage Management)�� �� ��� ����

�.

– ��� �� ���� ��� ��� � ����. ��� DB2

ACS(Advanced Copy Services) API(Application Programming Interface)

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

� ��� 100 ���� ���� DB2 ACS(Advanced Copy Services)

API� ��� ���� �� ���� ��� � ����.

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

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

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

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

��� 106 ���� ���� ���� � ��� ��� �� �

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

v � � ��� (SSV) ��� ��� � �� � ������ ��

� �� ���� � ����. ��� ��� 104 ���� ��

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

� ��� � ����.

v �� �� ��� �� � � � ������. ROLLFORWARD �

�� TO END OF BACKUP�� ����� db2Rollforward API�

14 ��� ��

Page 29: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2ROLLFORWARD_END_OF_BACKUP ���� ��� ���

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

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

� ��� � ����.

�� �� � �� �� ��

v � ��� HADR �� ��� � �������. �� ������

� �� ������� ���� �� �, ��� hadr_peer_window �

����� �� ���� ��� DB2 HADR(High Availability

Disaster Recovery) �� �� ������ �� �� ��� �� �

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

��� � ��� �� � ����. ��� ��� 103 ���� �HADR

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

� ����.

v ��� � �� �� ��� ������. �� 9.1��� ����

�� �� �� � ��� �� �� �� SQLOGCTL.LFH� ���

����. �� 9.5��� ������ �� �� � �� �� ���

� � ��, � SQLOGCTL.LFH.1 SQLOGCTL.LFH.2� ����

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

��� �� � ����. ��� ��� 103 ���� �� �� �� �

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

���� �� �� �

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

� �� 2.2� Linux AIX® �� ��� IBM Data Server� ��

�����. ��� ��� 109 ���� �IBM Tivoli SA MP(System

Automation for Multiplatforms) �� ���� DB2 ��� ��(Linux

AIX)�� ��� � ����.

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

� �� �� � API(Application Programming Interface)� DB2 �

�� ��� �� ����(db2haicu)� �� IBM Data Server ��

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

�� 107 ���� ���� �� ���� �� ���� ��� �

����.

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

�� 9.5 FixPack 1��� ��� �� �� ����� �� ���� �

����� REDISTRIBUTE DATABASE PARTITION GROUP ��

�� �� �����.

v ��� � �(COMPACT STATISTICS USE PROFILE)�� �

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

� 1 � �� 9.5� �� 15

Page 30: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v REDISTRIBUTE �� �� ���, �� ����, ��� � �

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

���. REDISTRIBUTE ��� �� � ���� ������ �

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

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

���.

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

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

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

�� �� �� ����.

��� ��� 32 ���� ���� ��� �� �� �� �� �

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

�� ��� ��

�� 9.5�� ������ ���� � ����� ���� � ����

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

�� 9.5�� �� � ���� � �� ��� ����.

10� �� �� ��� � ��

�� 9.5��� 10� � ��� ��� � DECFLOAT� ����, ��

��� 10� �� ��� ���� ���� (�: �� ���� )�� �

����..DECFLOAT� DECIMAL ��� � � ���� FLOAT ���

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

��� ����. ��� ��� 78 ���� �10� � ��� ��� �

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

������ ��� ��

�� 9.5� �� ���� ����� �� ��� ���� ����

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

� 9.5�� �� ��� �����.

v ��� ���� ���� ���� � ARRAY ��� � �

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

� �� � ����.

v �� ��� �����. �� ��� SQL�� �� ��� ��� �

�� �� ��� ��� �����. �� 9.5��� �� � �� �

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

�� �� �����. ��� ��� 76 ���� ��� ��� SQL� �

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

16 ��� ��

Page 31: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v �� ID� �����. � ID� �� �� 128 ��� ����

��. ��� ��� 71 ���� �ID � �� ���� � ����.

v � �� SQL dialect� �����. �� 9.5�� DECODE, NVL,

LEAST GREATEST� �� ��� ����. ��� ��� 98 ��

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

JDBC � SQLJ ����

�� 9.5��� JDBC 4.0, JDBC 3.0 �� ��� ��� �����. �

�� ��� 80 ���� �JDBC 2.0 JDBC 3.0 �� � 86 ��

�� �JDBC 4.0 �� ���� � ����.

Perl, PHP � Ruby ������ �� ����

Perl, Hypertext Preprocessor(PHP) �� ��� ����� Ruby on Rails

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

��� �� ���� �����. �� 9.5�� �� ��� ����

�.

v DB2 Perl ���� pureXML � �� ���� �����. �

� ���� � ��� XML ���� �� ��� �� �

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

� ������. ��� ��� 74 ���� �Perl ����� pureXML

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

v Ruby on Rails ��� ��� �� �� �� ��� ��

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

��� ���. ��� ��� 73 ���� �Ruby on Rails �� � �

�� DB2 ��� ��(Linux, AIX Windows)�� ��� � ����.

v �� PHP ��� �� ���� DB2 �� ��� ��� � ���

�.

– IBM_DB2� �� ����� DB2 CLI(Call Level Interface) ��

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

�� ����� ���.

– PDO_IBM� ��� ���� PDO(PHP Database Objects) ���

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

��� ��� 72 ���� �PHP ��� DB2 ��� ��(Linux, AIX

Windows)�� � ����.

�� 9.1� �� ����

�� 9.1� � IBM��� ��� � ����� �� ��� ��

����. �� 9.1� ��� �� ��� �� ����.

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

� 1 � �� 9.5� �� 17

Page 32: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

– pureXML� �� ���� ��

– XQuery ��� �� ��

– SQL� SQL/XML ����� XML ��

– SQL �� ������ XML � ��

– ����� �� XML ��� ��

v � JDBC SQLJ� DB2 ����, �� ��� ����.

– ���� JDBC ��� ���� ��� ���� SQLJ�� �����.

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

– z/OS®� DB2 ������ ��� �� ���� ��� ���� � DB2

�� ��� �����.

– ��� ��(pooling) �� ���� �����.

v Developer Workbench� �� ��� ����.

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

– SQLJ ���� ��

– XML �� ��

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

�� ��

″Annotated XML schema decomposition″(pureXML Guide)

″XML data type″(pureXML Guide)

″Querying XML data″(pureXML Guide)

″Indexing XML data overview″(pureXML Guide)

″Supported drivers for JDBC and SQLJ″(Getting Started with Database

Application Development)

�� ��

″CREATE PROCEDURE�″(SQL Reference, Volume 2)

�� ��

″Introduction to XQuery″(XQuery Reference)

18 ��� ��

Page 33: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 2 � DB2 Connect ���� ��

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

� e-business� IBM � �� ������� �� ��� ��� ����

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

� ������.

IBM� i5/OS™� DB2, z/OS� DB2, VSE VM� DB2 ��� ���� �

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

� ��� i5/OS ������ ���� ���� ����� ���, ����

Linux, UNIX Windows �� ���� ���� ���� ����� �

� ��� ����.

DB2 Connect�� �� ��(DB2 Connect Personal Edition ��)

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

� ���� ��, ��� �� System i ����� �� DB2 ������

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

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

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

v SQL(Structured Query Language)

v DB2 APIs(Application Programming Interfaces)

v ODBC(Open Database Connectivity)

v JDBC(Java™ Database Connectivity)

v SQLJ(Structured Query Language for Java)

v DB2 �� ����(CLI)

v Microsoft® ADO. NET(ActiveX Data Objects .NET)

�� �� �� 9.5� �� ����� � DB2 Connect� �� �

�� ������.

�� ��� � ����

v 23 ���� ���� DB2 Client ���� � ��(Windows)�

v 24 ���� ��� ��� ���

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

v 72 ���� �PHP ��� DB2 ��� ��(Linux, AIX Windows)�

© IBM Corporation 1993, 2007 19

Page 34: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v 73 ���� �Ruby on Rails �� � ��� DB2 ��� ��(Linux, AIX

Windows)�

v 74 ���� �Perl ����� pureXML �� �� �� ���

v 74 ���� �IBM Database Add-Ins for Visual Studio 2005 �

v 78 ���� �10� � ��� ��� � �� 10� ���� ��� ��

��

v 79 ���� �JDBC SQLJ �� ���

v 80 ���� �JDBC 2.0 JDBC 3.0 �� �

v 86 ���� �JDBC 4.0 �� ���

v 92 ���� �IBM Data Server Provider for .NET�� IBM Informix Dynamic

Server, IBM UniData IBM UniVerse ���

v 94 ���� �CLP�� CLIENT APPLNAME �� ����� ��� ���

����� ����

v 115 ���� ����� �� ���� �

v 116 ���� ����� �� �� �

v 117 ���� ����� �� �� �

�� ����

v 119 ���� ���� CCD �� � �� UOW CD �� ���

v 119 ���� �DECFLOAT ��� � � ��� ����

��, �� � FixPack ����

v 110 ���� �FixPack �� �� ���� ��(Linux UNIX)�

v 110 ���� �DB2 ���� � �� �� �� ���

v 111 ���� ���� ���� DB2 �� �� ��(Linux UNIX)�

v 110 ���� ��� FixPack�� �� �� �� ���

v 111 ���� ���� � �� � ���

v 112 ���� ��DB2 ��� �� �� ���

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

� ���� DB2 ��� ��(Linux AIX)�

v 113 ���� �Windows Vista � ��� � �����

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

v 125 ���� ���� � �� ��� ��� �� �� ��

v 125 ���� �SQL �� ��� �� ��� ���

v 126 ���� ���� �� ��� ��� ��� ��

20 ��� ��

Page 35: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v 126 ���� ��� ��� ��� ��� ��

v 127 ���� � �� ��� ���� ��� �� ��� ����

v 127 ���� ���� �� �� ������ ��� ��

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

v 156 ���� �ResultSetMetaData� IBM Data Server Driver for JDBC and SQLJ

�� 4.0� �� �� ���

v 157 ���� ���� ��� �� �� ���� ���� SQLException ��

v 160 ���� �� ���� � � � ����� ��

v 160 ���� ��� CLI/ODBC ���� �� � ��� �� ���

v 163 ���� ��� ���(CLP) �� ��

v 161 ���� �db2Load db2Import ��� ��� � ID ���

v 161 ���� ����� � ID� � �� �� �� ��

v 162 ���� ��� �� ���� API� � ID� � �� ��� �

��

v 162 ���� ����� �� SYSFUN ��� SYSIBM �� ��� ���

v 163 ���� ��� ����� ���

CLP � ��� ��� ����

v 169 ���� ���� ��� �� �� � �(Linux UNIX)�

v 169 ���� �OS ��� �� �� �(Linux UNIX)�

v 189 ���� � 19 � �DB2 �� 9.5 ��� �� �� DB2 �� 9.1 FixPack

����

���� �� ��

v 180 ���� �� datastream ��� ��� ���� ���

��� ��

v 187 ���� �CLISchema CLI � �� ��

DB2 Connect �� 9.5 ��� ��� �� DB2 �� 9.1 FixPack ���

�� 9.1 FixPack 3( �� ��)�� DB2 Connect �� 9.5� ��� �� �

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

� 2 � DB2 Connect �� � 21

Page 36: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

�� 9.1 FixPack 3 �� �� FixPack� ���� ���� �� 9.1 �� �� �

� ���� ���� �� �, DB2 �� 9.5� ��� �� � � �� ��

�� � � ���.

��

DB2 �� 9.1 FixPack� �� �� ���� �� ��� �� �, �� ��

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

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

DB2 �� 9.1 FixPack 1

FixPack 1�� �� ��� �� �� �� ���� ����.

v �� ����� �� JDBC ���� � LOB �� XML �� �� ���

v �� ID� �� ��� ���� ��� � ��

FixPack 1�� �� �� ��� ����.

v DB2Binder ����� � � ��� � ��

DB2 �� 9.1� FixPack 2

FixPack 2�� FixPack 1� ���� ��� �� ��� �����.

v C C++ embedded SQL ���� � BINARY, VARBINARY

DECFLOAT ��� � �� ��

v .NET Framework 2.0� DB2 .NET Data Provider �� ��

v IBM Database Add-Ins for Visual Studio 2005 ��

v Solaris �� �� Java 5.x� IBM SDK(Software Development Kit) �� �

v Windows Vista �� ��(Windows)

DB2 �� 9.1 FixPack 3

FixPack 3�� FixPack 2� ���� ��� �� ��� �����.

v � �� �� ��(Linux)

v JDBC SQLJ ��

22 ��� ��

Page 37: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

IBM ��� �� ��� �� ��� �� DB2 ��� ��� ��� ��

�� ������.

�� 9.5�� IBM� ��� �� ��� �� �� ��� DB2 ������ �

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

� ���� � �� ��� ���, Linux, UNIX Windows� DB2 ��

����� � ���(http://www.ibm.com/db2/9)� � ����.

��� DB2 Client ���� �� ���(Windows)��� IBM Data Server Driver for ODBC, CLI, and .NET ������ ODBC

���, CLI ���, OLE DB ��� �� IBM Data Server Provider for .NET

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

��� � ����.

��� IBM Data Server Driver for ODBC, CLI, and .NET ������ Windows

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

�� � ���� �(ISV)�� ����� ���� �� � ������

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

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

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

Linux UNIX �� ��� �, � IBM Data Server Driver for ODBC and

CLI� tar ��� �����.

�� ��

″IBM data server clients �� ″(IBM Data Server Clients� �� �)

″IBM Data Server CLI and ODBC drivers″(Call Level Interface Guide and

Reference, Volume 1)

�� ���

″IBM data server clients ��(Windows)″(IBM Data Server Clients� �� �

)

″Deploying .NET applications ( Windows )″(Developing ADO.NET and OLE

DB Applications)

© Copyright IBM Corp. 1993, 2007 23

Page 38: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� ���� ��

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

���.

�� ���� �� 9.5�� ��� � �� ���� ��� ����.

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

�� 9.1 ���� �� �� 9.5 ���� ��

DB2 Client IBM Data Server Client

DB2 Developer Workbench ��� �� � ��

DB2 Runtime Client IBM Data Server Runtime Client

IBM DB2 Driver for JDBC and SQLJ IBM Data Server Driver for JDBC and SQLJ

IBM DB2 Driver for ODBC and CLI IBM Data Server Driver for ODBC and CLI

�� ��

″DB2 integration in Visual Studio″(Developing ADO.NET and OLE DB

Applications)

″IBM data server clients �� ″(IBM Data Server Clients� �� �)

24 ��� ��

Page 39: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 4 � �� ���� ����

�� 9.5��� ���� � ���� �� � ��� � ����. ����

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

� ����.

DB2 ��� �� ��� ���� �� 9.5� ��� �� ����� � ��

� ����.

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

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

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

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

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

�� � �� ��� ��� �� ���� ��� � ����. �� Q ��

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

��� � ����. ��� �� ���� ��� AIX, Linux on x86 Linux on

AMD64, Windows XP Windows 2003(32�� 64��) �� ��� ��

� � ����.

��� �� � ��� �� 9.1� �� DB2 Developer Workbench� ��� �

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

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

�����, ��� � � ���� ���, SQL XQuery ��� � �

���, ������ �� ��� �� ���� ����� Java ���� �

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

� ������ �� ���� ��� � ����. ��� �� ��� x86�

Linux, 32�� 64�� Windows ��� ��� � ����. ��� ��� 95

���� �DB2 Developer Workbench �� �� �� � ����.

�� �� �� ��(�: � ��� ��� ��)� � ������ ��

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

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

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

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

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

�� ��

© Copyright IBM Corp. 1993, 2007 25

Page 40: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

95 ���� �DB2 Developer Workbench �� �� �

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

�� 9.5�� ��� �� �� ��� �� ��� ��� ���� � �� �

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

�� auto_stmt_stats�� �����.

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

� �� �� ��� �� � ����. �� 9.5 ���� ��� �� �� �

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

DB2 UDB �� 8.2�� � �� � ��� ��� ��� ����� �

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

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

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

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

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

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

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

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

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

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

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

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

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

�� ��

″Automatic statistics collection″(Data Servers, Databases, and Database Objects

Guide)

″Optimizer profiles and guidelines overview″(Tuning Database Performance)

″RTS requests″(Tuning Database Performance)

�� ��

″catalogcache_sz - Catalog cache size configuration parameter″(Data Servers,

Databases, and Database Objects Guide)

″auto_maint - Automatic maintenance configuration parameter″(Data Servers,

Databases, and Database Objects Guide)

26 ��� ��

Page 41: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

���� multithreaded ����� TCO(Total Cost of Ownership) ��

DB2 ��� ��� �� ��� �� multithreaded ����� ����. �� 9.5

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

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

��.

multithreaded ����� ��� �� �� ��� ����.

v �� �� ��� �� �� ���� ���, TCO(Total Cost of

Ownership)� �����.

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

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

��� 28 ���� ���� �� ����� � ����.

– ���� ��� �� ��� ������. �� ���� �� DBA

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

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

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

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

��� �� � ����.

– ��� ��� ���� ��� ��� ��� ���� ��� ���(��

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

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

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

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

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

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

�� ��

″DB2 ��� ��″(Tuning Database Performance)

139 ���� �Memory Visualizer� �� ��� ��� ���

28 ���� �� ��� ������ �� ����

28 ���� ���� �� ����

142 ���� ��� �� ��� ��

� 4 � �� ���� �� 27

Page 42: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

�� 9.5�� � ��� �� �� ������ �� �� � � ����.

� ������ ��� �� UPDATE DATABASE CONFIGURATION ��

RESET DATABASE CONFIGURATION �� ���� �� �� ������

��� �� ������ ��� �� �� ���� � ����. �� db2_all

�� ��� �� ���.

������� �� ���� ��� SQL�� �� ��� �� �� ��

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

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

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

�� 9.5�� �� �� � �� � ���� � �� ���� �� �

�� ����.

v � ����� �� DB2_UPDDBCFG_SINGLE_DBPARTITION� ����. �

����� ��� TRUE� ������. � �� ��� ADMIN_CMD ��

�� �� UPDATE DATABASE CONFIGURATION �� RESET DATABASE

CONFIGURATION � ��� ����.

v UPDATE DATABASE CONFIGURATION RESET DATABASE

CONFIGURATION � ADMIN_CMD ���� ��� �

dbpartitionnum� ����.

�� ��� ������ ��� �� �� ������ UPDATE DATABASE

CONFIGURATION �� RESET DATABASE CONFIGURATION ���

dbpartitionnum �� �����.

�� ��

″RESET DATABASE CONFIGURATION command″(Command Reference)

″UPDATE DATABASE CONFIGURATION command″(Command Reference)

″System environment variables″(Data Servers, Databases, and Database Objects

Guide)

″ADMIN_CMD procedure – Run administrative commands″(Administrative

Routines and Views)

��� �� ���

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

����. ��� � DB2 ��� ��� �� � ��� �(heap)� ����

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

AUTOMATIC ���� ��������.

28 ��� ��

Page 43: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� �� ���� �� �� 9.5� ���� �� �� ��� ����.

v � ��� instance_memory� ��� ������ �� �� � �

��� �� ��� �(heap) ��� ���� �� ���� ��� � ���

�. ��� appl_memory �� ���� ��� DB2 ������ ����

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

� ����. ���� �� �� AUTOMATIC�� ����, �� ������

���� ��� � ��� �� instance_memory �� �� �� �, ��

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

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

v � ��� �(heap) ������ �� �� � �� ��� �(heap)�

� ���� �� � ���� �� ��� � ����. �� db2mtrk �� �

�� �(heap) ��� ADMIN_GET_DBP_MEM_USAGE �� ��� �

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

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

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

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

�� ��

″Self-tuning memory″(Data Servers, Databases, and Database Objects Guide)

″Self tuning memory operational details and limitations″(Data Servers, Databases,

and Database Objects Guide)

″Self-tuning memory overview″(Data Servers, Databases, and Database Objects

Guide)

139 ���� �Memory Visualizer� �� ��� ��� ���

154 ���� ���� ��� ��� �� �� �� �� ����

142 ���� ��� �� ��� ��

�� ��

″instance_memory - Instance memory configuration parameter″(Data Servers,

Databases, and Database Objects Guide)

″db2mtrk - Memory tracker command″(Command Reference)

″appl_memory - Application Memory configuration parameter″(Data Servers,

Databases, and Database Objects Guide)

″ADMIN_GET_DBP_MEM_USAGE table function - Get total memory

consumption for instance″(Administrative Routines and Views)

� 4 � �� ���� �� 29

Page 44: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� ��

ADC(Automatic Dictionary Creation)� ��� � ����. ADC� �� ��

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

��� ���� ��� ���� �� ���(����� � 1 - 2MB)� ��� �

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

� ����� ��� �� ��� COMPRESS ��� ��� ��� ��� �

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

� �, ADC�� ��� ��� ��� ��� � ����. �� � � �

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

��� �� �� ��� INSERT, IMPORT INSERT, LOAD INSERT

REDISTRIBUTE DATABASE PARTITION GROUP� ���, � ��� �

��� �� ��� �� � ���� . LOAD REPLACE ������

KEEPDICTIONARY RESETDICTIONARY � � ��� ��� ��

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

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

�� ��

″Space compression for tables″(Data Servers, Databases, and Database Objects

Guide)

″Automatic (compression) dictionary creation (ADC)″(Data Servers, Databases,

and Database Objects Guide)

� � �� ����� AUTOMATIC�� ��� ��� �� ��

�� 9.5���, � �� ���� AUTOMATIC ����� ��� � ��

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

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

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

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

31 ���� � 2�� AUTOMATIC ���� ���� �� ��� � �� �

� ���� ��� ����. AUTOMATIC ���� ��� � ����� �

���. ���� AUTOMATIC ��� ������ �� ���� ��� ��

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

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

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

30 ��� ��

Page 45: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 2. �� ��� � �� AUTOMATIC�� ��� �� �� ���

�� ���� �� �� AUTOMATIC ��� �

applheapsz �� ����� � ��� ��

�� �� ��� � ���

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

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

���.

�� 9.5� ��� � ��� �

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

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

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

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

�, applheapsz� �� ��

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

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

DPF, �� �� SMP ����

AUTOMATIC ��� ����

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

�� applheapsz �� �� ��

�� �� � � ����

���� � � ����.

AUTOMATIC ����

appl_memory ��� �����

instance_memory ��� ���

��� �� �� ����

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

database_memory ������ �� ��� ���

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

�.

AUTOMATIC ����

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

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

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

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

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

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

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

dbheap ������ ��� ���� �

� ���� �����.

AUTOMATIC ����

database_memory ��� ���

�� instance_memory ��� �

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

� �� �� � ����.

instance_memory ������ ��� ��� �

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

�.

AUTOMATIC ����

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

�� ��(db2start)� �� �

����.

mon_heap_sz ������ ���� ��� �

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

��.

AUTOMATIC ����

instance_memory ��� ���

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

�� � ����.

stat_heap_sz RUNSTATS �� ��� �

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

�� ��� �����.

AUTOMATIC ����

appl_memory ��� �����

instance_memory ��� ���

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

� �� � ����.

� 4 � �� ���� �� 31

Page 46: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 2. �� ��� � �� AUTOMATIC�� ��� �� �� ��� (��)

�� ���� �� �� AUTOMATIC ��� �

stmtheap �� �� ��� ����, ��

SQL� �� XQuery�� ���

� SQL �� XQuery ���

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

AUTOMATIC ����

appl_memory ��� �����

instance_memory ��� ���

��� �� �� �� ��

�� � ����.

database_memory �� ����� AUTOMATIC �� ��� �

database_memory �� ���� AUTOMATIC�� ���� �, ��� ��

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

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

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

���� ����.

�� ��

″Configuration parameters summary″(Data Servers, Databases, and Database

Objects Guide)

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

�� 9.5 FixPack 1��� ��� ���� ��� �� ���� ���� ��

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

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

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

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

� ����.

�� 9.5 FixPack 1 ���� �� ��� ��� ���(�: �� ��� ��

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

�� ��� REDISTRIBUTE DATABASE PARTITION GROUP �� ��

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

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

�, ���� � � ���. � REDISTRIBUTE DATABASE PARTITION

GROUP �� �� ��� � �� ���� ��� �� ����.

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

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

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

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

�� ���� ����� ����� �� ��� ��� �� ��)

32 ��� ��

Page 47: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v �� �

v �� ��

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

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

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

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

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

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

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

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

REDISTRIBUTE DATABASE PARTITION GROUP � ��� ���� ��

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

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

�� REDISTRIBUTE �� ���� ���� ����� � ������ �

�� �� �� ��� � ����. ����, ALTER NODEGROUP ��

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

v ��� �� �� ��

� TABLE �� ��� ��� ��� � ��� ���� �� ���

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

�(�� ��) ����� ���� � � ��� �� ����� � �

����. STOP �� ��� ��� ��� ���� ���� ��� ��

��� ��� ��� ���� ��� ������, CONTINUE �� ��

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

�: �� �� ��� � ���� � � ���� ��� �, ��

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

���� ����.

v �� ���

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

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

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

��.

– INDEXING MODE AUTOSELECT

- � �� ��� ���. � �� ����, ������ �� ��

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

� 4 � �� ���� �� 33

Page 48: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

– INDEXING MODE INCREMENTAL

- � �� ��� ���� ������� �����.

– INDEXING MODE REBUILD

- � �� ��� �� ����� �����.

– INDEXING MODE DEFERRED

- � �� �� ����� ����� �����. ��� ���� ��

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

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

v �� �� ���� ��

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

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

� ����. ���� ��� ����� ����� COMPACT ON ��

COMPACT OFF� ������.

���� ��� �� ���� COMPACT ON �� ��� �, �

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

MDC ���� COMPACT ON �� ���� � ��� ���� ���

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

v �� ���

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

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

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

��� �� ����� �����, � ��� � STATISTICS USE

PROFILE� ������.

�� ��� INDEXING MODE REBUILD �� ���� ��� ���

��.

�� ���� � INDEXING MODE REBUILD� ���� �, ���

���� ����.

v �� ��� �� ��

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

� ��� �� �����, �� �� PARALLEL TABLE �� �����

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

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

34 ��� ��

Page 49: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� �� ���� � � ��� �� ���� �� � CPU, ��� ��

� �� ��� ��� � ����. PARALLEL TABLE �� ����

��� � CPU, ��� ���� �� �� ���� �� ��� CPU, �

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

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

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

v �� �

��� ���� ���� ���� �(heap) ���� �����. � ���� �

��� ����� � ��� ���� �(heap) ���� 4KB ��� �� ���

�� � � DATA BUFFER data_buffer_sz� ������. � �� ���

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

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

�� �� ��� ���� �(heap) ���� 50%� ���� ����.

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

REDISTRIBUTE DATABASE PARTITION GROUP ���, ����� ��

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

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

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

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

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

�� ������� ���� ���. REDISTRIBUTE DATABASE PARTITION

GROUP �� � � ���� � � � � � � � � . ��� � � �

REDISTRIBUTE DATABASE PARTITION GROUP ��� � ����.

��� ����� �� ��� ��� ���� ���, ��� REDISTRIBUTE

DATABASE PARTITION GROUP � � ��� ��� ���� ��

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

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

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

�� ��

″Collecting statistics using a statistics profile″(Tuning Database Performance)

�� ��

″REDISTRIBUTE DATABASE PARTITION GROUP command″(Partitioning

and Clustering Guide)

� 4 � �� ���� �� 35

Page 50: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

db2look ��� � � ������ ����� DDL ��

db2look �� ��� ������ ��� �, � �� ��� � ���,

� ������ ��� DDL� �����.

db2look ��� � �� 9.5 ��(�: ��, �� �� ��, �� �

�, ���� ����, �� � �� ��)� DDL� ���� � �� ��

��� ����.

v db2look -d dbname -t tabname -l� ��� ��� ��� �� ���

� DDL� ��� � ����.

v db2look -d dbname -t tabname -m� ��� �� ��� UPDATE ��� �

�� � ����.

v � �� �� � ���� ����� -t � ��� ���� �� �� �

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

v ������ ��� DDL �� ��� -e � ��� ���.

�� ��

″db2look - DB2 statistics and DDL extraction tool command″(Data Movement

Utilities Guide and Reference)

SQL� �� DB2 �� �� �� �� ��

SQL �� ��� �� 8�� ���� �� 9.5�� �� �� ���� �����

�������. � �� � �� 9.5� �����.

SQL �� �� � SQL� �� DB2 ��� ���� ��� � �� ��

�� ����� �����. ��� �� ���(�: �� ���, ��� ���

�� � �� �� ���� ���� ���� ID �)� ���� ��

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

�� �� � SQL �� ���� , �� �� � �� ��� ��� �

����.

� �� , �� ��� ����, �� 9.5�� �� ��� �����.

v ��� �� �� ��

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

�� 9.5�� �� �� ��� �� ��� ����� �� �� 9 ��� �� �

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

��� ��� ��� ���� �� �� SQL �� ��� Administrative

Routines and Views� ����� �� SQL �� �� � ����.

36 ��� ��

Page 51: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� ��

�� 9.5�� ��� ��� �� �� ���� ��� �����, ��

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

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

80� �� ��� �� ���� ��� �� ����. �� ��� �

��� ��� ��� �� 9.5� ��(�: ��� ��) DB2 �� ��

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

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

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

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

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

�� ��

″Database system monitor elements″(System Monitor Guide and Reference)

″Table space activity monitor elements″(System Monitor Guide and Reference)

″Workload management monitor elements″(Workload Manager Guide and

Reference)

″Real-time statistics monitor elements″(System Monitor Guide and Reference)

″On-Line Analytical Processing (OLAP) monitor elements″(System Monitor Guide

and Reference)

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

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

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

� ��� � ����.

ENV_FEATURE_INFO �� ENV_GET_FEATURE_INFO �� ��� �

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

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

�� ��

″db2licm - License management tool command″(Command Reference)

″DB2 ���� ��″(Linux Windows�� DB2 �� �� ���)

″ENV_FEATURE_INFO administrative view - Return license information for

DB2 features″(Administrative Routines and Views)

� 4 � �� ���� �� 37

Page 52: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

ALTER TABLESPACE�� ��� �� ��� ���� �� �� ����

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

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

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

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

v ALTER TABLESPACE���� � ����� ��� �� �����

REDUCE �� �����.

v �� 9.5��� HWM(High Water Mark)� � ��� �� �����. � �

� REDUCE, RESIZE DROP �� ��� �� ���� ���, ��

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

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

�� ���� �� ����� ��� HWM �� �(��� �� ��)���

�� � ����.

�� ��

″ALTER TABLESPACE statement″(SQL Reference, Volume 2)

�� ��� � ��

�� 9.5� ��� DB2 ��� �� ���� ��� �� ���� ��� �

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

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

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

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

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

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

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

DB2_CAPTURE_LOCKTIMEOUT ����� ��� ��� �� �� �

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

�� ��

″Lock timeout reporting″(Tuning Database Performance)

�� ��

″General registry variables″(Data Servers, Databases, and Database Objects Guide)

″Lock timeout report files″(Tuning Database Performance)

38 ��� ��

Page 53: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ����� ���� RUNSTATS ���� � ��

RUNSTATS ����� � UNSET PROFILE �� �� ���� ���� �

��� ���.

RUNSTATS ����� �� ���� ��� ���� �� �����. � �

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

�� ���� �� ��� ����� �� �����, UNSET PROFILE �

�� RUNSTATS �� �����. � �� ����, db2Runstats API� ���

� iRunstatsFlags ���� DB2RUNSTATS_UNSET_PROFILE� �����.

�� ��

″Collecting statistics using a statistics profile″(Tuning Database Performance)

�� ��

″RUNSTATS command″(Command Reference)

″db2Runstats API - Update statistics for tables and indexes″(Administrative API

Reference)

� 4 � �� ���� �� 39

Page 54: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

40 ��� ��

Page 55: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 5 � ���� �� ����

�� 9.5� ���� �� ���� �� �� ��� �����.

�� 9.5� �� �� ��� �� ����� � �� � ����.

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

�� 9.5��� �� �� ��� ����, ��� ���� �� ��� �

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

�� 9.5� �� ��� �� ����, ��� ��� �� �� ����

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

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

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

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

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

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

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

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

�, ��� �� ��(SLA) �� ��� � ����. ���� ���� ��

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

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

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

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

���.

DB2 ��� ���� AIX �� ���� (WLM) ��� ���� ���

AIX �� ��� ��� �� � ����. �� ��, AIX WLM��� ��

CPU ��� ���� �� ��� ����� �� CPU ��� ��� ��

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

DB2 ���� ��� ��

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

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

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

© Copyright IBM Corp. 1993, 2007 41

Page 56: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

��� �� �� ��

�� ������ ��� ��� ��� ��(�: CPU, I/O ���)�

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

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

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

42 ��� ��

Page 57: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

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

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

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

�� ��� �� 9.5� ���� �� ���� �� ����� AIX �

� ��� ��� ��� WLM�� ���� �� �� ��� �� ���

� ����. DB2 ��� ���� AIX WLM �� ��� ��� � ��

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

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

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

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

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

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

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

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

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

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

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

�� ���� �� SQL� �� ��� (�: ���� )� ���

SELECT�� �� ��� � ����.

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

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

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

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

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

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

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

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

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

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

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

�����.

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

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

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

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

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

� 5 � �� �� �� 43

Page 58: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

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

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

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

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

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

� �� �� �� ��� �(�: ���� ������ ��� �

��� �)� ���� � �� � ��� ��� ������ ��

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

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

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

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

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

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

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

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

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

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

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

� ��� SLA � �� � ����

SLA� ��� �� ���� ���� �� �� �� ����, ���,

��� �� �� ��� ��� �����. SLA ��� �� �

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

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

���� ���� � �� 2� ��� ��� ��� �� 8� �� ���

� ���� ��� ���� �� �� 9��� �� ��� ����

��� ���.

��� SLA ��� �� �� �� ���, �� ��� �� ��� �

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

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

�, SLA� ��� ��� � � ���� ���� �����. �� �

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

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

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

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

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

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

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

44 ��� ��

Page 59: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

� SLA ��� ����� ��� � ����.

��� ���� �� � �� �� ��� ��� SLA �

��� ��� ��� ���� ��� � �� SLA ��� ��� �

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

����. �� �� � �� �� 2� ��� � ��� �� ��,

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

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

SLA� ��� ���� �� �� �� �����. � � �

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

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

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

�� �, �� � ��� �� ���� SLA ��� � ��� ���

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

����.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

��� � ����.

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

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

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

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

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

� 5 � �� �� �� 45

Page 60: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

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

�.

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

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

���� �����. �� 9.5��� � �� ��� ��� ��

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

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

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

�� �� � � ����.

�� �� �� ��

AIX WLM ��� ���� �� DB2 �� �� ��� ���� ��

��, �� �� ���� CPU ��� ��� � �� �� ��� ��� �

�� ���� CPU ���� ���� � ����. ��� �� ����

CPU ��� �� �� ���� �� �� ��� �� ���

�.

��� ���� ����, Query Patroller ��(Governor)�� ��� ��

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

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

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

Query Patroller� ��� ����. DB2 �� ��� �� ������ ��

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

� ��� ����.

�� ��

″Workloads″(Workload Manager Guide and Reference)

″Service classes″(Workload Manager Guide and Reference)

″Integration of DB2 workload management and the AIX Workload Manager″

(Workload Manager Guide and Reference)

″Thresholds″(Workload Manager Guide and Reference)

″Introduction to workload management concepts″(Workload Manager Guide and

Reference)

″Work action sets, work actions, work class sets, and work classes″

(Workload Manager Guide and Reference)

46 ��� ��

Page 61: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 6 � �� ����

�� 9.5� �� ���� ���� ���� ��, �� ��, �� �

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

�� 9.5� �� ��� �� ����� � �� � ����.

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

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

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

���� ID� �� � ����.

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

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

�� ����.

v ��� �� � ID: ������ ���� ��� ��

v IP ��(�� �� ��): ������ ��� ��� ��

v datastream ���: ������ ��� ������ ����� �� ��� �

�� �� ��� �� ��(��� �)

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

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

� ��� �� �� 2 �����/�� ��� ��� ����. � 3 �� ���

�� � ��, � � �� �� J2EE(Java 2 Enterprise Edition) ��� ��

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

� WAS(IBM WebSphere® Application Server)���.

3 �� ���� ��� �, � ����� ����� ���� � ��

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

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

� ID ��� �� ���, � ���� ������ ��� �� ��

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

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

� � ��� ��� ID� ��� ������ ��� ������.

3 �� ���� ���� � ��� ���, � ��� �� � ID� ��

� ������ ���� �� �� �(�: ��� )� ���� � �� ��

��� ����.

© Copyright IBM Corp. 1993, 2007 47

Page 62: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v ��� ID �

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

��� ID� � ���.

v ��� ��

��� �� ��� ��� ������ ��� �� �����. ���� ID�

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

�� � ���� ��� �� � ���� �� �!���.

v � ��� �� � ID� �� � �

� ��� �� � ID�� �� ���� � ���� � �� ��� �

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

���.

v �� ��

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

ID� ��� � �� ���� � �� �� ��� �� ����� �

��. �� � ��� �� � ID� ��� � �� ��� ����.

�� �� ��� �� ���� ID ������ ��� �� ���� ���

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

�� �� ��� �� �� �� ��� � ���� ���� ID ���

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

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

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

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

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

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

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

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

���.

���� ����� ��� �� ���� �����. �� ���(SECADM �

�� ��)� ������� � �� � �� ��� ���� �������� �

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

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

�� ID� �� ��� ID� ��� � �� ��� �� �����. ���� �

����� ��� ID � ��� ���� � ��� �� ��, � ��� ���

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

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

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

48 ��� ��

Page 63: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

���. ���� �� ����� ��� ���� ���� ������ ��(

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

�� ��

″Trusted contexts and trusted connections″(Database Security Guide)

�� ���

″Establishing an explicit trusted connection and switching the user ID Using

trusted contexts and trusted connections″(Database Security Guide)

�� ��

″CREATE TRUSTED CONTEXT�″(SQL Reference, Volume 2)

�� �� �� � �� ��

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

��� �����. �� 9.5��� �� ��� � �����.

�� 9.5� DB2 �� ��� ���� ��� ��, � �� ��, � ���

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

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

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

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

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

��� �� 9.5� �� ��� �� �����.

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

�� ��� � ����.

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

���(�: ��, ���, �� ��). � ���� �� ��� � �

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

v SQL�� �� � �� �������.

� �� �� EXECUTE� �� SQL�� ��� � ����. ����

CONTEXT ���� ��� � ������ ���� ����.

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

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

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

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

� 6 � �� �� 49

Page 64: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� �� �� ���� ������ ��(DPF) ��� � �� � ��

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

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

� � ����.

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

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

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

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

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

���.

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

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

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

��� �� ��� �� ARCHIVE �� ��� �� ��� ��� �

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

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

CURRENT CLIENT �� ������ ����� ��� ID� �, ��� �

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

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

�� �� �� ID� �� ���� ��� � ����. ��� �� ��

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

�� ��

″Audit policies″(Database Security Guide)

″The EXECUTE category for auditing SQL statements″(Database Security Guide)

″Storage and analysis of audit logs″(Database Security Guide)

�� ��

″CREATE AUDIT POLICY statement″(SQL Reference, Volume 2)

″AUDIT�″(SQL Reference, Volume 2)

��� �� �� ���

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

50 ��� ��

Page 65: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� ��� ��� ���� ������ �����. GRANT�� ��

� ��� ���, ��, PUBLIC �� � ��� �����, CREATE

TRUSTED CONTEXT �� ALTER TRUSTED CONTEXT�� ��� ���

���� ����� ��� � ����. �� ���� SESSION_USER ROLE

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

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

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

��. (��� �� � ��� �� ��� ������� ��� �� � �

���.)

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

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

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

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

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

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

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

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

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

��� , ���, MQTs(Materialized Query Tables), � SQL SQL ��

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

�� ��� � �� ����(�: �� ��)�� ����� DB2 �����

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

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

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

����.

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

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

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

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

�� ��

″Roles″(Database Security Guide)

�� ��

″CREATE ROLE statemetn″(SQL Reference, Volume 2)

� 6 � �� �� 51

Page 66: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

LBAC(Label-Based Access Control) ���� � � �� �

LBAC(Label-Based Access Control) �� �� ��� �� �� ��

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

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

LBAC ��� �� ����.

v ��� ALTER SECURITY LABEL COMPONENT��� ��� �� ��

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

v ��� ALTER SECURITY POLICY��� �� �� ��� � ����. �

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

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

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

���.

v GRANT SECURITY LABEL��� �� ��� �� ��� �� � �

��, REVOKE SECURITY LABEL��� �� ���� �� ��� �

�� � ����.

v GRANT EXEMPTION��� �� ��� ��� �� � ���, REVOKE

EXEMPTION��� �� ���� ��� ��� � ����.

�� ��

″Label-based access control (LBAC) overview″(Database Security Guide)

″LBAC security policies″(Database Security Guide)

″LBAC security label components overview″(Database Security Guide)

″LBAC security labels″(Database Security Guide)

″LBAC rule exemptions″(Database Security Guide)

52 ��� ��

Page 67: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 7 � �� ����

DB2 �� 9.5� �� ���� ���(time series), �� ��� � �

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

�� 9.5� �� ��� �� ����� � �� � ����.

LOB ��� ���� �� ��� ���

�� 9.5��� LOB �� ��� �� ���� �� � ��� ����

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

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

���� � ��� �����(� ��� LOB ��� ��) ���� ����

�. �� ��� LOB ��� � � �� � � ��� � ���� ��� �

����. ���� � ���� ��� LOB �� � � ��� �����

��.

�� �� 9.5 ����� ��� �� ��� ���� �� ��� ���

� LOB �� ��� � ����. ��� ��� LOB �� �� ���� �� �

�� � ��� ��� �� ���. �� 9.1 FixPack 1 ����� ���� IBM

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

���� �� ������ LOB �� �� � ����.

�� LOB �� � ��� �� �� �����.

v LOB �� � �� Embedded SQL ���� �� ���� �� ��� �

� ��� �����.

v ���� LOB �� ���� ��� ��� �� ��(UDF)�� �� ��� �

�� � ���.

z/OS� DB2 i5/OS� DB2��� �� �� ��� �� ����.

�� ��

″Progressive streaming with the IBM Data Server Driver for JDBC and

SQLJ″(Developing Java Applications)

© Copyright IBM Corp. 1993, 2007 53

Page 68: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

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

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

� ��� �� ���� �� ��� ����. �� ���� ��(��, �

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

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

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

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

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

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

�����.

�� ��� ��� �� � ���� RID_BIT() ROW CHANGE TOKEN

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

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

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

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

�.

SELECT, INSERT UPDATE�� ���� � ��� ROW CHANGE� ��

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

�� �� ����.

v ROW CHANGE TIMESTAMP ���� ��� �� ��� �� ��(��

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

v ROW CHANGE TOKEN ���� ��� �� ��� �� ��� ��� �

�� BIGNT(� ��) �� �� �����.

�� ��

″Optimistic locking″(Data Servers, Databases, and Database Objects Guide)

″Time-based update detection″(Data Servers, Databases, and Database Objects

Guide)

�� ��

″Optimistic locking overview″(Data Servers, Databases, and Database Objects

Guide)

54 ��� ��

Page 69: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� ��� �� ��� MDC � �� �� ��

��� ����(MDC) ���� ��� ��� ��� � �� ID(RID) �

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

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

8.2.2 �� ����� ��� ��� ��� � ��, �� ��� � �� ���

���� ��� �������. ���� ���� ��� �� �� MDC ��

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

�� 9.5 ��� ��� ���, �� 9.5 ��� ���� � ��� � �� ��

� � ���� ��� �� RID ��� �� �� ����.

�� 9.5��� RID �� �� ��� �� �� ��� � �� ��� �� �

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

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

�� �� ��� � �� ��� ����� ��� ���, RID �� �

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

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

� � RID ��� ��� ��� �� �� � �, ��� ��� �� ��

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

�, ���� �� ��� RID ��� � ���� �� �� ����.

� ��� ���� � �� ��� ����. �� DB2_MDC_ROLLOUT ���

�� ��(��� )� ��� � DEFER� ��� � ����. �� SET

CURRENT MDC ROLLOUT MODE�� ��� CURRENT MDC ROLLOUT

MODE �� ����� DEFERRED� ��� � ����. � ������ ���

� BLOCKS_PENDING_CLEANUP�� ��� ��� MDC �� �� ��

� � ����.

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

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

DB2_MDC_ROLLOUT� ��� ��� ��� DELETE���� � ��� �

����. ���, CURRENT MDC ROLLOUT MODE �� ����� ����

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

�� ��

″Optimization strategies for MDC tables″(Partitioning and Clustering Guide)

″Asynchronous index cleanup for MDC tables″(Data Servers, Databases, and

Database Objects Guide)

�� ��

� 7 � �� �� 55

Page 70: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″CURRENT MDC ROLLOUT MODE special register″(SQL Reference, Volume

1)

″SET CURRENT MDC ROLLOUT MODE statement″(SQL Reference, Volume

2)

″blocks_pending_cleanup - Pending cleanup rolled-out blocks monitor

element″(System Monitor Guide and Reference)

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

�� 9.5��� intra_parallel �� ��� ��� ��� �� � �� �

�� �����.

� ���� ��� ��� �� ���� �� ���� CREATE INDEX

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

�� ����(�: �� �� � ��� �� �)� ���� ��

���. � ��� intra_parallel �� ���� ��� � ���.

�� ��

″Parallelism and loading″(Data Movement Utilities Guide and Reference)

″Optimization strategies for intra-partition parallelism″(Partitioning and Clustering

Guide)

�� ��

″max_querydegree - Maximum query degree of parallelism configuration

parameter″(Data Servers, Databases, and Database Objects Guide)

″intra_parallel - Enable intra-partition parallelism configuration parameter″(Data

Servers, Databases, and Database Objects Guide)

OLAP � ��

��� � OLAP ��� ��� �� �� ���� � ���� !�� �

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

�� OLAP ��� �� �� � �� ���� �����.

v ��� � �� ��� ��� � ����. � LEAD, LAG, FIRST_VALUE

LAST_VALUE OLAP ��� �� �� �� � ��� �� �(���� �)

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

� �� �� �� �� ���� � ����. �� ��, OLAP �� �� ��

�� �� �� ��� ���� �, �� � OLAP ��� �� �� �

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

�� �� ���� �� ��� �� �� ��� �� 150� �� � ��� �

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

56 ��� ��

Page 71: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� � ��� ��� � ����. �� �� (NULL) �� ��� �� �

� �� ��� ���(smoothing) � ���.

v �� OLAP ��� ���� ���� �� ��� � ��� ����. �

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

��.

v OLAP ��� ���� �����. OLAP ��� � ��� ���� ���

�� ��� �� ���� �� � ��� �� OLAP ��� ���� �

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

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

� ���.

�� ��

″OLAP specifications″(SQL Reference, Volume 1)

�� ���� ��

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

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

v � SELECT�� �� � ��� ��� ��

v ORDER BY FETCH FIRST n ROWS ONLY � � ��� ��

v GROUP BY�� MIN MAX ��� �� ��

v � IN �� ��� �� ��(��� �� �� ����� ��� �� �

�� ��� ��� �� �� ���� ���)

�� ��

53 ���� � 7 � ��� ���

56 ���� �OLAP �� �

NO FILE SYSTEM CACHING ��� �� �� ��� �� ��� ��

�� 9.5�� ��� �� ���� ���� �, ���� ������ ��

�� �� ��� ��� � ���(CIO) ��� �����. CIO� ���� �

� ��� ����, �� ���(DIO) �� � � ���� �� �����.

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

�� ��� CIO DIO� ��� ��� ����. � ���� CPU ���

� ���� � ���� ������ ���� ��� � ����. CIO, DIO

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

����.

� 7 � �� �� 57

Page 72: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

FILE SYSTEM CACHING NO FILE SYSTEM CACHING ��� ���

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

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

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

� ����� �� 9.5 �� ���� �� �� ����� ��� ����.

�� �� � ��� ���� ����� ALTER BUFFERPOOL��

AUTOMATIC � � �� ���� ���� � ����� �� �� ��� �

���.

v � �� �� ���� ��� ���� �� CREATE TABLESPACE�� NO

FILE SYSTEM CACHING�� ��� ���� ��� ���.

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

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

�� ��

″Management of multiple database buffer pools″(Tuning Database Performance)

″Self-tuning memory″(Data Servers, Databases, and Database Objects Guide)

″File system caching configurations″(Data Servers, Databases, and Database

Objects Guide)

�� ���

″Creating table spaces″(Data Servers, Databases, and Database Objects Guide)

�� ��

″ALTER BUFFERPOOL statement″(SQL Reference, Volume 2)

″CREATE TABLESPACE statement″(SQL Reference, Volume 2)

DB2 Spatial Extender �� �� ��

DB2 Spatial Extender��� �� ��� �� �� ��� �� ����, � �

�� ��� �� ���� �� �����. DB2 Spatial Extender� �� ��

� �� ������.

�� ��, ��� ���, ��, �� �� ���� LOB ���� ���� �

��� �� �� ���� � � �� ��� � ����. �� LOB �

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

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

� �� ��� �� ��� � ��� � ����. �� ��, 9.5 �� �

���� ESRI ArcGIS� ��� � ��� �� ��� �� �� � ��� �

� �� ��� � 2� ��� �����. �� 9.5��� ��� LOB ���

���� ArcGIS� ���, �� �� 4� �� �����.

58 ��� ��

Page 73: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��

″The purpose of DB2 Spatial Extender″(Spatial Extender and Geodetic Data

Management Feature User’s Guide and Reference)

�� �� ��

�� 9.5��� REFRESH TABLE SET INTEGRITY�� ��� ��, ���

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

� ���� � MQT(Materialized Query Tables)� ����� � ���

�.

SET INTEGRITY REFRESH TABLE��� �� � ��� ���� �� �

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

�� ��

″EXPLAIN�″(SQL Reference, Volume 2)

″REFRESH TABLE�″(SQL Reference, Volume 2)

″SET INTEGRITY�″(Data Movement Utilities Guide and Reference)

″CURRENT EXPLAIN MODE special register″(SQL Reference, Volume 1)

″CURRENT EXPLAIN SNAPSHOT special register″(SQL Reference, Volume

1)

″EXPLAIN_STATEMENT table″(SQL Reference, Volume 1)

″Explain table″(SQL Reference, Volume 1)

� 7 � �� �� 59

Page 74: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

60 ��� ��

Page 75: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 8 � pureXML ����

�� 9.5� �� 9.1� �� ��� pureXML ��� ��� � �� XML �

�� ��� � XML ���� �� ���� ��� ��� ��� � �

�� ��� � ����.

�� 9.5� pureXML ��� �� ��� ��� � �� � ����.

�� ��

″pureXML overview″(pureXML Guide)

″Tutorial for pureXML″(pureXML Guide)

″XML input and output overview″(pureXML Guide)

�� ���

″Converting non-Unicode databases to Unicode″(Internationalization Guide)

XQuery �� ���� XML ��� ��� �� ��

��� XQuery� ��� ����, ��� ��� ��� �� �� XML ���

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

�� ��, DB2 ������� XML �� XML ��� ��� ��� ����

��� DB2 XQuery ��� ��� ��� ��� ��� �� �� ��� �

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

� ���� XML ���� �� ��� ���� �� XML ��� ��� � �

���.

DB2 XQuery ��� ��� XQuery �� ����� �� XML ��� ����

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

��. �� ���� XML ���� ��� ���, �� ��� ��� ���

XQuery ��� ��� ����, �� ��� XML ���� �� ��� �� �

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

DB2 XQuery ���� �� ���� ��� W3C ���� �� XQuery ��

� ��� ���. ���� XQuery XPath ��� ��(XDM)� �����

���. XDM� ��� XQuery� ��� ���� � � �� ��� ���

XML �� �� �� �� �� � �� �� � ����. XQuery ���

� ���(�� �) XDM� ����� ���� � � XDM� ������

���. XML ��� XML �� ��� XDM�� �����.

�� ��

© Copyright IBM Corp. 1993, 2007 61

Page 76: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″Use of updating expressions in a transform expression″(XQuery Reference)

��� pureXML� �� ���� �

�� 9.1� XML ���� �� ��� ��� "��� ���� ��, �� ��

� � ����� ��� XML ��� DB2 ��� ��� � ����.

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

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

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

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

�� �� �� �(�: CURSOR �� � �� � ��� ��� � �

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

�� ��

″Loading XML data″(Data Movement Utilities Guide and Reference)

�� ��

″Differences between the import and load utility″(Data Movement Utilities Guide

and Reference)

pureXML ������ ��� �� ��

pureXML ��� ��� ������. �� �� �� �� ����

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

��� ���� SQL/XML XQuery��� ��� , XML ���� ��

�� �, �� ��� ��, XML �� � � ��� �����.

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

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

v �� �� � �� ANDing�� XML ���� �� �� �� ��

�� ��� � ����.

v UNION ALL � �� ���� XML ���� �� ��� ��� � ��

��.

v �� ��� ���� �� �� � NLJOIN ��� ����.

��� �� ���� pureXML ��� �����.

�� ��

″Explain facility″(Tuning Database Performance)

62 ��� ��

Page 77: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ���� �� ��

XML �� �� �� �� �� �� �� ��� �� �� ��� ����

� � � ����.

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

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

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

VALIDATED �� ��� ACCORDING TO XMLSCHEMA�� ��� �� �

�� �� XML ���� ���(���) XML �� ��� � ��� �� �

� ��� � � ����.

�� � XML� �� ��� �� � �� �� BEFORE ���� ��� �

�� � ����.

�� ��

″Check constraints on XML columns″(pureXML Guide)

��� ��� XML ��� �� ��� �� �

��� �� � ��� �� ��� � ��� ��, �� XML ���� ��

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

��� XML �� ���� � �� XML ���� �� XML ��� ���

� � ������, ��� XML ��� �� �� ���� ��� � ��� �

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

�� XML ���� �� XML ��� � ��� � � BEFORE ���� �

XML� NEW AS �� ��� ��� SET��� XMLVALIDATE ��� �

����, �� NULL� ����� � XML �� ��� �� � ����.

XML ���� �� XML ��� ��� � � ������� ����� BEFORE

���� WHEN���� � � IS VALIDATED �� IS NOT VALIDATED

� ���(��� ACCORDING TO XMLSCHEMA�� ��� �� ��

� XML ��� ��) ��� ��� � ��� �� ���� � ����.

�� ��

″Trigger processing of XML data″(pureXML Guide)

XSLT ��� XML ���� � ���� �� ��

��� XSLTRANSFORM ��� ��� ������� �� XML ��� HTML,

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

� 8 � pureXML �� 63

Page 78: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

XSLT ��� XML ���� � ��� ���� � ���� �� ����, �

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

Extender�� ���� XSLT �� �����.

XSLTRANSFORM��� �� ��� ��� XML� � ��� ��� �

����. XML ��� �� �� ��� ����� XPath �� �� XSLT�

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

XSLTRANSFORM �� � ��� ��� XSLT ���� ��� �

���. � ��� � �, XML ���� �� ��� �� ��� ���, XSLT

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

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

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

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

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

�� ��

″Transforming with XSLT stylesheets″(pureXML Guide)

SQL/XML � XQuery ���� �� � �

SQL/XML XQuery� ��� ��� ����� ���� �����.

SQL� XQuery ���� ��� ���, �� �� SQL� XQuery ��

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

SQL�� ���� ��

v ���� XMLQuery �� ��, XMLExists �� XMLTable �� �

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

v ���� XMLTable �� ��� �� ��� �� ���.

XQuery�� SQL� ���� ��

v db2-fn:sqlquery ��� ��� WQuery ����� ���� SQL fullselect

� ��� � ����. ���� ��� XQuery ����� ��� SQL

fullselect� ���� XQuery ����� ��� ���� ��� � ����.

�� ��

″Constant and parameter marker pass ing to XMLEXISTS and

XMLQUERY″(pureXML Guide)

″Simple column name passing with XMLEXISTS, XMLQUERY, or

XMLTABLE″(pureXML Guide)

″Passing parameters from XQuery to SQL″(pureXML Guide)

�� ��

64 ��� ��

Page 79: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″sqlquery function″(XQuery Reference)

����� ������� XML ��� �� ��

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

9.5 �� ��� �, DB2 ������ �� �� �� XML ���� ��

�� ���� ���� ��� pureXML� ��� UTF-8 � �������

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

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

� ���� �������� XML ���� ������(�: BIT DATA, BLOB

�� XML). �� ��� ���� ���� ����, ������� � ����

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

��� enable_xmlchar �� ���� ��� SQL ��� ���� �����

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

�� � �� ��� ��� ��� ����. enable_xmlchar� ���� ���

� �� ��� �� �� XML ���� ���� � � XML �� ��

� �� ��� � � ��� �� � ����. ���� enable_xmlchar� ��

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

���� XML ������� �� ������� �� �� ��� ��� �

�� � ����.

�� ��

″Using XML in a non-Unicode database″(pureXML Guide)

� XML ��� �� ��� � �� �� �� �� ��

�� ��� � ��� 32KB ��� XML ���� �� �����. XML �

� ��� ����� �� XML �� ��� �� XML ��� ��

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

XML ��� � ���� � �� � � ���� ��� �� �� �

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

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

� XML ��� ��� ��� � ���, � ��� ��� �� ���

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

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

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

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

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

� 8 � pureXML �� 65

Page 80: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

CREATE TABLE ALTER TABLE�� INLINE LENGTH � � ����

�� ���� �� ��� XML ��� �� �� �� �����. 32KB� �

� XML ��� �� �� � ���� ���� XML �� �� ����

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

�� ��

″XML storage overview″(pureXML Guide)

″XML base table row storage″(pureXML Guide)

XML ��� �� ��� ��� �� XML ��� �� ��

XML ��� ���� �� XML ���� ��� ��� ��� XML �� �

� ��� XML �� ���� � ��� ���� �� ���� � � � �

���.

UPDATE XMLSCHEMA � XSR_UPDATE �� ���� ���� �

� �� XML ���� ��� � ����. � ��� �� ��, �� ����

� � �� ��� ����� �� ��� ��� XML ��� �� �� �

�� XML ��� ��� ���� � �� � ��� ���� ��� � ���

��.

XML ��� � �� � � �� �� ��� � ���� �� ���

� �� ���, ��� ��� ��� � � XML ��� �� ���� �� ��

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

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

� �����.

�� ��

″Scenario: Evolving an XML schema″(pureXML Guide)

�� ���

″Evolving an XML schema″(pureXML Guide)

�� ��

″Compatibility requirements for evolving an XML schema″(pureXML Guide)

XQuery ���� �� ��� �

XQuery �� fn:upper-case fn:lower-case� ��� � ��� ��� ���

� ����� �� � ����. ���� fn:upper-case fn:lower-case� ��

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

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

66 ��� ��

Page 81: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��, ����� �� i �� I� ����� ��� � ��� �� ��

����. ��� ���(tr_TR)� ���� fn:upper-case� �� i� �� �� ��

��� ��� I� �����. �� � � ���. ��� ���� ���

� fn:lower-case� �� I� �� � ��� ��� i� �����. �� � �

ı���. ��� ���� � �, fn:upper-case� �� i� I� ����

fn:lower-case� �� I� i� �����.

�� ��

″lower-case function″(XQuery Reference)

″upper-case function″(XQuery Reference)

XQuery �� ���� ��, �� � �� ��

XQuery �� �� ���� �� ��� ��� ��, ��, dateTime �

��� ��� � � ��� ��� � ����. �� XQuery ��� � ���

��� �� ��� ��� ���� ���� ��, �� �� dateTime ��

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

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

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

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

�� ��

″Functions by category″(XQuery Reference)

XQuery ��� ��� ���� � �� ��� �

XQuery ��� ��� ��� ����� XQuery ��� � � �� �� ��

� ���� � ����.

��� ��� ���� XPath ��� ��� ��� ��� �� � ����. �

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

� � ����.

�� ��

″Castable expressions″(XQuery Reference)

�� � ��� �� �

��� � �� ��� �� ���� XML� ���� � ��� � ���

�. �� ���� �� SQL/XML � ���� � �� ��� � ���

�� � ��� ISO SQL/XML 2006�� ��� � �� ����� ��

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

� 8 � pureXML �� 67

Page 82: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

XMLGROUP

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

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

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

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

XMLROW

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

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

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

XSLTRANSFORM

� ��� XML ��� HTML, �� ��� �� ���� �� ��� ��

� � � ��� XML� �����. XSLT ��� XML ���� � �

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

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

�� ��

″XMLROW scalar function″(SQL Reference, Volume 1)

″XMLGROUP aggregate function″(SQL Reference, Volume 1)

″XSLTRANSFORM scalar function″(pureXML Guide)

������ �� XML ��� � � �� ���� �� � � �� �

� � ��� ��� pureXML� �� ��� ���� �� �� �� XML

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

� �� ��

��� XML ��� ������ �� �� � � ��� � �� XML ���

��� ��� ��� �� ��� �� �����. 9.5 �� ��� �, ��

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

�� ��� ��� �� �� ���� ���� ����� �!���. ���

���� �� ���� ��� � ��� �� �� XML �� ���(shredding)

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

� ���� ��

9.5 �� �����, XML ��� ��� �� �� ���� �� ��� �

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

(XSR)� �� � ��� ��� ��� � ����. ��� XML ��� ��

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

68 ��� ��

Page 83: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

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

����.

�� ��

″Anno ta t ed XML schema decompos i t i on and recu r s ive XML

documents″(pureXML Guide)

�� ��

″db2-xdb:rowSetOperationOrder decomposition annotation″(pureXML Guide)

″db2-xdb:order decomposition annotation″(pureXML Guide)

� 8 � pureXML �� 69

Page 84: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

70 ��� ��

Page 85: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 9 � ������ ��� ����

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

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

��� �����.

�� 9.5� ���� ��� �� ��� ��� � �� � ���

�.

ID �� �� ��

�� � ID� ��� �� DBMS �� ���� � �� � ��� � �

���. �� ID� �� ��� ��� ��� DDL(Data Definition Language)�

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

�� �� �� ID� ��� �� ��� ����.

� 3. �� 9.1 9.5� ID � ��

ID �� �� 9.1��� ��(��) �� 9.5��� ��(��)

�� 18 128

�� � ID(Authid) 30 128

� 30 128

�� � 18 128

�� 18 128

������ �� �� 18 128

��� ��� 18 128

�� 30 128

��� 8 128

��� 30 128

�� �� 18 128

SQL �(FUNCPATH BIND �

CURRENT PATH �� �

���� ��)

254 2048

�� 18 128

��� 18 128

��� �� � 18 128

SQLDA��� � ��� �� � (UDT)� ��� ��� 8 ���, UDT� �

�� 18 ���, � ��� 30 ��� ���� �� ��� 128 ��� ���

�Embedded SQL�� ����.

© Copyright IBM Corp. 1993, 2007 71

Page 86: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

128 �� ��� ������ �� �� �� ��� � ��� ��� ���

� � ���. ���� �� ID� ���� � ���� � ���� ����

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

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

samples/admin_scripts�� ��� �� �� checkv9limits� ����. � ��� �

�� ��� �� 9.5� ��� ���� �������� ID� �� � ���

�.

�� ��

″SQL and XML limits″(Data Servers, Databases, and Database Objects Guide)

PHP ��� DB2 �� ��(Linux, AIX � Windows)�� 9.5�� DB2 Data Server Client(�� � DB2 Client)�� PHP(Hypertext

Preprocessor) ��� ���� �� ��� ����� ��� ���. �� �� 9.5

�� � �� PDO_IBM� ��� �� 9.1� PHP ��� ����.

��� PDO_IBM �� IBM_DB2 ���� � ��� ��� ��, PHP �

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

�� PHP ���� � ���� ���� �� � ����. �� �� ����

�� ����.

PDO_IBM

� ��� ���� PDO(PHP Database Objects) ����� �� DB2 �

������ ���� � ����. PDO�� ���� ���� ���� �

� � ����� ����. � ���� � PDO� ��� � ��

ODBC ��� ��� ��� ��� ���. PDO_IBM� ��� �

��� �� �� DB2 ������ �� �� � �� �� TCP/IP

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

IBM_DB2

� ����� DB2 CLI(Call Level Interface) ���� ��� DB2

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

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

��� DB2 ��� ��� �����. IBM_DB2 ����� API(Application

Programming Interface)� ������ ����� �� ���� ���

��� �����.

DB2 �� �� �� �� �� ��� PHP ��� ����.

v AIX

v Linux on x86

v Linux on AMD64 Linux on EM64T

72 ��� ��

Page 87: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v Linux on POWER™(PowerPC® pSeries®)

v Windows on x86

�� ��

″Introduction to PHP application development for″(Getting Started with Database

Application Development)

Ruby on Rails � �� �� DB2 �� ��(Linux, AIX �

Windows)Ruby Ruby on Rails ���� � �� DB2 � ���� � ���

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

Rails ���(IBM_DB) Ruby ���� IBM�� ����, �� DB2 �

�� ��(Linux, UNIX Windows� DB2 ������, DB2 Connect� ���

� i5/OS� DB2 DB2 Connect� ���� z/OS� DB2 ��)�� �����.

IBM� Ruby on Rails� �� ��� ���� ��� ����.

Rails �� �� ��� ��� ��� ��� � ��� IBM DB2 ��� ��

�� ��� ��� ����. DB2 ��� ��� IBM_DB Rails ��� Ruby

���� ���� pureXML ���� � � ����. �� Rails �� �

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

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

��� ���� �� ����� ��� DB2 Ruby ��� Rails

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

v AIX(APAR IZ01456� ��� �)

v x86� Linux

v AMD64� Linux EM64T� Linux

v POWER� Linux(PowerPC pSeries)

v x86� Windows

DB2 Ruby ��� Rails ���� IBM ������� RubyForge Rails ��

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

�� ��

″The IBM_DB Ruby driver and Rails adapter″(Getting Started with Database

Application Development)

� 9 � ���� � �� 73

Page 88: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

Perl ������ pureXML � �� ��� �� �

DB2 Perl ���� ��� � �� ��� � �� �, pureXML �� �

� �� ��� ��� ��� ������. �� ��� ���� DB2 Perl

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

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

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

pureXML ��

pureXML ���� XML ��� �� DB2 ������� ��� � ��

��. XML ���� ������� ��� � pureXML �� ���� �

�� ���� ���, ���� ��� �� XML ��� �� ��

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

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

DB2 Perl ���� XML �� ���� ��� �� ��, BLOB

�� ��� ��� ���� ���� � ����.

�� �� �� �� ��

� ����� ���� DB2 ������ �� � �� ��

��� �����. �� Perl ���� �� DB2 ������� ��

��� �� �� �� � ��� ��� ����. ��� �� �,

���� � ���� ��� ����� � ��� �� ���

� ����.

�� DB2 Perl ���� ����� ��� �� ��� http://www.ibm.com/

software/data/db2/perl/ � ����� � ����.

�� ��

″Programming Considerations for Perl″(Developing Perl and PHP Applications)

IBM Database Add-Ins for Visual Studio 2005 ��

IBM Database Add-Ins for Visual Studio 2005 ��� �� ���� , �

����� ��� �� � �� ��� ���� �� 9.5�� �� ��

� ������.

��� �� ����.

v IBM Database Add-Ins for Visual Studio 2005�� IBM Informix® Dynamic

Server, IBM UniData® IBM UniVerse®� �����. �� �� ���� DB2,

Informix, UniData �� UniVerse ��� ��� ��� � �, �� Add-ins

��� ��� � ����. � .NET ���� �� �� IBM ��� ���

���� � ����.

74 ��� ��

Page 89: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

– Linux, UNIX Windows� DB2 Universal Database™ �� 8.1 ��

– z/OS �� OS/390®� DB2 Universal Database �� 6 7

– z/OS� DB2 Universal Database �� 8 ��

– iSeries(OS/400® �� 5, ��� 1 ��)� DB2 Universal Database

– IDS �� 11.1

– UniData 7.1 ��

– UniVerse 10.2 ��

��� �� ��� ��� � � ���� ��� ��� ��� �� ���

�. �� ��, Informix Dynamic Server, UniData UniVerse ��� ����

� XML ��� � � ���� ����.

v ��� IBM Function Designer��� ��� ��� ��� � �� ���

��� �����. � �� �� � ��� �� �� ��� � ����.

– �� � �

– �� � �, ��� �� ��� �� ��

– �� ��

– �� ��� �� �� � �� �� �

v DB2 ��� �� ��� ��� ����, �� � � �� ������ ��

� ��� � ����. ��� P(��) L(��) �� �� � �

��� �� ������� �� � � �� � ����.

v Add-ins� ��� ����� ���� �� ������ � ���� �

���(SQL SELECT DML�, XQuery ��� �� �� ��� ��)

� �� � ����. �� Add-ins� ��� � ��� � ���� ���

� � ���� � ��� �� ��� � ����.

v XML ��� �� �� ��� �����.

– �� �� IBM XML Schema Mapping Designer�� XML ���� ��

�� ���

- ��� �� � ��� ��� XML ��� ��� ��� � �

- �� �� �� Server Explorer��� �� ���� ���� �� ��

��

- � ��� ��� �� � � ��� XML ���� ����� �

� � �� ���

– XML ��� ����� ����� �� XML ���� � ��� ��

��

– ����� � �� � XML ���� ��� � � ��

– XML ���� � �� �� �� ��� �

� 9 � ���� � �� 75

Page 90: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

– ����� � �� � XSL �� � ��

�� ��

″DB2 integration in Visual Studio″(Developing ADO.NET and OLE DB

Applications)

�� ��� SQL� � ��� � �� ��

�� 9.5�� �� ��� �� ������, � ��� SQL�� �� ���

��� � �� �� ��� ��� �����. ��� ��� ���� ����

� �� �, �� ��� �� �(�� ��)�� �� SQL� ���

� ���� ��� � ����.

�� ��� ��� ���� ��� �� ��� ��� �� �(�:

��� ��)�� �� ��� �� �� �� ���� ��� ���. �� �

����� ������ ���� �� SQL�(�: ��� � ���� ��)

�� �� ��� ���� � ����.

�� ��� ��������� ��� ��� �� ��� ��� ��� ���

� ���� ���� �� SQL ���� ���� ��� �� ��� ���.

�� ��� ��� ��� ��� ���, ��� ���� ��� ���� �

�� �� ���� ��� �� ��� ���. ��� ��� �� �, GRANT

REVOKE�� �� �� ��� �� ���� ��� � ����.

�� ��� � � �� ��� ��� �� ��� ����, � ����

���� � �����. �� �� ���� �� DBA �� ���� �� ��

�� ��� ���� �� ���� � ���� ��� �����.

�� 9.5��� �� �� �� ��� �����. � �� ��� �� �

���� ��� �� ��� ��� �� �����. �� �� �� ��� �

�� ��� ������� �� �� ��� �� SQL��� �� �����.

��� � ���� �� �� �� ��� �� �� ��� ��� ���

�.

�� ��

″ID″(SQL Reference, Volume 1)

″CREATE VARIABLE statement″(SQL Reference, Volume 2)

″GRANT (Global Variable Privileges) statement″(SQL Reference, Volume 2)

″REVOKE (Global Variable Privileges) statement″(SQL Reference, Volume 2)

″Global variables″(SQL Reference, Volume 1)

76 ��� ��

Page 91: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� ��� � �� ���� SET ��

�� 9.5�� ��� ��, ��, �� �� �� ��� ��� ��,

���� � ���� ���� �� ��� �� ��� ���� SET��

����. SQL�� �� ���� ����, � � dynamic ��� ���� �

���.

SET �� ���� �� ��� �����. �� 9.5 ����, � ���

�� ��, ���, SQL ��, SQL ��, SQL ��� UPDATE��� �

�����.

�� SET �� ��� ���� � ���(embedded)��� ����� �

��, �� ��� � �� ����� ��� �� SET �� ��� ����

SQL �� ���� �� �� ���(CLP)�� �����. �� �

�, SQL �� ����� �� �� SET �� ��(�: SET (a, b) = (1,

2))� ��� � ����.

� ����� ��� ��� ����(prep) ��� �� ���� ���� �

�� ��� ���. �� 9.5 ���� SQL ���� �� ���� ��� �

�� ����� �, �� ��� �� SELECT INTO�� ���� ����.

SELECT c0, c1 INTO :hv1, :hv2 FROM ...

��� SELECT INTO�� � SQL��� ���� �� ��� � ��

�. ��� SELECT�� ����(prep) ��� �� ���� ���� �� ��

�, ��� �� �� ���� ����.

DECLARE vsql VARCHAR(254)DECLARE c0 CURSOR FOR vstmtDECLARE vstmt STATEMENT

SET vsql = ’select statement’PREPARE vstmt FROM vsqlOPEN c0FETCH c0 INTO var

��� �� �� �����.

SET vsql = ’SET (?,?,?) = (select statement)’PREPARE vstmt FROM vsqlEXECUTE vstmt INTO a,b,c USING x,y,z

�� ��

″SET variable statement″(SQL Reference, Volume 2)

� 9 � ���� � �� 77

Page 92: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��� ������ ��� ��

�� 9.5��� ARRAY � ��� � � �����. ��� �� ���

���� �� � � �� �� ���� ��� ��� � ���. �

���� �� ��� ���� � ������ ��� ���� ��

���� ���� ��� � ����.

��� ��� ���� �� ��� ��� ��� �� ���

� ���� �� ��� ���� �� SQL ���� �� ��� �� �

� � � ����. SQL ����� �� ��� ��� ��� ��

�� ��� �� �����.

�� 9.5� �� ��� � ���� �� �� ��� � ����.

v ��� ��� � ��� ��� � � ����. �� ��, CREATE TYPE INT10

AS INTEGER ARRAY[10]� �� 10 ���� �� � � �����.

v �� ��� ���� � �� �� � � �� ���� ��

��.

v �� �� � ���. �� � �� ��� �� ���"�, �

��, � �� ��� ����.

v JDBC CLI ���� SQL Java �� ��� ���� ���

�����.

v ��� ��� ����(�� �� ��� �� �), �� SQL ���

���� ��� ����� �� ��� �#��.

v �� ����� ��� �� ���� ���� �����.

�� ��

″User-defined types″(SQL Reference, Volume 1)

″CREATE TYPE (Array) statement″(SQL Reference, Volume 2)

10 �� ��� ��� ���� 10 ���� ��� � �� ��

�� 9.5��� 10� � ��� ��� � DECFLOAT� ����, �� ���

10� �� ��� ���� ���� (�: �� ���� )�� �����.

10� ���� �� ���� ���� �� � ��� ��� � (REAL

DOUBLE)� �� �� ���� � ��� ����. DECFLOAT�

DECIMAL� ���� FLOAT� ��� ��� ��� ��� ����� ��

���� �� ���� ����. �� ��, $0.70� �� �� �� 5%� �

�� ��� � � ��� �� �� REAL� ��� � 0.734999987483025�

DECFLOAT(16)� ��� � 0.7350� ���.

78 ��� ��

Page 93: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� 9.5��� � IBM POWER6™ ���� DECFLOAT� �����. IBM

Power 6 DB2 �� 9.5��� ��� �� � ��� �� ��� ���

decfloat ���� ���� �����. �� 9.5� IEEE ���� ��� 16��

34�� 10� � ��� ��� �����. �� ���� � ��� ��

�, � ��� ����.

� 4. ���� 10� � ��� ��� ���, � ��

���(���) ��(��) ��

16 64 -9.999999999999999 x 10384�� -1 x 10-383�� :

1 x 10-383�� 9.999999999999999 x 10384��

34 128 -9.999999999999999999999999999999999 x 106144�� -1 x 10-6143�� :

1 x 10-6143�� 9.999999999999999999999999999999999 x 106144��

� ��� � � �� � IEEE �� ��� �, � ROUND_HALF_EVEN,

ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING ROUND_FLOOR

���. � ������ �� ��� decflt_rounding� �� ��� �� ��

� � ����.

�� ��

″Numbers″(SQL Reference, Volume 1)

″COMPARE_DECFLOAT scalar function″(SQL Reference, Volume 1)

″DECFLOAT scalar function″(SQL Reference, Volume 1)

″NORMALIZE_ DECFLOAT scalar function″(SQL Reference, Volume 1)

″QUANTIZE scalar function″(SQL Reference, Volume 1)

″TOTALORDER scalar function″(SQL Reference, Volume 1)

″decflt_rounding - Decimal floating point rounding configuration parameter″(Data

Servers, Databases, and Database Objects Guide)

JDBC � SQLJ � ����

�� 9.5�� IBM Data Server Driver for JDBC and SQLJ� � ��� �

���.

�� 9.5��� IBM Data Server Driver for JDBC and SQLJ� � �� ��(JDBC

3.0 ��� �� �� ��� ���� �� JDBC 4.0 �� �� ��� �

�� ���� ��)� �� �����. �� ���� ��� ��� �����

JAR �� �� ��� �� ��� ����.

� 5. IBM Data Server Driver for JDBC and SQLJ ���

���� ��� �� JDBC ��� � ��� Java� SDK� � �

db2jcc.jar JDBC 3.0 �� �� 1.4.2

db2jcc4.jar JDBC 4.0 �� �� 6

� 9 � ���� � �� 79

Page 94: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� 9.5� JDBC SQLJ �� ��� �� ����� � �� � ���

�.

JDBC 2.0 � JDBC 3.0 �� ��

IBM Data Server Driver for JDBC and SQLJ �� 3.50��� JDBC 3.0 ��

� ��� ���� � ��� �����.

���� �� ��

� ��� ��� IBM Data Server Driver for JDBC and SQLJ���. ���

���� �� 3.50��� java.sql.DatabaseMetaData.getDriverName ��� IBM

DB2 JDBC Universal Driver Architecture� �����.

��� ��� � �� �� ��

Linux, UNIX Windows� DB2 ������, Cloudscape �� IDS(Informix

Dynamic Server) ��� �� ���� ���� ��� ��� ����. ���,

�� �� ������ ��� ��� CLASSPATH� db2jcc_license_*.jar ��

� ����� ��� ���.

�� DB2 Connect ������ ��� ����.

runJDBCBinder ��� ���� DB2Binder ���� ���

IBM Data Server Driver for JDBC and SQLJ� �� ���� IBM Data Server

Driver for JDBC and SQLJ� �� ������ ���� ���� DB2 ���

� DB2Binder � ����� �� ������. runJDBCBinder ���

�� ���� ���� API(Application Programming Interface)���.

runJDBCBinder ��� �� �� ���� �� BIND � ����.

v action(add|replace|drop), z/OS� DB2�� ��(drop)� ��

v blocking(all|no|unambig)

v dbprotocol(drda|private), z/OS� DB2�� dbprotocol ��

v keepdynamic(no|yes)

v owner

v reopt(none|always|once|auto)

v size

v optprofile, Linux, UNIX Windows� DB2 �������� optprofile ��

�� runJDBCBinder� �� �� �����. �� ��� � � �� ��

�� ���� �� �� ��(drop)� �� JDBC ��� ��� �� ��

���.

80 ��� ��

Page 95: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2Binder ��� ��

� ��: DB2Binder ������� ��� � �� �����.

-action (drop)

�� IBM Data Server Driver for JDBC and SQLJ ���� ���� �

���.

-size (n)

� � �� �� �� ���� �� �� ��(drop)� �� IBM

Data Server Driver for JDBC and SQLJ ���� �� �����.

-optprofile

�� CURRENT OPTIMIZATION PROFILE �� ����� ���� �

� ��� IBM Data Server Driver for JDBC and SQLJ ���� �� �

� � ��� ���� �� ���� �����.

� �� ��: �� ������ DB2Binder ����� �� �� � 0� ���

���. DB2Binder ����� DB2Binder ��� �� � ��� ���� �

����. ��� ���� �� �, ��� �� ��� ��� ����.

XML ��� � ��� ��

���� �� securityMechanism � ���

ENCRYPTED_USER_AND_DATA_SECURITY ��

ENCRYPTED_USER_PASSWORD_AND_DATA_SECURITY� ���� IBM Data

Server Driver for JDBC and SQLJ � 4 ���� �� XML ���� ���

���� �����.

��� ���� ��

IBM Data Server Driver for JDBC and SQLJ��� Linux, UNIX Windows�

DB2 ������� �� �� z/OS� DB2� �� ��� �� LOB� ��

� ����� �����. ���� � ����� �����.

DatabaseMetaData ��� � ID ��

�� DatabaseMetaData ��� 128 �� �� ID� �����.

v getMaxColumnNameLength

v getMaxCursorNameLength

v getMaxSchemaNameLength

��� �� �� ��

Connection �� DataSource � ��� traceLevel� �� ��� �

TRACE_TRACEPOINTS� ���� �� � ��� ������ �����.

� 9 � ���� � �� 81

Page 96: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

TRACE_TRACEPOINTS �� ���� ���� �� � ��� ��� ���

� LogWriter� ����. � traceLevel �� �, OR ��� �� � ��

� � TRACE_TRACEPOINTS� ��� � ����.

��� �� �� ��� ResultSet � DatabaseMetaData ��

��

�� �� JDBC 2.0 java.sql.ResultSet ��� �����.

ResultSet.insertRow

�� �� ��� ResultSet �� ��� �����.

ResultSet.moveToInsertRow

��� ResultSet ��� �� ��� ����.

ResultSet.moveToCurrentRow

�� �� �� ��� ResultSet ��� �� �� �� ��� ��

��.

ResultSet.rowInserted

ResultSet ��� �� �� ������ �����.

�� �� JDBC 2.0 java.sql.DatabaseMetaData ��� �����.

DatabaseMetaData.ownInsertsAreVisible

ResultSet ��� �� �� ��� ���� �� ResultSet� �

���� �����.

DatabaseMetaData.othersInsertsAreVisible

� ���� �� � ResultSet ��� �� �� ��� �

��� �� ��� ResultSet� ����� �����.

DatabaseMetaData.insertsAreDetected

ResultSet ���� ��� �� ��� � ��� �����.

� ��

�� 9.5��� ��� �� ���� �� �� �� ���� �����.

JDBC� �� �� ���� ���� ����� �� �� �� ���

� �� ��� �� �����. ��� IBM Data Server Driver for JDBC and

SQLJ��� IBM Data Server Driver for JDBC and SQLJ �� ����

com.ibm.db2.jcc.DB2Array� �����.

�� ���� �� �� ���� ��� �� � ����.

v java.lang.Object� �, DB2Array.getArray �� ��

v java.sql.ResultSet� �, DB2Array.getResultSet �� ��

82 ��� ��

Page 97: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ���� �� �� ���� ��� � ����.

v PreparedStatement.setArray �� ��

v PreparedStatement.setObject �� ��

10� �� �� ��� � ��

�� 9.5��� 10� � ��� ���� ���� � �� DECFLOAT SQL �

� �����. �� IBM Data Server Driver for JDBC and SQLJ� ����

���� � �� 9.5� �������� 10� � ��� ���� �� �

���.

Linux, UNIX Windows� DB2 ��������� CURRENT DECFLOAT

ROUNDING MODE �� ����� ��� 10� �� 10� � ��� �� �

��� ��� ��� �� �����. �� ����� �� ���� �� ��

�, decimalRoundingMode Connection �� DataSource � ��� ��� �

� ����� ��� � ����.

����� ��� �� �� ��� ��� DNS(Domain NameSystem) ��

����� ����� � Linux, UNIX Windows� DB2 ������ �� �

� � �� �� ��� ���� JNDI ��� �� DNS� ��� � ����.

DNS ��� � IP ��� ��� � ����. ����� ����� �, 1� �

�� ��, 2� ��� ��� � � ��� ��� � ����. JNDI� ����

�� �, IBM Data Server Driver for JDBC and SQLJ��� DNS ��� ��

� ����� ����� �� ��� �����.

DriverManager ��� �� �� ��(connection concentrator)� Sysplex ���� �� �� ��

IBM Data Server Driver for JDBC and SQLJ� �� ������, DataSource

������ ��� �� ��(connection concentrator) Sysplex �� �

�� ��� ��� � ����. �� DriverManager ������ ��� ��

� ��� ��� � ����.

��� ���� �� setXXXStream �� ��

� ����� setAsciiStream, setBinaryStream �� setCharacterStream �� �

�� length ���� -1� ��� � ����. ��� �� �� ���� ��

��� IBM Data Server Driver for JDBC and SQLJ�� ���� �����.

� 9 � ���� � �� 83

Page 98: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

XML ��� ����� Java ������ �� ��

DB2Connection.updateDB2XmlSchema ���� ��� XML ���� �� XML

���� ���� �����. DB2Connection.updateDB2XmlSchema� ���

SYSPROC.XSR_UPDATE �� ���� �� ��� �����.

Reader � InputStream ���� ��

PreparedStatement.setObject �� ��

PreparedStatement.setObject��, CLOB �� XML �� ��� �� ����

��� � � Reader� � ����. BLOB �� XML �� ��� �� ��

�� ��� � � InputStream� � ����. ������ ���� ����� �

��� ������ ����� ��� ���� ������ ��� ����.

�� �� ��

IBM Data Server Driver for JDBC and SQLJ�� ��� ��� Connection

DataSource � ��� ����.

v � � ��� Connection DataSource � ��� JDBC �� SQLJ �

� � �� ���� �� ��� ��� ��� � ����.

optimizationProfile

SQLJ �� JDBC �� � ��� �� ���� �����.

optimizationProfileToFlush

�� ��� ���� ��� �� ���� �����.

v currentDegree property

SQL� ��� �� � �� �� ��� ���� CURRENT DEGREE

�� ����� �����.

v queryBlockSize property

������ ���� ��� ��� ���� �� �� ��� �����.

javax_jcc.jar �� �

db2jcc_javax.jar ��� �� IBM Data Server Driver for JDBC and SQLJ� �

�� ����. ��� IBM Data Server Driver for JDBC and SQLJ� CLASSPATH

� ��� db2jcc_javax.jar ��� ����� ��� ���.

��� �� ��

�� 9.5��� �� ��� ����, � ��� ���� �� �� �� �

� � ���� �� �� �� �� �� ���� �� SQL�� ��� ���

84 ��� ��

Page 99: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

���� � ��� � �� �����. IBM Data Server Driver for JDBC and

SQLJ��� �� ��� ��� �� ��� �����.

DB2Connection.prepareDB2OptimisticLockingQuery

�� �� ��� � � �� PreparedStatement ��� ��

��.

DB2Statement.executeDB2OptimisticLockingQuery

SELECT�� ���� ��� �� �� �� ����� ���.

DB2ResultSetMetaData.getDB2OptimisticLockingColumns

�� �� �� ResultSet�� �� ����� �� ��� �����.

DB2ResultSet.getDB2RowChangeToken

�� ��� �� �� �� �� � � �� �����.

DB2ResultSet.getDB2RID

�� ��� �� �� �� �� RID � �� �����.

DB2ResultSet.getDB2RIDType

RID �� �� ��� � � �����.

�� �� ��

Linux, UNIX Windows� DB2 ������� �� IBM Data Server Driver

for JDBC and SQLJ � 4 ��� �� 9.1 �� ������� �� ��� �

�� �����.

javax.transaction.xa.XAResource.setTransactionTimeout

XAResource ���� �� �� ���� �� �����.

javax.transaction.xa.XAResource.getTransactionTimeout

XAResource ���� �� �� ���� �� �����.

JDBC 3.0 �� ��

�� JDBC 3.0 ��� �����.

ResultSet.updateBlob

�� ��� � ���� SQL BLOB ��� � � �� �����.

ResultSet.updateClob

�� ��� � ���� SQL CLOB ��� � � �� �����.

� 9 � ���� � �� 85

Page 100: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��� �� ��

IBM Data Server Driver for JDBC and SQLJ � 4 ������

PooledConnection ��� �� �� ��� �����. �� ��

PooledConnection ��� � �� ��� ��� ��� ����� ��

� ��� ����.

ConnectionPoolDataSource� maxStatements � ��� ��� �� �� �

�� �� �����. maxStatements� PooledConnection ��� �� �

� ���� ��� �� �� ��� �� �� �����.

� �� �� ��� �

�� ���� �� ��� � ��� �����.

v �� ���� �� ��� ���� �����. java.sql.SQLException.getMessage

java.sql.SQLWarning.getMessage� �� �� ��� SQLCODE SQLSTATE

� �����. IBM Data Server Driver for JDBC and SQLJ� � ���

� ��� ���� ���� ��� �����.

v SQLSTATE� �(NULL) � �� �����. IBM Data Server Driver for

JDBC and SQLJ� �� �����, ��� �� ������ ���� 0

SQLCODE �(NULL)� �� SQLSTATE� ��� � ���� ��

��� �����. ��� �� ���� ���� �� �� SQLSTATE

��� ��� � ����.

Informix Dynamic Server ������ �� ��

IBM Data Server Driver for JDBC and SQLJ� ��� IDS(Informix Dynamic

Server) ������ ��� ���� � ����.

JDBC 4.0 �� ��

IBM Data Server Driver for JDBC and SQLJ �� 4.0�� �� JDBC 4.0

� ��� �����. �� ��� ����� Java� SDK �� 6� ����.

���� �� ��

� JDBC SQLJ ��� ��� IBM Data Server Driver for JDBC and SQLJ

���. java.sql.DatabaseMetaData.getDriverName ��� IBM DB2 JDBC Universal

Driver Architecture �� � ��� �����.

JDBC 4.0 ��� � �� ��

JDBC SQLJ ��� �� JDBC 4.0 ����� ���� ROWID �� XML

��� ���� ���� ����.

86 ��� ��

Page 101: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v RowId. IBM Data Server Driver for JDBC and SQLJ �� �

com.ibm.db2.jcc.DB2Types.ROWID ��� com.ibm.db2.jcc.DB2RowId� �

��� ����.

v SQLXML. IBM Data Server Driver for JDBC and SQLJ �� �

com.ibm.db2.jcc.DB2Types.DB2Xml ��� com.ibm.db2.jcc.DB2Xml� �

��� ����.

JDBC 4.0 �� ��

�� JDBC 4.0 ��� �����.

java.sql.Array.free

�� ��� �� �� �� ��� �� �����.

java.sql.Blob.free

BLOB ��� �� �� �� ��� �� �����.

java.sql.Blob.getBinaryStream

BLOB ���� �� ��� �� ����.

java.sql.CallableStatement.getRowId

Rowld �� SQL ROWID ��� �� ����.

java.sql.CallableStatement.getSQLXML

SQLXML �� SQL XML ��� �� ����.

java.sql.Clob.free

CLOB ��� �� �� �� ��� �� �����.

java.sql.Clob.getCharacterStream

CLOB ���� �� ��� �� ����. � ��� ��� �

���� �� 2GB� ��� �� �����.

java.sql.Connection.createBlob

BLOB ��� ����.

java.sql.Connection.createClob

CLOB ��� ����.

java.sql.Connection.createSQLXML

SQLXML ��� ����.

java.sql.Connection.getClientInfo

IBM Data Server Driver for JDBC and SQLJ�� ���� ����� �

�� � ��� �����. � � ��� �� ����.

v ApplicationName

v ClientAccountingInformation

v ClientHostname

� 9 � ���� � �� 87

Page 102: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v ClientUser

Connection.getClientInfo� �� ���� �� �� IBM Data Server

Driver for JDBC and SQLJ �� ��� �� ��� �����.

v DB2Connection.getDB2ClientUser

v DB2Connection.getDB2ClientWorkstation

v DB2Connection.getDB2ClientApplicationInformation

v DB2Connection.getDB2ClientAccountingInformation

java.sql.Connection.isValid

�� �� �����. � ��� �� ���� �� IBM Data Server

Driver for JDBC and SQLJ �� �� DB2Connection.isDB2Alive�

�� ��� �����.

java.sql.Connection.setClientInfo

IBM Data Server Driver for JDBC and SQLJ�� ���� ����� �

� � �� �� �����. � ��� �� ���� �� �� IBM

Data Server Driver for JDBC and SQLJ �� ��� �� ��� �

����.

v DB2Connection.setDB2ClientUser

v DB2Connection.setDB2ClientWorkstation

v DB2Connection.setDB2ClientApplicationInformation

v DB2Connection.setDB2ClientAccountingInformation

java.sql.DatabaseMetaData.getClientInfoProperties

IBM Data Server Driver for JDBC and SQLJ�� ���� ����� �

� � ��� ��� ����.

java.sql.DatabaseMetaData.getColumns

� ��� �� � IS_AUTOINCREMENT� �����.

java.sql.DatabaseMetaData.getFunctions

�� �� ������ ��� ��� ��� �� ��(UDF)� �� �

���.

java.sql.DatabaseMetaData.getFunctionColumns

��� �� �� ������ ��� ��� ��� �� ��(UDF)� �

��� �� ��� ����.

java.sql.DatabaseMetaData.getProcedureColumns

� ��� �� � IS_AUTOINCREMENT� �����.

java.sql.DatabaseMetaData.getProcedures

� ��� �� � SPECIFIC_NAME� �����.

java.sql.DatabaseMetaData.getRowIdLifetime

ROWID �� ��� �� �� �����.

88 ��� ��

Page 103: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

java.sql.DatabaseMetaData.getSchemas

� �� �� ��� ��� ���� ��� ��� ����.

java.sql.PreparedStatement.setBlob

�� ���� �� ���� ���� �� BLOB � � ��� ���

���� �� � ��.

java.sql.PreparedStatement.setAsciiStream

�� ���� �� ���� ���� �� VARCHAR � � ����

�� ��� ���� �� � ��. � ��� ��� ����� �� 2GB

� ��� � �� ���� �� �� �����.

java.sql.PreparedStatement.setBinaryStream

�� ���� �� ���� ���� �� VARCHAR � � ����

�� ��� ���� �� � ��. � ��� ��� ����� �� 2GB

� ��� � �� ���� �� �� �����.

java.sql.PreparedStatement.setCharacterStream

�� ���� �� ���� ���� �� BLOB � � ������

��� ���� �� � ��. � ��� ��� ����� �� 2GB�

��� � �� ���� �� �� �����.

java.sql.PreparedStatement.setClob

�� ���� �� ���� ���� �� CLOB � � ������

��� ���� �� � ��.

java.sql.PreparedStatement.setObject

��� ��� ��� �� ���� �� �����. � �� ��

� RowId SQLXML ��� �����.

java.sql.PreparedStatement.setRowId

�� ���� �� ���� ���� �� ROWID � � �����

� ��� ���� �� � ��.

java.sql.PreparedStatement.setSQLXML

�� ���� �� ���� ���� �� XML � � ������ �

�� ���� �� � ��.

java.sql.ResultSet.getRowId

� ��� ROWID ��� RowId ��� �� �����.

java.sql.ResultSet.getSQLXML

� ��� XML ��� SQLXML ��� �� �����.

java.sql.ResultSet.updateAsciiStream

�� ��� � ��� �� �� �����. � ��� ��� ���

�� �� 2GB� ��� � �� ���� �� �� �����.

� 9 � ���� � �� 89

Page 104: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

java.sql.ResultSet.updateBinaryStream

�� ��� � ��� �� �� �����. � ��� ��� ��

��� �� 2GB� ��� � �� ���� �� �� �����.

java.sql.ResultSet.updateCharacterStream

�� ��� � ��� �� �� �����. � ��� ��� ���

�� �� 2GB� ��� � �� ���� �� �� �����.

java.sql.ResultSet.updateBlob

�� ��� � ���� SQL BLOB ��� � � �� �����. �

��� ��� ����� �� 2GB� ��� � �� ���� ��

�� �����.

java.sql.ResultSet.updateClob

�� ��� � ���� SQL CLOB ��� � � �� �����. �

��� ��� ����� �� 2GB� ��� � �� ���� ��

�� �����.

java.sql.ResultSet.updateRowId

�� ��� � ���� SQL ROWID ��� � � �� �����.

java.sql.ResultSet.updateSQLXML

�� ��� � ���� SQL XML ��� � � �� �����.

java.sql.Statement.isClosed

Statement ��� �� �� �����.

java.sql.Statement.setPoolable

Statement ��� �(pool) �� �����.

java.sql.Statement.isPoolable

Statement ��� �(pool) �� �����.

java.sql.SQLXML.free

SQLXML ��� �� �� �� ��� �� �����.

java.sql.SQLXML.getBinaryStream

SQLXML ���� �� ��� �� ����.

java.sql.SQLXML.getCharacterStream

SQLXML ���� �� ��� �� ����.

java.sql.SQLXML.getString

SQLXML ���� ��� �� ����.

java.sql.SQLXML.getSource

SQLXML ��� �� XML �� �� � ��

javax.xml.transform.Source ��� �����.

90 ��� ��

Page 105: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

java.sql.SQLXML.getBinaryStream

�� ��� �� �� SQLXML ��� ������.

java.sql.SQLXML.getCharacterStream

�� ��� �� �� SQLXML ��� ������.

java.sql.SQLXML.setResult

SQLXML ��� ����� javax.xml.transform.Result ��

� �����.

java.sql.SQLXML.setString

��� �� �� SQLXML ��� ������.

javax.sql.PooledConnection.addStatementEventListener

StatementEventListener ��� PooledConnection ��� �

���.

javax.sql.PooledConnection.removeStatementEventListener

PooledConnection ���� StatementEventListener ��� �

����.

JDBC 4.0 � ��� ��

�� JDBC 4.0 �� ���� �����.

v SQLNonTransientException �� ����

– SQLDataException

– SQLFeatureNotSupportedException

– SQLIntegrityConstraintViolationException

– SQLInvalidAuthorizationException

– SQLNonTransientConnectionException

– SQLSyntaxErrorException

v SQLTransientException �� ����

– SQLTimeoutException

– SQLTransactionRollbackException

– SQLTransientConnectionException

v SQLRecoverableException

v SQLClientInfoException

Wrapper ����� �� ��

Wrapper ����� ��� ��� ���� ���� � ����. �� IBM Data

Server Driver for JDBC and SQLJ �� ������ Wrapper ����� ��

���.

v DB2Connection

� 9 � ���� � �� 91

Page 106: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v DB2BaseDataSource

v DB2SimpleDataSource

v DB2Statement

v DB2ResultSet

v DB2DatabaseMetaData

DB2Driver ��� �� ��

����, DriverManager ����� ��� ��� ��� ��� �,

Class.forName ��� ��� DB2Driver ���� ��� ��� ���

�. JDBC 4.0 ���� � �� �� � ���.

�� �� ��� ��

��� � ���� � ��� ����� �� �� � ��� � �

���.

v �, � �� � �

v �� � �� �� ��� �� �

v � �� �

��� � ������ Java� SDK �� 6 �� ��� �� JMX(Java

Management Extensions) ����� �����.

IBM Data Server Provider for .NET�� IBM Informix DynamicServer, IBM UniData � IBM UniVerse �

�� IBM Data Server Provider for .NET��� DB2 ��� ��� �� IBM

Informix Dynamic Server, IBM UniData IBM UniVerse ��� ��� ���

��. ��� �� �� .NET ���� � �� DB2, Informix, UniData ��

UniVerse ��� ��� �� �� ��� �� ����� ��� � ����.

Data Server Provider for .NET ���� .NET ���� �� �� �����

� �� ���� ���� � ����.

v Linux, UNIX Windows� DB2 Database �� 9 ��

v Windows, UNIX Linux �� ���� DB2 Universal Database �� 8

v DB2 Connect� �� VSE VM� DB2 Universal Database �� 7.3 ��

v DB2 Connect� �� OS/390 z/OS� DB2 Universal Database �� 6 ��

v DB2 Connect� �� iSeries� DB2 Universal Database(OS/400 V5R1 ��)

v IBM Informix Dynamic Server, �� 11.10 ��

v IBM UniData 7.1.11 ��

92 ��� ��

Page 107: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v IBM UniVerse 10.2 ��

��� � ���� ��� ��� ��� �� ����. �� ��, Informix

Dynamic Server, UniData UniVerse ��� ����� XML ��� � � �

��� ����.

�� ��

″IBM Data Server Provider for .NET″(Getting Started with Database Application

Development)

23 ���� ���� DB2 Client ���� � ��(Windows)�

�� ���

″Deploying .NET applications ( Windows )″(Developing ADO.NET and OLE

DB Applications)

��� DB2 �� ���� ��

DB2 �� �� � ����� ��� ��� �� ���� � ��� DB2

�� ��� ��� � ����.

��� Linux, UNIX Windows� DB2 ������� �� �� �� IBM

Data Server Client� ���� ����. �� ���� ��� �� � ����.

v Windows �� ��� �: %DB2PATH%₩sqllib₩samples(�� %DB2PATH%�

DB2 ��� ��� �����, DB2PATH � ��� ���)

v UNIX �� ��� �: $HOME/sqllib/samples(�� $HOME� ��� ��

�� � ����� $HOME � ��� ���)

�� 9.5� �, � �� ��� ��� � �� �� � �� ����

�.

� 6. � �� 9.5� �� ��

�� �� �� ���� � ��

�� ��� ��� ���(FixPack 1�� �� ��) FixPack�� �� ��� REDISTRIBUTE ����

� ��� � ��

��� � ��� �� ����� ��� �� ���� ��� ���� �� ��� ��

���

� �� �� � �� � �� ��

��� ��� �� ��� �� �� MDC ��� � � �� �� ���� ���

�� ��� �

�� �� �� ������� �� �� �� ��

�� ��� ������ ��� �� � ��� ��� ������ �� � �� ��� ��

������ �� ��� ��

� � � ��� ��� �� �� BACKUP

DATABASE ��

BACKUP DATABASE �� ��� � ��

� ������� �� ��� � �� ��

� 9 � ���� � �� 93

Page 108: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 6. � �� 9.5� �� �� (��)

�� �� �� ���� � ��

�� �� �� �� �� � �, � ��� �� ��� ����

��

������ �� �� �� �, ��� ��� �� ��� ��, �

� �� �� ��, ��� �� �� � ��, �

� �� � ��

���� ���� �� ���� ���� �, ��� ID ��� �� �

��� �� �� ��, ���� ���� ��

�� �

���� �� �� �� �� �� � ��� ��� �� ��

��� �� �� ��

�� �� �� ��� � �, �� ���� �� ��,

�� ��� ��� �� , ���� ��

� ���� �� �

PHP �� ��� DB2 ��(�: ������ �� ��, DDL

DML�, ��� � XML)� PHP ��. ���

IBM_DB2 ��� PDO ���� �� �� �

�.

.NET �� .NET�� DB2 XML �� ��

XML ��� �� � ���� XML ��� ��� � ��� � � �

� ��� �� �� ��

XML �� �� �� �� � IS VALIDATED IS NOT VALIDATED ���

��� XML �� �� �� �� �� ��

� ACCORDING TO XMLSCHEMA�� ���

�� ��� ��� ��

��� �� � �� XMLROW XMLGROUP ��� ��� ��

���� XML� ��

XSLT �� XSLTRANSFORM ��� ��� ������� �

��� XML ��� HTML, �� ��� �� �

� ��� ���� � XML ���� ��

XQuery� ��� �� �� �� XQuery �� ���� ��� �� ��� XML �

� �� ��� ��� ��, ��, ��, �� ��

��

�� �� XML ��� �� �� ��� ��� ���� �� ����� �

� XML ��� ��

����� �� XML ��� �� �� XML �� �� � ��� �� �� ��, �� �

�� � �� ���� ��� ��

SQLQuery� ��� �� XQuery�� db2-fn:sqlquery ��� ��� SQL

fullselect� ��� ��

XML� � ���� �� LOAD � �� ��� XML ��� DB2

��� �

CLP�� CLIENT APPLNAME �� ��� ���� �

�� 9.5��� db2 -tvf filename �� ��� CLP �� � ��� ��� �,

�� ���� CLIENT APPLNAME� CLP filename�� �����. �� �� CLP

��� �� �� �� ���� ���� �� ����� � �����.

94 ��� ��

Page 109: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

CLIENT_APPLNAME �� ����� �� ��� �� GET SNAPSHOT FOR

ALL APPLICATIONS �� ���, �� ���� � �� �� � �

���.

�� ��

″sqleseti API - Set client information″(Administrative API Reference)

″sqleqryi API - Query client information″(Administrative API Reference)

″CURRENT CLIENT_APPLNAME special register″(SQL Reference, Volume

1)

DB2 Developer Workbench �� ��� � ��

DB2 Developer Workbench� �� 9.5�� ��� �� ��� ��� ��

� ���� ���. ��� �� � ���� � � ��� ����.

������ ��

v IBM Data Server Driver for JDBC and SQLJ� �� �� ����

�. � ���� ��� IBM ��� ��� ���� � ��� � ��

��.

v ������ �� �� �� � �� �� → ��� ��� ���

������ �� ��� ������ ��� �(XML) ��� "�

��� � ����. � �� �� ��� ��� �� � �����

���� � ����. � ���� � ���� �� � ������ �

� ��� ��� � ����.

v Kerberos � �� LDAP� ��� Linux, UNIX Windows� DB2

������ �� z/OS� DB2� ��� � ����. Kerberos ���

�, ��� Kerberos �� ���� ���. LDAP� �, Windows

Active Directory Server� ���� ��� DB2 ��� ���� �

��. LDAP� ��� �� �� �� ��� �����.

v � �� ��� � ���� ������ �� �� ��� � ���

�. �� � ���� �� ����, ��� �, ��� ID �� �

��� �����.

v DB2 ������� ��� �, � �� ����� ������ �� �

�� ���� ��� ���.

v JDBC ��� �� � ��� ��� � ����. � ��� IBM Data

Server Driver for JDBC and SQLJ� ���� ���� �����.

��� ������ ��

v SQL ���� ��� �� XML ���� ��� ��� �

� ����. ���� ��� SQL XQuery ���� �� � ��

� 9 � ���� � �� 95

Page 110: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��. ��� � , �� � ��, �� �� �� ��� � ��

��� ��� � �� � ���� ��� � ����. ��� ��

�� ����� � ��� � �� ���� � � �� ����

����. �� � SQL ���� XQuery �� ���� ��

��� ��� ����.

v �� ���(�� ��� UDF) ��� �����. Java �

� ���� �, �� ����� Java ��� �� ��� �� Java

�� �� �� � �� ��� � ����. �� �� ��

���� �� �, �� �� �� ���� �� �� ���

� �� �� � ����.

v ��� �� �� ��� ���� ��� ��� �� ��

�� ���� ��� XML ��� XML ���� XML �� ���

� ����. Linux, UNIX Windows ��� DB2 �������

�, CLP �� �� �� ��� ��� ��� XML ��

�� �� � ����. � �� ��� CLP �� �� ���

�� ��� � ����.

������ ��

���� ������ ���� ���� Database Explorer�� �� �

�� � �� ��� ���� ����.

v ��� �� ��. ��� �� ���� ��� � DB2

Informix Dynamic Server ������ ��� � �� � �

���.

v �� ��. ��� �� ���� ��� ��� �� �� ��

� ID� ��� ��� �, �� ��� � ����.

v ��� � ��� ���. ��� �� ��� ������ Database

Explorer�� ���� � ��� �� ���� � �����

��� ��� �� � ����. �� ��� � �� ������,

Database Explorer�� ��� � � � �� � ����. �� �

�� �� �� ��(Visual Explain) ���� �� ��� � ���

�.

v �� ��. ��� ��� ��� �� ��� ���� ���

��� � ����. �� ���� DDL �� ��� ��� �����

��� ��� �������� �� ������� ��� � ����.

Informix Dynamic Server

� ����� IDS(Informix Dynamic Server)� �� ��� ��� ���

�. Database Explorer� IDS ������� ��� �, ���� ����

�� �� ���� �����, �� ��� ��� IDS� ���� ��

��� ��� �� � ����. ��� ���� SQL

96 ��� ��

Page 111: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��� � ��� DB2 ��� �� ��� ��� ����

IDS�� �� ��� � ���. IDS� ��� � ���� CREATE

��� ��� � SQL ����� �� ��� � ����. �� Database

Explorer�� ��� ��� � ����.

Informix JDBC ��� �� IBM Data Server Driver for JDBC and SQLJ

� ��� Informix ������� ��� � ����.

� ���

� ��� ��� ����� ���� �� ������ � ��

�� � ���(SQL SELECT DML�, XQuery ��� �� ��

��� ��)� �� � ����. ��� ���� � ����

��� �� ��� SQL�� � ���� ��� ��� ����

��� �� � � �� ��� SQL�� ��� � ����.

�� � ��� ��� � ��� � ���� ���� � ���� �

��� �� ��� � ����.

�� � ��� ��� �� � �� �� �� �(WORF) �

��� ���� � ����.

Java ��� PDQ(Pure Data Query)

PDQ(Pure Data Query)��� �� �� API� ���, �� �����

� � ���� �� SQL� ���� ��� � Java �� ��

�� � ��� ���. PDQ ���� Java ���� �� ���� �

�� � ���� �� ���� Java �� � ��� �� ����.

v SQL � � � ���, Java ���� Java �� �� SQL ��

���

v �� �� ��� Java ���, SQL� ������ �� �

v �� ��� SQL ��

v Java ��� ��� SQL� ��

v SQL� ��� Java �� �

�� IBM Installation Manager� �� ��(Linux on x86, 32�� 64��

Windows ��)� DB2 �� ��� ��� �� ��� ��, ��

���� � �����. ��� � ���� Installation Manager� ��

� � ����. �� ��� ″�� ��″ ��� �� ���� �� �

�� ���� ��� �� Eclipse �� ��� � ����.

�� ��

25 ���� ���� �� �� ���� ���

� 9 � ���� � �� 97

Page 112: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� ��� �� ������ �� ���

�� 9.5�� �� ������ ��� ��� �� ��� �� ��� � �

� ��� ����. �� ���� � �� 9.5� ���� � � � ��

��� ��� ��� ��� ��� ��� � ����.

���� �� ��� �� ����.

v NVL(�� COALESCE VALUE ��� ��)

v LEAST �� MIN(�� ��)

v GREATEST �� MAX(�� ��)

v DECODE(�� CASE ��� ��)

�� ��

″DECODE scalar function″(SQL Reference, Volume 1)

″GREATEST scalar function″(SQL Reference, Volume 1)

″LEAST scalar function″(SQL Reference, Volume 1)

″MAX scalar function″(SQL Reference, Volume 1)

″MIN scalar function″(SQL Reference, Volume 1)

″NVL scalar function″(SQL Reference, Volume 1)

��� �� �� ��� � ��

��� �� ��� ��� DB2 ���� �� ���� �� ����

�� ��� � ����.

�� ��� ��� �� �� ��� �� ����.

v BITAND

v BITOR

v BITXOR

v BITNOT

v BITANDNOT

�� �� �� ��� �� �� �� �� �� ″2� ��″ ���� ���,

� � � �� �� ��� � � ��� � ��� � � �� 10� �����

�����. ���� �� � � 113�����.

�� ��

″BITAND, BITANDNOT, BITOR, BITXOR, and BITNOT scalar functions″(SQL

Reference, Volume 1)

98 ��� ��

Page 113: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 10 � ����, �, �� � �� ����

�� 9.5�� ���� ���� ��� � �� �� � � �� ��� ��

���.

�� 9.5� ����, ��, �� �� ��� �� ����� � �� �

����.

��� ���� ��� ����� �� � �� � ��� ���

� � ��� ��� �� ���� ��� � ���� � ��� �

��� � ���� �� ��� � ����.

��� SYSPROC.AUTOMAINT_SET_POLICY

SYSPROC.AUTOMAINT_SET_POLICYFILE ���� �� ���� ���

���� �, � ��, � �� �� ���, � �� RUNSTATS

�� �� � ����. AUTOMAINT_SET_POLICY��� XML LOB�

���� AUTOMAINT_SET_POLICYFILE��� XML ��� �����. ���

� �� �� ��� � �� SQLLIB/samples/automaintcfg ���� �� XML

�� ��� ����.

�� � � ��� ��� �� ���

S Y S P R O C . A U T O M A I N T _ G E T _ P O L I C Y �

SYSPROC.AUTOMAINT_GET_POLICYFILE� ��� ���� �, � ��,

� �� �� ���, � �� RUNSTATS � �� � ����

� ��� ��� � ����. AUTOMAINT_GET_POLICY� XML ��

BLOB� � ��� �����. AUTOMAINT_GET_POLICYFILE� XML ��

� � ��� �����.

��� AUTOMAINT_GET_POLICY� � � AUTOMAINT_SET_POLICY� �

���, ��� AUTOMAINT_GET_POLICYFILE� � �

AUTOMAINT_SET_POLICYFILE� ��� � ����.

�� ���

″ C o n f i g u r i n g a n a u t o m a t e d m a i n t e n a n c e p o l i c y u s i n g

S Y S P R O C . A U T O M A I N T _ S E T _ P O L I C Y o r

SYSPROC.AUTOMAINT_SET_POLICYFILE″(Data Recovery and High

Availability Guide and Reference)

© Copyright IBM Corp. 1993, 2007 99

Page 114: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″Col lec t ing au tomated main tenance po l i cy in fo rmat ion us ing

S Y S P R O C . A U T O M A I N T _ G E T _ P O L I C Y o r

SYSPROC.AUTOMAINT_GET_POLICYFILE″(Data Recovery and High

Availability Guide and Reference)

�� ��

″AUTOMAINT_GET_POLICY procedure - retrieve automatic maintenance

policy″(Administrative Routines and Views)

″AUTOMAINT_GET_POLICYFILE procedure - retrieve automatic maintenance

policy″(Administrative Routines and Views)

″AUTOMAINT_SET_POLICYFILE procedure - configure automatic maintenance

policy″(Administrative Routines and Views)

AUTOMAINT_SET_POLICY procedure - configure automatic maintenance

policy″(Administrative Routines and Views)

��� DB2 ACS(Advanced Copy Services) API� �� �����

�� ��

��� DB2 ACS(Advanced Copy Services) API(Application Programming Interface)

� ��� ����� ��� �� � ��� � ����.

�� �� �� ��� � �, ������ �� �� �� ����

���� �� ����� �����, �� �� ��� ��� ��� � ��

� �� � � ���� �����. ��� � ��� ��� ��� ��� �

�� � ��� �� ��� � �� ��� � ����. DB2 ACS�

���� �� � ��� ����� ���.

DB2 ACS API(Application Programming Interface)��� ������ �� �

� �� ��� ���� ��� ��� �� � ���� �� ��� �

����.

�� ��� ���� DB2 ACS API ���� IBM Data Server� ����

����.

v IBM TotalStorage SAN Volume Controller

v IBM Enterprise Storage Server Model 800

v IBM System Storage DS6000

v IBM System Storage DS8000

v IBM N Series

v NetApp V-series

100 ��� ��

Page 115: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��� ���� ��� �� � ����� �� ��� ����

DB2 ACS API ���� ����.

�� ��

″DB2 Advanced Copy Services (ACS) API″(Data Recovery and High Availability

Guide and Reference)

�� ���

″Enabling DB2 Advanced Copy Services (ACS)″(Data Recovery and High

Availability Guide and Reference)

�� �� ���� ��� �� ���� �� ���

DB2 ������ �� �� � ��� �� ���, � �� ��� ��

� �� ��� �� �� �� ��� ��� ��� � ����.

�� ���, � �� ��� �� �� ��� � �� ��� �����

�����. �� �� ��� ���� ��� ��� ����� ���

� ���. DB2 ������ �� �� � num_db_backups �� �����

��� �� � �� rec_his_retentn �� ���� ��� �� �� ��� �

����� ���� ��� #(prune)���. � �� ��� auto_del_rec_obj

� ON�� ����, ������ �� �� � �� ���, � �� ���

��� #�� ��� ���� �� ��� �� ��� ����� .

auto_del_rec_obj� ���� ���� num_db_backups� rec_his_retentn ��

� � � � ����� �����.

�� PRUNE HISTORY �� ��� ���� ��� ��� #(prune)� �

����. PRUNE HISTORY �� �� AND DELETE�� ����� db2Prune

API ��� iOption ���� DB2PRUNE_OPTION_DELETE� ���� �,

������ �� �� ��� #�� ���� �� ��� �� ��� ��

���. auto_del_rec_obj� ON�� ����, ������ �� �� � �� �

��, � �� ��� #�� ���� �� �� ��� �� ��� ���

��.

�� ���

″Automating database recovery object management″(Data Recovery and High

Availability Guide and Reference)

″Protecting recovery objects from being deleted″(Data Recovery and High

Availability Guide and Reference)

″Managing recovery objects″(Data Recovery and High Availability Guide and

Reference)

�� ��

� 10 � ����, ��, �� �� �� 101

Page 116: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″db2Prune API - Delete the history file entries or log files from the active

log path″(Administrative API Reference)

″PRUNE HISTORY/LOGFILE command″(Command Reference)

″PRUNE HISTORY/LOGFILE command using the ADMIN_CMD procedure″

(Administrative Routines and Views)

���� �� � ��� ��� DB2 ���� ����� �� ����� �

��

��� DB2 ���� ���� �� ����(db2haicu)� ��� ���� �

�� ������ ��� �� ��� � ����. db2haicu� ��� �

�� �� �� �� �� ��� �� ������ �� ��� ��

��� ��� � �� ���, db2haicu� ��� �� ��� ������.

db2haicu� ��� �� ����� ����. db2haicu� ��� ��� �� �

��� �� �� ���, ������ ��� ���� �� �� ���

�����. � � �� ��� ����, db2haicu� ��� �� ��� ���

� �� �� ��� ����.

db2haicu� � ��� ���� ��� �� � ��� db2haicu� ��� �

� �� ��� �� ���� ��� � ����.

v ��� ������� ��� �� � ��

v DB2 HADR(High Availability Disaster Recovery) �� �� ������ �

v ��� ���� ��� �� � ��

v ���� ����� ������ ���� �� ����� ���� ��

v � �� � ��

db2haicu� ���� ���� ��� �� �� �� ����� ���.

�� ��, ������� ��� �� � ����, ��� �� �� � �

��� ����� �� ��� ������� ��� ���.

��� �� �� ��� DB2 ��� �� �� � API� ���� ��,

db2haicu� ��� �� �� ��� � �� DB2 ��� �� ��

� API ���� �����. IBM Tivoli SA MP(System Automation for

Multiplatforms)��� DB2 ��� �� �� � API� ����, Tivoli SA MP

�� ���� DB2 ���� ��� ��� Linux AIX� IBM Data Server

��� �����. ��� �� �� Tivoli SA MP� ���� �,

db2haicu� ��� ���� �� ��� � ����.

�� ���

102 ��� ��

Page 117: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″����� �� ���� � ��″(Data Recovery and High Availability

Guide and Reference)

″DB2 ���� ��� �� ����(db2haicu)� ��� ���� ���

��� � ��″(Data Recovery and High Availability Guide and Reference)

�� �� �� ��� ������ ��� � ���

�� 9.1��� ������ �� �� � ��� �� �� �� SQLOGCTL.LFH

� �������. �� 9.5��� ������ �� �� � �� �� ��� �

� ��, � SQLOGCTL.LFH.1 SQLOGCTL.LFH.2� �������. �� �

� ��� �� � � ��� � �� ���� �� ��� �� � ����.

������� �� � ��� � ������ �� �� � �� ��� ��

� �� ��� �� ������� �� ��� �����. ������ �

� �� � �� �� ��� ��� �� ���� �� ��� �����.

�� �� ��� �� ��� ������ �� �� � ������� ��

��� ���� �� ���� �� � ����. �� �� �� ��� ��� �

���, �� �� ��� �� ��� ��� � ���� � �����

� �� �� �� �� ��� ��� � ����, ������ ��� �

����.

�� ��

″Database logging″(Data Recovery and High Availability Guide and Reference)

″Log control files″(Data Recovery and High Availability Guide and Reference)

HADR �� ��� � � �� �� � ��� ��� �� �� �

� � ��� ���� � � ��� ��� � ��� � �� � , ���

hadr_peer_window ������ �� ���� ��� DB2 HADR(High

Availability Disaster Recovery) �� �� ������ �� �� ��� ��

�� �� � ����.

HADR �� �� ������ �� �� ��� �� �, �� �������

�� �������� ������ ��� ��� �� �� ������� �� �

� �� ����� � � ��, �� � ����� ��� �����. ��

� �� ��� ���� � � � ����. �� ������� �� ��� ��

�, �� ������� ������ ��� �� �� �� ��� �� ��

����� ������ ��� ����.

�� �� ������� �� ��� �� �, �� ������� �� ��

����� ��� �� �� ������� �� �������� �� ��

� 10 � ����, ��, �� �� �� 103

Page 118: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� � � � ��� �� � ���� � ���. IBM Data Server� ��

����� �� ������� �� ������� ��� �� �� �����

�� ��� ��� �� ��� ���� �� ������� ������ ���

� � �� ��� ��� � �����. �� ������� �� �

��� ���� � �� ������� ���� �� ������� ��

��� �� � �����.

�� 9.5��� hadr_peer_window ������ �� ���� 0� �� ���

����, �� �������� ��� � � �� ������� �� ���

� ���� �� ��� �� ��� ����. �� ������� ���� ��

�� ��� �� �, �� ��� �� �� ���(�� ��� �� �

� �������� � � ���). �� ������� ���� �� �� ���

�� ��� �� ���� ���. �� ���� �� ������� �� ����

�����, � �� �� ��� �� �� �� ��� �� ������� �

��� ���� �� � ��� ����.

�� ��

″DB2 High Availability Disaster Recovery (HADR) standby database states″(Data

Recovery and High Availability Guide and Reference)

�� ��

″db2HADRTakeover API - Instruct a database to take over as the high

availability disaster recovery (HADR) primary database″(Administrative API

Reference)

″TAKEOVER HADR command″(Command Reference)

″hadr_peer_window - HADR peer window configuration parameter″(Data Servers,

Databases, and Database Objects Guide)

�� ��� ��� � � �� ������ ��� � � ���

� � ��� (SSV) ��� ��� � �� � ������ ��� ��

���� � ����.

�� 9.5 ���� ��� ������� ����� � �� ��� ������

��� ���� ����. � ������ ��� � �� ��� ���� �

�� ��� ��� ���� ���. ��� ������� � �� ��� �

��� �� ���� ��� ��� �� ��� ���� � ���.

��� � ������ ��� ��� ����� �� � ������ �

�� �� ��� � �� ��� ��� �� �����. �� ��� � �

104 ��� ��

Page 119: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

������ ���� ��� ��� �� ��� ��� �� ������ ��

� ���� �� ���� �� �� ������ ��� �� ��� �� ��

��� ���� �� �!���.

db2_all � ���� ��� ������ ��� ������ �� ���

� ����� �� ��� ��� �!���.

�� 9.5���, ��� ������� � �� ��� �� � ���� �

�� ��� ��� ����� �� ������ ��� ����� �����

�. ��� ��� �� ���� ��� �� �� ��� �� ��� �

����. �� SSV ��� ������ ��� ���� � ����. �� ���

� ��� ���� �� ��� �� � ��� ���. �����, SSV �

� ����� ���� � end of logs�� � � ��� ��� � ��� �

� ��� ��� ������ �� �� �� �� �� �� �����.

�� ��

″Backup overview″(Data Recovery and High Availability Guide and Reference)

�� ���

″Using backup″(Data Recovery and High Availability Guide and Reference)

″Backing up partitioned databases″(Data Recovery and High Availability Guide

and Reference)

�� ��

″BACKUP DATABASE command″(Command Reference)

″db2Backup API - Back up a database or table space″(Administrative API

Reference)

″BACKUP DATABASE command using the ADMIN_CMD procedure″

(Administrative Routines and Views)

�� �� ��� �� �� ��

ROLLFORWARD ��� TO END OF BACKUP�� ����� db2Rollforward

API� DB2ROLLFORWARD_END_OF_BACKUP ���� ��� ��� �

������ �� ��� �� �� ���� � � � � ����.

�� �� ��� ������� ���� �� � � � �� � �� �� �

����(������ � ��� �� ��� �� ���� �� ��� �

�). ������(� , ��� ������)� � � � ���� ��� ���

��� ����� �!���. �� 9.5��� ROLLFORWARD DATABASE

��� TO END OF BACKUP ���� ����� db2Rollforward API�

DB2ROLLFORWARD_END_OF_BACKUP �� ��� ������� ���

��� �� �� �� ��� �� �� ���� � � � � ����.

� 10 � ����, ��, �� �� �� 105

Page 120: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ���

″Using rollforward″(Data Recovery and High Availability Guide and Reference)

�� ��

″db2Rollforward API - Roll forward a database″(Administrative API Reference)

″ROLLFORWARD DATABASE command″(Command Reference)

�� ��� �� �� ��� � � ���

��� �� �� ��� ��� ��� � ���� �� �� ����

��� �� ��� �����. ��� � ��� ��� ��� ��� ���

� �� ��� � �����.

�� �� �� ��� � �, ������ �� �� �� ����

���� �� ����� �����, �� �� ��� ��� ��� � ��

� �� � � ���� �����. ��� � ��� ��� ��� ��� �

�� � ��� �� ��� � �� ��� � ����. DB2 ACS�

���� �� � ��� ����� ���.

��� ��� ����� DB2 ACS(Advanced Copy Services)� ���� �� �

�� ���� DB2 ACS API ���� ��� ���.

�� ��� ���� DB2 ACS API ���� IBM Data Server� ����

����.

v IBM TotalStorage SAN Volume Controller

v IBM Enterprise Storage Server Model 800

v IBM System Storage DS6000

v IBM System Storage DS8000

v IBM N Series

v NetApp V-series

�� ���

″Restoring from a snapshot backup image″(Data Recovery and High Availability

Guide and Reference)

″Performing a snapshot backup″(Data Recovery and High Availability Guide

and Reference)

�� ��

″BACKUP DATABASE command″(Command Reference)

″RESTORE DATABASE command″(Data Movement Utilities Guide and

Reference)

106 ��� ��

Page 121: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″db2acsutil - Manage DB2 snapshot backup objects command″(Command

Reference)

���� �� ����� �� ��

��� DB2 ��� �� �� � API(Application Programming Interface)� DB2

��� ��� �� ����(db2haicu)� �� IBM Data Server ��� �� �

�� ��� ���� �� ��� � ����.

DB2 ��� �� �� � API� ������ �� �� �� ��� ��

�� �� ��� � ���� �� ��� ��� ���� �� ��

���. ��� �� �� ��� DB2 ��� �� �� � API� ���

� ��, ������ �� �� � ��� �� �� ��� � ��

DB2 ��� �� �� � API ���� �����.

IBM Tivoli SA MP(System Automation for Multiplatforms)��� DB2 ���

�� �� API� ���� Tivoli SA MP �� ���� DB2 ���� ��

� ��� Linux AIX� IBM Data Server ��� �����. ��� ��

�� Tivoli SA MP� ���� �, db2haicu� ��� ���� �� �

�� � ����.

�� ��

″DB2 cluster manager API″(Data Recovery and High Availability Guide and

Reference)

�� ���

″onfiguring a database clustered environment using DB2 High Availability

Instance Configuration Utility (db2haicu)″(Data Recovery and High Availability

Guide and Reference)

�� ��

″Supported cluster management software″(Data Recovery and High Availability

Guide and Reference)

� 10 � ����, ��, �� �� �� 107

Page 122: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

108 ��� ��

Page 123: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 11 � �, �� � FixPack ����

�� 9.5� ���� ��� ���� ��� �� � ��� � ����.

�� 9.1 �� �� 8� ��� ���� �� �� �� 9.5� �������

�, �� 9.5� ���� ���. DB2 �� 9.5� � ������. �� 9.1�� �

� 9.5� ������ �� FixPack� �� � ���.

�� 9.5� ��, �� FixPack ��� �� ����� � �� � ���

�.

�� ���� ��, � �� ��� � ����� � ��� �� ���

� �DB2 ��� �� ����� �� ���� ������� �� ������

� ����.

DB2 �� DB2 Client� �� 9.5� ����� ������ ���� �

�� ���� ���. �� ���� ������� ���� �� �����

�� ���� ��� �� ����� ��� �� ��� � �� ��� �

����.

IBM Tivoli SA MP(System Automation for Multiplatforms) �� ���

�� DB2 �� ��(Linux � AIX)IBM Tivoli SA MP(System Automation for Multiplatforms) �� ��� �� 2.2�

Linux AIX �� ��� IBM Data Server� �� �����.

DB2 �� �� �� IBM Data Server ��� �� Tivoli �� �� ���

SA MP �� ���� ��, �� �� ��� � ����.

IBM Tivoli SA MP(System Automation for Multiplatforms)��� ��� ��

(�: ��� ����, � �� � �� ����)� �����. ��� �

�� Tivoli ���� �� ��� � ����.

�� ��

″IBM Tivoli System Automation for Multiplatforms (Linux and AIX)″(Data

Recovery and High Availability Guide and Reference)

″Installing and upgrading the SA MP Base Component with the DB2

installer″(Data Recovery and High Availability Guide and Reference)

© Copyright IBM Corp. 1993, 2007 109

Page 124: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2 ��� � � �� � �� ��

DB2 �� �� �� � ��� �� � �� �� ��� �� ��� �� �

�� �� � ����.

DB2 �� �� � ��� �� � �� �� ��� �� ��� �� ���

�� �, DB2 �� ����� DB2 �� �� �� � � �� �� �

��� � ����. �� DB2 �� ��� ���� �� DB2 �� ����� �

�� �� � �� �� ��� �� ��� ��� ��� � ����.

��� �� � �� ��� �� ��� ���� DB2 �� � ��� �

�� � �� � �� �� � ����. DB2 �� �� ��� DB2 �

��� ���� �� �� ��� ���� ����.

� �� ��� �� � �� �� ��� �� ��� ��� ����� �

�� �� �� ��� ��� �� ��� ������.

� FixPack�� �� �� �� ���

�� �� ���� ��� �� �� DB2 �� ��� ���� �� ��

��� ��� DB2 �� FixPack� ��� ��� ���. � DB2 �� FixPack

���� ��� ��� � ����.

�� �� FixPack ���� ��� �� ��� IBM Data Server Client� Linux

UNIX ��� IBM Data Server Runtime Client� ��� � ����.

�� ���

″Applying fix packs″(Troubleshooting Guide)

FixPack �� � ���� ���(Linux � UNIX)FixPack �� �� ��� � �� � �(db2iupdt dasupdt � ��)�

������ ��� FixPack ��� �������. �� �� ��� ���

���. � � , � ������ �� �� � ��� DB2 ��� ��

� � ��� � ����.

�� ������ ���� ��� ��� �� ���.

�� ���

″Applying fix packs″(Troubleshooting Guide)

110 ��� ��

Page 125: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� ���� DB2 �� � � ��(Linux � UNIX)�� 9.5 ���� ���� �� ��� �� ��� ��� ����, FixPack�

� ����, ���� ���� ��� ����� ��� �� ��� � �

����. � ����� ���� ��� ��� ��� Linux UNIX ��

�� �� ���� ��� � ����.

DB2 �� �� ��� ��� �� � ��� ���� ��� � �

����. ��� ���� �� � ��� ���� ��� ��� ��� � �

���. �� �� �� � ��� DB2 ��� �� ����� � ����.

DB2 ��� ��� ���� ���� �� � ��� �� ��� DB2 ���

� ��� � ����.

��� ��� �� �� � ��� �����.

v ��� ���� ��� ���� �� DB2 ��� ����� ��� ����

���

v � ��� ���� ���� DB2 ��� ��� ���� � �� �

��� �

v DB2 ��� ���� �� ��� ��� �� ����� ��

ISV(Independent Software Vendors)

��� ��� ���� �� �� ��� ��� �� ��� ����� ����.

�� ����� db2rfe �� ��� �� ����� ��� � ����.

�� ��

″�� �� ��� �� �� ���″(IBM Data Server Clients� �� �)

″��� ��� ��″(IBM Data Server Clients� �� �)

�� ���

″db2rfe� ��� ��� ���� �� �� �� �� ���� ��″(IBM Data

Server Clients� �� �)

��� � �� ��� ��

� ��� �� �� ��� ���� ASCII ��� �����. DB2 �� �

���� ���� �� ��, DB2 � ��� ���� ����� ���

�� DB2 �� �� ��� ��� � ����.

��� � �� � � ��� DB2 ��� � �� �� � ���

�.

� 11 � ��, �� FixPack �� 111

Page 126: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� �� AIX Linux ���� � � � ��� IBM Tivoli

SAMP(System Automation for Multiplatforms) �� ���� ��� � ���

�.

v INSTALL_TSAMP

�� �� �� � � ��� Windows ���� ��� ��� ��� �

����.

v DB2_ADMINGROUP_DOMAIN

v DB2_USERSGROUP_DOMAIN

��� ��� ��� �� �� �� ��� �� � ��� ����. DB2 CD�

�, db2/platform/samples(��� ��� ��� � �� ��)� �� �

��� ����.

�� ��

″� �� � ″(DB2 Servers� �� �)

�DB2 ���� �� � ��

�� 9.5 ����, Windows �� �� DB2 Runtime Client �� ��� �

�� DB2 Runtime Client ��� ��� ��� ��� � ����. �� 9.5�

�� DB2 Runtime Client �� ��� DB2 ��� �� ��� � �� DB2�

�� ��� �� ��� �����.

�DB2 ��� �� ��� ��� IBM Data Server Driver for ODBC, CLI,

and .NET ��� Windows �� �� � ���� ��� ��� ������.

IBM Data Server Driver for ODBC, CLI, and .NET� ��� �� ��� ��

���, Windows �� ���� �� DB2 ��� �� � ���� � ���

�. IBM Data Server Driver for ODBC, CLI, and .NET� � ���� �

(ISV)�� ����� ���� �� � ������ ���� ��� ��

��� ���� ����.

IBM Data Server Driver for ODBC, CLI, and .NET� � �� ��� ��

����.

v � ��� � �� ��� ���� ��� �� ���.

v Windows �� �� �� ��(.msm ��)� �� ����, � ���

� �� IBM Data Server Driver for ODBC, CLI, and .NET �� ��� �

�����.

�� ��

″IBM Data Server Clients � ″(IBM Data Server Clients� �� �)

109 ���� � 11 � ���, �� FixPack ���

112 ��� ��

Page 127: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��

″�DB2 ��� �� ��(Windows)″(IBM Data Server Clients� �� �)

��� ���(Linux � UNIX)�� � ��� �� ��� ���� ��

� ��� � � Linux UNIX �� ��� ���� ���� DB2 ��

�� ��� � � ���� �� �����.

� ���� ������ �� �� ��� ��� �� ������ �

�����. � � � ���� db2icrt �� -s ���� standalone� �

����.

�� ��

″db2icrt - Create instance command″(Command Reference)

Windows Vista �� � ��� �� �� �

�� 9.1 FixPack 2�� �� Windows Vista �� ��� �� ��� �����

��. �� Windows Vista �� ���� �� � DB2 DB2 Connect ���

� ��� � ����.

�� 9.5�� �� ��� �����.

v IBM ��� �� � �� Query Patroller� �� ��� �������.

v DB2 ��� ���� �� ��� ���� DB2 � �� �����. �� �

��� �� ��� � � ��� ��� �� ��� �� ��� ���

�� DB2 � ��� ������.

�� ��

153 ���� ��� ��� DB2ADMNS �� DB2USERS ��� �� ���

�(Windows Vista)�

�� ��

″Installation requirements for DB2 servers and IBM data server clients

(Windows)″(Getting Started with Database Application Development)

″DB2 Connect Personal Edition �� ���(Windows)″(DB2 Connect Personal

Edition� �� �)

″DB2 Connect �� �� �� ���(Windows)″(DB2 Connect Servers� �

� �)

� 11 � ��, �� FixPack �� 113

Page 128: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

114 ��� ��

Page 129: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 12 � �� �� ����

IBM WebSphere Federation Server �� 9.5��� ���� , �� �

�� �� ������.

IBM WebSphere Federation Server �� 9.5��� �� ��� ��� �

�� � ����.

�� ��� �� ������ �� ��

�� 9.5�� �� ��� ���� ���� XML ��� � , ��

�� ��� � WITH HOLD ��� �� ��� ����.

XML ��� � ��

��� XML ��� � � �� ���� ���� ��� �� Linux, UNIX

Windows� ��� DB2 ������� XML ���� ����� � � �

���. XML ���� �� �� � ��� �����.

v ��� ��� XML � ��� XML � ��� � ��

v SQL/XML XQuery ��� ��� ��� XML ��� ��

������ �����

���� ���� ��� �� �� � ����, �� �� ��� �

��� ���� ��� ���. ���� �� � � �� �� ��

� � �� � ��� �� � ����. � ��� �� ��� ���

�� ���� ��� �� ��� � ����.

WebSphere Federation Server��� Linux, UNIX Windows� DB2 ����

��� ��� ��� �� ��, �� �� � ���� ��� ��

�����.

WITH HOLD ��

WebSphere Federation Server� WITH HOLD ��� ��� ��� ���

DRDA® � Linux, UNIX Windows� DB2 ������ ��� ���

� ��� ���� ���. � ����� ��� � ��� �� ��

�� ��� � ����.

© Copyright IBM Corp. 1993, 2007 115

Page 130: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

���� � �� ��� �� �� �� ���� ��� �����. �� �

��� ��� ��� ��� ���� ��� ����, ���� ��� �

� �� � � ���� ����.

�� ��� �� �� ��

���� ��� �� ���� ���� ����, ������ �� �

� ��� �� ���� �� ��� C �� ����� �����.

����� ����

���� ����� ���� ��� �� ��� ��� ���� ��� �

��� ������ �� �����(�: ���� ��(AS) �� ��� �

� ��). ���� ����� ��� ���� � �� � ���, ��

�� ��(AS)�� ���� ��� ���� � ��� � �� �

��� ���� ��� �� ��� ���� �� � ��� � ���.

���� ����� ���� ����� �� �� ��� ����.

v �� ��� ID. ���� ID� �� ���� ���� �� �����.

v ��. �� ��� ��� �� �� �� ���� �� � ��� ��

�� �� � �����. ��� � ���� �� �� � �� ��� �

���.

v �� �� ��. ���� ����� �� ����� ��� ��� �� �

����. �� �� ����� �� �� ��� �� � ���� �� ���

��� ��� � �� ��� ����.

v ���. ��� �� � ID� �� ���� �� �� ��� �� ��� �

�, ���� �� �� ��� ����. ��� �� � ID� �� �,

�� � ID� �� ��� �� ��� ���� � �� � ����.

v �� ���� �����. ��� �� ��� �� �� �����.

v ��. ���� ��� � � � �� � � ��� �����. �� ���

� ��� ��� ����� �� ��� � �� �� �����. �� ���

�� ��� �� ��� ID� �� ��� ID� �����. ���� ����

� ��� ��� �� �� ��� �� � ����.

���� ���� ����� DRDA � ��� ��(Linux, UNIX

Windows� DB2 Universal Database, z/OS� DB2 Universal Database)� �� �

�� � ��� �����.

116 ��� ��

Page 131: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� ��� ��� �� C � �����

��� ���� ��� ��� ���, ���� � ��� � ���� ��

� �� � ��� ��� �����. ���� ���� ���� �� ��

�� ��� �� ��� ��� �� ���. ��� ��� ��� ��� �

� ��� �� ��� �� � ���� ��� ��� ���� ���.

��� �� ��� ���� ��� ����� ��� ���� �� ���(�: LDAP

��)� ��� �� ��� ������. � �� ������ �� �� ��(�:

SSL �� ��� �� �� ���)� ��� � ����. ���� ���

��� �� ���� ��� �, ��� ��� ��� ��� ��� � �� �

��� ���.

���� ����� �� � ��� �� ���� ����� �����.

���� WebSphere Federation Server�� �� � �� Java ��� ���

���. � ����� C� C++� �����. ���� ���, � ��

�� C �� � �����.

�� ��� �� �� ��

�� 9.5�� �� ��� ���� �� ��� ���� � ��� �

� � � �� ��� ���� � ��� �����.

�� ��� �� �� ��

� �� �� NNSTAT(Nickname Statistics) �� ���� ��� �

�� ��� �� ����� � ��� �� ��� �����. �� ��� �

��� ���� ��� ������� ���� �� �� �� ��

� � ����.

��� ��� http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/

com.ibm.swg.im.iis.fed.query.doc/topics/iiyfqnnsatm.html�� � �� � �� �

�� � ����.

�� �� � ��� �� ��� ����

� � �� � � �� �� ��� ��� ��� �� ��� ���

�� �� � �����.

��� ��� http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/

com.ibm.swg.im.iis.fed.query.doc/topics/iiyfqnnonam.html�� � � �� �

�� � ����.

� 12 � ��� �� 117

Page 132: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

118 ��� ��

Page 133: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 13 � �� ����

�� 9.5� �� ���� ��� CCD �� � DECFLOAT 10�� �

��� ��� � � �����.

�� 9.5� �� ��� �� ����� � �� � ����.

��� CCD � ���� UOW � CD �� �� �

CD(Change-Data) �� IBMSNAP_UOW ��� �� �� CCD(Consis-

tent-Change-Data) �� ��� �� ��� �� � ����.

��� �� � � ����� IBMSNAP_SUBS_MEMBR ���

TARGET_STRUCTURE �� 9 �� ������.

� CCD ��� IBMSNAP_LOGMARKER �� ��� Apply �� ��

� �� �� ��� ��� �� � CD �� IBMSNAP_UOW ���

� ��� ����. ��, Apply �� ��� �� ��� �� ��

IBMSNAP_LOGMARKER �� �� �� �����.

��� CCD �� � � � � � 3 CCD �� ����. � �� �

�� ��� � �� �� �� � � �� IBM �� ����.

IBMSNAP_COMMITSEQ

IBMSNAP_INTENTSEQ

IBMSNAP_OPERATION

IBMSNAP_LOGMARKER

� �� �� � � 3 �� �� ��� �� ��� �� � ����.

DECFLOAT ��� ��� ��� ��

� DECFLOAT 10� � ���� ��� � �� 16 �� 34�� ��� 10�

� �� �� ���� ���� � �����. Linux, UNIX Windows�

DB2 Database� z/OS� DB2� DECFLOAT ��� � �� ��� ���� �

�� � ����.

DECFLOAT� ��� �� �� � �� ��� ��� � ����.

SQL ����� ���� ��� ��� DECFLOAT(34) �� ��

DECFLOAT(16) �� ��� ��� � ���.

© Copyright IBM Corp. 1993, 2007 119

Page 134: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

120 ��� ��

Page 135: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 14 � ��� ����

��� ���� ��� ��, ��� ��� ��� ��� ��� �� �

�� �� �� ��� �� �� ���� ����.

�� 9.5� ��� ��� �� �� � ����.

� �� ���� � � ��� � � �

� ����� ��� ������� ��� �� � �� ��� � ���

�. �� � ��� ���� �� ��� �� ��� ��� �� �

����.

�� � �� ���� ������� SYSTEM �� ��� ���. � �

� � �� ����� � ���� ��� � ����� �� SYSTEM

�� �� �� ��� ���� �����.

���� ������� ���� ���� �, �� � ��� ��� �

�� ��� �� � ���.

�� ��� COLLATION_KEY_BIT �� ��� ���� SYSTEM �� �

�� � ����. �� ��, SQL �� � � ���� � ���� �� �� �

�� � ����.

�� ��

″Language-aware collations for Unicode data″(Internationalization Guide)

���� ��� ����� �� ���� �� �

�� 9.5��� ��� ��� ��� ���� ��� ���� �� ��� �

� ��� �����.

� ���� ���� � ��� � �� �� �� ��� � � � �

�� ��� � ����. �� ��, �� ���� ��� ��� ��� � �

� ���� �� �� �� ��� � ����.

�� ��� ���� � ���� � � �� ��� ��� � �� � �

�� � ���� ���� ��� ��� �� � �� ����.

�� ��

″Constants″(SQL Reference, Volume 1)

© Copyright IBM Corp. 1993, 2007 121

Page 136: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� �� �� �� ��� �� �� �� �

�� 9.5�� ��� ���� ��� ��� ��� � �� � �� ��� ��

��. � ��� �� ��� ��� ��� ���.

���� � ��� 1 - 4 ��� ���� ����. �� �� ��� ����

�� ��� ���� �� �� ��� ����� ���.

v INSERT

v LEFT

v RIGHT

v STRIP

v TRIM

�� �� ��� �����

SYSFUN ���� ��� �� ��� ��� ������. �� ��, INSERT

��� �� �� ��� ����� SYSFUN.INSERT� ����.

�� 9.5� ��� OVERLAY �� ����� �� �� ��� �����.

�� ��

″INSERT scalar function″(SQL Reference, Volume 1)

″LEFT scalar function″(SQL Reference, Volume 1)

″RIGHT scalar function″(SQL Reference, Volume 1)

″STRIP scalar function″(SQL Reference, Volume 1)

″TRIM scalar function″(SQL Reference, Volume 1)

″OVERLAY scalar function″(SQL Reference, Volume 1)

Big5-HKSCS–Unicode ��� ���� ������� HKSCS� ���

� � ��� � ��

�� 9.5�� Big5-HKSCS ������� ��� ������� HKSCS(Hong

Kong Supplementary Character Set) ���� �� ��� � �� ��� ��

� ���� ����.

� ������ HKSCS-2004 ��� 4.1 ��� �����. �� HKSCS-2004

��� ��� 4.1� �PUA� ���� ���� Big5-HKSCS�� ���� �

��� PUA(Private Use Area) � � �� ���� ����. ��� ����

� Big5-HKSCS� ��� �� HKSCS ��� �� ��� ��� ��� PUA

� � �� �� Big5-HKSCS � � �� �����.

�� ��

122 ��� ��

Page 137: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″Windows clients connecting to code page 950 databases″(Internationalization

Guide)

�� ���

″Migrating a code page 950 database containing HKSCS data to a Unicode

database″(Internationalization Guide)

�� ��

″Supported territory codes and code pages″(Internationalization Guide)

UPPER(UCASE) � LOWER(LCASE) ��� � � ���

�� �� UPPER(UCASE) LOWER(LCASE)� ��� ��� ��� ��

� ���� ����� �� � ����. ���� UPPER LOWER� ��

�� ���� �� ����� ��� �����. �� ��� �, ��� �� �

� �� � ���� ��� �� �� ��� ����.

�� �� ����� �� i� ���� ��� � � ����. �� �� i� �

� � i� ��� �� ���� � � ����. �� �� ��� i �� ��

��� i� �� � �� �����. ��� ��� tr_TR� ���� UPPER �

� ��� ��� ��� i� �� �� �� ��� ��� i� �����(���

�� � U&’₩0130’). ��� ���� ���� LOWER �� ��� ���

��� i� �� � ��� ��� i� �����(��� �� � U&’₩0131’).

���� ���� ��� UPPER �� ��� ��� ��� i� ��� ��� i

� ����(��� �� U&’₩0049’), LOWER �� ��� ��� ��� i�

��� ��� i� �����(��� �� U&’₩0069’).

�� ��

″UPPER scalar function″(SQL Reference, Volume 1)

″LOWER scalar function″(SQL Reference, Volume 1)

″LOWER (Locale sensitive) scalar function″(SQL Reference, Volume 1)

″UPPER (Locale sensitive) scalar function″(SQL Reference, Volume 1)

″LCASE scalar function″(SQL Reference, Volume 1)

″UCASE scalar function″(SQL Reference, Volume 1)

″LCASE (Locale sensitive) scalar function″(SQL Reference, Volume 1)

″UCASE (Locale sensitive) scalar function″(SQL Reference, Volume 1)

� 14 � ���� �� 123

Page 138: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

124 ��� ��

Page 139: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 15 � ��� � � ��� �� ����

� ��� ������� ��� ���� ��� �, ���� �� ��

��� �� � ��� �� ��� ��� ��� ��� �� ��� �

�� �� ��� ��� ����.

��� �� ��� ��� ��� �� ����� � �� � ����.

��� �� �� ��� ��� � �� ��

DB2 ����� ��� ��� �� �� �� �� �, ��� �� db2fodc(�

�� ���� ��� ��)� �� �� ���� �����. � ���� ���

�������� �� � �� �� �� ���� ��� � ����.

������ �� �� �� ��� db2fodc ��� ����� ��� ��

� ��� � ����. ������ �� �� � ��� ���� ��� ���

� ���. db2fodc ��� ��� ���� ��� � ��� �� DB2 ���

��(UNIX �� ��) ��(Windows �� ��)� �� ��, ��� �� ��

�� ��� ���� ��� �� �����. db2pdcfg �� ��� ��

DB2FODC ����� �� �� ����� �� ��� ��� ��� �

� �����. ��� � �� �, db2support ��� ��� � � ���

��� ���� IBM Support� ���� �� ���� ���� ���.

� ��� �� ��� �� � ��, IBM Support�� ���� �� ��

��� �� ��(�: db2support)� �� ��� � ��� �� � �

����.

�� ��

″db2support - Problem analysis and environment collection tool

command″(Command Reference)

″General registry variables″(Data Servers, Databases, and Database Objects Guide)

″db2pdcfg - Configure DB2 database for problem determination behavior

command″(Command Reference)

″db2fodc - DB2 first occurrence data collection command″(Command Reference)

SQL �� � � �� ��� ��

��� PD_GET_DIAG_HIST� ��� �� ��� ��� ���� ���,

�� � �� ��� ��� � ����(��� �: ����� �� ��

�� ��).

© Copyright IBM Corp. 1993, 2007 125

Page 140: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ���� ��� �� ��, �� � �� ��� � �� �� ��

�� �����. ��� �� �� ��� ����� ������. � ��

� �� ��� ��� � ����.

�� ��

″PD_GET_DIAG_HIST table function - Return records from a given facility″

(Administrative Routines and Views)

�� �� ��� �� ��� ��

�� 9.5��� ��� �, IBM POWER6 ��� �� �� ���� �

�� �� ��� ��� ��� ���� AIX �� ��� ��� ��� ���

��.

��� �� ��� � � ���� ��� � ����. � �� ����

� ������� �����. ��� � ��� � � ��� �� ���� �

��� ������� ��� � �� ��� �����. ������ � ��

���� ����� ������ �� �� �� �� ��� �� ��

����.

��� DB2_MEMORY_PROTECT ����� ��� ��� ��� � ��

� ���� ����.

�� ��

″Buffer pool memory protection ( AIX running on POWER6)″(Data Servers,

Databases, and Database Objects Guide)

�� ��

″Miscellaneous variables″(Data Servers, Databases, and Database Objects Guide)

��� ��� ��� ��� ��

INSPECT � �� ��� ���� db2inspect API� � � ��� �

high indexdata� ��� � ����.

INSPECT � db2inspect API� ���� ���� �� ������� ���

������� � ���� �����. ����� � INSPECT �

db2inspect API� ��� db2dart RUNSTATS�� ���� �� ��� �

��� ���� ��� �� �� � ����. �� ��� ������ �

�� ��� �� ������ ��� ���� � ����. INSPECT

db2inspect� ��� � ��� ����.

�� ��

126 ��� ��

Page 141: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″db2Inspect API - Inspect database for architectural integrity″(Administrative

API Reference)

″INSPECT command″(Command Reference)

��� ��� ���� ��� �� ��� ���

�� 9.5��� ��� ���� ���, �� ���(SQL0901N)� ��� �

� � ������ ��� ��� ���� �� �����.

�� ���� ���� INSPECT � �� db2inspect API� ��� ��� �

���� � � �� �� � � � ���, � �� �� ���� �� ���

� �� ������ ��� ���� � ����. �� � � �� ���

��� �� ���� �� �� ��� �� �� ��� ����

��� ����� �����. �� � � �� ��� ��� ����

�� ��, �� �� ��, �� �� XML ����� ���� ��

��.

�� ��

″db2Inspect API - Inspect database for architectural integrity″(Administrative

API Reference)

″INSPECT command″(Command Reference)

��� � �� � ������ ��� ��

��� ���� � �� �� ��� ������ ���(������ �

� �� )� �� �� � �����. � ����� ��� ���� �� �

� �� ��� �� ���� � � DB2 ����� ����� ����

�, �� ���� � ����� �����.

��, ����� �� �� � ��� ���, �� �� � ��� ��

�� �� �� ���� �� ����, DB2 ����� ��� ��� ��

�� � �����. ��� �� �� �� � ���� � ��� ��

� � ����. ������ ���� ���� ���� ��� ��� �

����.

�� ��

″Troubleshooting DB2″(Partitioning and Clustering Guide)

� 15 � ��� �� ��� �� �� 127

Page 142: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

128 ��� ��

Page 143: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 2 � ��� ��

� ���� � ���� � ����� �� ���� � ���� �� �

��� �� �� ��, ���� �� �� �� ��� ����.

�� ���� �� �� ���� ��� �� 9.5� � ��� �

����.

131 ���� � 16 � ���� ���

� ���� ������ ��, ������ ��, ���� CLP

��� � ��� ��� �� DB2 ��� ���� �� �

���.

173 ���� � 17 � ����� �� ���

� ���� ����� �� ���� ��� � ����� ��� � �

� �� �� �� ��� ���� ���� �� ��� ���� ����.

183 ���� � 18 � ���� ���

� ��� �� 9.5� ���� �� ��� ���� ����.

189 ���� � 19 � �DB2 �� 9.5 ��� ��� �� DB2 �� 9.1 FixPack

�����

� ���� �� 9.1 FixPack 3( �� FixPack)� ��� ����� �

� ��(�� 9.5�� �� � ��� � �� �� ��� ��� �

�)� �� ����.

© Copyright IBM Corp. 1993, 2007 129

Page 144: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

130 ��� ��

Page 145: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 16 � ��� ��

�� ���� � ���� ��� �� ���� �� ���� � � ��

�� ��� � ����. �� ��, �� 9.1�� ��� SQL�� �� 9.5���

�� � � ��� � ����.

���� ���� ������.

�� ���� ��

� ������� � �� ���� ����

��� DB2 ������� �� � ��� � ���� ������. ���

� ��� ������ � ���� ������� ��� � ��� ����

� �� �� ����.

����

��� ��������� ��� ��� ��� ��� � ����. ���� �

��� ��� ���� �� ������� �� �� ���� ��� � �

���.

��� � �(�: Java .NET)��� ���� ���� �����. �

�� ��� ������� �� �� �� ��� �����/�� �

� ��� �����.

��

���� ������� ���� ��� ������� � �� ��

� ������.

�� ��

″Unicode implementation in DB2 Database for Linux, UNIX, and Windows″

(Internationalization Guide)

�� ���

″Choosing the code page, territory, and collation for your database″

(Internationalization Guide)

″Creating databases″(Data Servers, Databases, and Database Objects Guide)

© Copyright IBM Corp. 1993, 2007 131

Page 146: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

������ ��� SECADM �� ��

������ ���� ��� ���� ��� �� ���(SECADM �� ��)�

� ����. �� ���� ���� ���� ��, �� �� �� ��

(�, �, ��(drop) �� ��)� � ����.

����

�� ���� ��� ��� �� ������� ��� ��� � �� ��� �

�����. ��� ���(SYSADM ��� ��)��� �� �� ��� �

� ��� ��� ��� � ��� � ����. �� ���� �������

��� ���� � �� �� ���� ��� �� SQL ��� ��� ����.

v ��� �� ��� ���� �� �� �� ��

v ARCHIVE � �

v �� �� ��� ��� ��� ��

��

��� ��� ���� ��� � ����. ��� ������ db2audit �� �

�� �� ��� ��� �� ��� ��� ��� ���� ��� � ��

�. �� ������ db2audit � ��� �� �� ��� ���. SYSADM

��� ����.

�� ��

49 ���� ��� �� �� �� ��

″Storage and analysis of audit logs″(Database Security Guide)

�� ��

″db2audit - Audit facility administrator tool command″(Command Reference)

��� �� ��� ���� ���

�� 9.5��� �� �� ��� �� ��� ��� ����.

����

�� 9.1��� ���(�� ) �� ���� ��� ��� ��� �� �

�� ��� ���. �� ��� COMPRESS ��� �� ���� ���. �

�� �� 9.5��� �� ��� COMPRESS ��� ��� �, ��� �� �

��� ��� ��� � ��� �� �� �� ����. � � INSERT

�� ���� INSERT �� REPLACE �� �� LOAD �, INSERT �

� �� IMPORT � �� REDISTRIBUTE ��� ������ ����� �

� �� ���� �� ��� �� ���� ��� ��� �, ��� ��

132 ��� ��

Page 147: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� ��� ����. ��� �� ��� ��� �� � ���(�

� ) �� ���� ���� ��� ���.

�� 9.1��� KEEPDICTIONARY ��� �� ���� ��, ���

COMPRESS ��� �� ����, ��� �� ��� �� ��� �� ��

� ��� �� ���� ��� �� ��� ����. ��� �� 9.5���

KEEPDICTIONARY ��� �� ���� ��, ��� COMPRESS �

�� �� ����, ��� �� ��� �� �� ��� ��� ��� ���

� �� � ��� ���� � ��� ��� �� ��� ����. ��

���� 1MB� ���� �� ��� ��� �$� �� 70 ����� ���.

�� 9.1��� ��� �� ��� �� �� ��� �� ��� �� ��� �

�� � �����. ��� �� ��� �� � ��� �� ��� �� �

� ��� � �, SQL2220W �� ���� �����. ��� �� ��

� ��� �� ��� ��� ��� �� ��� ����. ��� �� 9.5�

�� ��� �� �� �� ���� �� ���� �� � ��� ���.

�� ��� �� ���� ��� ���� �� ��� ��� �� �� ��

� �� �, SQL2220W �� ���� ���� ����.

��

�� ��� COMPRESS ���� ��� ���� ��� �� �, ���

�� �� �� �� �� ���� ��� ���.

�� ��

″Automatic (compression) dictionary creation (ADC)″(Data Servers, Databases,

and Database Objects Guide)

�� �� �� ��� �� � ��

��� �� ��� ���� �� ��� �� ��� � �� �� ���

�� ���� �� �� 9.1 �� 9.5 ���� ������. �� ��

��� �� ��� ���� ���� � ��� � ����.

����

�� ��� �� ��� � �� �� ������.

� 7. �� ��� � �� �� ��� �

� �� �� �� 9.1� ��� � � �� �� 9.5� ��� � � ��

appl_id ���� ID CHAR(64) VARCHAR(64)

appl_id_holding_lk ���� ID �� �� CHAR(64) VARCHAR(64)

auth_id �� � ID VARCHAR(30) VARCHAR(128)

corr_token DRDA �� � CHAR(64) VARCHAR(64)

� 16 � �� �� 133

Page 148: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 7. �� ��� � �� �� ��� � (��)

� �� �� �� 9.1� ��� � � �� �� 9.5� ��� � � ��

creator ���� �� VARCHAR(30) VARCHAR(128)

execution_id ��� �� ID VARCHAR(30) VARCHAR(128)

package_name ��� �� CHAR(8) VARCHAR(128)

rolled_back_appl_id ��� ���� CHAR(64) VARCHAR(64)

table_schema �� ��� �� VARCHAR(30) VARCHAR(128)

��

��� �� ��� ���� ���� ��� ��� �� ���� ����

� �� �� �� ���� �� � ��� �����.

1. SYSCAT.EVENTTABLES � ��� ��� �� ��� ���� �� �

� ��� ���� �� �� ��� ��� ����. �� �� ��

� ���� ��� �� �, ��� ��� �� �� ��(drop)� �

����.

2. ��� ���� ��(drop)� � �� ������.

3. �� ��� ����� �� ���� � ��� ��� CHAR ��� �

� �� VARCHAR ��� � � ������, ��� ��� �� �

�� �����. �� ��� � � �� � � � �� �����

Developing Embedded SQL Applications�� �C C++ Embedded SQL �

��� � ���� SQL ��� � �� � ����.

��� �� � � �� � �� � ��

�� 9.5� � ��� ���� �� ��� � �� ��� �� ��� ��

�������.

��� �� � ����

�� 9.5��� �� �� ��� � �� � ������. � �� � �

� ���� ����� � �, �� � ��� � ��� � �� �

����.

v SYSCAT.ATTRIBUTES

v SYSCAT.CHECKS

v SYSCAT.COLAUTH

v SYSCAT.COLUMNS

v SYSCAT.DATATYPES

v SYSCAT.DBAUTH

v SYSCAT.DBPARTITIONGROUPS

134 ��� ��

Page 149: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v SYSCAT.EVENTMONITORS

v SYSCAT.EVENTS

v SYSCAT.EVENTTABLES

v SYSCAT.FUNCMAPPINGS

v SYSCAT.INDEXAUTH

v SYSCAT.INDEXEXPLOITRULES

v SYSCAT.INDEXEXTENSIONS

v SYSCAT.INDEXEXTENSIONPARMS

v SYSCAT.INDEXEXTENSIONMETHODS

v SYSCAT.INDEXES

v SYSCAT.NICKNAMES

v SYSCAT.PACKAGEAUTH

v SYSCAT.PACKAGEDEP

v SYSCAT.PASSTHRUAUTH

v SYSCAT.REFERENCES

v SYSCAT.ROUTINEAUTH

v SYSCAT.ROUTINEDEP

v SYSCAT.ROUTINESFEDERATED

v SYSCAT.ROUTINEPARMS

v SYSCAT.ROUTINES

v SYSCAT.SCHEMAAUTH

v SYSCAT.SCHEMATA

v SYSCAT.SECURITYPOLICIES

v SYSCAT.SEQUENCES

v SYSCAT.SEQUENCEAUTH

v SYSCAT.SURROGATEAUTHIDS

v SYSCAT.TABAUTH

v SYSCAT.TABCONST

v SYSCAT.TABDEP

v SYSCAT.TABLES

v SYSCAT.TABLESPACES

v SYSCAT.TBSPACEAUTH

v SYSCAT.TRIGDEP

v SYSCAT.TRIGGERS

� 16 � �� �� 135

Page 150: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v SYSCAT.TYPEMAPPINGS

v SYSCAT.USEROPTIONS

v SYSCAT.VIEWS

v SYSCAT.XSROBJECTAUTH

v SYSCAT.XSROBJECTS

�� 9.5��� �� �� ��� � �� � �������.

v SYSCAT.AUDITPOLICIES

v SYSCAT.AUDITUSE

v SYSCAT.CONTEXTATTRIBUTES

v SYSCAT.CONTEXTS

v SYSCAT.HISTOGRAMTEMPLATEBINS

v SYSCAT.HISTOGRAMTEMPLATES

v SYSCAT.ROLEAUTH

v SYSCAT.ROLES

v SYSCAT.SERVICECLASSES

v SYSCAT.THRESHOLDS

v SYSCAT.VARIABLEAUTH

v SYSCAT.VARIABLEDEP

v SYSCAT.VARIABLES

v SYSCAT.WORKLOADAUTH

v SYSCAT.WORKLOADCONNATTR

v SYSCAT.WORKACTIONS

v SYSCAT.WORKACTIONSETS

v SYSCAT.WORKCLASSES

v SYSCAT.WORKCLASSSETS

v SYSCAT.WORKLOADS

136 ��� ��

Page 151: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� �� � ����

�� 9.5��� �� �� ��� �� �� ��� �� �� �������.

� 8. �� � ��� ��� �� �� ��

� �� ���� ��

v BITAND, BITOR, BITANDNOT, BITNOT

BITXOR

v COLLATION_KEY_BIT

v COMPARE_DECFLOAT

v DECFLOAT

v DECODE

v GREATEST

v LEAST

v MAX

v MIN

v NORMALIZE_DECFLOAT

v NVL

v QUANTIZE

v RID_BIT RID

v TOTALORDER

�� �� ��� ��� �� ��� �� ��

(UDF)� �� �� ��� ��� ���� �

�� �� �, �� �� ��� � �� ��

� �����. �� ��� ���� ���� �

�� �� �� ��� ��� ���� ����

�����.

v INSERT

v LEFT

v OVERLAY

v RIGHT

v STRIP

v TRIM

���� � �� �� ��� ���� ��

SYSIBM ��� ��� �� ���� ��

� �� ���� �� ����� ���� � �

� ��� ����. ��� SQL �� ����

��� �� ���� �� �, �� ��� �

��� �����. � �� ���� �

���� ��� ����. �� ����� �� �

�� �� ��� ����� SYSFUN ����

�� ��� ��� �����.

��� �� �� � � � ����

�� 9.5��� �� �� �� ��� �������.

v ADMIN_CMD ���

v ADMINTABINFO ��

v AUTHORIZATIONIDS ��

v ENV_PROD_INFO ��

v PRIVILEGES ��

v SNAPAPPL ��

v SNAPAPPL_INFO ��

� 16 � �� �� 137

Page 152: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v SNAPBP ��

v SNAPDB ��

v SNAPDBM ��

v SNAPDYN_SQL ��

v SNAPTAB_REORG �� SNAP_GET_TAB_REORG �� ��

�� 9.5��� �� �� �� ��� �������.

v ADMIN_GET_DBP_MEM_USAGE �� ��

v ADMINTABCOMPRESSINFO ��

ADMIN_GET_TAB_COMPRESS_INFO �� ��

v AUDIT_ARCHIVE ��� �� ��

v AUDIT_DELIM_EXTRACT ���

v AUDIT_LIST_LOGS �� ��

v AUTH_LIST_AUTHORITIES_FOR_AUTHID �� ��

v AUTH_LIST_ROLES_FOR_AUTHID �� ��

v AUTOMAINT_GET_POLICY ���

v AUTOMAINT_GET_POLICYFILE ���

v AUTOMAINT_SET_POLICY ���

v AUTOMAINT_SET_POLICYFILE ���

v ENV_FEATURE_INFO ��

v ENV_SYS_RESOURCES ��

v EXPLAIN_FORMAT_STATS �� ��

v PD_GET_DIAG_HIST �� ��

v SNAP_GET_APPL_V95 �� ��

v SNAP_GET_APPL_INFO_V95 �� ��

v SNAP_GET_BP_V95 �� ��

v SNAP_GET_DB_V95 �� ��

v SNAP_GET_DBM_V95 �� ��

v SNAP_GET_DYN_SQL_V95 �� ��

v WLM_CANCEL_ACTIVITY ���

v WLM_CAPTURE_ACTIVITY_IN_PROGRESS ���

v WLM_COLLECT_STATS ���

v WLM_GET_ACTIVITY_DETAILS �� ��

v WLM_GET_QUEUE_STATS �� ��

v WLM_GET_SERVICE_CLASS_AGENTS �� ��

138 ��� ��

Page 153: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v WLM_GET_SERVICE_CLASS_WORKLOAD_OCCURRENCES �� ��

v WLM_GET_SERVICE_SUBCLASS_STATS �� ��

v WLM_GET_SERVICE_SUPERCLASS_STATS �� ��

v WLM_GET_WORKLOAD_OCCURRENCE_ACTIVITIES �� ��

v WLM_GET_WORKLOAD_STATS �� ��

�� ��� ��� �� 9.5�� ���� ����.

v ADMIN_GET_TAB_INFO �� ��

v SNAP_GET_APPL �� ��

v SNAP_GET_APPL_INFO �� ��

v SNAP_GET_BP �� ��

v SNAP_GET_DB_V91 �� ��

v SNAP_GET_DBM �� ��

v SNAP_GET_DYN_SQL_V91 �� ��

���� �� �� �� � � �� �� ���� �����

Administrative Routines and Views� ����� �� SQL �� �� �� ��

�� �� � ��� �����.

Memory Visualizer� �� �� �� ��

Memory Visualizer��� � appl_memory �� ��� ��� ��������,

��� instance_memory �� ��� ��� ����� ���� � �� �

�� ���� �����.

Memory Visualizer� �� AUTOMATIC ��� � �� �� �� ���� �

� �� �����.

v mon_heap_sz

v stmtheap

v stat_heap_sz

v applheapsz

��� ���� �� �� ���� �� �� �� 9.5 ��������� ���

� ��� �� DB2 ��� ������� ���� �� �����.

v appgroup_mem_sz

v groupheap_ratio

v app_ctl_heap_sz

v query_heap_sz

�� ��

� 16 � �� �� 139

Page 154: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″Memory Visualizer overview″(System Monitor Guide and Reference)

28 ���� ���� �� ����

�� ��

″instance_memory - Instance memory configuration parameter″(Data Servers,

Databases, and Database Objects Guide)

″appl_memory - Application Memory configuration parameter″(Data Servers,

Databases, and Database Objects Guide)

�� ��� �� � � �� ��

�� ���� ��� ���� �� � � ����.

����

�� 9.5��� �� ���� Linux UNIX �� ���� �� � 600�� �

���, ��� ������ � �� ���� �� � � �� ��� �����.

��� �� ��� ��� Windows �� ����� DB2ADMNS( ���) ��

� ���� �� ���� ���� � ����.

�� ����� Linux UNIX �� ��� �� ���� �� � 640�� �

�����, �� ��� ���� �� ��� � ���� �� � ���� �

����. � ��� ����� �� ���� �� � �� ��� � ��� �

����� ����, �� ���� �����.

HADR ��� �� ����� �� � �� � �� ���� ��� ���

�� 9.5�� � �� ���� �� �� ��� �����.

��

�� ���� �� ��� ��� �� �� ���� �� �, �� �� � �

� ��� �� � ����.

DB2 ������ �� �� ��(Windows)

DB2 ����� Migrate �� �����.

����

Windows �� ���� �� 9.5 ���� �� �� DB2 ���� �����.

�� 9.5��� �� �� DB2 �� ���� �� DB2 �� � ��� ��

��.

140 ��� ��

Page 155: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��

�� �� ������ ��� ������.

1. DB2 ���� �����.

2. �� �� ��� �� ���� ��� �����.

3. �� DB2 �� � ���� ��� DB2 ��� �����.

4. DB2 �� � � ��� �����.

� ��� �� ��

�� �� �� �� �� ��� � ��� � ���� �����.

����

� ��� �� �� �� ���� ��� ���� ��(MDC)� ����

�� �� ����� ����. �� ����� ��� �� �� �� ���

��� �� �, �� ��� �� ��� �� �� � ��� � ���

�.

v RUNSTATS ����� �� ��� �����.

v ��� �� ��� ��� MDC ���� ��� ��� �� �����.

v ��� �� �� ������.

v ��� �� CLEANUP �� �� REORG INDEX �� �����.

v ���� �� ����(��, �� �� ��)� �� ��� ����.

� � SQL0289N � ���(tablespace-name �� ����� � ���� �

�� � ���)� �� �� ��� � ����.

��

�� �� ���� ��� ������.

�� ���

″Adding or extending DMS containers″(Data Servers, Databases, and Database

Objects Guide)

�� ��

″ALTER TABLESPACE statement″(SQL Reference, Volume 2)

″CREATE TABLESPACE statement″(SQL Reference, Volume 2)

� ���� �� ��� ��� ��� ��

��� ��� ��� �� ��� ���� ���, �� � �� ��

�� �� ��� �� ��� ���� ����.

� 16 � �� �� 141

Page 156: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

REPLACE � �� IMPORT �� ����, �� ��� ��� ���

� ��� �� ���� ���� ���� ���� �����. �� ��, ��

�� �� �� ���� �� ���. ��� �� ��� �� �� � �

� �� ���� ����.

��� ���� ��� �� �� ��� �������. �� �� �� �

� �� �� �� ��� ��� �� � ����. �� ��� �� ��

� ����.

��

���� ��� �� �� � �� ��� ��� �� �� ��� ���.

���� REFRESH TABLE � SET INTEGRITY�� ALLOW NOACCESS ��� ��� ���

ALLOW NO ACCESS � �� REFRESH TABLE� �� SET INTEGRITY

� ��� ��� �� ���� Z �� ��� X ��� �����.

����

�� ���� Z �� �� X ��� ���� ���� �� �� ���� �

� ���� �� �� � REFRESH TABLE� �� SET INTEGRITY�� �

�� �� ��� �� ��� � � ����. ��, ���� �� �� ��� �

� �� ���� ����� ��� �� � ����.

��

�� �� �� ���. ��� �� ��� �� ���� � ���

� ����.

������ � ����� ��

�� �� ���� ��

�� 9.5�� ���� �� ���� ��� � ��� � �� ���� ��

� ������. ��, �� ���� ���� ��� �� ��� DB2

��� ���, ��� ��� �� �� �� ��� �����.

��� �� ����

��� ���� � �� 9.5� ��� �� ���� � ���� ����.

142 ��� ��

Page 157: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 9. � �� 9.5� �� ���

���� �� ��

DB2 Connect�

DBM �� ���

� �� �� � ����

appl_memory ���� �

��

��� �� DB2 ������ ������ ��� ���� �

��� � �� ���� ���� ���� ��� � ���

�. ���� �� �� AUTOMATIC�� ����, �� ���

��� ���� ��� � ��� �� instance_memory ��

�� �, �� ���� ��� � ���� ����.

auto_del_rec_obj �� ���

� ��

��� ��� �� ���� �� ��� #(prune)� � ������

�� ��, �� ��� � �� ���� ����� ���

��.

auto_stmt_stats � �� �� ��� ��� ���� ��� ��� �� �� �� �� ����� �

��. �� auto_runstats �� ���� �� ����� �

� ���� �� ��� ��� ��� � ����.

cluster_mgr ��� ��

�� ��

� ������ �� �� � ��� �� ���� �� �

��� ��� ��� �� �� � �����.

decflt_rounding 10� � ���

���

��� DECFLOAT(Decimal Floating-Point Type)� ��� �� ��

� � ����. ��� �� ��� 10� � ���

LOAD �� ���� ��� �� ���.

enable_xmlchar XML� �� �

� ��

��� XMLPARSE � SQL�� �� BIT DATA CHAR(��

CHAR-type)� �� ����� ��� � ����. ���� �

�� ��� � � ��� p u r e X M L � �� � ��� � ,

XMLPARSE ��� � SQL ��� ���� ����� �

����� ������ � ���� � �� �� ���� �

��� ��� � �� ��� �� � ����. �� � �

��� ��� ���������(�� ��� ��� ��) �

����.

hadr_peer_window HADR �� �

��

��� HADR ��-�� ������ �� �� ������� �� �

������ ��� �� ��� ��� �� � �� ��

� �� �� ��� � ���� ���� �����. �

�� �� ��� ���� �� � ����.

wlm_collect_int �� ��

� ��

� �� �� �� �� ��� �� �� ��� ��� �� �

�� ��(�)� �����. ���� ��� � �� ����

�����. �� �� ���� ���� ��� ��� ��

� � �� ��� � ���� � ����.

��� �� ����

�� ��� �� ����� ���� �� ���� �����. �� �

�� ��� ������ ���� ��� ��� � � �� ��� �

����.

� 16 � �� �� 143

Page 158: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 10. �� ����� ���� �� ���

���� �� ��

DB2 Connect�

DBM �� ��

�� �� ��

� �� 9.1� ��� �� 9.5� ���

applheapsz ���� � �

��� �� ��� �����

� �� 32�� 64��

������ ��: 256

�� ��� �����

� �� 32��� ���

������ ��: 64

�� ��� �����

� �� 64��� ���

������ ��: 128

AUTOMATIC

catalogcache_sz � �� �� �� ��� ��� �� �� ���

����� maxappls ��

���� ��� �� �

����.

��� �� �� ��� �����

maxappls �� ���� ��� �

� �� ����.

comm_bandwidth �� ��� � ����� �� ��� �

� �� ���� ��

��.

����� �� �� ���� ���

���� ����. 100 �� ���

� �� ���� ���� ��

����.

database_memory ������ ��

��� ��

��� AIX Windows �� �

�� �: AUTOMATIC

Linux, HP-UX, Solaris �

� ��: COMPUTED

Linux �� ���� � ����

�� RHEL5 SUSE 10 SP1�

AUTOMATIC��( ��� �)

��� �����. � �� ���

L i n u x � � � , � � � �

AUTOMATIC� ���� ��� �

��� �� COMPUTED� ���

�����.

� �� �� ��� �:

AUTOMATIC

dbheap ��� ��� �

(heap)

��� UNIX: 1200

�� ��� �����

� �� Windows ����

�� : 600

�� � ��� �� ��

Windows 64�� ����

�� ��: 600

�� � ��� �� ��

Windows 32�� ����

�� ��: 300

AUTOMATIC

fenced_pool ��(fenced) ��

�� ���

� max_coordagents � AUTOMATIC

144 ��� ��

Page 159: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 10. �� ����� ���� �� ��� (��)

���� �� ��

DB2 Connect�

DBM �� ��

�� �� ��

� �� 9.1� ��� �� 9.5� ���

max_connections ����� ���

���

� max_coordagents � AUTOMATIC

mon_heap_sz ������ ���

��� �(heap) �

� UNIX: 90

�� ��� �����

� �� Windows ����

�� ��: 66

�� � ��� �� ��

Windows ������

��: 46

AUTOMATIC

num_poolagents ���� � �� � maxagents/2� � AUTOMATIC

stat_heap_sz �� � �� ��� 4384 AUTOMATIC

stmtheap �� � �� ��� 32�� ��: 2048

64�� ��: 4096

AUTOMATIC

�� 9.5��� �� �� ���� � ���� ��� ��� � ���.

� 11. �� �� � ��� ���� �� ���

���� �� ��

DB2 Connect�

DBM �� ���

� �� �� � �� 9.5� ����

applheapsz ���� �

��

��� �� ������ � ���� � ������ ����� ��

� �� ������. �� � ���� ���� � � �

�� �� ����.

federated_async ��� �� �

� TQs

� �� ��� maxagents/4 �� ����. �� 32 767���.

instance_memory ��� ��� � �� ��� 4 294 967 295� ����. 32�� ��� �

1 000 000�� 64�� ��� � 68 719 476 736���.

��� ���� DBMS ��� �� �� ��� ��� ����

�� ����� ��� ����.

intra_parallel � � � ��

�� ��

� � ���� � SQL ��� ��� SMP �� ��� ��

��� �� � �� ��� ���� ����. �� �� �

�� ��� �� �� �� ����� �� �� �

� �� �� � � �� ��� �� CREATE INDEX �

���� �� ���� �����.

max_coordagents ���� ��

��� �� �

� �� ��� AUTOMATIC� ����, �� maxagents ��

� num_initagents �� � �� ����. � �� 64 000��

�.

maxfilop ��������

�� �� �

�� �� ��

��� � ���� �������� �� �� � �� �� ���

�� �� ����. �� ����� � ���� � ����

�� ������ �� � �� �� ��� �� �� ����

��.

� 16 � �� �� 145

Page 160: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 11. �� �� � ��� ���� �� ��� (��)

���� �� ��

DB2 Connect�

DBM �� ���

� �� �� � �� 9.5� ����

num_initagents �� �� ���

�� �� �

� �� ��� num_poolagents �� ����. 64 000���.

num_initfenced ��(fenced) �

��� �� �

� �� ��� max_connections + (maxagents - max_coordagents)

� ����. 64 000���.

sortheap �� � �� ��� OLAP ����� ��� ��� ��� ��� �� ���

� � ��� �� �� � ���� �����.

���� �� �� ��� �� ����

�� �, ��� ��� �� �� �� ��� � � �� ���� ���

� ��� �� ������.

�� �� ���� �� ��� ��� ���� ��� ��� �� ���� �

���� ��� ���� ����.

� 12. ���� �� �� ��� �

���� �� ��

DB2 Connect�

DBM �� ���

� �� �� � ���� � ���

agentpri ���� ��

� ��� �� �� �� ���� � �� ���� � �

�� � �� ���� �� ����� ��� � ����.

app_ctl_heap_sz ���� �

� � ��

��� ��� ��� ���� � ���� � �� ��� ��� �

�����(� ��� ��)� ��� ��� �� ���� �

� �����. �� 9.5��� � ���� � � ����

��� ���� ��� ��� �� ��� � �� �� ����

���� �� ��� appl_memory �� ���� ��� ��

���� � ���� ��� ����� ������.

appgroup_mem_sz ���� �

� ��� ��

� �� ��

���

groupheap_ratio ���� �

� �� ���

���

���

maxagents � � ����

��� �� ������ �� �� ����� �� ���� �

maxagents ���� ���� ��, ���� ��� �� ��

�� �� ��� ������.

�� � �� �� � ������ �� �� ����� �

� ���� � maxcagents ���� ���� �� �� ��

(connection concentrator) DB2 �� �� ��� ��� �

��� �� ��� ������.

maxcagents � �����

�� �

���

146 ��� ��

Page 161: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 12. ���� �� �� ��� � (��)

���� �� ��

DB2 Connect�

DBM �� ���

� �� �� � ���� � ���

logretain �� �� �� ��� �� ��� �� logarchmeth1, 1� �� ��� ��� �

� ���� ��. � � ��� �� �� �� ��

� ���� � logretain� ���� �� LOGRETAIN ��

logarchmeth1� ������. �� � �� userexit �� � �

� �� ���� ���� � userexit� ���� �� ,

logarchmeth1� USEREXIT �� ������.

v logretain� ��� LOGRETAIN �� logarchmeth1�� �

����.

v userexit� ��� USEREXIT �� logarchmeth1�� ���

��. logretain userexit� ��� USEREXIT ��

logarchmeth1�� �����.

�� ��, update db cfg using logretain on�� ��

LOGARCHMETH1� LOGRETAIN�� �����.

userexit User exit �� ���

query_heap_sz �� � �� � � �� ���� DB2RA �(� ����� ���� ��)

� ��� Linux, Windows UNIX �� 7(�� �� ��) �

����� DB2 Universal Database� ���� � ����� �

�� �� ���� ����.

numsegs SMS ����

��� �

��� CREATE DATABASE � �� � SMS �� ����� �

���� ���� ��� � �� ���� ���� ����.

�� �� ���� �� ������.

� 13. �� �� �� ��� �

���� �� ��

DB2 Connect�

DBM �� ��

�� �� ��

� ���� � ���

estore_seg_sz ��� ��� ��� ���

�� ��

��� ��� ��� �� ��� �����

�. ��� ��� �� ���� ��

� ���� ���. � ���� �

���� 64�� �� ��� ����

����.

num_estore_segs ��� ��� ��� ���

�� �

���

priv_mem_thresh ��� ��� � ������ �� �� ��

multithreaded ����� ���� ��

� � ���� ��� ����.

�� ��

″RESET DATABASE CONFIGURATION command″(Command Reference)

″Configuration parameters summary″(Data Servers, Databases, and Database

Objects Guide)

�� ���� ″DB2 �� ���″

� 16 � �� �� 147

Page 162: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ����� � �� �� ��

�� 9.5��� � ����� � ��� ������.

� ��

� 14. � ����� ���� ����� ��

����� �� �� 9.1� �� ��� �� 9.5� �� ���

DB2INSTPROF �(NULL) Windows Vista �� ��� �

Prog ramDa ta₩ IBM₩DB2₩ ,

Windows 2003 �� XP �� �

�� � Documen t s and

Settings₩All Users₩Application

Data₩IBM₩DB2₩

� �

� 15. � �� ���� ����� ��

����� �� � �

DB2_MDC_ROLLOUT � ���� � � DEFER � �

IMMEDIATE(��� ON, YES, 1 TRUE �

�� �)� ����. ��� ���� ��

�� ��� �� �, �� �� �� ���(�

�� )� ����� �� ��� �� ��

���� ������ ��� � ����. ���

��� 55 ���� ���� �� �� ���

MDC ��� �� �� ��� � ����.

DB2_WORKLOAD � ���� � �� �, � 1C� TPM� ���

�. �� ���� ��� 1C� �� ���

Tivoli Provisioning Manager� ���� ���

� � �������� ����� �� ��� �

�� � ����.

��� ��

� 16. �� � ���� ����� ��

����� �� ��� �

v DB2_RESOURCE_POLICY

v DB2_LARGE_PAGE_MEM

v DB2_PINNED_BP

v DB2PRIORITIES

�� ����� ��� ��� ��� ����

����. � ��� ��� � ���. ��� �

�� 111 ���� ���� ���� DB2 �� �

� ��(Linux UNIX)�� � ����.

DB2CLIINIPATH Windows �� ��� DB2 �� 9.5 �� � �

� �� ��� DB2CLIINIPATH� ���

DB2 ��� �� db2cli.ini �� �� ��� ��

���. ��� DB2 �� �� � ���� ��

�� �� ��� �� �� ��� �������,

� ��� �� ��� ������.

148 ��� ��

Page 163: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 16. �� � ���� ����� �� (��)

����� �� ��� �

DB2MEMMAXFREE Linux UNIX �� ��� � ����� ��

� ����, ��� ��� � ��� �(NULL)

� �����. ������ �� �� �� �

� �� ��� ���� ��� � ��� ��

�� ��� �� ��� �� ������ ��

�� ���� ���� �����.

�: � ��� ���� ����. ��� �� ��

� ��� �� ��� �� � �� �

����.

��� ��� 27 ���� ����� multithreaded

����� TCO(Total Cost of Ownership) ���

� � ����.

DB2_EXTENDED_IO_FEATURES �� �� ��� ��� ���� ���� �

� ����� �� �� ���� ��� ���.

��� ��� ��� ��� API� ���� �

��� ���. �� 9.5��� �� �� ���

���� �� �� ��� ��� ��� ��

� ���� API� ���. ��� ��� 27 �

��� ����� multi threaded �����

TCO(Total Cost of Ownership) ���� � ��

��.

DB2_USE_DB2JCCT2_JROUTINE � ����� ��� ��� ���� Java ��

��� ��� �� ��(UDF)� ���

���� IBM Data Server Driver for JDBC and

SQLJ�� ����. �� ������ ���

JDBC ���� DB2 JDBC � 2 ����

���. ��� ��� 155 ���� ���� JDBC

���� Java ����� ��� � ����.

� ��

�� ����� ��� �� 9.5�� �� ���� �����.

� 17. ����� �� ��

����� �� ��

DB2_CAPTURE_LOCKTIMEOUT � ����� ��� � ��� �� ��

��� �� ��� ����� �����. �

�� ���� �� ������ ��� ��

� ��� �����. ��� ��� 38 �

��� ��� ���� � �� ��� �

����.

� 16 � �� �� 149

Page 164: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 17. ����� �� �� (��)

����� �� ��

DB2_EVMON_EVENT_LIST_SIZE � ����� ��� �� ��� ����

��� �� �� ��� � �� �� ��

�� �����. � ��� ��� �, ���

��� ��� ����� ����� � �

�� � ��� ��� �� ��� ����

�. ��� ��� 41 ���� � �� ��

�� �� �� ��� � ����.

DB2FODC � ����� ��� DB2FFDC �����

���� ��� �� ��� ��� ���

FODC(First Occurrence Data Collection)� �

�� ��� �� �� ��� ��� ���

��. �� ��� IBM ��� ����

FODC ���� DB2 ���� ��� �

�� ���� ��� ���. DB2FODC� �

�� �� �� ���� �� ���

�� ������. ��� ��� 125 �

��� ���� � �� ��� ���

�� �� ��� � ����.

DB2_MEMORY_PROTECT � ����� ��� ��� �� ��� ��

� � ���, � ���� ��� �� ��

� ���� �� ��� ���� � �

��� ��� �� ��� � ����.

DB2 �� ��� � � ���� �� �

�� ��� ��� �� ��� ��� ��

� ��� ���.

DB2_MEMORY_PROTECT� YES� ��

��, DB2 �� ���� � � ����

���� ���� � �� �� ��� �

����. ��� ��� 127 ���� ����

�� �� ������ ��� ��� �

����.

DB2_OPTSTATS_LOG DB2_OPTSTATS_LOG��� �� �

�� �� ��� ���� � ����

�� ��� � ��� ��� �����.

DB2_OPTSTATS_LOG� ���� ���

ON�� ���� �, �� ��� � � �

��� ��� ��� ����� �� �

�� ��� �� ����� ��� � ���

�. ��� ��� 26 ���� ���� ��

���� �� ��� ��� ����� �

����.

150 ��� ��

Page 165: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 17. ����� �� �� (��)

����� �� ��

DB2_SET_MAX_CONTAINER_SIZE � ����� ��� ������� �� �

�� ��� �����. � ����� ��

� ���� � ��� �� �� ���

�� � ��� ��� ��� ��� �,

�� ��� �� �� � ���� ��

����� ����. ��� ��� 38 ��

�� ��� ����� �� ���� �

��� � ����.

DB2_SYSTEM_MONITOR_SETTINGS � ����� ��� ��� ��� ���

�, � ��� ��� ��� ��

DB2 ���� � ��� � ����. �

� ��, OLD_CPU_USAGE ����

���� Linux ���� CPU ��� ��

��� �����.

DB2_THREAD_SUSPENSION � ����� ��� DB2 �� �� ��

� ����� ���� ����. ��� ��

� DB2 ���� ��� �� �� ��

(� � ���� ���� ���� ��

�� ��)� ��� ��� ������

��� � ����. ��� ��� 127 ��

�� ���� �� �� ������ ��

� ��� � ����.

DB2_UPDDBCFG_SINGLE_DBPARTITION � ����� ��� ��� ������ �

� ���� �� ���� �� ���

� ��� � ����. ��� ���� ��

�, ������ ��� �� �� �

��� �� ������ ��� ����.

��� ��� 28 ���� �� ��� �

����� �� ����� � ����.

�� ��

173 ���� ��� ����� � ��� ���� ���

185 ���� ��� ����� � �� �� ��

�� �� �� � � ��� ���(AIX, Linux, Solaris �

Windows)

�� 9.5 �� ���� FILE SYSTEM CACHING� CREATE TABLESPACE�

CREATE DATABASE ��� �� �� �� ����� ��� ����

���. �� 9.5��� NO FILE SYSTEM CACHING ��� �� ��� � �

� ��� ��� ����.

� 16 � �� �� 151

Page 166: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

FILE SYSTEM CACHING NO FILE SYSTEM CACHING ��� ���

� �� ��� ���� ������ �����. CREATE TABLESPACE�,

CREATE DATABASE � sqlecrea() API(SQLETSDESC � � sqlfscaching

� ��)� �� ����� ��� �� ��� �����.

�� 9.5�� NO FILE SYSTEM CACHING� � ��� ���� CREATE

TABLESPACE� �� CREATE DATABASE �� ���� �� �, ���

� �����. CIO, DIO �� �� ��� ��� ���� ��� ��� ���

��� ��� �� ���� � ����.

��

��� � ���� ����, �� ���� � � FILE SYSTEM CACHING

� ������.

��� �� � ��� ���� �� �� �� � � � �, �� ��

� ��� ������.

v �� �� � ���� ���� � � �� database_memory �� �

��� AUTOMATIC�� ������.

v � � ��� ��� �����.

v FILE SYSTEM CACHING ��� �� ALTER TABLESPACE�� ���

DIO CIO� �� ����� ����.

�� ��

″Management of multiple database buffer pools″(Tuning Database Performance)

″Self-tuning memory″(Data Servers, Databases, and Database Objects Guide)

″Table spaces without file system caching″(Data Servers, Databases, and Database

Objects Guide)

�� ��

″ALTER BUFFERPOOL statement″(SQL Reference, Volume 2)

″ALTER TABLESPACE statement″(SQL Reference, Volume 2)

″CREATE TABLESPACE statement″(SQL Reference, Volume 2)

″sqlecrea API - Create database″(Administrative API Reference)

″CREATE DATABASE command″(Command Reference)

152 ��� ��

Page 167: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ��� DB2ADMNS �� DB2USERS ��� �� ��� ��

(Windows Vista)

Windows Vista� ��� ��� ����, �� ���� ���� �� ��� �

��� �� �� ��(��� ��� ��) ��� ���� �� DB2 � ��

�� � ���� DB2ADMNS �� DB2USERS ��� ��� ���.

����

���� � � �� ��� ��� ��� ��� �� DB2 �� �� ����

���� ���� �� � ���.

��

v �� ��� �� ��� �, �� DB2 ���� ��� ���� ��

���� DB2ADMNS �� DB2USERS ��� ������. �� ��� �

�� �� �� ���� �� � � ����.

v �� �� �� ��� ��� �� �� DB2 �� ����� DB2 ��

� - ��� ��� ������.

�� ��

″Extended Windows security using DB2ADMNS and DB2USERS

groups″(Database Security Guide)

�� ��

″DB2 �� �� ��� �� �� ��� ����(Windows)″(DB2 Servers� �

� �)

�� � ��� ��� ��� � �� ��(Windows)

�� �� �� ��� ��� ��� ��(�: ��� ���) db2cli.ini

��� Windows Vista �� �� ���� ���� ������.

����

�� ��� �� ����.

v Windows XP Windows 2003 �� ��� �: Documents and Settings₩All

Users₩Application Data₩IBM₩DB2₩Copy name

v Windows Vista �� ��� �: ProgramData₩IBM₩DB2₩ Copy name

FixPack ��� �� �� ��� �� ��(Linux � UNIX)

���� installFixPack �� ���� ��� ��� ��� �� � �

� DAS� �����. �� ������� �� ����� ���� � ���

� BIND �� ��� �����.

� 16 � �� �� 153

Page 168: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

�� ������ ��� FixPack� ��� � ���� ���� ��� ��

�� �� ���.

��

FixPack �� � ��� DAS� ���� � �� �� ������.

�� ���

″FixPack �″(Troubleshooting Guide)

���� �� ��� �� � �� �� ����

�� 9.5� ��� ��� �� ��� ������ �� �� ��� � ��

���� AUTOMATIC�� �����(� ��� �� �� ������

�� �� � ).

����

AUTOMATIC ��� ������ �� ���� ��� ��� �� ��� �

��� �� ���� ����. �� ��� �� �� �� ���� ���

��.

� 18. �� 9.5��� �� ���� AUTOMATIC�� ��

�� ����

��� �� �� �

�� ��

AUTOMATIC�� ��

� � � � � � � � �

AUTOMATIC�� ��

� � � � � � � �

AUTOMATIC�� ��

applheapsz X X

dbheap X X

instance_memory X

mon_heap_sz X

stat_heap_sz X X

stmtheap X

��� ��� ��� �� �� �� ���� ����.

v �� ��� appgroup_mem_sz, groupheap_ratio, app_ctl_heap_sz

query_heap_sz���. �� �� ���� ��� appl_memory �� ��

�� ��.

v db2mtrk ��� � �� �� -p ������. � ���( � ��

�� ��� � ��)� -a ���(�� ���� ��� ��� ��)�

��.

�� ��

28 ���� ���� �� ����

154 ��� ��

Page 169: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

168 ���� �db2mtrk � ��

142 ���� ��� �� ��� ��

�� ��

″db2mtrk - Memory tracker command″(Command Reference)

Information Integrator �� ID � ��

�� 9.5� Information Integrator �� ID �� �� 9.5 Information Integrator �

�� �� ����� ������.

����

�� ID �� ���� �� ��(db2licm ����)� ���� �� ������.

-l �� �� db2licm �� ��� �� ID � ��� � � ����.

�� 9.5�� �� Information Integrator �� ID �� ������.

� 19. �� ID � �

�� �� �� 9.5� �� ID �� 9.1� �� ID

WebSphere Data Event Publisher wsep wsiip

WebSphere Federation Server wsfs wsiif

WebSphere Replication Server wsrs wsiir

��

db2licm �� ��� �� ���� �� � �� ���� � �����.

�� ��

″db2licm - License management tool command″(Command Reference)

������ �� ����� ��

� JDBC ����� Java ���� ��

Java ��(�: Java �� ��� ��� �� ��)� ��� ���� IBM

Data Server Driver for JDBC and SQLJ� ������.

����

9.5 �� �����, Java ��� IBM DB2 Driver for JDBC and SQLJ(�� 9.5

�� IBM Data Server Driver for JDBC and SQLJ� ��� �)� �����

DB2_USE_DB2JCCT2_JROUTINE � ��� ��� ��� ����. ���

IBM Data Server Driver for JDBC and SQLJ� ��� ������ � ��

�� ��� ����.

� 16 � �� �� 155

Page 170: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��

���� �� Linux, UNIX Windows� DB2 JDBC � 2 ���� ���

Java ��� SQL � ����� DB2_USE_DB2JCCT2_JROUTINE� OFF

� ������. �� �� ����� �� � �� �� ���� ����� �

���� �� ���� ���� ���� � IBM Data Server Driver for JDBC

and SQLJ� ���� �� ���� ���.

�� ��

″Specification of a driver for Java routines″(pureXML Guide)

79 ���� �JDBC SQLJ �� ���

�� ��

″Miscellaneous variables″(Data Servers, Databases, and Database Objects Guide)

ResultSetMetaData� IBM Data Server Driver for JDBC and SQLJ�� 4.0� �� �� ��

IBM Data Server Driver for JDBC and SQLJ �� 4.0� �,

ResultSetMetaData.getColumnName ResultSetMetaData.getColumnLabel� �

��� �� JDBC 4.0 ��� �� ������. �� �� IBM Data Server

Driver for JDBC and SQLJ �� 3.50 �� JDBC ���� ���� � �

���.

����

� � �� � �� ����.

v �� ��� �� � ��. z/OS OS/390� DB2 �� 7 i5/OS®

V5R2� DB2� � ���� �� �� ����. �� ������ ���

�� �� Linux, UNIX Windows� DB2 ������� IBM Informix

Dynamic Server� �� ��� �� ����.

v ��� SELECT ��� �� �� AS�� ���� �. IBM Data Server

Driver for JDBC and SQLJ �� 4.0 ��� JDBC ���� �, ���

SELECT ��� �� �� AS�� �� �,

ResultSetMetaData.getColumnName� AS�� �� �����. IBM Data

Server Driver for JDBC and SQLJ �� 4.0��

ResultSetMetaData.getColumnName� �� � ��� �����.

v ��� SELECT ��� �� �� LABEL�� �� ��� ��� AS��

��� �. z/OS� DB2 System i� DB2� LABEL�� ���� ��

� �� �����. IBM Data Server Driver for JDBC and SQLJ �� 4.0

��� JDBC �����, ��� SELECT ��� �� �� ��� ��

�, ResultSetMetaData.getColumnName� LABEL��� �� � ��� �

156 ��� ��

Page 171: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� ResultSetMetaData.getColumnLabel� LABEL��� � ��� �

����. IBM Data Server Driver for JDBC and SQLJ �� 4.0��

ResultSetMetaData.getColumnName ResultSetMetaData.getColumnLabel

� �� � ��� �����. LABEL�� � ��� ���� ����.

v SELECT ��� �� �� LABEL�� �� �� AS�� ���� �.

IBM Data Server Driver for JDBC and SQLJ �� 4.0 ��� JDBC ���

��, ��� SELECT ��� �� �� �� AS�� �� �,

ResultSetMetaData.getColumnName� A S�� �� ����

ResultSetMetaData.getColumnLabel� LABEL��� � ��� �����.

I B M D a t a S e r v e r D r i v e r f o r J D B C a n d S Q L J �� 4 . 0 � �

ResultSetMetaData.getColumnName� �� � ��� ����

ResultSetMetaData.getColumnLabel� AS�� �� �����. LABEL��

� ��� ���� ����.

��

� ResultSetMetaData � ���� ���� � �� � �� JDBC 4.0

� � ��� �� �, useJDBC4ColumnNameAndLabelSemantics Connection

�� DataSource � ��� DB2BaseDataSource.NO(2)� ��� �� � �

�����.

�� ��

″z/OS� DB2 Linux, UNIX, Windows� DB2 Database� JDBC SQLJ

��� �� �� IBM Data Server Driver″(Developing Java Applications)

���� ��� �� �� � �� ���� SQLException ��

IBM Data Server Driver for JDBC and SQLJ �� 3.50 �� �����, ��

� ��� �� ��� �� SQL�� ���� ���� ��� PreparedStatement

��� ���� SQLException� ����.

����

���� �� ��� ��� �� ��� � �� PreparedStatement ��

� addBatch �� executeBatch ��� ��� �, �� 3.50 ��� IBM Data

Server Driver for JDBC and SQLJ� ����� SQLException� ����. �

�� PreparedStatement ��� ��� ��� �� ���� ����. IBM Data

Server Driver for JDBC and SQLJ �� 3.50 �� ���� ���� � �

�� �� � ����� SQLException� ����.

��

���� � ��� ��� ��� �� ��� PreparedStatement ���

� ��� ������ ��� ����.

� 16 � �� �� 157

Page 172: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� �, ��� �� � ����� � �� ����� ��

� ��(threadsafe)� (Linux � UNIX)

��� multithreaded ������ �� �� ��� ���� �� ��(�: �

� ��� ��� �� ��(UDF)), ���� �� � ��� ��

�� � �� ���� ���.

����

9.5 �� �����, Linux UNIX ����� ���� �� ��� ���� �

���� � �������. multithreaded ������ �� �� �� ��

���� �� �� �� ���� �� �� ���, ���� ��

��� �� ��(UDF), ���� �� � ���� ���� � �� �� �

, ������ � �� ������ �� �� � ��� ��� ����.

� �� ����� ���� �� ���� �� � ���(�: Sybase

Teradata � )� �� ���� ���. �� ���� �� DB2 �� � �

��� �� ��� � ���� �� ��� �� � ���� ���

�. �� � �� ��� �� �� �� � �� ���� ���.

�� ��� �� �� � ��� � �, �� ���� � �� ��

��� �� �� ��� �� �� �, � ���� � � � �

��� �� ��� � ��� �� ��� ����. DB2 ���

multithreaded�� ��� � ������ ������ �� ���� �� �

� �� ��� �� ��� � ����. �� ��� ��� �� ���

�� � ��� ���� ��� � ����. ��� ��� ��� �� �� �

��� ��(thread-unsafe) �� �� � �� �� ����.

v �� �� ��� � �� ���� �� �� ��� �����(�: ���

�). �� �� ��� ��� �� ��� ��� ����.

v �� ���� ��� �� ���� �� ��� ��� �� ����

�(�� ��� ��). �� �� ��� �� � ���� ���� ��

�� ���� ��� ��� ��� ����.

v �� �� �� �� �� ��� ����. DB2 ���� �� �� ���

����, DB2 ��� ���� ���� ���� �� �� ��� ���

� � ���.

v ��� �� �� ��� ����.

��

�� �� ���� ��� � �� �� �� �� ���� �� ����

�, �� �� � ���� FENCED NOT THREADSAFE� ����

�. � �� �� � ���� �� ���� � �� ��� �� �� �

158 ��� ��

Page 173: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� ���� ��� �� � � �, ���� �� �� ���� ���.

ID �� �� ��

�� � ID� ��� �� DBMS �� ���� � �� � ��� � �

���. �� ID� �� ��� ��� ��� DDL(Data Definition Language)�

�� ���� ���� � ����.

�� �� �� ID� ��� �� ��� ����.

� 20. �� 9.1 9.5� ID � ��

ID �� �� 9.1��� ��(��) �� 9.5��� ��(��)

�� 18 128

�� � ID(Authid) 30 128

� 30 128

�� � 18 128

�� 18 128

������ �� �� 18 128

��� ��� 18 128

�� 30 128

��� 8 128

��� 30 128

�� �� 18 128

SQL �(FUNCPATH BIND �

CURRENT PATH �� �

���� ��)

254 2048

�� 18 128

��� 18 128

��� �� � 18 128

SQLDA��� � ��� �� � (UDT)� ��� ��� 8 ���, UDT� �

�� 18 ���, � ��� 30 ��� ���� �� ��� 128 ��� ���

�Embedded SQL�� ����.

128 �� ��� ������ �� �� �� ��� � ��� ��� ���

� � ���. ���� �� ID� ���� � ���� � ���� ����

�, ���� ��� ��� ���� �����. ���� �� ��� DB2

������� ���� � ���� ��� 128 ��� ��� �����.

samples/admin_scripts�� ��� �� �� checkv9limits� ����. � ��� �

�� ��� �� 9.5� ��� ���� �������� ID� �� � ���

�.

�� ��

� 16 � �� �� 159

Page 174: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″SQL and XML limits″(Data Servers, Databases, and Database Objects Guide)

�� � ������ � � � ��� ��

USER SCHEMA �� ������ �� 128 �� �� �� �����.

� ID� ����� � ���� � � ��� � �� 128 ���� �

�� ���.

����

WITH DEFAULT �� ��� ��� � �� ��� ���� �� ��

��(CURRENT USER, SESSION_USER, SYSTEM_USER) �� CURRENT

SCHEMA� ��� � �� �� � � �, �� ��� �� �� ���

��.

SQL20114W Column "COL1" in table "TAB1" is not long enoughfor the defined length of the USER default value. SQLSTATE=01642

��

� ID �� �� ��� USER �� SCHEMA �� ���� �� ���

� �� � ���� � � ��� � �� ��� ��� �� ��

��� ���.

�� ��

71 ���� �ID � �� ���

�� CLI/ODBC �������� � � �� � ��

BlockLobs� 1� ���� � � �� LOB �� �� CLI/ODBC��� �

� ���� ����� � ���� ��� � ����.

CLI/ODBC ���� � ���� �� ���� �� �� �� ���� �

� �� ����. CLI/ODBC �������� MaxLOBBlockSize �� � �

��� � �� ��� LOB ���� �� ��� � ����. �� �� �

� SQL_ATTR_MAX_LOB_BLOCK_SIZE �� DB2 ����� ��

DB2_MAX_LOB_BLOCK_SIZE� ��� � ����.

�� ��

″db2cli.ini initialization file″(Call Level Interface Guide and Reference, Volume

2)

�� ��

″Miscellaneous variables″(Data Servers, Databases, and Database Objects Guide)

″Statement attributes (CLI) list″(Call Level Interface Guide and Reference,

Volume 2)

160 ��� ��

Page 175: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″BlockLobs CLI/ODBC configuration keyword″(Call Level Interface Guide and

Reference, Volume 2)

″MaxLOBBlockSize CLI/ODBC configuration keyword″(Call Level Interface

Guide and Reference, Volume 2)

db2Load � db2Import ���� ���� � � ID ��

� ��� ���� �� � �� � ��� piLongActionString� db2Load

db2Import API� �������. sqlchar ��� � ��� sqllob� ����

�.

����

piActionString ��� � � ���� ��� �� ������ ��� � ���

�. �� ��� ��� � piLongActionString� ���� ���.

��

API� ��� � ��� ������ � ���. � �� ���� �, �

�� � � �� ��� ��� ��� SQL3009N� �����.

�� ��

″db2Import API - Import data into a table, hierarchy, nickname or view″(Data

Movement Utilities Guide and Reference)

″db2Load API - Load data into a table″(Data Movement Utilities Guide and

Reference)

���� � ID� �� � � ��� �� ��

�� 9.5��� ID� �� �� �� � � � ������. ID� ���

� ��, �� DB2 �� ����� �� ���� � ����, �� �

� � �� �� �� �� � ����.

����

�� ��, SQL0102N ���� ��� 128 ���� � AUTHID� GRANT�

� �� Embedded SQL�� �����. DB2 ��� �� �����, 128 ���

�� AUTHID�� GRANT�� ����� � ��� �����.

��

ID ��� ��� �� ��� �� ����.

�� ��

71 ���� �ID � �� ���

� 16 � �� �� 161

Page 176: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� �� ��� � API� � � ID� ���� ��� � ��

�� DB2� �� ���� API� �� 9.5� � ID� ��� � ���.

����

���� �� API�� � ID ��� ���� � �� �� ���� �

�� �� �� � � �� ����.

v �� � �� ���.

v ���� �� API�� � ���� � � �� �� ���� �����.

v ���� �� API�� � �� �� ���� ��� � �����.

v � ���� ��� � � ��.

��

�� 9.5� ������� � ID� �� �, �� 9.5� ����� �����

��� �� ������� �������. ������ � ID� ����� �

� �, �� 9.5 ��� �� ����� ������.

�� ��

71 ���� �ID � �� ���

���� �� SYSFUN �� SYSIBM � ��� ��

�� SYSFUN ��� SYSIBM ��� �� �����. ��� ��� SYSIBM

���� SYSFUN ��� �� SQLCODES� �����.

����

� � SYSFUN ��(LN (�� LOG), LOG10, DEGREES, RADIANS, SIGN,

SQRT, POWER EXP)� SYSIBM ���� �� ��� �� �����. �

� � � �� ��� �� ���� �� � � SYSIBM ���� �� �

�� �� �� SQLCODE� ��� � ����.

�� ��, values (sqrt(-1))� �� ���� �� ��� ��� ��� �

�� �� ��� SQLCODE� �����.

1------------------------SQL0802N �� ����� �� �� �� ��� ������.SQLSTATE=22003

SYSFUN ��� ��� ���� �� ��� �� ��(�: values

(sysfun.sqrt(-1))� �� ��� SQLCODE� �����.

1------------------------SQL0443N �� "SYSFUN.SQRT"(�� �� "SQRT")� �� ���"SYSFUN:01"� �� �� SQLSTATE� �����.SQLSTATE=38552

162 ��� ��

Page 177: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

SQL0443N� ��� �� ��(UDF)� �� ��� ��� �� �� ��

��, ��� SYSIBM ��� �� ��� �����. ���� �� ��� �� �

� ��� �� �� �� � � �� ��� ���.

��

�� ��� SYSFUN ��� ����� � ��� �� �� ��� �� ��

����.

�� ����� � ���

�� 9.5��� CURRENT DEFAULT TRANSFORM GROUP CURRENT

PATH �� ����� �����.

����

CURRENT DEFAULT TRANSFORM GROUP �� ����� �� 18 ��

�� 128 ��� ������. CURRENT PATH �� ����� �� 254 �

��� 2048 ��� ������. ��� ��� �� ����� �� � ��

��� � � ���� � �� �� ��� �, ��� �����.

��

��� �� ����� �� � �� ���� � �� ��� � � �,

� � �� ���� � � �� �����.

�� ��

71 ���� �ID � �� ���

CLP � ��� �� ����� ��

��� ���(CLP) �� ��

�� CLP �� ���� ��� �� ��� ���� � ID(128 �� SQL

�� �, 2048 ��)� �����. �� ���� �� ���� ����

� �� ��� CLP � ���� �� �� �� ����.

����

�� SHOW DETAIL �� ��� ���� �� �, ID �� �� ��

��� > ��� ��� ��� ��� �����. �� CLP� ��� �� �

� ���� � �����. SHOW DETAIL �� ���� �� ��� ���

��. SHOW DETAIL �� � �, �� �� �����.

�� �� ���� �� �� ����.

� 16 � �� �� 163

Page 178: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v DESCRIBE: �� ���� �� SQLDA �� ���� ��� sqlname

�� Column name �� �� ��� � �����. �� TABLE � �

��� �� ���� �� �� �� ��� ���� OUTPUT � �

��� �� �� ��� SELECT ��� �� ��� ��� ���� �

� �� �� ��� �����.

v GET DB CFG: ����� ���� �� ������ �� ���� ����

����.

v GET SNAPSHOT: � ��� DB2 ���� ��� ��� �����

� �� ����.

��

�� ���� ���� � ���� CLP �� �� �� �� ����.

�� ��

71 ���� �ID � �� ���

142 ���� ��� �� ��� ��

REDISTRIBUTE DATABASE PARTITION GROUP �� ��

�� 9.5 FixPack 1��� REDISTRIBUTE DATABASE PARTITION GROUP

� ��� �� ��� � ���� ���� ���� ���� �� DB2 ��

�� ��� ��� �����.

����

�� � REDISTRIBUTE DATABASE PARTITION GROUP �� �� ���

� ��� ��� ���� �� � ���� ����. � �� � ����

� � �� ���� �� ���� ����� �� �� ��� � ���

� �����.

��

� ���� �� ����.

v Linux UNIX �� ��� �: homeinst/sqllib/redistribute

v Windows �� ��� �: DB2INSTPROF₩instance₩redistribute

�� ��

32 ���� ���� ��� �� �� �� �� � ��� ��� �

��

�� ��

″REDISTRIBUTE DATABASE PARTITION GROUP command″(Partitioning

and Clustering Guide)

164 ��� ��

Page 179: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� ���� ��� �� ������ ��� ��

BACKUP DATABASE �, db2Backup API, �� BACKUP DATABASE �

��� �� ADMIN_CMD ���� �� � ��� � ������ ��

� ��� � ����. �� ����� �� � ��� ��� ���� �� �

��� �� �� �� �� � � ����.

����

�� 9.1�� ��� ������� ����� � ������ ���� �� �

���� ���� ���. �� 9.5��� � �� ������ ���� � �

�� (SSV) ��� ��� � �� � ������ ��� ��� � ���

�. � �� ������ ���� �� � ����

ON DBPARTITIONNUMS ��� �� iAllNodeFlag �� ��� ���

��� ��� ��� � ����. ��� ��� �� ���� ��� �� �

� ��� �� ��� � ����.

� ��� � � IBM TSM(Tivoli Storage Manager) �� � 41(�� ���

��) -51(�� �� ����)� �� ��� �� �� � �� ���

� �� � ��� ����.

��

TSM� ���� �, ���� �� �� �� ��� �� � �� �

�����.

�� ��

″Backup overview″(Data Recovery and High Availability Guide and Reference)

�� ���

″Using backup″(Data Recovery and High Availability Guide and Reference)

″Backing up partitioned databases″(Data Recovery and High Availability Guide

and Reference)

�� ��

″BACKUP DATABASE command″(Command Reference)

″db2Backup API - Back up a database or table space″(Administrative API

Reference)

″BACKUP DATABASE command using the ADMIN_CMD procedure″

(Administrative Routines and Views)

db2audit �� ��

�� 9.5�� �� ��� ��� � ���� � db2audit �� �� ��� �

�����.

� 16 � �� �� 165

Page 180: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

�� 9.5�� �� ��� �� ��� ������ �� �� � ��� �

� �� ��� ���� � ��� ��� � ������ �� ����

���� ��� �����. ��� ���(SYSADM �� ��)� db2audit ���

��� ��� ���� ��� ���� �� �� ��� ��� � ��� �

����. ��� ���� db2audit ��� ��� ��� ������ ��

��� ����� � � � ���� ���� �� ���� ��� � ���

�.

�� ���(SECADM �� ��)� AUDIT SQL� �� �� �� ���

� ������� �� �� ���� �� ��� � ����. �� ����

SYSPROC.AUDIT_ARCHIVE SYSPROC.AUDIT_DELIM_EXTRACT ��

���� SYSPROC.AUDIT_LIST_LOGS �� ��� ��� �� ��� �

���� �� ��� �� ��� �� ���� �� ��� ���� ��� �

����.

db2audit �� �� � ���� � ��� ����� ������.

v prune � ���� �������.

�� ������ �� �� ���� � ���� �� ASCII ��� ��� �

� �� ��� �����. �� �� db2audit� prune � ���� �

� ��� �� ��� ��� � �����. �� 9.5��� ��� ���

(�: �� �� � �� � �) �� ��� ����� ���� ���� �

� ���� ��� � �� ����� �� �� ��� � ����.

v configure � ���� ��� ������.

�� 9.5��� � �� ��� �� �� �� ��� ��� � ����. �

� �� ��� �� �� �� ��� ��� �� ���. �� ��� �

��� ��� �����. � ��� ��� ����. �� ������ ��

� ���� ��� ���� �������. � ��� ���� �����.

configure � ���� ������ �� ��� �� ��� �� ���

���� ��� � ����. ������ �� ��� �� �� ���� ��

�� ��� ��� ��� � ����.

v extract � ���� ��� ������.

� ������� �� �� ��� �� �� ��� ����� ������

���� �������. �� ���� �� �� �� ��� ���� ��

�.

166 ��� ��

Page 181: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� db2audit.log �� �� ���� �� �� ��� ����� extract

� ���� � �� � ��� ��� ���� ���� �� ��

��� ����. extract � ���� ���� �� �� ��� ���

�� ���. �� �� ������ �� ��� ��� �� ���. ��

9.5��� �� ���� ��� ��� ��� ���� ���.

extract � ���� ��� ��� �� �� ���� ���� �� �

� ���� ����(�� � �) �� ��� � ����.

v describe � ���� ��� ��� configure � ���� ��� ��

� ����� ������.

�� ������ ��� ��� �� ���� SUCCESS �� FAILURE� �

�� ��� � ����. ��, � ��� SUCCESS, FAILURE, NONE ��

BOTH ��� ��� ��� � ����. �� ���� �� ���� ���

�� ���� �, �� �� �� ���� �� ���� �� ���� ���

�� 9.5� ��� ���� ����.

� 21. �� �� �� ���� �� �� 9.5� ��� ��

�� ���, �� � , �� ��

(�� ���)

�� ���

(�� 9.5)

TRUE, FALSE, FALSE NONE

TRUE, FALSE, TRUE SUCCESS

TRUE, TRUE, FALSE FAILURE

TRUE, TRUE, TRUE BOTH

FALSE, ��� �, ��� � NONE

v start stop � ���� ������ �� ��� �� ��� �� ��

�� �� ����.

��

db2audit �� � ��� ������.

�� ��

″Audit policies″(Database Security Guide)

″Storage and analysis of audit logs″(Database Security Guide)

�� ��

″db2audit - Audit facility administrator tool command″(Command Reference)

db2ckmig �� ��

db2ckmig ��� ������� ��� �� ��� ��� �������

DB2 �� ���� �� ���� � Linux UNIX�� ���� �� �

� ��� ���� �����.

� 16 � �� �� 167

Page 182: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

db2ckmig �� ��� ������ ��� ���� � � � ����. ���

���� ��� �� ��� �� � � �� �� �����. �� ��

��� �� �� �� �� ���� �������� ��� � ��� � �� �

����.

DB2 �� ���� �� ���� � Linux UNIX �� ��� ��(fenced)

�� �� �� ��� �� �, � �� � ��� SQL1349W� ����, �

������ ��� � FENCED NOT THREADSAFE� �� ����, ���

� �� �� �� �� ��� �� ��� �����.

��

������� ��� �� ���� ����� ������ ��� � �

��� ���.

SQL1349W � ���� ���� �� ��� FENCED THREADSAFE� �

�� � ��� ������ ��� ��� � ����. ��� �������� �

� ��� NOT FENCED THREADSAFE� ���� �� �, ������

� ���� �� �� ��� NOT FENCED THREADSAFE� ���� ��

� � ��� � �� ���. � � ��� �� ��� �� ���� �32��

�� ��� ��� 64�� ����� ���� � ����.

�� ���

″Using restore″(Data Recovery and High Availability Guide and Reference)

�� ���� ″�� ��″

db2mtrk �� ��

��� ��� �� ���� ���� db2mtrk �� ������. -p �(

� ���� ��� �(heap) ��)� ���� �� -a �(�� ���� ��

� ��� ��)�� �������.

����

� ��� DB2 ���� ��� ��� ����� � ���� �� ��

� �����.

��

db2mtrk �� � � �� ���� �� �� �� �, � �� ��� �

� �� �� ������.

�� ��

168 ��� ��

Page 183: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

″db2mtrk - Memory tracker command″(Command Reference)

��� ��� �� ���� ��(Linux � UNIX)

������ �� �� ��� db2cos, db2cos_datacorruption, db2cos_hang

db2cos_t rap �� �� ��� �� ��� � ���. ��� ��� � �, �

� ��� �����.

����

db2cos, db2cos_datacorruption, db2cos_hang db2cos_trap �� �� ���� �

�, ��(hang) �� ��� ��� � �� ��� �� � ��� �� ���

�����.

Linux UNIX �� ����� ������ �� �� � �� �� �� �

�� �� ��� INSTHOME/sqllib/adm/(�� INSTHOME� ��� � ���

�)� ��� � �� �� �� �� �����. �� �� � �, ����

�� �� �� ��� INSTHOME/sqllib/bin/ ���� �� ��� �� �

� �� �����.

��

��� �� ���� ��� �� ��� �� �� �� ���� ����.

�� ��

″db2cos (callout script) output files″(Troubleshooting Guide)

OS ���� � ��� �� ��(Linux � UNIX)

�� 9.5��, multithreaded ������ � ��� ps � ��� �����

�. �� db2pd �� ������ ��� EDU(Engine Dispatchable Units) �

� ��� �� ��� -edus �� ����.

����

�� 9.5�� UNIX Linux �� ��� �, DB2 ���� �� �� �� �

� ���� �� �� ����, �� ���� � ���� ����. �

�� �� DB2 �� �� ���� �� ���� ���� ��� ���

���.

-fu instancename ��� ps �� ����, ��� �� ���� ���� �

� DB2 ���, � db2sysc db2acd� �����.

� 16 � �� �� 169

Page 184: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��

db2sysc ���� ��� � ��� �����, ps ��� � ��� ��

�� ���� ���. �� ��, Linux �� ���� -lLfp �� ��� �

����. AIX �� ���� -m -o THREAD �� ��� � ����.

ps -fu ��� �� ��� �� � � ���� �����.

$ ps -fu lpham

UID PID PPID C STIME TTY TIME CMDlpham 25996 25946 0 12:19 pts/12 00:00:00 -kshlpham 26567 26552 0 12:19 pts/12 00:00:00 kshlpham 27688 27676 0 12:21 pts/12 00:01:46 db2sysclpham 27716 27676 0 12:21 pts/12 00:00:00 db2acdlpham 27995 27994 0 12:24 pts/13 00:00:00 -kshlpham 29321 26567 0 12:30 pts/12 00:00:00 ps -fu lpham

��� ID 27688� ����� �����, ��� -lLfp ��� ps �� ��

����.

$ps -lLfp 27688 (try ps -m -o THREAD -p 27688 on AIX)

F S UID PID PPID LWP C NLWP PRI NI ADDR SZ WCHAN STIME TTY TIME CMD5 S lpham 27688 27676 27688 0 21 76 0 - 264903 msgrcv 12:21 pts/12 00:00:01 db2sysc1 S lpham 27688 27676 27694 0 21 75 0 - 264903 schedu 12:21 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 27695 0 21 76 0 - 264903 semtim 12:21 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 27696 0 21 79 0 - 264903 schedu 12:21 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 27697 0 21 76 0 - 264903 msgrcv 12:21 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 27714 0 21 76 0 - 264903 schedu 12:21 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 27827 1 21 75 0 - 264903 semtim 12:21 pts/12 00:00:06 db2sysc1 S lpham 27688 27676 27943 27 21 77 0 - 264903 schedu 12:22 pts/12 00:01:39 db2sysc1 S lpham 27688 27676 28150 0 21 75 0 - 264903 schedu 12:25 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 28153 0 21 76 0 - 264903 schedu 12:25 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 28156 0 21 75 0 - 264903 schedu 12:25 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30290 0 21 76 0 - 264903 schedu 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30291 0 21 75 0 - 264903 schedu 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30292 0 21 76 0 - 264903 semtim 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30293 0 21 76 0 - 264903 schedu 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30295 0 21 77 0 - 264903 semtim 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30296 0 21 77 0 - 264903 semtim 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30297 0 21 77 0 - 264903 semtim 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30298 0 21 76 0 - 264903 msgrcv 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30299 0 21 76 0 - 264903 msgrcv 12:36 pts/12 00:00:00 db2sysc1 S lpham 27688 27676 30300 0 21 76 0 - 264903 msgrcv 12:36 pts/12 00:00:00 db2sysc

�� ���� -edus ��� ���� ��� ����.

$ db2pd -edus

>>>> ������ ��� 0� �� EDU� �� <<<<

db2sysc PID: 27688db2wdog PID: 27676db2acd PID: 27716

EDU ID TID Kernel TID EDU Name===========================================================================================60 183282690400 30300 db2pfchr (TESTDB)59 183278496096 30299 db2pfchr (TESTDB)58 183291079008 30298 db2pfchr (TESTDB)57 183295273312 30297 db2pclnr (TESTDB)56 183286884704 30296 db2pclnr (TESTDB)55 183299467616 30295 db2pclnr (TESTDB)

170 ��� ��

Page 185: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

54 183307856224 30293 db2dlock (TESTDB)53 183320439136 30292 db2lfr (TESTDB)52 183303661920 30291 db2loggw (TESTDB)51 183316244832 30290 db2loggr (TESTDB)50 183257524576 28156 db2evmli (DB2DETAILDEADLOCK)49 183261718880 28153 db2taskd (TESTDB)46 183274301792 28150 db2wlmd (TESTDB)26 183312050528 27943 db2stmm (TESTDB)17 183324633440 27827 db2agent (TESTDB)16 183328827744 27714 db2resync15 183333022048 27697 db2ipccm14 183337216352 27696 db2licc13 183341410656 27695 db2thcln12 183345604960 27694 db2alarm1 183085558112 27688 db2sysc

�� ��

27 ���� ����� multithreaded ����� TCO(Total Cost of Ownership)

���

�� ��

″db2pd - Monitor and troubleshoot DB2 database command″(Command

Reference)

� 16 � �� �� 171

Page 186: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

172 ��� ��

Page 187: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 17 � ��� �� ��

���� �� ��� � ������ ����� �� ������ ��� � ��

�����. �� ��, � ����� ����� ��� �� ���� � ���

� �� ���� ��� ��� ����� ��� � ����� ���� ���, �

� ������ ���� �� ����� ��� �����.

�� 9.5�� ���� �� ��� �� ��� ��� ��� �� ���� �

��� � �� �����.

�� ��� � �� ��� ��� ��

�� 9.5��� � ����� � ��� ���� ����. �� ��� �

� �� ����� ��� �� ���� ��� � �� ��� ���� ����.

�� ���� ���� �� ����� � ��� ��� ����. ���

�� ���� ������ ���� ��� ���� ����.

� 22. �� 9.5�� ���� �� ����� � ��

����� �� �� �� ����

DB2_ALLOCATION_SIZE � ��� ���� ��� �� ������ ��

� � ����.

DB2ATLD_PORTS � ��� ���� ��� �� ������ ��

� � ����.

DB2_ASYNC_IO_MAXFILOP � ��� ��� ������ �� �� ��

������ �� �� �� �� ��� ���

� ����. �� 9.5�� ����� �� ��

��� � ���.

DB2_BAR_AUTONOMIC_DISABLE � ��� IBM �� ��(�: ���) �����.

DB2BPVARS � ��� ���� ��� �� ������ ��

� � ����.

DB2COUNTRY � ��� DB2TERRITORY ����� ���

�����. DB2TERRITORY� ��� ���

�� ���� � �� �� ��� � ���,

�� �� �� �� ���.

DB2TERRITORY� DB2COUNTRY� ��

�� ����. �� ��, DB2COUNTRY� 68

� ���� �� DB2TERRITORY� 68� ��

�� � ����.

DB2DEFPREP � ��� IBM Service� ��� �� �� ��

����.

© Copyright IBM Corp. 1993, 2007 173

Page 188: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 22. �� 9.5�� ���� �� ����� � �� (��)

����� �� �� �� ����

DB2DMNBCKCTLR � � ���� �� � � �� � � ��

Windows 2003 Windows XP ��� ��,

Windows NT ���� �� ��� � ���

�� ��� ����. �� 9.5� Windows NT

���� ���� ����.

DB2_ENABLE_SINGLE_NIS_GROUP � ����� �� � �� ���(NIS

NIS+)� �� ��� ����� � ��� ���

� ����. ��� ��� �� � �� ��� �

� �� �(Linux UNIX)� � ����.

DB2FFDC � ��� DB2FODC ����� ��� ���

��. DB2FODC� DUMPCORE �� ����

� DB2FFDC� ��� �� ��� ��� �

����. ���� DUMPCORE �� ON��

���� �� �� ��� ���� �� ����

� ���� �����.

DB2_HASH_JOIN DB2 ��� ����� �� � ��� ����

� ��� �� ��� �� ��� ����

����.

DB2_INDEX_FREE � ��� CREATE INDEX��� PCTFREE�

�� ��� ���. PCTFREE�� �� �

� � ���� ���� � �� ���� �

��� �����. �� ��, DB2_INDEX_FREE

� 20�� ���� �� CREATE INDEX

IndexName ON TableName(Columns) PCTFREE

20� ����. PCTFREE �� �� � �

� �� �� � ��� ��� � ��

� �����. PCTFREE�� �� ���

��� DB2_INDEX_FREE� �� �� ��

� �� ����.

DB2_MAP_XML_AS_CLOB_FOR_DLC XML �� ����� ���� �� DB2 ��

�� � XML ��� � � �� �����(��

9.1 �� ��)� �� ��� ��� � ���

���� ����. � ��� ���� �� �

��� ��(fetch)�� BLOB�� UTF-8 ����

�� ��� � ��� ���� �� ���

��.

DB2MEMMAXFREE ������ �� �� �� ��� �� ��

� ���� ��� � ��� ��� ����.

��� ��� multithreaded ����� ����

�� �� �� ��� � ����.

�: � ��� ���� ����. ���� ���

���� � ��� �� � �� �� �

���.

DB2_NO_FORK_CHECK �� 9.5�� �� ��� ID(PID)� ����

���� ��� ��� � ��� �� �

���.

174 ��� ��

Page 189: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 22. �� 9.5�� ���� �� ����� � �� (��)

����� �� �� �� ����

DB2NTNOCACHE � ��� DB2 UDB �� 8.2 ���� ����

����. CREATE TABLESPACE ALTER

TABLESPACE SQL�� ��� � �����

��� ���� �� ��� � ����.

DB2_PARTITIONEDLOAD_DEFAULT LOAD �� �� � ���� � ���

� �� ��� �� �� ��� � ��� �

��� ����.

DB2PRIORITIES, DB2NTPRICLASS �� ��� ���� ����. DB2 ��� �

��� ��� ���� ��� ��� �

��� �����.

DB2ROUTINE_DEBUG � �� ��� ���� ��� ����

��� ��� � ��� ��� ����.

DB2_RR_TO_RS � ��� IBM Service� ��� �� �� ��

����.

DB2_SNAPSHOT_NOAUTH � ��� SYSMON �� ��� ��� ��

��� ��� � �� ��� � ��� ���

����.

DB2_TRUSTED_BINDIN � ��� �� � � ��� ���� �

���.

DB2_UPDATE_PART_KEY � ��� ���� �� ��� �� ����� �

�� � ����. �� � ��� ���� ��

�� ��� ���� ����.

DB2_VENDOR_INI DB2_DJ_INI ��� ��� ��� ���� �

�� ���� ��� � �� ��� � ���

�� ��� ����.

DB2YIELD � ��� Windows 3.1�� ����� �� 9.5

��� ���� ����.

�� ��

148 ���� ��� ����� � �� ��

185 ���� ��� ����� � �� �� ��

GET AUTHORIZATIONS �� ��� ��

�� 9.5��� GET AUTHORIZATIONS �� ���� ����. ���

AUTH_LIST_AUTHORITIES_FOR_AUTHID �� ��� ������.

����

GET AUTHORIZATIONS ��� ������ �� �� �� � ��� �

�� (SYSCAT.DBAUTH)� �� ��� �� ���� ��� �����. DB2

�� � ��� �� ����� � � �� �� 9.5��� ���� ���

�.

� 17 � ���� �� �� 175

Page 190: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� ��� ��� ����� ����� �� ��� ������ ��, ��

�� ���� ��� �� ��� ��� �����.

��

�� ���� ��� ����� AUTH_LIST_AUTHORITIES_FOR_AUTHID �

� ��� ������.

�� ��

″AUTH_LIST_AUTHORITIES_FOR_AUTHID table function″(Administrative

Routines and Views)

sqluadau API� ��� ��

�� 9.5��� sqluadau API� ���� ����. ���

AUTH_LIST_AUTHORITIES_FOR_AUTHID �� ��� ������.

����

DB2 �� � ��� �� ����� � sqluadau API� ���� ����.

� API� �� ���� ��� �����. � API� ��� �� ��� �� �

� �� ���� ��� �� ��� ��� �����.

��

sqluadau� ���� ��� ����� AUTH_LIST_AUTHORITIES_FOR_AUTHID

�� ��� ������.

�� ��

″AUTH_LIST_AUTHORITIES_FOR_AUTHID table function″(Administrative

Routines and Views)

�� ��� ��� ��� ��

��� �� ���� ���� �� �� 9.5� ���� �� ���� ���

��.

����

�� ��� �� �� ���� ��� �� ����� ��� � ����.

v agents_waiting_top - �� �� ���� �

v agents_waiting_on_token - �� ���� ����

v authority_lvl - ��� �� � ��

v cat_cache_size_top - � �� �� �� � ��(water mark)

176 ��� ��

Page 191: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v db_heap_top - ��� �� ������ �

v max_agents_overflows - �� ���� �����

v pkg_cache_size_top - ��� �� �� � ��(water mark)

v priv_workspace_num_overflows - � � ���� �����

v priv_workspace_section_inserts - � � ���� � ��

v priv_workspace_section_lookups - � � ���� � ����

v priv_workspace_size_top - �� � � ���� ��

v shr_workspace_num_overflows- �� � ���� �����

v shr_workspace_section_inserts - �� � ���� � ��

v shr_workspace_section_lookups - �� � ���� � ����

v shr_workspace_size_top - �� �� � ���� ��

��

���� �� �� ��� ���� ������ SNAPDBM ��

SNAP_GET_DBM �� ��� ���� �� � ����. �� ��� ��

�� ���� �� ���. db2GetSnapshot API� SQLM_DBMON_VERSION6 �

�� iVersion(��� ������ ��� ���� �� ID)� ���� � �

� ���� �� �� �� ���� ���, SQLM_DBMON_VERSION5_2 �

�� � 0�� �����. �� ��� � �� � ���� ������.

���� �� ��� � ��

v agents_waiting_top - �� �� �

��� �

v agents_waiting_on_token - �� �

��� ����

v max_agents_overflows - �� ����

�����

�� 9.5�� ��� �� ���� �� ����� �

����� ��� �� ��� �� �� ���

����. ��� �� ���� ��� ����� ��

� � � �� ���� ����.

authority_lvl - ��� �� � �� ��� ���� �� ��� �� �� ��� �

��� authority_bitmap ��� �� �� �����

�. �� �� ���� ��� ���� �� �

�� ��� �� �� ��� �����.

cat_cache_size_top - � �� �� ��

� ��(water mark)

� ��� �� ���� ��� ����� ����. �

�� � � �� ���� ����.

SQLM_HEAP_CAT_CACHE ��� ��� � �

pool_watermark pool_id �� ������.

db_heap_top - ��� �� ������

� ��� �� ���� ��� ����� ����. �

�� � � �� ���� ����.

SQLM_HEAP_DATABASE ��� ��� � �

pool_watermark pool_id �� ������.

� 17 � ���� �� �� 177

Page 192: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

���� �� ��� � ��

pkg_cache_size_top - ��� �� ��

� ��(water mark)

� ��� �� ���� ��� ����� ����. �

�� � � �� ���� ����.

SQLM_HEAP_PACKAGE_CACHE ��� ��� �

� pool_watermark pool_id �� ������.

v priv_workspace_num_overflows -

� � ���� �����

v priv_workspace_section_inserts -

� � ���� � ��

v priv_workspace_section_lookups -

� � ���� � ����

v priv_workspace_size_top - ��

� � ���� ��

v shr_workspace_num_overflows- ��

� ���� �����

v shr_workspace_section_inserts - ��

� ���� � ��

v shr_workspace_section_lookups - ��

� ���� � ����

v shr_workspace_size_top - �� ��

� ���� ��

�� 9.5�� ��� ��� ������ ��� �� �

�� �� �� ��� ����. ��� �� �

��� ��� ����� ��� � � �� ���� �

���.

�� ��

27 ���� ����� multithreaded ����� TCO(Total Cost of Ownership)

���

�� ��

″pool_id - Memory Pool Watermark monitor element″(System Monitor Guide

and Reference)

″pool_watermark - Memory Pool Watermark monitor element″(System Monitor

Guide and Reference)

″authority_bitmap - User Authorization Level monitor element″(System Monitor

Guide and Reference)

�� �� �� SQLOGCTL.LFH� ��� ��� ���

�� 9.1��� ������ �� �� � ��� �� �� �� SQLOGCTL.LFH

� ��������. �� 9.5��� ������ �� �� � �� �� ���

� � �� SQLOGCTL.LFH.1 SQLOGCTL.LFH.2� �������.

178 ��� ��

Page 193: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

������� �� � ��� � ������ �� �� � �� ��� ��

� �� ��� �� ������� �� ��� �����. ������ �

� �� � �� �� ��� ��� �� ���� �� ��� �����.

�� �� ��� �� ��� ������ �� �� � ������� ��

��� ���� �� ���� �� � ����. �� �� �� ��� ��� �

���, �� �� ��� �� ��� ��� � ���� � �����

� �� �� �� �� ��� ��� � ����, ������ ��� � �

����.

��

�� �� ��� � �� �� � �� ���� � ���� �, �� ��

�� �� �� ��� � ��� �� ���� �� �� ������.

db2flsn �� ��� �, -path ���� ��� � �� �� ��� ��

������. �� �� ������ �� �� � �� �� �� ��� �

, � �� ��� �� ��� � ����.

-file ���� �� db2flsn �� ���� �, �� �� �� ��� ��

(SQLOGCTL.LFH.1 �� SQLOGCTL.LFH.2)� �� ������. ��� ��

� Command Reference� �db2flsn - �� ��� �� ��� ��� � ����.

�� ��

″Log control files″(Data Recovery and High Availability Guide and Reference)

�� ��

″db2flsn - Find log sequence number command″(Command Reference)

IMPORT � � CREATE � REPLACE_CREATE� ��� ��

IMPORT �� CREATE REPLACE_CREATE �� ���� ��� ��

������ ��� � ����.

����

CREATE REPLACE_CREATE �� ��� ��� ��� ���� �

�� ��� � ����. �� CREATE REPLACE_CREATE� ����

�� ��� ��� �� �� ��� �� ��� ��� �� �� ��

�� �� ����.

� 17 � ���� �� �� 179

Page 194: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��

CREATE REPLACE_CREATE �� ���� ��� db2look �� 2

� ���� ������. �� db2look� ��� �� �� ��� ����

��� �� �����. ��� �� �� � LOAD �� IMPORT ��

��� ���� ��� ������. db2look ��� �� � ��� �

� ����, �� � � IMPORT �� LOAD � ���� �� ���

�� �� �� �����.

�� ���

″Creating tables like existing tables″(Data Servers, Databases, and Database

Objects Guide)

�� ��

″db2look - DB2 statistics and DDL extraction tool command″(Data Movement

Utilities Guide and Reference)

XML Extender� ��� ��

�� 9.5��� XML Extender� �� ��� pureXML ���� �����. �

� , XML Extender� ���� ����.

����

DB2 �� 9.1�� pureXML ��� ���� XML Extender� ���� ����.

pureXML ��� ��� XML ��� � � ������ �� �� � ��

� XML ��� ��� � ����. XML ��� XML ���� ���� ��

�� ��� ��� ����� ���� ���� ��, �� �� ���� ����

�����. ������ ��(�: XMLQUERY XSLTRANSFORM)� XML �

�� � � ������ ��� �� �� � ����. ������� ��

XML �� ��� ���� XML Extender ��� ��� ����.

� datastream �� ��� ��� ��

�� 5.2(�� �� ��)� �� ��� ��� ��� API� ���� ��� ��

� �� sqlmon.h ��� �� � �� � � �� �����. � ��� ��

�� ���� ��� �� ������ ��� � ����.

����

�� �� ��� ���� ���, �� ������ �� �� ��� ��� � �

���.

v SQLM_DBMON_VERSION1

180 ��� ��

Page 195: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v SQLM_DBMON_VERSION2

v SQLM_DBMON_VERSION5

v SQLM_DBMON_VERSION5_2

�� 6 �� ��� ������ � � � �� �� � datastream� ���

��.

��

���� �� �� ��� ���� ��� ���� ���� � �� �

�� ��� ����� ���� ���� � �� �� � ��� ���

�� ������. �� � ��� �� ���� ���� ���� � �

�� dbsnap.c(C ��) �� dbsnap.C(C++ ��)� � ����.

WORF(Web Object Runtime Framework)� ��� ��

WORF(Web Objects Runtime Framework)� ���� ��� �� ������ �

�� � ����. � ������ � ���� ��� �� �� ���

�� � ���� ��� �� �� �����.

����

WORF(Web Objects Runtime Framework)��� � ��� DADX ��� �

�� ���� �� �� �� ��� �����.

WORF� ��� �� � ��� �� � ���� �� � ����

DADX(Document Access Definition Extension) ��� ��� �� � ����

�� � ����. �� ��� �� � ��� ��� � ��� � ��

� � SQL� �� ���� �� � ����. �����, � ����

�� � ��� �� � �� ���� ��� ���.

� ��� �� ��� ��� � ��� �� � ����.

��

WORF � ���� ��� �� � ��� � ���� ���� ���. ���

�� ����� WORF(Web Object Runtime Framework)�� � � ���

� ��� ����.

db2Import � db2Load API� piActionString ��� ��� ��� ��

db2Import db2Load API� piActionString ��� � � ���� ��� ��

����� ��� � ����.

� 17 � ���� �� �� 181

Page 196: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

� ��� ���� �� � �� � ��� piLongActionString� db2Load

db2Import API� �������. sqlchar ��� � ��� sqllob� ����

�.

��

API� ��� � ��� ������ � ���. � �� ���� �, �

�� � � �� ��� ��� ��� SQL3009N� �����.

�� ��

″db2Import API - Import data into a table, hierarchy, nickname or view″(Data

Movement Utilities Guide and Reference)

″db2Load API - Load data into a table″(Data Movement Utilities Guide and

Reference)

���� �� ��� � �� � (Linux � UNIX)�� � �� ���(NIS) �� � �� ��� ��(NIS+) ��� �� ��

� ���� ����.

����

��� �� �� NIS NIS+ ��� Linux UNIX �� ���� ����

����. ��� DB2_ENABLE_SINGLE_NIS_GROUP ����� ��� ���

� ��� � ������ ��� � ����.

��

��� ��� �� ���� �� ���� ��� LDAP(Lightweight Directory

Access Protocol)���. �� 9.5��� LDAP �� �� ��� ��� ��

LDAP �� � �� ���� ��� �����.

DB2 ��� NIS NIS+ ��� ���� ��� �� 9.1 �� ��� � ��

��.

�� ��

″LDAP-based authentication and group lookup support″(Database Security Guide)

182 ��� ��

Page 197: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 18 � � � ��

�� ��� �� �� ���� �� �����. �� ����� �� ���

�� ��� � �� ���.

�� 9.5�� �� �� ��� �� ����� � �� � ����.

�� �� (ESTORE) �� � �

�� ���(ESTORE) �� ��� ������.

����

� �� �� �� ��� �� �� 9.1�� ��� ������. �� 9.5

���, ��� �� ���, ��� � ESTORE� �� � ����� �

������. 64�� �� ���� 32�� �� ��� ��� ����� � �

�� 64�� �� ��� ���� ���� ���� ���� ESTORE ��� �

�� �� �����.

ESTORE� � � ��� ��� �� 32�� �� ��� ��� �� ���

�� �� DB2 ��� �� ���.

v ESTORE_SEG_SZ NUM_ESTORE_SEGS �� ���� ����.

v �� ESTORE ��� �� ��� ��� �� ��� ��� ��� ���

� ����. pool_index_to_estore, pool_data_to_estore, pool_index_from_estore

pool_data_from_estore.

v �� ���� �� �� ��� �� ��� �� �(NULL) �� ����

�. SNAP_GET_TBSP, SNAP_GET_DB, SNAPSHOT_BP, SNAPSHOT_TBS,

SNAPSHOT_DATABASE SNAPSHOT_APPL.

v ALTER BUFFERPOOL CREATE BUFFERPOOL��� �� EXTENDED

STORAGE NOT EXTENDED STORAGE �� ��� � ���.

��

�� ���� ����� 64�� ���, �� �� DB2 ���� ����

�� ���. �� ���� �� �� ��� �� ��� �� � � �

��� ���.

AWE(Address Windowing Extensions) �� � � (Windows)AWE(Address Windowing Extensions) ��� �� ��� ������.

© Copyright IBM Corp. 1993, 2007 183

Page 198: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

�� DB2 ��� 32�� DB2 ���� ���� ���� � �� �� ���

���� � � ��� ���� ��� �� ��� �� AWE ��� ���

���. �� ��, DB2_AWE ����� ��� ���� ���� �� 64GB��

���� � �� ��� � �����. �� 64�� ��� ���� ���

� AWE ��� ��� �������.

AWE� �� ��� ���� �� ���� ��� 32�� Windows ���

��� �� ��� �� �� DB2 ��� �� ���.

v DB2_AWE ����� ��� ����.

v physical_page_maps ��� �� ����.

v SNAPBP �� � physical_page_maps �� �� ���� ����.

v SNAP_GET_BP �� ��� physical_page_maps �� �(NULL) �� ��

���.

��

�� ��� ����� � ���� �� ����� AWE� ���� 32�� ��

� �� ��� 64�� ���, �� �� DB2 ���� ������

���. �� DB2_AWE ����� ��� physical_page_maps ��� �� �

� � � ���� �� �� ���� ���.

db2icrt, db2ilist � db2iupdt� � -w � � (Linux � UNIX)db2icrt, db2iupdt db2ilist �� -w WordWidth ���� ��� � ��

�.

����

db2icrt, db2ilist db2iupdt �� bitwidth(-w) �� ���� ��� ���

�����. � �� AIX 5L, HP-UX, Linux Solaris �� ���� ���

����. �� Linux UNIX �� ����� ��� �� ��� DB2 ���

��� �� ���� �����.

��

db2icrt, db2ilist db2iupdt �� �� -w �� ���� ����. � ��

�� 9.1��� � ���� �����, �� 9.5��� �� ��� �����.

DB2 � �� � �

DB2 � ��� �� ��� ������.

184 ��� ��

Page 199: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

�� DB2 ��� HTTP ������ ���� �� DB2 � � �� DB2 Web

Health Center� ��� �� DB2 � ��� ������.

��

���� �� �� ��� �� ��� �� � � ������. ��

� �� ��� ��� �� ��� �� ��� � �� �����.

�� ��

25 ���� ���� �� �� ���� ���

�� ��� � �� �� �� �

�� 9.5�� �� �� ����� ��� � ����. �� ��� �� ��

� � ���� ���.

�� 9.5�� �� ����� � ��� �� ������.

� 23. �� 9.5�� �� �� ����� ��

����� �� �� �� ����

DB2_ASYNC_APPLY � ��� DataJoiner ��� ����� ��� �

� 9.5�� �� ��� �� ���� ���

�.

DB2_AWE AWE � �� ���� �, �� 9.5 64��

������ ���� ��� ��� �� ��

�� ��� ��� � �� ������. �

�� ��� AWE(Address Windowing Extensions)

�� �� �� �(Windows)� � ����.

DB2_BLOCK_ON_LOG_DISK_FULL � ��� blk_log_dsk_ful �� ���� �

�� ��� �� 9.5�� �� ������.

DB2CCMSRV � ��� �� 9.5�� �� ��� ����

�� ������.

DB2_FORCE_FCM_BP AIX �� ��� 64�� ��� ����, ���

��� ���� ��� ����� � ��� �

��� �� 9.5�� �� ������. ����

� ��� ��� �� � � �� ��� �

�� �� ���� �� �� � ���� ��

�� ����.

DB2_LGPAGE_BP � ��� �� 9.5�� �� ������. �

��� ��� �����

DB2_LARGE_PAGE_MEM ����� ��� �

�����.

DB2LINUXAIO �� 9.5�� ���� Linux �� ��� �� �

��(AIO) ��� �� ����� � ����� �

�� �� ������.

� 18 � �� �� 185

Page 200: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 23. �� 9.5�� �� �� ����� �� (��)

����� �� �� �� ����

DB2_MIGRATE_TS_INFO � ��� �� ����� �� 5� ���� ��

���� ��� �� 9.5�� �� ������.

DB2_NR_CONFIG � ��� ��� �� ��� �� ��� �

� 9.5�� �� ������.

DB2_NEWLOGPATH2 � ��� � �� � ��� �� ���� �

����� ������ �� ���

mirrorlogpath� ��� ��� �� 9.5�� �

� ������.

DB2_OLAP_BUFFER_SIZE � ����� ��� �� 9.5�� OLAP(On-Line

Analytical Processing) ��� �� �(heap)���

� ���� ��� �� ������. �� �

��� �, OLAP ��� ���� � �(heap)

���� ����� DB2_OLAP_BUFFER_SIZE

� � ���� ������. �� �(heap) ��

�� �� �� �� ��� � ���� � �

�� ��� �� ��� ����.

DB2UPMPR � ��� OS/2�� ����� �� 9.5�� ��

�� �� ��� �� ������.

DB2UPMSINGLE � ��� �� 9.5�� �� ��� ����

�� ������.

�� ��

173 ���� ��� ����� � ��� ���� ���

148 ���� ��� ����� � �� ��

db2undgp � �� �

db2undgp(�� �� ��) �� �� ��� � ���.

����

�� ����� db2undgp� ��� ���� �� � SQL ��� ���

� � ���.

��

DB2 UDB �� 8� ������� ���� � ��� �� ��, �� �

� �� ���� �� EXECUTE ��� �� ���(PUBLIC)�� ���

���. db2undgp �� ��� ���� �� � SQL ��� ���� �

���. �� 9.5��� PUBLIC ��� EXECUTE ��� ��� �� ����.

db2licm �� -n � �� �

db2licm �� -n �� �� ������.

186 ��� ��

Page 201: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����

��� -n �� ��� DB2 ��� ��� � �� ���� �� ��� �

�����. � ���� ����� �� ���� �� �� �� �� �� �

����. ��� � �� �� 9.5 ��� ���� ���� � �� � � �

� � ���.

��

�� �� �� ���� ����. ��� � �� ���� �� ���� �

�� ���.

�� ��

″db2licm - License management tool command″(Command Reference)

CLISchema CLI ��� �� �

�� 9.5 ������ ��� �� �� 9.5 ������� CLISchema �

� �� ������.

����

z/OS� DB2� �� ����� ���� � �, ��� CLISchema �

� ���� ��� ����. �� 9.1��� � � � �� ��� Linux,

UNIX Windows ������ ��� DB2 �� 9.1� ���� �� 9.1 ���

��� ���� ���, z/OS ������ ��� DB2� ���� �� 9.1 ���

���� �� ������.

��

SysSchema � � ����� ��� �� ���� �� � ����.

�� ��

″SysSchema CLI/ODBC Configuration Keyword″(Call Level Interface Guide

and Reference, Volume 2)

� 18 � �� �� 187

Page 202: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

188 ��� ��

Page 203: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 19 � DB2 �� 9.5 ��� ��� �� DB2 �� 9.1FixPack ����

�� 9.1 FixPack 3( �� FixPack)�� �� 9.5 ��� �� � � �� ��

� �� ���� ����.

����

�� 9.1 FixPack 3 �� �� FixPack� ���� ���� �� 9.1 �� �� �

� ���� ���� �� �, �� 9.5� ��� �� � � �� ���� �

� ���.

��

�� 9.1 FixPack� �� �� ���� �� ��� �� �, �� ��� �

����. FixPack� ��� ��� ��� �� FixPack� �� �� ���

��� ���� ����.

DB2 �� 9.1 FixPack 1

FixPack 1�� �� ��� �� �� �� ���� ����.

v AWE(Address Windowing Extensions) ��� ���� ��(Windows)

v �� ����� �� JDBC ���� � LOB �� XML �� �� ���

v �� ID� �� ��� ���� ��� � ��

FixPack 1�� �� �� ��� ����.

v DB2Binder ����� � � ��� � ��

v �� ���� �� �� ��� ��� �� � ��

DB2 �� 9.1� FixPack 2

FixPack 2�� FixPack 1� ���� ��� �� ��� �� ��� ���� �

����.

v java_heap_sz� �� ��� ���� ���

v �� � �� ���(NIS NIS+) ��� ���� ��(Linux UNIX)

v db2sampl �� -schema �� �� ��

FixPack 2�� �� ��� �����.

v ����� �� XML ��� �� �� �

© Copyright IBM Corp. 1993, 2007 189

Page 204: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v C C++ embedded SQL ���� � BINARY, VARBINARY

DECFLOAT ��� � �� ��

v .NET Framework 2.0� DB2 .NET Data Provider �� ��

v HP-UX� DRDA Informix � �� ��

v IBM Database Add-Ins for Visual Studio 2005 ��

v Solaris �� �� Java 5.x� IBM SDK(Software Development Kit) �� �

v � � � DPF ��� �� �� �

v ������ ���� SSL(Secure Sockets Layer) � ��

v Windows Vista �� ��(Windows)

DB2 �� 9.1 FixPack 3

FixPack 3�� FixPack 2� ���� ��� �� ��� �� ��� ���� �

����.

v LDAP �� �� �� �� LDAP ��� �� ��

FixPack 3�� �� �� ��� ����.

v �� �� � � ��� ��

v � �� �� ��(Linux)

v COLLATION_KEY_BIT �� �� ��

v JDBC SQLJ ��

v HP-UX� Query Patroller �� ��

190 ��� ��

Page 205: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 3 � ��

© Copyright IBM Corp. 1993, 2007 191

Page 206: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

192 ��� ��

Page 207: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� A. �� ��� �� ��

�� ����� ����� ��� ��� �� ���� ���� �����.

�� �� � ����� �� ��� ��� ���� �� � ���� ��

�� � � ���� ���� �� ��� ���� �����. �����

� � ���� � �� �� ��� ��� ���� ��� � ���� �

� ���� ���� �� ��� ���� �����. �� ��� ����� ��

�� ��� �� � CREATE TABLESPACE ��� FILE SYSTEM

CACHING �� �����. ������ �� �� � � �� ��� ��

� ��� ����� � �� ��� ��� ��� �� ��� ��� ���

��� ����.

�: ������ �� �� ��� ���� ���� ������ AIX� �� �

��� LOB� ��� ���� DB2 ���� ���� ����.

�� ��� �� � ��� ���� � ��� �� �� CPU ���

� ��� ����� ���. �� �� � ��� ��� ��� ���� �

� ����� �� ��� ���� ��� � � �� ��� ����. ���

� �� ��� �� I/O�� ���. UNIX��� �� I/O(�� DIO)�� ��

�. Windows��� FILE_FLAG_NO_BUFFERING ���� ��� ��� � �

����. �� IBM JFS2 �� Symantec VERITAS VxFS� �� �� ��

��� ��� �� I/O, � ��� �� � I/O(CIO) ��� �����. �

����� �� �� � NO FILE SYSTEM CACHING �� ���� ��

�� � ��� �����. � ��� ���� ������ �� �� � � �

�� �� �� ����� CIO� ��� �����. � ���� �� ��� �

�� ��� ���� �� � ���� � ���� �� � ��� � ��

��.

�� 9.5 ����� NO FILE SYSTEM CACHING �� FILE SYSTEM

CACHING� ���� �� �� FILE SYSTEM CACHING � � ����

�. �� 9.5��� � � ���� �� �� ���� NO FILE SYSTEM

CACHING� �����. �� ���� �� �� �� ������ �

���. �� 9.5 ���� �� �� �� ������ ��� ����. � �

��� AIX, Linux, Solaris, Windows�� ��� ���� ����. ��

� FILE SYSTEM CACHING���.

v AIX JFS

v Solaris non-VxFS

v System z™� Linux

© IBM Corporation 1993, 2007 193

Page 208: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

v �� SMS �� �� ���� ��

v SMS �� �� ���� ��(� �(LF) ��� � ��(LOB) �

�� �� ��)

��� ��� !� �� FILE SYSTEM CACHING �� NO FILE SYSTEM

CACHING� ������.

���� ��

� 24�� ��� ��� � �� ����� ����� ���� ��� ��

��. �� �� �� ��� ����. (a) DIO �� �� DIO� ��� ��

����� � (b) �� �� ��� � � �� �� ����� NO

FILE SYSTEM CACHING �� FILE SYSTEM CACHING� ���� ��

�� ��� � �����.

� 24. �� ��� ��� � �� ����� ���� ��

�� �� ��� � � ��� �

NO FILE SYSTEM

CACHING� ��� �� ��

���� �� ����� ��

DIO �� CIO �

NO FILE SYSTEM

CACHING �� FILE

SYSTEM CACHING� ���

� �� ��� �� �

AIX 5.3+ JFS(Journal File System) DIO FILE SYSTEM CACHING(�

� 1� � ����.)

AIX 5.3+ � JFS2(Journal File System) CIO NO FILE SYSTEM

CACHING

AIX 5.3+ DB2 4.1(VxFS)� VERITAS

Storage Foundation

CIO NO FILE SYSTEM

CACHING

HP-UX 11i(PA-RISC) VERITAS Storage Foundation

4.1(VxFS)

CIO FILE SYSTEM CACHING

HP-UX �� 11i v2(Itanium®) VERITAS Storage Foundation

4.1(VxFS)

CIO FILE SYSTEM CACHING

Solaris 9 UFS(UNIX File System) DIO FILE SYSTEM CACHING(�

� 2 � )

Solaris 10 UFS(UNIX File System) CIO FILE SYSTEM CACHING(�

� 2 � )

Solaris 9, 10 DB2 4.1(VxFS)� VERITAS

Storage Foundation

CIO NO FILE SYSTEM

CACHING

Linux ��� SLES 9+

RHEL 4+

(� ������: x86, x86_64,

IA64, POWER)

ext2, ext3, reiserfs DIO NO FILE SYSTEM

CACHING

Linux ��� SLES 9+

RHEL 4+

(� ������: x86, x86_64,

IA64, POWER)

VERITAS Storage Foundation

4.1(VxFS)

CIO NO FILE SYSTEM

CACHING

194 ��� ��

Page 209: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 24. �� ��� ��� � �� ����� ���� �� (��)

�� �� ��� � � ��� �

NO FILE SYSTEM

CACHING� ��� �� ��

���� �� ����� ��

DIO �� CIO �

NO FILE SYSTEM

CACHING �� FILE

SYSTEM CACHING� ���

� �� ��� �� �

Linux ��� SLES 9+

RHEL 4+

(� ������: zSeries®)

FCP(Fibre Channel Protocol)�

���� SCSI(Small Computer

System Interface) ����

ext2, ext3 �� reiserfs

DIO FILE SYSTEM CACHING

Windows ��� ���� �� ��

DB2 �� �� ����� �

DIO NO FILE SYSTEM

CACHING

�:

1. AIX JFS��� FILE SYSTEM CACHING� ������.

2. Solaris UFS��� FILE SYSTEM CACHING� ������.

3. ������ �� �� � VERITAS Storage Foundation��� �� �� �

� �� �� �� ����. �� ��� ��� �� ���� ���� ��

���. �� � ��� DB2� VERITAS Storage Foundation ��� ���

���.

4. �� �� �� ��� SFDB2 5.0� ����� SFDB2 5.0 MP1 RP1 ���

� ���� ���. � ����� 5.0 ���� ���� ����� ����.

5. ������ �� �� � NO FILE SYSTEM CACHING� ��� ���

� ��� ��� ��� �� SQL, � �� API� FILE SYSTEM

CACHING� ������.

� 1: � � �� ����� �� I/O� ��� ���� ���� NO FILE

SYSTEM CACHING �� �����.

CREATE TABLESPACE table space name ...

� 2: �� ���� NO FILE SYSTEM CACHING �� �� �� �� �

����� �� ��� �� ��� ����� �����.

CREATE TABLESPACE table space name ... NO FILE SYSTEM CACHING

� 3: �� ��� �� �� ������ �� ��� �� ��� ��� �

� ���.

ALTER TABLESPACE table space name ... NO FILE SYSTEM CACHING

� 4: �� ��� �� �� ������ �� ��� �� ��� ��� �

�� ���.

ALTER TABLESPACE table space name ... FILE SYSTEM CACHING

�� A. �� ��� �� �� 195

Page 210: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

196 ��� ��

Page 211: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� B. DB2 �� �� ��

DB2 �� ��� �� �� ��� �� ��� � ����.

v DB2 �� ��

– �� ��(���, � � ��)

– DB2 ��� �� ���

– �� ��

– ���

v DB2 �

– PDF ��(���)

– PDF ��(DB2 PDF DVD)

– �� �

v �� ���

– � ���

– ��� ���

�: DB2 �� ��� ��� PDF �� ��� ��� �� �����. �� �

�� ��� �� ��� �� ��� ����� ibm.com®�� DB2 �� ��� �

����.

ibm.com�� ���, �� IBM Redbooks � �� �� DB2 �� ��� �

� �� ���� � ����. DB2 �� �� ��� ���� ���

http://www.ibm.com/software/data/sw-library/� �������.

�� ���

DB2 ��� �� ��� �����. DB2 ��� ��� � �� ��� ��

����� ��� [email protected]�� �� ��� �����. DB2 �� �

��� ��� �� ��� ��� �� � � �� ���. ��� ��� �

��� � ��� ��� ��� �� �� �������. �� �� �� ��� �

�� �� ��� ��� �, �� URL� ������.

DB2 �� ��� ����� � �� �� ��� ���� ����. ���� ��

� � � DB2 �� ���� �� �, �� ��� IBM ��� ��� ���

����.

© Copyright IBM Corp. 1993, 2007 197

Page 212: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2 �� �����(��� �� PDF ��)

�� �� IBM Publications Center(www.ibm.com/shop/publications/order)�� �

�� � �� DB2 ���� �� ����. PDF �� �� DB2 �� 9.5

�� � � � � ��� www. ibm.com/ suppo r t / docv i ew .wss? r s=71

&uid=swg2700947�� ���� � ����.

�� �� � �� �� �� �� ���, �� �� �� ���� �� ��

��� � � �� ����.

� 25. DB2 �� ��

�� �� �� � ��

Administrative API Reference SC23-5842-00 �

Administrative Routines and Views SC23-5843-00 ���

Call Level Interface Guide and

Reference, Volume 1

SC23-5844-00 �

Call Level Interface Guide and

Reference, Volume 2

SC23-5845-00 �

Command Reference SC23-5846-00 �

Data Movement Utilities Guide and

Reference

SC23-5847-00 �

D a t a R e c o v e r y a n d H i g h

Availability Guide and Reference

SC23-5848-00 �

Data Servers, Databases, and

Database Objects Guide

SC23-5849-00 �

Database Security Guide SC23-5850-00 �

Developing ADO.NET and OLE

DB Applications

SC23-5851-00 �

Deve lop ing Embedded SQL

Applications

SC23-5852-00 �

Developing Java Applications SC23-5853-00 �

Deve lop ing Per l and PHP

Applications

SC23-5854-00 ���

Developing User-defined Routines

(SQL and External)

SC23-5855-00 �

Getting Started with Database

Application Development

GC23-5856-00 �

Linux Windows�� DB2 ��

�� ���

GA30-3480-00 �

Internationalization Guide SC23-5858-00 �

Message Reference, Volume 1 GI11-7855-00 ���

Message Reference, Volume 2 GI11-7856-00 ���

�� ��� GA30-3479-00 �

198 ��� ��

Page 213: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 25. DB2 �� �� (��)

�� �� �� � ��

Net Search Extender Administration

and User’s Guide

�: � ��� ��� DB2 �� �

�� ���� ����.

SC23-8509-00 �

Partitioning and Clustering Guide SC23-5860-00 �

Query Patroller �� ��� �

��

SA30-3539-00 �

IBM Data Server Clients� �� �

GA30-3482-00 ���

DB2 Servers� �� � GA30-3481-00 �

Spatial Extender and Geodetic

Data Management Feature User’s

Guide and Reference

SC23-8508-00 �

SQL Reference, Volume 1 SC23-5861-00 �

SQL Reference, Volume 2 SC23-5862-00 �

Sys tem Moni tor Guide and

Reference

SC23-5865-00 �

Text Search Guide SC23-5866-00 �

Troubleshooting Guide GI11-7857-00 ���

Tuning Database Performance SC23-5867-00 �

Visual Explain ��� SA30-3487-00 ���

��� �� SA30-3486-00 �

Workload Manager Guide and

Reference

SC23-5870-00 �

pureXML Guide SC23-5871-00 �

XQuery Reference SC23-5872-00 ���

� 26. DB2 Connect �� �� ��

�� �� �� � ��

DB2 Connect Personal Edition�

�� �

GA30-3484-00 �

DB2 Connect Servers� �� � GA30-3485-00 �

DB2 Connect ��� ��� SA30-3483-00 �

� 27. Information Integration �� ��

�� �� �� � ��

I n f o r m a t i o n I n t e g r a t i o n :

Administration Guide for Federated

Systems

SC19-1020-01 �

Information Integration: ASNCLP

Program Reference for Replication

and Event Publishing

SC19-1018-02 �

�� B. DB2 �� �� 199

Page 214: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� 27. Information Integration �� �� (��)

�� �� �� � ��

I n f o r m a t i o n I n t e g r a t i o n :

Configuration Guide for Federated

Data Sources

SC19-1034-01 ���

Information Integration: SQL

Replication Guide and Reference

SC19-1030-01 �

I n f o r m a t i o n I n t e g r a t i o n :

Introduction to Replication and

Event Publishing

SC19-1028-01 �

��� DB2 � ��

�� DB2 �� �� �, ��� �� �� ��� � ��� �� �� �

� ��� ����� ����. ���� �� ��� IBM ������ �� DB2

�� ��� � ����. DB2 PDF �� DVD� �� ���� �� ��

� �� �� ������. �� �� DB2 ��� � �� �� �$� �� �

�� ��� � ���.

DB2 PDF �� DVD�� ��� � �� ��� DB2 �� �� ��� IBM

�� ��� ��� � ����. ���� ��� �� IBM Publications Center�

� �� �� �� ��� �� ����. �� �� �� ���� �� ���

����, ���� �� ��� IBM ������ �� DB2 �� ��� �

����. DB2 PDF �� DVD� �� �� �� �� �� �� �����

�.

�: �� �� ��� DB2 ��� http://publib.boulder.ibm.com/infocenter/

db2luw/v9r5� DB2 �� ���� �������.

�� DB2 �� ����� ��� ������.

v �� �� �� ���� �� DB2 �� �� �� ��� � ��� ��

� ��� http://www.ibm.com/shop/publications/order� IBM Publications Center

� � ����. � �� ��� ������ ��/��/��� �� �� �

� ���� �� ����� �����.

v �� ��� IBM ������ �� DB2 �� ����� ��� �����

�.

1. �� � ��� ���� �� �� ���� �� ��� ��� ����

�.

– www.ibm.com/planetwide� �� IBM � �� ��� ���

200 ��� ��

Page 215: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

– http://www.ibm.com/shop/publications/order� IBM Publications � ���.

�� ��� �� � � ���� ������ �� ��, �� �� ��

� ��� ���. � ����� ″� ��� ��″ ��� ������.

2. ��� ��� �, ��� DB2 �� ������.

3. ����� ����� �� �� �� ��� ������. �� ��

�� ��� 198 ���� �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 ��

� �� �� ���� �����.

DB2 �� ��� �� ��� ��

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 ����� ��� ��� ��� ����� ��� ����

��.

�� B. DB2 �� �� 201

Page 216: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

1. Internet Explorer�� �� —> �� �� —> �... �� �����. �

� � �� �� � ��.

2. ��� ��� �� ��� � �� ���� ������ � ����.

– ��� � ��� ����� ��... �� �����.

�: ��� ����� ���� ��� ��� ��� ���� � ��

� � ���� �� ����.

– ��� �� �� ����, ��� �� � ��� �� ��� � �

� ��� � ��� �� �� �� �����.

3. ��� ��� �� � ���� �� �� ��� ��� DB2 �� ���

������.

v Firefox �� Mozilla ����� ��� ��� �� ��� ����� ���

������.

1. �� —> �� —> �� �� ��� � ��� �� �����. �

�� �� �� ��� �����.

2. ��� ��� �� ��� � �� ���� ������ � ����.

– ��� � ��� ����� ��... �� � �� �� ��� ���

����.

– ��� �� �� ����, ��� �� � ��� �� ��� � �

� ��� � ��� �� �� �� �����.

3. ��� ��� �� � ���� �� �� ��� ��� DB2 �� ���

������.

�� ��� �� � ���, �� ��� ��� ��� �� ���

��� ��� � �� ����.

��� �� ���� ��� �� DB2 �� �� ��

DB2 �� ��� ��� ��� �, IBM� �� ����� �� ��� ���

�� ��� � ����.

��� ��� DB2 �� ��� ����� ��� ������.

1. ����� DB2 �� ��� �� � � ��� �� �����. �

��� �� ��� ���� ���� �� �� ��� �� ���� �

� ��� ���� � ��� ��� ����� �� � ����.

2. �� ��� �� ���� � ��� �� ��� ������. ���� ��

��� �� �, �� ��� ��� ��� ��� � ����.

202 ��� ��

Page 217: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�: �� ���� �� ��� DB2 �� �� ����� ����� �,

�� ��� ��� ��� �� ���� �� �� ���� ��� DB2

�� ��� �����. �� � �� �� ����� ����� ����

� ��� �� ���� ��� ���� �� ���� ��� �� �

�� ���� � �� �� ��� �� � ����.

�� ���� �� ���� �� ��� ��� ���� �������. �

� �� ��� � ���� ��� � ����.

3. � �� ��� �� � ����� DB2 �� ��� ������.

�: Windows Vista��� ���� �� ��� �� ���� ���. �� ��

� ���� � %� �� ��� ��� ����� ��� ��� ���

�� �� � ���� ��� �����.

��� �� �� ��� ��� DB2 �� ��� ����� ��� �����

�.

1. DB2 �� ��� �����.

v Windows��� � → ��� → �� �� → ���� �����. �� ��

DB2 �� � ���� ��� ��� �� �� � ��� �����.

v Linux��� �� �� ������.

/etc/init.d/db2icdv95 stop

2. � ��� �� ��� �����.

v Windows ���:

a. � �� ���.

b. �� ��� ��� �� ������. DB2 �� ��� <Program

Files>₩IBM₩DB2 Information Center₩Version 9.5 ���� ���� �

����. �� <Program Files>� �� �� ���� ��� �

���.

c. �� ����� doc₩bin ����� �����.

d. �� �� help_start.bat ��� ������.

help_start.bat

v Linux ���:

a. �� ��� ��� �� ������. DB2 �� ��� /opt/ibm/

db2ic/V9.5 ���� ���� �����.

b. �� ����� doc/bin ����� �����.

c. �� �� help_start �� �� ������.

help_start

� �� ��� ���� �� ���� �� � ���� �����.

�� B. DB2 �� �� 203

Page 218: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

3. �� �( )� �����. �� ��� ��� ���� �� ��� ����

�. �� ��� �� ��� �����.

4. ��� ���� ���� ���� ��� �� � �� ��� ��

���.

5. ��� �� ���� ���� ��� �����.

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 �� � ���� ��� ��� �� �� � � � �����.

v Linux��� �� �� ������.

/etc/init.d/db2icdv95 start

��� DB2 �� ���� �� ��� ��� �����.

DB2 ���

DB2 ���� DB2 ��� ��� ��� �� ���� � �����. � ���

�� ����� �����.

���� ��

http://publib.boulder.ibm.com/infocenter/db2help/� �� ���� XHTML ��� �

��� � � ����.

�� ����� �� ���� �� �����. �� ���� �� �� � �

� ���� � ����.

204 ��� ��

Page 219: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2 ���

���� ��� ��� �����.

�pureXML�(pureXML Guide)

XML ���� ���� �� XML ��� ��� �� � ����

� DB2 ������� ������.

Visual Explain ���� �Visual Explain�

Visual Explain� ��� ��� ��� � ��� SQL�� ��, �

� ����.

DB2 ��� � ��

DB2 �� �� ��� �� ���� ��� �� ��� � �� ��� ���

�.

DB2 ��

��� �� ��� DB2 ��� �� ��� �� DB2 �� ��� ��

��� �� �� ����. DB2 � �� ����� ��� ���

� ���� ���� ��, � �� �� �� ���� �� ��

DB2 ���� �� � �� ���� ���� ��� �� � ����

� �� ��� ����.

DB2 �� �� � ���

���� �� � � ��� ���� DB2 �� �� � ����

� ����. �� �� ����� �� DB2 �, ���, APAR(Authorized

Program Analysis Report �� �� ��), FixPack � ��� �� �

�� ����. �� �� ��� �� ��� �� ��� ��� �

� � ����.

http://www.ibm.com/software/data/db2/udb/support.html�� DB2 �� ��

� ���� �������.

��

�� �� �� � ��� ��� � ����.

�� ��: �� ��� ��� ���� �� �� ��� � ��� ,

��� ��� ��� � ����. ��� IBM� � � � � �� ��

� ��� �� �� ����� 2� ��� �� � ���.

�� B. DB2 �� �� 205

Page 220: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� ��: �� ��� ��� ���� �� �� ��� � ��� �� �

�� ���� ��, �� ��� � ����. ��� IBM� � � � �

��� 2� ��� ���� � �� �� � ��� ��, �� �� �� � �

���.

� ���� ��� �� �� ����, � ��� � ��� ��� ��, �

��, ���� �� � � ��� �� ��� ��� ���� �� ���

� �� ���� ��� ����.

IBM� � ��� ��� IBM� �"� ���� ���� ��� ��� ����

� ���� ���� ��� � ���� � ����� �� ��� ��� �

����.

�� ��� �� �� ��� �� � ��� �� �� �� ���

� ��� ��� � ��� ���, �� �� ���� � ����.

IBM� � ��� ��� �� ��� ��� ���� ����. � ��� ���,

�� ��� �� ��� ��� �� �� ��� ���(, �� ���

��) ��� ���� ��� �� � ″�����″ �����.

206 ��� ��

Page 221: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� C. ����

� ��� ���� ���� �� ������ �� ����.

IBM� �� ���� � �� ��� ��, ��� �� ��� ���� �� ��

����. �� ��� � �� �� ���� �� ��� �� IBM �����

������. � ��� IBM ��, �� �� ���� ����� �� �� IBM

��, �� �� ����� ��� � ��� �� ����� ����. IBM�

� ��� ���� �� �, ����� � ��, �� �� ���� �

� ��� �� ����. �� �IBM ��, �� �� ���� ��� ��

�� ��� ���� �����.

IBM� � ��� ��� �� �� ��� �� ��� ���� ��� �� ��

�� � � ����. � �� ����� �� ��� �� ������ ���

�� ����. ����� �� ����� ���� ������.

135-270

����� ��� �" 467-12, � ������

�� ��.�.� ����

������

����: 080-023-8080

2 ��(DBCS) ��� �� ���� ��� �� IBM ������� �����

�� ��� �� ����� ���.

IBM World Trade Asia Corporation

Licensing

2-31 Roppongi 3-chome, Minato-ku

Tokyo 106, Japan

�� ��� �� ���� ���� �� ����� ���� ����. IBM�

� �� ���, ��� �� ��� ��� �� �� ��� ���

(, �� ��� ��) ���� ��� ��� ��� ��� � �� ���

���� �����. �� ����� �� ���� � �� �� ��� ��

��� ���� ����, � ��� ��� �� �� ����.

� ���� ���� ���� ���� ��� ��� �� � ����. � �

�� ���� ���, �� ��� ���� �����. IBM� � ��� �

� �� /�� �� � �� �� � ���� /�� �� � ��

��.

© IBM Corporation 1993, 2007 207

Page 222: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� ��� �IBM � ��� ��� �� �� �� � � �����. IBM� �

���� � , ��� �� ��� � �� �� �IBM � ��� �� � ��

��� �� ��, �� �� ���� ����. �IBM � ����� ��� IBM

� �� � ��� �� ���� ��� �� ��� ����� �� ���� �

���. �� IBM ����� � ��� �� �����(�� �� � �� �

�� �����) IBM� � ��� ��� ��� ���� ��� �� ����

����. ��� IBM� �� �� ��� �� ��� ��� �� ���� ��

�, �� ��� �� ���� ��� � �� ���, ���, �� �� � ��

� �� �� ��� �� �� ��� � �� ����. � ��� ���

����� �� ����� ��� ���� �� ����.

IBM� ��� ��� ���� �� �� ��� ���� ���� ���� ��

� ��� ��� ����� ��� � ����.

(i) ���� �� �� �� �� (� �� ��) �� �� ��

(ii) ��� ��� �� ��� ��� � �� � �� ��� ��� �� �

��� ���� �� ��� ������.

135-270

����� ��� �" 467-12, � ������

�� ��.�.�. ����

������

�� ��� �� �(�� ��, ��� �� )��� ��� � ����.

� ��� ��� ����� �� �� �� � �� �� ��� ��

����� �� ��� IBM� IBM �� ��, IBM �� ���� ��(IPLA)

�� �� � ��� �� ��� ����.

� ��� ��� �� �� ���� ��� ��� �� ����. ��� ��

�� ��� ��� � � �� �� � ����. �� ���� �� ��

��� ���� � ���, ��� �� ���� ���� ���� �� ��

���� ��� �� ����� ��� � ���. �� �� ��� ���

�� ����� �� ���� �� � � �� � ����. � �� ���� ��

���� � � �� ��� ���� ���.

�IBM ��� �� ��� �� ��� ����, � �� �� �� � �� �

���� �� ����. IBM��� �� ���� ����� �����, �IBM

�� ��� ��� ���, ��� �� � �� ���� ��� � ���.

�IBM ��� ��� �� ����� �� ��� ����� ������.

IBM� ���� � �� ��� �� �� ��� ��� �� � �� � �

���.

208 ��� ��

Page 223: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� ���� ��� ���� ���� ���� �� ���� �� ��� ��

����. �� ���� �� ��� ���� ��� �� , ��, ��

��� ��� ��� � ����. �� ��� �� ��� ��� �� ��� ��

��� ����� �� ��� �����.

�� ����:

� ���� �� ����� ���� ��� ��� �� ��� � �

� ���� � �� ����. ��� �� �� �� � � ��� � �

� ��� ���� ���� ����(API)� ���� ���� �

, ��, �� �� ��� ��� �� ��� �� �� �� � ���

��� ��, �� ��� � ����. �� �� �� � �� � ���

�� ���� �� ����. ��� IBM� �� �� � ���, ��� �

�� �� ��� ����� ���� ����.

�� �� �� �� �� ��� � ���� ���� �� �� �� �

� ��� ����� ���.

© (��� ��) (��). � �� ��� IBM Corp.� �� �� �� ���

��. © Copyright IBM Corp. _enter ��_. All rights reserved.

��

DB2 �� 9.5 �� ��� ���� ���� ��, �� �� ��� ���

IBM(International Business Machines) Corporation �� � ��� �� �� �

������. �� �� � ���� ���� IBM Corporation� ��� �� �

�� http://www.ibm.com/legal/copytrade.shtml� ����.

�� ��� � ��� �� �� �����, DB2 �� ���� �� ��

� ��� ���� �����.

Microsoft, Windows, Windows NT® Windows ��� �� �� � ����

���� Microsoft Corporation� �����.

Intel®, Intel ��, Intel Inside® ��, Intel Centrino®, Intel Centrino ��, Celeron®,

Intel Xeon®, Intel SpeedStep®, Itanium Pentium®� �� �� � ���� �

��� Intel Corporation� �����.

Java �� Java �� ��� �� �� � ���� ���� Sun Microsystems,

Inc.� �����.

UNIX� �� �� � ���� ���� Open Group� ������.

Linux� �� �� � ���� ���� Linus Torvalds� ������.

�� C. ���� 209

Page 224: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

Adobe®, Adobe ��, PostScript® PostScript ��� �� �� � ���� �

��� Adobe Systems Inc.� ��� �� �����.

� ��, �� ��� ��� �� ��� �� �� �������.

210 ��� ��

Page 225: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��

����� ��

�� 49, 166

�� ��� ��� 132

��

�� �� 202

DB2 �� �� 202

�� ��

�� 54

����

�� � 14, 99

���� �� ��(HADR)

�� � 103

��

�� � 3, 25

��� �� � �� 25

��� ��� 111

���� � 131

�� ��

��� 134

�� 36, 134

��

��� 134

�� 36, 134

ENV_FEATURE_INFO 37

��

� �� ������ 28

��� ��� 111

��� �� 117

�� ���

�� 30

��� 142, 154

���� �� �� 142, 154

���� �� 142

�� 142

appl_memory 29

auto_del_rec_obj 101

db2Import

161

db2Load

161

enable_xmlchar 65

�� ��� (��)

estore_seg_sz

���� �� 183

hadr_peer_window 103

num_estore_segs

���� �� 183

���

�� ��� 24

����� ��

�� 54

�� ��

DB2 XQuery 67

�� ��

��� 134

�� 134

�� ��

��� 134

�� 134

�� � �� ��� ��(NIS+)

���� �� �� 182

�� � �� ���(NIS)

���� �� �� 182

���� �� ������

�� 28

� ��� (SSV)� ��� �� 104

� ��� (SSV)

�� 104

��� ��

��� �� 67

���

�� �� 30, 132

��� �� �� 126

��� �� 32

��� ��

�� � 14

� 103

��� �� � ��

25

© Copyright IBM Corp. 1993, 2007 211

Page 226: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� �� � �� (��)

�� 110

Windows Vista �� 113

��� �� �� ��

25

�� 110

��� �

10� � ��� 78

ARRAY 78

DECFLOAT 78

�� �� 119

XQuery ��� � � �� �� �� 67

������

25

�� 25

� �� �� 28

�� 25

��� � ��� 131

�� � � 142

�� � � �� 121

��� 121, 131

� 25

NO FILE SYSTEM CACHING ���� 152

���

�� 201

SQL�� �� 201

� ���(CIO)

��� �� 57, 152

��� ��

�� 54

�� �

���� �� 142

����

��� �� � �� 25

������� �

���� �� 37

���

�� � 140

����� ��

��� 148

���� �� �� 173

���� �� 185

DB2_AWE

���� �� 184

DB2_MEMORY_PROTECT 126

��

�� � 99

� �� �� 179

�� �� ��

� �� 103, 179

���

�� �� 30

XML 62

� ����

pureXML ��� 62

XML ��� 62

��

��� 134

�� 134

���

��� ��� 121

������

�� �� 29

CLI/ODBC ���� � ��� �� 160

Memory Visualizer �� 139

NO FILE SYSTEM CACHING � � ���� �� 57

���� � 163

BACKUP DATABASE

�� 165

BIND

�� � � �� 154

db2audit

��� 166

db2ckmig

�� 168

db2icrt

���� �� � 184

db2ilist

���� �� � 184

db2iupdt

���� �� � 184

db2licm

��� 155

���� �� � 187

db2look

DDL �� �� 36

db2mtrk

��� 168

212 ��� ��

Page 227: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

� (��)

db2pd

EDU �� 169

db2undgp

���� �� 186

IMPORT

���� �� � 179

INSPECT

�� �� �� 126

installFixPack

�� 154

LOAD

pureXML ��� 62

XML ��� 62

ps

�� � 169

REDISTRIBUTE DATABASE PARTITION GROUP

�� 32

��� �� � 164

ROLLFORWARD

�� �� �� 105

UPDATE XMLSCHEMA 66

�� ���(CLP)

� � 163

�� � 95

��� �

�� � 37

���� �� �� 176

ESTORE ���� �� 183

physical_page_maps

���� �� 184

����

37

��� �� �� �� 25

��

�� � 205

PDF �� �� 198

�� 197

��� ���

��� 121

��� ��

�� � 125

�� �� 205

��� 205

��� ��

�� � 125

�� �� 205

��� 205

��� �� (��)

db2fodc ���� 125

���

XMLGROUP �� �� 68

XMLROW �� �� 68

XSLTRANSFORM �� �� 68

��

�� � 99

� �� ������ 104, 165

��� 100, 106

�� ��� 140

�� �� �� ��� 140

��� ������ 104

� �

�� 126

�� ��

� 129, 131

��

�� 76

��� �� 117

�� ��

�DB2 �� 112

��

�� � 12, 47

���� ���� 47

��� �� 116

LBAC 52

�� ���(SECADM) ��

������ �� 132

��

�� � 99

�� 101

� 179

�� �� ��

Perl ��� 74

��

�� � 119

DECFLOAT ��� � 119

��� 134

�� 134

SNAPBP

��� 184

213

Page 228: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

��� ��

111

�� �� �� ��

98

������� �� ��

� 129, 173

� ��

� 1

��� ��

� 1

��

���� � 93

�� FixPack ���

�� �� �� 110

� ��� ��

REFRESH TABLE 59

SET INTEGRITY 59

��

�� � 109

��� ��� 111

��

�� � 7, 53

�� �� 56

�� �� 53, 57

pureXML �� 62, 65

XML �� 62, 65

��� ��

��� �� 67

��� ���

���� �� � 180

��� ��

106

�� ��

98

�� �� �� 122

��� 122

� 68

�� �� 98

���� ��� 98

���

pureXML

���� �� 65

XML

���� �� 65

��� �

� � �� 126

�� ���

� ���� � 99

XSR_UPDATE 66

�� ��

DB2 XQuery 67

��� ��

���� � 163

��� � ��

��� 134

�� 134

��� �� ��

26

����� ��

� � 30, 132

��

51

�� �

db2fodc ���� 125

�� �� ��(OLAP)

��

�� 56

�� ��� �� ���

C C++ �� ���� 116

�� ��

41

�� � 41

41

���

��� � ��� 131

��� ��� 121

Big5-HKSCS �� 122

��� ������

������

�� � � �� 121

����

���� �� 162

db2fodc 125

� ��

� �� 111

����

� �� � 93

�� �� 127

Windows ���� � �� 23

214 ��� ��

Page 229: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

���� (��)

Windows ���� � 23

����

�� � 16, 71

� �� � 93

�� � 155

��� �� 115

JDBC 3.0 �� 80

JDBC 4.0 �� 86

Linux UNIX 158

SQLJ �� 80, 86

���� ��� �

��� �� 115

��� �� ��� 126

��� ���

��� �� ��� 133

��

�� � 109

Windows

���� ��� 140

��

��� ��� �� 127

� �� 56

��� �� 141

�� �

�� 200

���

�� �� � � � �� 113

���

pureXML ��� 65

XML ��� 65

������ ��(NLS)

�� � 121

� ��

� 3

� �� ��(ADC)

30

� ����

� �� 99

� �� � 99

���

��� �� ��� �� 205

Visual Explain 204

�� � ���

�� 29

�� � �� ��

76

�� ���� 38

� ��

���� �� ��(HADR)

�� � 103

�� � 103

���

�� 32

��� �� � �� 25

�� ��

76

�� ��

�� 202

�� ��� �� 201

�� 201

��

��� 23

��� 23

� �� 205

��� �� � �� 121

���� 207

� ��

� 129, 183

�� ���(DIO)

��� �� 152

���� ���� ��� �� ��

125

���� ��

��� 134

�� 134

��

XQuery ��� � 67

�� ��� ���

XQuery 67

��

�� ���, �� ����� 193

� ���

��� ��� 131

215

Page 230: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

�� �� �

��� �� �� 169

��

�� � 53, 57

���

�� 102, 109

�� 102, 107

��� �� API 107

����� ����

� ���(CIO) ��� 57

���� �� 38

�� ��� �� �� 193

NO FILE SYSTEM CACHING ���� 152

�� ��

���� �� �� 134

ENV_GET_FEATURE_INFO 37

SNAP_GET_BP

��� 184

��� �� ��� ���

�� �� � 133

��

��� �� 26

��� �� 117

�� ���

��� 39

���� ����

47

��� �� 116

��

�� 51

�� ����

� � 163

SCHEMA

��� � 160

USER

��� � 160

����� ���

�� ����� �� �� 193

�� ��� ��

��� �� 57

��� ������ �

� ��� (SSV)� ��� �� 104

���

�� � 115

�� �� 117

�� �� 116

���� �� 115

��� ��

61

���

� ���� � 99

ADMIN_CMD

�� 165

�����

��� 134

���� �� �� 134

�� ��

�� �� �� 122

� 68

�� �� ��(OLAP)

�� 56

�� 134

�� ��

��� ��� ���� �� 183

ENV_GET_FEATURE_INFO 37

DB2 XQuery

�� 67

�� 67

��� 67

��� 67

�� 67

SYSFUN ��� SYSIBM �� 162

XSLTRANSFORM 64

�� ��

Windows Vista 153

�� ���(ESTORE)

���� �� 183

���

�� � 7

� ��

��� 148

���� �� �� 173

���� �� 185

216 ��� ��

Page 231: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

����10� � ��� ��� �

78

�� �� 119

AADC(Automatic Dictionary Creation)

30

ADMIN_CMD ���

� �� �� 165

ADMIN_GET_TAB_INFO ��

���� �� �� 134

agentpri �� ���

���� �� �� 142

agents_waiting_on_token ��� �

���� �� �� 176

agents_waiting_top ��� �

���� �� �� 176

ALTER BUFFERPOOL�

ESTORE � 183

ALTER SECURITY LABEL COMPONENT�

52

ALTER SECURITY POLICY�

52

ALTER TABLESPACE�

���� �� 38

API

���� �� 162

db2Backup

�� 165

db2inspect

�� �� �� 126

db2Rollforward

�� �� �� 105

piActionString ��� �

���� �� �� 182

sqluadau

���� �� �� 176

appgroup_mem_sz �� ���

���� �� �� 142, 154

applheapsz �� ���

�� 30, 154

��� 142

appl_memory �� ���

29, 142

app_ctl_heap_sz �� ���

���� �� �� 142, 154

ARRAY ��� �

78

authority_lvl ��� �

���� �� �� 176

AUTOMAINT_GET_POLICY �� ���

99

AUTOMAINT_GET_POLICYFILE �� ���

99

AUTOMAINT_SET_POLICY �� ���

99

AUTOMAINT_SET_POLICYFILE �� ���

99

auto_del_rec_obj �� ���

101, 142

auto_stmt_stats �� ���

142

AWE(Address Windowing Extensions)

���� �� 184

BBACKUP DATABASE �

� �� �� 165

Big5-HKSCS

��� �� 122

BIND �

�� � � �� 154

Ccatalogcache_sz �� ���

���� � 142

cat_cache_size_top ��� �

���� �� �� 176

CCD(Consistent-Change Data) tables

CD-UOW � 119

CCD(Consistent-Change Data) ��

CD-UOW � 119

CLIENT APPLNAME �� ����

� �� 95

CLISchema CLI �

���� �� 187

CLI/ODBC ����

��� ��� �� 160

cluster_mgr �� ���

142

217

Page 232: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

comm_bandwidth �� ���

���� � 142

CREATE BUFFERPOOL�

ESTORE � 183

CREATE DATABASE�

NO FILE SYSTEM CACHING ���� 152

CREATE INDEX�

�� � 56

CREATE TABLESPACE�

NO FILE SYSTEM CACHING ���� 152

CURRENT DEFAULT TRANSFORM GROUP �� ����

� � 163

CURRENT PATH �� ����

� � 163

Ddatabase_memory �� ���

�� 30

���� ��� 142

DB2 ACS(Advanced Copy Services) API

��� �� 100

DB2 Client

�� � 24

DB2 Connect

�� � 19

DB2 Connect �� 9.5 ��� �� �� V9.1 FixPack ���

22

DB2 Developer Workbench

�� 95

�� � 24, 95

DB2 Runtime Client

�� �� 112

�� � 24

DB2 Spatial Extender

�� �� �� 58

DB2 XQuery ��

�� 67

���

��� �� 67

���

��� �� 67

�� 67

DB2 �� 9.5

� 3

DB2 � �� 200

DB2 � ��

���� �� 185

DB2 �� ��

�� 202

�� ��� �� 201

�� 201

DB2ATLD_PORTS ����� ��

���� �� �� 173

db2audit �

�� 49

��� 132, 166

db2Backup API

� �� �� 165

DB2BPVARS ����� ��

���� �� �� 173

DB2CCMSRV

���� �� 185

db2ckmig �

�� 168

DB2CLIINIPATH

��� 148

db2cos �� �

��� �� �� 169

db2cos_datacorruption �� �

��� �� �� 169

db2cos_hang �� �

��� �� �� 169

db2cos_trap �� �

��� �� �� 169

DB2COUNTRY ����� ��

���� �� �� 173

DB2DEFPREP ����� ��

���� �� �� 173

DB2DMNBCKCTLR ����� ��

���� �� �� 173

DB2FFDC ����� ��

���� �� �� 173

DB2FODC

148

db2haicu ����

102

db2icrt �

���� �� � 184

db2ilist �

���� �� � 184

db2Import API

piActionString ��� �

���� �� �� 182

db2Import �� ���

ID 161

218 ��� ��

Page 233: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

db2inspect API

�� �� �� 126

DB2INSTPROF

�� ���� 148

db2iupdt �

���� �� � 184

db2licm �

�� ID � � 155

���� �� � 187

DB2LINUXAIO

���� �� 185

db2Load API

piActionString ��� �

���� �� �� 182

db2Load �� ���

ID 161

db2look �

DDL �� �� 36

DB2MEMMAXFREE ����� ��

��� 148

���� �� �� 173

db2mtrk �

��� 154, 168

DB2NTNOCACHE ����� ��

���� �� �� 173

DB2NTPRICLASS ����� ��

���� �� �� 173

db2pd �

EDU �� 169

DB2PRIORITIES ����� ��

��� 148

���� �� �� 173

db2Rollforward API

�� �� �� 105

DB2ROUTINE_DEBUG ����� ��

���� �� �� 173

db2undgp �

���� �� 186

DB2UPMPR

���� �� 185

DB2UPMPSINGLE

���� �� 185

DB2YIELD ����� ��

���� �� �� 173

DB2_ALLOCATION_SIZE ����� ��

���� �� �� 173

DB2_ASYNC_APPLY

���� �� 185

DB2_ASYNC_IO_MAXFILOP ����� ��

���� �� �� 173

DB2_AWE ����� ��

���� �� 184, 185

DB2_BAR_AUTONOMIC_DISABLE ����� ��

���� �� �� 173

DB2_BLOCK_ON_LOG_DISK_FULL

���� �� 185

DB2_CAPTURE_LOCKTIMEOUT

148

DB2_ENABLE_SINGLE_NIS_GROUP ����� ��

���� �� �� 173

DB2_EVMON_EVENT_LIST_SIZE

148

DB2_EXTENDED_IO_FEATURES

��� 148

DB2_FORCE_FCM_BP

���� �� 185

DB2_HASH_JOIN ����� ��

���� �� �� 173

DB2_INDEX_FREE ����� ��

���� �� �� 173

DB2_LARGE_PAGE_MEM

��� 148

DB2_LGPAGE_BP

���� �� 185

DB2_MAP_XML_AS_CLOB_FOR_DLC ����� ��

���� �� �� 173

DB2_MDC_ROLLOUT

��� 148

DB2_MEMORY_PROTECT ����� ��

148

� � �� 126

DB2_MIGRATE_TS_INFO

���� �� 185

DB2_NEWLOGPATH2

���� �� 185

DB2_NO_FORK_CHECK ����� ��

���� �� �� 173

DB2_NR_CONFIG

���� �� 185

DB2_OLAP_BUFFER_SIZE

���� �� 185

DB2_OPTSTATS_LOG

148

DB2_PARTITIONEDLOAD_DEFAULT ����� ��

���� �� �� 173

219

Page 234: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

DB2_PINNED_BP

��� 148

DB2_RESOURCE_POLICY

��� 148

DB2_RR_TO_RS ����� ��

���� �� �� 173

DB2_SET_MAX_CONTAINER_SIZE ����� ��

148

DB2_SNAPSHOT_NOAUTH ����� ��

���� �� �� 173

DB2_SYSTEM_MONITOR_SETTINGS

148

DB2_THREAD_SUSPENSION

148

DB2_TRUSTED_BINDIN ����� ��

���� �� �� 173

DB2_UPDATE_PART_KEY ����� ��

���� �� �� 173

DB2_UPDDBCFG_SINGLE_DBPARTITION

148

DB2_USE_DB2JCCT2_JROUTINE

��� 148

DB2_VENDOR_INI ����� ��

���� �� �� 173

DB2_WORKLOAD

��� 148

DBC SQLJ� DB2 Driver

�� � 24

dbheap �� ���

�� 30, 154

���� ��� 142

db_heap_top ��� �

���� �� �� 176

DECFLOAT ��� �

78

�� �� 119

decflt_rounding �� ���

142

DECODE �� ��

���� ��� 98

DEGREES ��

SYSIBM �� 162

DESCRIBE �

�� ��� 163

Developer Workbench

�� 95

�� � 95

Eenable_xmlchar �� ���

65, 142

ENV_FEATURE_INFO ��

37

ENV_GET_FEATURE_INFO �� ��

37

ESTORE(�� ���)

���� �� 183

ESTORE_SEG_SZ �� ���

���� �� 183

estore_seg_sz �� ���

���� �� 142

EXP ��

SYSIBM �� 162

Ffederated_async �� ���

��� 142

fenced_pool �� ���

���� � 142

FixPack

�� � 109

�� 9 .5� �� �� �� 9.1� ��� 189

�� � � �� 110, 154

�� �� �� 110

GGET AUTHORIZATIONS �

���� �� �� 175

GET DB CFG �

�� ��� 163

GET SNAPSHOT �

�� ��� 163

GRANT EXEMPTION�

�� 52

GRANT SECURITY LABEL�

�� 52

GREATEST �� ��

���� ��� 98

groupheap_ratio �� ���

���� �� �� 142, 154

220 ��� ��

Page 235: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

Hhadr_peer_window �� ���

103, 142

IIBM Data Server Driver for JDBC and SQLJ

��� ��� 155

IBM Data Server Driver for ODBC, CLI, and .NET

23

IBM Data Server Provider for .NET

��� �� �� 92

IBM Database Add-Ins for Visual Studio 2005

�� 74

IBM Tivoli SA MP(System Automation for Multiplatforms)

�� 109

�� 109

�� �� 109

IBM_DB2 PHP ��

72

��� 72

ID

� � 71, 159, 162

� �� 161

IMPORT �

���� �� � 179

INSERT �� ��

��� �� �� �� �� 122, 134

INSPECT �

�� �� �� 126

installFixPack �

�� 154

instance_memory �� ���

�� 30, 154

��� 142

intra_parallel �� ���

��� 142

JJava

��� ��� � 155

JDBC

��� ��� � 155

3.0

�� 80

JDBC (��)

4.0

�� 86

ResultSetMetaData.getColumnLabel � 156

ResultSetMetaData.getColumnName � 156

JAR �� �� 79

LLBAC(label-based access control)

�� 52

LEAST �� ��

���� ��� 98

LEFT �� ��

��� �� �� �� �� 122, 134

Linux, UNIX Windows� DB2 JDBC � 2 ���

���� �� �� 155

LN ��

SYSFUN ��� SYSIBM �� 162

LOB �

�� �� �� 53

LOG ��

SYSFUN ��� SYSIBM �� 162

LOG10 ��

SYSFUN ��� SYSIBM �� 162

logretain �� ���

���� �� �� 142

LOWER �� ��

��� ��� 123

MMAX �� ��

���� ��� 98

maxagents �� ���

���� �� �� 142

maxcagents �� ���

���� �� �� 142

maxfilop �� ���

��� 142

max_agents_overflows ��� �

���� �� �� 176

max_connections �� ���

���� � 142

max_coordagents �� ���

��� 142

MDC(��� ����) ��

��� �� 55

221

Page 236: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

MDC(��� ����) �� (��)

��� �� �� ��� 55

Memory Visualizer

�� �� 139

MIN �� ��

���� ��� 98

mon_heap_sz �� ���

�� 30, 154

���� ��� 142

multithreaded ����

� 27

Nnumsegs �� ���

���� �� �� 142

NUM_ESTORE_SEGS �� ���

���� �� 183

num_estore_segs �� ���

���� �� 142

num_initagents �� ���

��� 142

num_initfenced �� ���

��� 142

num_poolagents �� ���

���� � 142

NVL �� ��

���� ��� 98

OODBC CLI� DB2 ���

�� � 24

OVERLAY �� ��

��� �� �� �� �� 122, 134

PPDO_IBM PHP ��

72

��� 72

PD_GET_DIAG_HIST �� 126

Perl ���

�� �� �� �� 74

pureXML �� 74

PHP ��

72

��� 72

physical_page_maps ��� �

���� �� 184

piActionString ��� �

���� �� �� 182

pkg_cache_size_top ��� �

���� �� �� 176

pool_data_from_estore ��� �

���� �� 183

pool_data_to_estore ��� �

���� �� 183

pool_index_from_estore ��� �

���� �� 183

pool_index_to_estore ��� �

���� �� 183

POWER ��

SYSFUN ��� SYSIBM �� 162

PreparedStatement ��

���� �� 157

priv_mem_thresh �� ���

���� �� 142

priv_workspace_num_overflows ��� �

���� �� �� 176

priv_workspace_section_inserts ��� �

���� �� �� 176

priv_workspace_section_lookups ��� �

���� �� �� 176

priv_workspace_size_top ��� �

���� �� �� 176

ps �

�� ��� 169

pureXML

�� � 9, 61

���

�� 61

� 62

���� ������ ��� 65

XSLT� ��� �� 64

� ���� 62

��� �� �� 64

�� ��� � �� 63

�� �� 68

�� � 62, 65

��� ���� �� 65

�� �� �

�� 63

��� �� �� 63

�� � 68

Perl ��� 74

222 ��� ��

Page 237: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

pureXML (��)

VALIDATED �� 63

QQuery Patroller

Windows Vista �� 113

query_heap_sz �� ���

���� �� �� 142, 154

RRADIANS ��

SYSFUN ��� SYSIBM �� 162

REDISTRIBUTE DATABASE PARTITION GROUP �

�� 32

��� �� � 164

REFRESH TABLE �

�� 59

�� � � 142

ResultSetMetaData.getColumnLabel

JDBC 4.0�� �� � 156

ResultSetMetaData.getColumnName

JDBC 4.0�� �� � 156

REVOKE EXEMPTION�

�� 52

REVOKE SECURITY LABEL�

�� 52

RIGHT �� ��

��� �� �� �� �� 122, 134

ROLLFORWARD �

�� �� �� 105

Ruby on Rails

�� 73

RUNSTATS ����

UNSET PROFILE � 39

SSCHEMA �� ����

��� � 160

SET INTEGRITY �

�� 59

�� � � 142

SET �� ��

�� 77

shr_workspace_num_overflows ��� �

���� �� �� 176

shr_workspace_section_inserts ��� �

���� �� �� 176

shr_workspace_section_lookups ��� �

���� �� �� 176

shr_workspace_size_top ��� �

���� �� �� 176

SIGN ��

SYSFUN ��� SYSIBM �� 162

SNAPBP ��

��� 184

SNAP_GET_ APPL_INFO �� ��

���� �� �� 134

SNAP_GET_APPL �� ��

���� �� �� 134

SNAP_GET_BP �� ��

��� 184

���� �� �� 134

SNAP_GET_DBM �� ��

���� �� �� 134

SNAP_GET_DB_V91 �� ��

���� �� �� 134

SNAP_GET_DYN_SQL_V91 �� ��

���� �� �� 134

sortheap �� ���

��� 142

SQL

�� �� �� 36

�� �� 36

XQuery ��� �� 64

SQLJ

�� 80, 86

SQLOGCTL.LFH ��

� �� 103, 179

sqluadau API

���� �� �� 176

SQL�

��� �� 201

ALTER BUFFERPOOL

ESTORE � 183

ALTER TABLESPACE

���� �� 38

CREATE BUFFERPOOL

ESTORE � 183

CREATE DATABASE

NO FILE SYSTEM CACHING ���� 152

CREATE INDEX

�� � 56

223

Page 238: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

SQL� (��)

CREATE TABLESPACE

NO FILE SYSTEM CACHING ���� 152

LBAC(Label-based access control) �� 52

REFRESH TABLE

�� 59

�� � � 142

SET INTEGRITY

�� 59

�� � � 142

SET ��

�� 77

SQRT ��

SYSFUN ��� SYSIBM �� 162

stat_heap_sz �� ���

�� 30, 154

���� � 142

stmtheap �� ���

�� 30, 154

���� ��� 142

STRIP �� ��

��� �� �� �� �� 122, 134

SYSCAT

��� 134

�� 134

TTRIM �� ��

��� �� �� �� �� 122, 134

UUPDATE XMLSCHEMA �

66

UPPER �� ��

��� ��� 123

USER �� ����

��� � 160

userexit �� ���

���� �� �� 142

VVisual Explain

��� 204

WWebSphere Federation Server

�� � 115

Windows

��

���� ��� 140

Windows Vista

�� 113

�� �� � 153

�� �� ��� 153

WITH HOLD ��

��� �� 115

wlm_collect_int �� ���

142

WORF(Web Object Runtime Framework)

���� �� �� 181

XXML

�� � 9, 61

���

�� 61

� 62

���� ������ ��� 65

XSLT� ��� �� 64

� ���� 62

�� ��� � �� 63

�� � 65

��� ���� �� 65

�� �� �

�� 63

�� �� 62

��� �� �� 63

�� � 68

XML Extender

���� �� �� 180

XML ��� �

��� �� 115

XML ��

�� �� 68

�� ��� 68

XML ���

�� 66

�� �� 68

�� 68

224 ��� ��

Page 239: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

XMLGROUP ��

68

XMLROW ��

68

XMLTRANSFORM ��

68

XQuery

�� ��� ��� 67

��� �� 61

SQL ��� �� 64

XML ��� �� 61

XSLTRANSFORM ��

64

XSR_UPDATE �� ���

66

225

Page 240: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

226 ��� ��

Page 241: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving
Page 242: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

���

SA30-3486-00

Page 243: DB2 9.5 Linux, UNIX Windowspublic.dhe.ibm.com/ps/products/db2/info/vr95/pdf/ko_KR/...Linux, UNIX, Windows DB2 9.5 DB2 Connect 9.5 9.5 9.1 , DB2 . . . 9.5 1 1 . 9.5 129 2 ... ″Moving

Spineinformation:

DB

2�

�9.

5L

inu

x,U

NIX

�W

ind

ow

s��

�9

��

�5

��

��

���