IBM DB2 Connect 9.7
DB2 Connect C'8O
S151-1176-00
IBM DB2 Connect 9.7
DB2 Connect C'8O
S151-1176-00
"b
9CKE"0d'VDz 70,k HDAZ 163 3 D=< B, :yw ; BD#f E"#
^)fyw
K D5|, IBM D yP(E"# | ZmI -iPa),R\f(( D #$# > vfoP|,DE"; | (TNNz7D
#$,Ra)DNNod<;h* gKbM#
z IZ_r(}1XD IBM zm& ) : IBM vfo#
v *Z_):
vfo,k*A IBM vfoPD,x 7 *:www.ibm.com/shop/publications/order
v *iR1XD IBM zm &,k*A IBM + r*5K?< ,x7* :www.ibm.com/planetwide
*S@zrSC sD DB2 P!Mz [?): DB2 vfo,kB g 1-800-IBM-4YOU(426-4968)#
1 zr IBM "ME "1,4,b Z h IBM @;^ ~ D (&T
|O*J1R;aTzlI NN0lD==9 CrV" C
E"#
© Copyright International Business Machines Corporation 1993, 2009.
?<
XZ>i...............v
Z 1 ?V DB2 Connect En ....1
Z 1 B DB2 Connect.........3
DB2 Connect a)Dz7 ..........3
DB2 Connect f> 8 P;6D&\ .......3
w z}]b ...............4
DB2 Connect M SQL od .........5
DB2 Connect \m5CLr .........5
InfoSphere Federation Server M DB2 Connect....6
Z 2 B V<=X5 }]be5a9 ....7
DRDA M}]CJ ............7
DB2 Connect M DRD A...........7
6 L$w% * ..............8
V <=ks ...............9
Z 3 B DB2 Connect =8 ......11
1 SCJ w z}]b ...........11
9C DB2 Connect vKf4CJ System z wzr
IBM i DB2 }] .............1 2
DB2 Connect ~qwz 7w *,S ~qw .....13
DB2 Connect M Web &C Lr ........14
DB2 Connect M IBM WebSphere .......15
DB2 Connect w* Java &C Lr~qw .....16
Web ~qwOD DB2 Connect ........17
DB2 Connect M&C Lr~qw ........17
DB2 Connect MBq&m` Sw ........20
Z 2 ?V DB2 Connect N< ...23
Z 4 B |B}]b?< ........25
53}]b?<5 ............25
Z c?<5 ..............25
DCS ?<5 ..............2 6
? <(F$wm .............30
T,;}]b (e `vu? .........31
&m BiDi }] .............3 1
Z 6 B s(&CLrM5 C Lr( DB2
Connect) .............43
Z 7 B ` > c |B .........47
9CXFP Dt C`>c|B ........48
9CXFP Db T`>c|B ........48
`>c|BM,= c\mw .........48
9 C{O XA D B q\mwdC DB2 Connect . . . 49
DB2 Connect TI"nOBqD'V ......50
Z 8 B 9C DB2 Connect 4F/}] 51
Z 9 B SQLCODE 3d .......53
O* SQLCODE 3d ...........5 3
w{ SQLCODE 3d ...........5 3
Z 10 B }]b53` S M DB2
Connect ..............57
` S6LM'z D,S ...........57
9C Windows T\` Sw` ST\ ......57
9C GET SNAPSHOT |n .........5 8
DCS &CLr4, ............6 0
K P4v`SwM/( ...........64
DB2 z/OS fKP4v`SwE v ......64
t /"#9M"B DB2 z/OS fK P 4v`S w 65
i4"a;M#f (iD Yw .......66
i4KP4 v/(**
i4KP4 v/(Ts ..........69
..........6 8
Z 3 ?V _ICTM DB2 Connect 71
Z 11 B wz}]b,S D_ICTM :
Xyb ...............73
Z 12 B M'zT/XB7I D hvMh
C(DB2 Connect ) .........75
Z 13 B dCM'zT/ X B7IT+d
kM'z,SV"w<udO 9 C ....77
Z 5 B DB2 Connect 2+T .....35
(} DB2 Connect xPDI E, S ......35
(} CLI 4(MU9 IE, S .......3 6
(} CLI P;IE,SDC ' .......3 7
DB2 Connect O$"bBn .........38
Kerberos 'V .............40
X Z z/OS 2+TDa>M<I .......40
DB2 Connect 'VDO $`M .......4 1
Z 4 ?V w{M DB2 Connect . . 79
Z 14 B DB2 Connect T\"bBn 81
Z 15 B E/ ODBC CJ ......85
Z 16 B &CLrhF ........87
Z 17 B ,S\m ..........91
© Copyright IBM Corp. 1993, 2009 iii
,SX ................91
,S/Pw ..............92
,SXM ,S/Pw ...........96
WebSphere MQ Transaction Manager M DB2 z/OS
f h*,S/Pw ............96
Z 18 B DB2 Connect ~qw[O53
'V ................99
System z [O53{CD "bBn .......9 9
DB2 [O53{C ............1 00
[ O53DdC*s ...........100
Z 19 B M'z[O53'V .....101
Bq6p$w:Xyb(M'K ).......1 01
d CBq6p$w:Xyb(M'K ) ....102
M'z T/XB7I( M'K) .......10 4
d CM'zT/ X B7I(M'K ) .....105
XA 'V(M'K ) ...........1 07
t C XA 'V(M'K ) ........10 7
d CM'z W5X5 ...........108
kT9CM'z [O
5 3'VDV ^ T .....112
u<,S4 I&.............1 27
u<,Ssv=D Jb ..........12 8
oO$_ ...............12 9
Z 23 B DB2 Connect P D DB2 z
Y ................131
9 C db2trc q! DB2 zY ........1 31
*" DB2 z YD~ ...........1 32
q =/ DB2 z YD~ ..........132
Z 24 B DRDA zYD~ ......135
zY5CLr .............13 5
zYdv ...............13 6
zYdvD~V v ............13 6
zYdvD~y> ............13 7
DRDA zYDsx:ex E " ........14 2
Z 6 ?V {" ..........145
Z 25 B DB2 Connect #{Jb ...147
Z 20 B DB2 Connect w{ .....115
wz}]bw{.............1 16
x gw{"bBn ............117
53J4yC .............11 8
DB2 Connect T\JOo O .........1 18
w { DB2 z/OS f ............1 18
a _ DB2 Connect }]+ d J ........1 19
n bi/i ..............119
RFC-1323 0ZuE ...........12 0
w z}]* ; .............120
V{}]D }]`M ...........1 21
xg2~ ...............12 1
Z 21 B CLI/ODBC &CLrT\ w{ 123
Z 5 ?V JOoO ........125
Z 22 B J OoO DB2 Connect . . . 127
U/`XE " .............12 7
Z 7 ?V =< ..........151
=< A. DB2 <uE" Ev ......153
2=4r PDF q=D DB2 < u b ......15 3
):!"fD DB2 i. ..........156
S|nP &mwT> SQL 4,oz ......1 57
CJ;,f>D DB2 E"P D .......1 57
Z DB2 E"P DPTzDW!o TT > wb ...1 57
| B20ZzDFczr Z ?x~qwOD DB2 E
"PD................1 58
V/|B20Z
DB2 E"P D .............1 59
DB2 LL ...............1 60
DB2 JOo OE" ............1 61
u nM u ~ ..............161
=< B. yw ............163
w} ...............167
zDFczr Z?x~qwOD
iv
DB2 Connect C'8O
XZ>i
6 DB2®Connect™C '8O7a) z KbM'0 DB2 Connect z7yhD y P E"#
DB2 Connect En+TdM=8 N=T > DB2 Connect Mxg73Dd{?V.d D
X5#+V[f0}]b? < " 53dD2+T"`=f| B"F/}]M `S DB2
Connect D"bBn#+9V DB2 Connect gNZ
Connect MZxgPD_T\,+w*kJOo O DI\Jb`X D;) wb}x#
x g73P'V_ICT#7# DB2
>iD 9C_
53\m1"}]b \m1M 53( 6K1&CT>iD;?Vr +?PK $#
© Copyright IBM Corp. 1993, 2009 v
vi DB2 Connect C'8O
Z 1 ?V DB2 Connect En
© Copyright IBM Corp. 1993, 2009 1
2 DB2 Connect C'8O
Z 1 B DB2 Connect
DB2 Connect a)k IBM®sMz}]bD lY!3,S,T)Z Linux ®"UNIX®M
Windows
DB2 Connect vKfa)k System z
x DB2 Connect ~qwz 7 a)dS,S ,C,SJmM'z (} DB2 Connect x X
CJ System z M IBM Power Systems ~qw#;, DB2 Connect ~qwz 7wT
a )(;Db0MmI$ "E bv = 8,b9z\ !q J Oz73 D z7#
®
Yw53 BKPDg SLqMd{&C Lr9C#
DB2 Connect a)Dz7
DB2 Connect _P8v,Sb v=8,dP |( DB2 Connect vK fMm` DB2 Con-
nect ~qwz 7#
v DB2 Connect s5f
v DB2 Connect &C Lr~qwf
v DB2 Connect ^^Ff System z f
v DB2 Connect ^^Ff System i
PX DB2 Connect a )Dz7 Dj8 E",kND www.ibm.com/software/data/db2/
db2connect/
®
M IBM Power Systems™~ qwD1S,S ,
®
f
DB2 Connect f> 8 P;6D&\
> Za) DB2 Connect f > P}kDv?&\ D \a# * Kb DB2 ®f > 9 P}k
D0l DB2 Connect &\ D|D Pm,kNDTBwb :
v DB2 Connect f> 9.5 ^)|\a
v DB2 Connect f> 9.1 ^)|\a
DB2 Connect f> 8 "Pf 2 P;6D&\
DB2 Connect f> 8.2 |(BPv?&\:
v M'z T/XB7I
g {*'k~qwr DB2 Connect ~ qwD TCP/IP ,S,G4
/"TXB(",S(g{fZ8C~qw )#8C~qwGZ ~qw5}
O 8(D,d; C +Z, S Zd"MxM'z #
v }]S\
M 'z/~qw(EVZa)K1C'}] Z x gPw/1 T d xPS\ D
&\#
DB2 Connect f> 8 "
DB2 Connect f> 8.1 |(BPv?&\:
v 'V| $ D SQL od(n` 2MB )
Pf 1( |(yP ^)|M ^D6p)P; 6D&\
M'z +T
© Copyright IBM Corp. 1993, 2009 3
` o 2MBD SQL odITw - CLI M JDBC &C Lr# + G,6k =
S Z#t 64K D^F#
v j6 SQL odp4DoOE"
®
I 7(T DB2 z/OS
v %P=d k}i
Jm&C L rT%v SQL oda) `iN}#
v `Sxg 1 d
9CKBD` S*X4|CXKb }]br&C Lr6pD }]bn/Mx
gw? #
v DB2 CLI /,Iv /Nj'V
,Z DB2 CLI P ,1CJ DB2 (C}]b (UDB )z/OS ff > 8.1
VZ
r|Bf>D~qw1,'V/,Iv /N j#
v eWLM 'V
a)K( }Pd~ i`SKTK $w%*T7(?1 D\&#
v T DB2 ping |nDv?
DB2 ping |nVZ'Vks M l&|s!Df6#
f /, SQL od_Y:f"v X (odD&C Lr#
wz}]b
":1Sf
Connect +;'VC|n#
Z{vD5P,uo
nect (EDd{5 3P,9C uo “}]b ”hvDEnI \aTP;,#Z DB2 Connect P,uo “}]b ”9IT8:
System z
DB2 z/OS f . Id LOCATION NAME j6D DB2 z/OS fS53# (}G
< = TSO "9CdP;v I C D
LOCATION NAME:
select current server from sysibm.sysdummy1
Z“}<}]/ ”(BSDS )M DSNL004I {" (LOCATION=location )P2(e
K LOCATION NAME,|GZt/“V< =}]h )” (DDF)1`4D#
LOCATION NAME 'Vn` 8 vp{; C{,Sx9 &CLr\;9C;,
D dbalias {F4CJf> 8 z/OS ~qw#9C z/OS -display ddf |n4q
! DB2 ~qw ;C{"r
VSE Z}]bVxP K PDI DBNAME j6 D DB2 VSE f
> 7 DM'z (}f> 9 DxXrwz"v PING |n1,DB2
}]b
C4hvX5 }]b\ m53(RDBMS )#Zk DB2 Con-
i/$_"vTB SQL i /,MIT7(
{"IP X7MKZ #
4 DB2 Connect C'8O
VM Z CMS ibzP KPDI DBNAME j6 D DB2 VM f
IBM Power Systems ~qw
DB2 IBM i f,4 IBM i Yw53Dw* ? V#} G 53dC*9C@"(
zf" X,qr IBM Power Systems ~qwO ;\fZ;v}]b#
DB2 Connect M SQL od
DB2 Connect +&C Lrya ;D SQL od*"= IBM sMz}]b~qwP#
DB2 Connect IT*"8uyPP 'D SQL odT0\'VD DB2 API(&C Lr
`LSZ):
v JDBC
v SQLJ
v ADO.NET
v OLE DB
v ODBC
v Perl
v PHP
v pureQuery
v Python
v Ruby
v DB2 CLI
v 6k= SQL
6k= SQL 'V
P =V`MD6k= SQL & m :2, SQL M/ , SQL# 2 , SQL (}T SQL x
P$H&m, Sx9C4 P SQL ody h*D1dnL# /, SQL GZ+ SQL o
d a;A IBM sMz} ] b~qw1&mD#/, SQL |in, + G I \4PCO
} #=WG9 C2
1'Vb= V SQL od#
;,D IBM sMz}]b~qw 5 V SQL D ==G ;,D# DB2 Connect j +'
V#C IBM SQL T0 SQL D DB2 z/OS f" DB2 ~qw VM M VSE f(T0
F* SQL/DS
"T#
™
)M DB2 IBM i f5V#?R(i 9 C IBM SQL 4,$}]bD@
DB2 Connect \m5CLr
*c:f> 9.7 PQ-;Fv9CX FPD0d`X*i~,ZTsD"PfPI\a
+ |G}%# PX|`E",kND6DB2 f> 9.7 B v Z]7;iPD“ Q -;Fv
9CXFP D$_M DB2 \m~qw(DAS )”wb#
I T9CBP 5 C
v |nP&mw(CLP )J m zT IBM s M z}]b~qw } ]b"v SQL o d #
| + SQL od" M =z8( D }]bP#
v DB2 |nPD* |nP&mw( CLP)a)K<Ngf#
v <kM <v5C LrJ mzT$w>
k "< k M<v}]# ;s,IT9Cb)D~4+ } ]< k }]b"gSmqT
0Z$w>O KPDd{&C L rP#
, SQL 9G9 C/ , SQL ,I&C Lr14v(# DB2 Connect ,
Lr4oz DB2 Connect \ m1:
M IBM sMz}]b~qw } ]bODD~0
Z 1 B \m DB2 Connect 53 5
v g{z}KP DB2 Connect ~qwz 7 , z I9C“B~i4w”M “ T\`Sw”#(
}9C“ B~i4w”,M IT i4 DB2 Connect y G<Dl# B~#( }9C“T\
` Sw”,MITZ>Xr 6 L ` SM\m DB2 Connect ~qwDT\#
v DB2 XFP DJ
mz\mM`S DB2 Connect ~qwDyP =f#|9J m\m1
9C DB2 z/OS f }]bTs,}gm" S<":eX M_L #
v }]b53` S w 5 CLrJ m 53\m1` S 53,S# v 1 DB2 Connect d 1
~ qw1,K&\EIC# K 5 CLr9IToz
m 1IT9M'z&C Lrk IBM sMz}]b~qwOKPD`&w5X*p4#
":ZH0"PfP,DB2 < N \m $ _(}g,XFP D )ZyP=(O<\'V#
S f> 9 *<, DB2 <N\m $ _vZ Windows x86
EM64T)"x86 OD Linux M AMD64/EM64T OD Linux O\'V#TZy P=(,
I T9C DB2 |nP&mw( CLP )4xP\ m #
InfoSphere Federation Server M DB2 Connect
InfoSphere™Federation Server G;v@"z7,|a)T` v )&L}]4D }]CJ
(T0g`v)&L}]4D } ] / I,x DB2 Connect 9z\ ;{CV P wzM P
M~qwODs?}]#
InfoSphereFederation Server (}Jm+}]4D/Ow* % ; 4 xPi4M&m4 oz
/IE"#b9C
tion Server Ik DB2 Connect ~qwz 7dO9C# InfoSphere Federation Server a
)T DB2 z75P" Informix
} ]bD>zA4CJ(#InfoSphere Federation Server 9 a)TG X 5Mz| F ' }
]4(g Documentum "IBM Lotus
(#IT9C|4m v T*O53PD } ]Di/ #
}]4CJT4PwC D&C L r xTj+ 8w#InfoSphere Federa-
®
"Oracle"Sybase"Teradata M Microsoft®SQL Server
®
Extended Search"ma9D~M XML)DACJ
5 3\m17(ms 4 # 5 3\
"Windows x64 (AMD64/
6 DB2 Connect C'8O
Z 2 B V<=X5 } ]be5a9
Distributed Relational Database Architecture™( (DRDA ®)( V<=X5}]be5a9)
G;i- i,|Jm`v }]b53(^[ G IBM D9 GG IBM D)M&C Lr;
p $w#IT,SNN9C DRDA D X 5}]b \ mz 7 DiO4NIV<=X5 }
]b\m53#DRDA (}(eXk;;D )Z
D(E#
$w%*
$w%*(
* 4I&X4PKyPYw, * 4C5Pw* ;v{eG;I&D#
V<=$w%*
V <=$w%*(
}]b~qw#DUOW _PBPXw:
v ?v$w%* |B` v}]b\m~qw#
v &C Lr8<$w DVd"t/d5#
v ?v$w%*I\P` vks #
v ?vks P; v}]b\m~
v Z`v}]b~qw.d-wKd 5#
UOW)G%v_-Bq#|I;5P SQL odiI,ZC5PP,
DUOW),VF*`>c|B ,f0 ;v$w%*P D` v
]T0Xk gN;;|4-w53.d
qw#
DRDA M}]CJ
!\ DRDA (eK} ] b(E- i,+|;P( e `LS Z r API(&C Lr1 h *
9C|G)#(#,&C LrIT9C DRDA 4+M?j DRDA ~qw I4 PDNN
ks #?0ICDy P DRDA ~qw< I 4P I&CLr(} DB2 Connect *"D
SQL ks #
IBM * &CLr1z I
b ) $_ G DB2 M 'z D; ?V # DB2 } ] b \ m w' Vt I ` L SZ :
ADO.NET"JDBC"SQLJ"PHP"Perl DBI"6k= SQL"DB2 wC6SZ( DB2 w
C 6SZ)M OLE DB#Lr1 I T9 C b) API 49(wV`L o T`4D &C
r#
DB2 Connect M DRDA
DB2 Connect 5V DRDA e5a9T5MCJf" Z DB2 IBM i f"DB2 IBM Power
Systems"DB2 z/OS f" DB2 ~qw VM M VSE fT0d{{O DRDA D}]
b ~qwPD}] D I>M4ST#(} d V {C DRDA e5a9,DB2 Connect a
)KT\ <CD"MI> Dbv=8,C =8 _PM'yh* D5
Z DRDA uoP,
AR G}Zks }]D&C Lr# DB2 Connect zm DB2 Connect $w>D> X&C
L rr DB2 Connect D6 L M'z OD&C L r d 1&C L rks w#
CZ Windows"UNIX M Linux Yw53D SQL ka )$_#
3\mXw#
&CLr ksw( AR)
G C4&mV<=,SD&C LrKDzk#
L
&C Lr~qw( AS)
© Copyright IBM Corp. 1993, 2009 7
G&m,SD }]bKDzk#
DRDA 9'V &CLr kswM~qw.dxP`c, S #ZbVXK P ,&C Lrk
sw,SAD~q wG&C Lr~q w, +YBN DNN d{~q w<;F*}]b
~qw(DS), r *|;1S k&C Lrks w xP ;%#Kb, *K;vdH;
"v}]bks D532; GTks 4P }] b&\D53 DG+,&C Lrks w
knU}]b~qw .dD?v &CLr~q wr}]b ~qw2; F*Pd~ q
w#DB2 Connect 'V9C}]b~q wMPd~q w#
G
< 1T> DB2 Connect $w>k IBM sM
DivB)#
<
1. DB2 Connect
* K5V DRDA ~ q w}]b\m53kIBM } ]~ q wM'z .dD,S,DRDA
9CBPe 5a9:
v V{}]m >e5a9(CDRA )
v V<=} ]\me5a 9(DDM )
v q=/ }]TsZ
v +dXF-i/ rXx -i(TCP/IP )
~qwk
IBM
sMz~qw.dD}]w
]e5a9(FD:OCA )
z~qw.dD}]w(Z;P>XM'z
6L$w% *
8 DB2 Connect C'8O
b)e5a9Cw 9 (i#(} xgw/D}] wGI DRDA e5a98(D,|5
wK'VV<=X5 }]b CJD}] w-i#
ks(}|,wV`M (EE"D?<M}ZCJ D DRDA
IA}7?j#
6 L$ w% *
VCJ$w%*Z D;v}]b#d ;&C LrIT| B8v6 L}]b,+ G|;
\ CJ;v$w%* Z D;v}]b#
6L$w% *_PBPXw:
v 'V?v$
v 'V?v$w%*f Z` vNj#
v ?v$w%*;\ |B; v}]b#
J mC'r&C L r A!r| B ?v$w% * D;v;C D }]#|'
w%*f Z`vks (SQL od )#
~qw}]bD{F47
v &C Lr*4d5* 4 Xv$w%*# Z 3)msivB,}]b~qwr DB2 Con-
nect I\aXv$ w%*#
} g,< 2 T>;vKPyp* F &CLrD}] bM'z,|CJ|,'1J'mM
"nJ'mD}]bT0; WQCF .m#C&C L rX
v S\*SC' gfP*FD \n#
v S" nJ'Pu%C\n" 7( BD`n#
v A!QCF.mT 7("nJ'D;WQC T0x (D` n#
v S" nJ'Pu%;WQC#
v +*F \nmSA' 1J'P#
v d5B q($w%*
)#
k :
V<=ks
<2.ZBqP 9C%v }]b
*hCbyD&C Lr,zX k:
1. Z,;}]bP*"nJ'" '1J'M; WQCF.4(m#
2. g{omOG6LD,G4 hC}]b~ qwT9C` &D(E- i#
3. g{omOG6LD,G4TZ cM }]bxP`?T
b#
4. T&C Lrx P$`k,T8 (`M 1 ,S;2MG5 ,Z PREP |nO8(
CONNECT(1)#
V<= ks
= vr` v DBMS r_}]bD SQL od#}g, = v;, DB2 z/OS fS5 3 P
Dm.d D,S#
DB2 Connect 'Vg}]bM DBMS DV<=ks #}g,z I TZDB2 mk Oracle
S<.d 4P UNION Y
f "UNIX f M Windows f "DB2 z/OS f M DB2 i f )T0 Oracle DI1# 1 +
DB2 Connect k InfoSphere Federation Server dO9C 1,`)&L'VI ) 9C#
G;VV< =}]b&\,|Jm&C L rM C' Z%vo dPa;}C
w #\'VD DBMS |( DB2 5P(g DB2 } ]b Linux
j 6} ]b~qwOD} ]
Z 2 B V<=X5 }]be5a9( DRDA) 9
V<=ks * }]bTsa)K
XTks CE"D&C L rwNN |DMIT |B TCE"D}C(F*
= ks 9T;'VyP DB2 SQL o T r 3)E / &\D DBMS a )K
DBMS B;\4PD Yw(}g ,]i SQL)GZ DB2 Connect BfKPD#
kTw
V <=ks I C
1,a;|,KT Oracle TsD}C D DB2 i/#V <=ks ;a"O r^F(,v
j {TMx(<xD6') T Oracle rd { DBMS TsDCJ#
==KP#}g,IT Z Oracle &C Lr} Z CJ,; ~qw
;C8 wT
#g{} %K(mMS<PD )E" ,;
GF
)#V<
9%
#ZbV
V <=ks &\D 5 V|( DB2 Connect 5 }"+d1*O }
r `v6L}] 4 #
DBMS M}]iI# &CLr,SA * O}]bk,SAd{NN DB2 }]bj + ;
y #DB2 Connect *O}]bDmI;GC4\m C ' } ]#d(;?DGC4fE P
X}]4DE"#
Z hC*O53 .s,ITCJ`v }] 4 PDE",MC
]bP#C'M &CLr+i/"M=;v*O} ]bP,;s ,|S DB2 5PM
Oracle 53Py]h*4lw} ] #C'M&C LrZi/P8 (G F ,b)G F a)
K T}]4PDmM S <D}C#SnU C ' D G H
m `rXa0lV<=ks D T \#nX *Dr XMG * 7#+PX}]40dTs
DnB <7E"f" Z*O}]b +V?<P#KE") DB2 E/w9 C"RIT 0
lGqv(4PYwTcZ }]4xP@@#
*O} ]b
|,C4j6} ]40dXwD?< u? #
4,GF`FZp{#
] bD} ] bT0 ;v
}]4
q b)E "Z;vsM}
I
10 DB2 Connect C'8O
Z 3 B DB2 Connect =8
DB2 Connect Ia)wVbv=8Tzc IBM sMz}]bCJ h *#>wbEv8
v=8,|GI\JCZ zDX(h*r7 3#
1SCJ wz}]b
DB2 Connect Dy>&\Ga )S$w>OKPD @ f&C LrAw z}]bD1S,
S#a)K bv=8Dnr % l (G9 C _P DB2 Connect mI$D IBM } ]~q
w }/Lr|#
20K DB2 Connect vK fD?v$w>Ik DB2 z/OS f" DB2 IBM i fM DB2
} ]b Linux f"UNIX f M Windows f ~
LrITZ, ;BqP,SM| B`v DB2 5P}]b,R _P =W Nd5 -ia)
D +?}]j{T#
< 3 T>S20K DB2 Connect vKfD$w>A IBM sMz}]b~qwD1S
,S#
q w("1 S TCP/IP ,S #Kb,&C
<
3. DB2 ConnectkIBM
© Copyright IBM Corp. 1993, 2009 11
sMz}]b~qw.dD 1S,S
":
1. ;X+ DB2 20Z DB2 Connect vKf$w>O# g {k* DB2 Connect vKf
$w>OPj {D X5}]b \m53,G4) : DB2#
2. yP IBM }]~qwM'z &\ Gf DB2 Connect vKfa)D#
3. g{kt CK[O53{ CD DB2 z/OS f}]b~qwD,SO *
+T/"TXB ("C ,S#
,G4M'z
9C DB2 Connect vKf4CJ System z wzr IBM i DB2 }]
;PPd~qwD 1 S,S G; V G# = cMmkDd C #T Z IBM sMz}]b~
qw'V TCP/IP ,SDivH dgK#Zb)ivB,?v DB2 Connect $w ><
+ k IBM sMz}]b~qw ("1 S ,S #
TCP/IP ,S*s IBM sMz}]b'V TCP/IP#B
v DB2 z/OS ff > 7.1 r|_ f>
v DB2 IBM i f V5R1 r|_ f>,T0
v DB2 ~qw VM M VSE ff > 7 r|_ f>
* ,SA IBM sMz}]b~qw, h * ImSA IBM }]~qw M 'z D DB2
Connect mI$#
Z 13 3 D < 4 T>20K DB2 Connect vKf D $w>
IBM sMz}]b~qw#
Pf>'V >z TCP/IP ,S:
,"RC$w>1S,S A
12 DB2 Connect C'8O
<
4. DB2 ConnectkIBM
sMz}]b~qw.dD 1S,S
DB2 Connect ~qwz 7w *,S ~qw
DB2 Connect ~qwJm`vM 'z,SA IBM sMz}],"ITxuY("M,
$Ts5}]DCJyh D$w#Z 14 3 D< 5 5wK3)73B IBM Dbv=8,
Z b)73P,zk* DB2 M 'z (} DB2 Connect ~qwz 7 (g DB2 Connect
s5f)k IBM sMz}]
":vZ Linux "UNIX r Windows O K PD DB2 M'zr JCC M 'z 'Vd S ,
S#"T9 CNNd{M'z (} DB2 Connect ~q wz 7 k IBM sMz}]b~
q w(",S a<B SQL1334 m s #
b ~qw("d S ,S #
Z 3 B =8 13
<
5. DB2 Connect
g {*'k DB2 Connect ~qwD TCP/IP ,S,G4M'z + T / "TXB(",
S#M'z +WH" TXB ("k-<~ qwD ,S#g{4XB ("C ,S,G4
M 'z Z"zJO1+*A8C DB2 Connect ~ qw#(8C~qwGZ ~ qw5}O
8(DRZ,
S,G4M'z +"TXB ("k-<~ qwD ,S#M'z +;O"TXB (",
S(Z- <~qwk8 C ~qw.dP; ),1= ("K, Sr"TN } ,1*9#
s5f
S Zda + d;C5XxM 'z #)g{4XB("k8 C ~ q wD,
DB2 Connect M Web &CLr
Web /@w}8YI*S*z?<= Z?x&C Lr;PBqDj<gf#TZr%D
Web &CLr,; *;v Web ~qwI\MQ;C#T Zh*}]bCJM Bq&m
D s?&C Lr,IBM a) K ;)bv=8,|G9C DB2 Connect (} Web 4\
ms?D,
+3 CGI `LDE cMV^T
r,x(WWW )ODg S Lq&C Lr (#9C“+2 xXSZ”(CGI)49C' I
i /sK}]b#m ` +>9ZZ ? 9C Web &C Lr,xb ) L r( # 2 P s( }
]b#
1Bq#
14 DB2 Connect C'8O
C'Z Web 3fOnCmq,b) mq(} CGI ; a;A Web ~qw OD &CLr
r E># S B4,E> + 9Ca)D } ]b API 4+ SQL i/a ;Awz}]b#;
s,,;E>I9Ci/D a{4 9 ( Web (HTML )3""MXC 'D Web /@w
>v4# }g,;v*z?< ,C' IZdPi/X(L 7 r~qDI CT0n
"T
B[q#
CGI &C LrDhFr % "RWZ,$# r * CGI j<,1@"ZY w 53MoT,
y T | 8uICZ y PF c =(#CGI LrIC C++ rE>oT(g Perl r
PHP)
`4#
d ; CGI I\ 4 p4CsGyZ Web D&C Lr D mkbv=8, + | 2PwTD
1c#CGI D`L73";sd{ API GyjF#K b,TZsf # DgSLqY w
4 5,Il u T2G ;vJb#?NwC CGI &C L r 1,+Z Web ~qw
O4(
;vBxL#? vxLXk ("|T :k}]bD ,S"Ra ;di/#Zs?DB
q T73P,K V ^ T I\azzOXD T \ J b#
I+ DB2 Connect k Web ~qwdO9 CT4 (!3D"s? DgS3W&C Lr#
DB2 Connect a)K;)bv=8
4 DxyZ Web D &C LrD T \#f" } L Jm
DB2 Connect C'uY*"MA}]bDi/ }#
,SX 5M Kk}]b ,SMO* ,SD5J#
9C PHP w* Web ~qw#ire~
d ; PHP ICZ CGI `L,+ | (#Cw Web ~qw#ire~#Z`x L Web
~qw(g Apache )P ,IT9CCZ PHP D IBM DB2 }/Lr4u a IluT
J b#Z`xL Web ~ q wP,+4C x LX 4& m Web ~ q wks #*\b * ?
v Web ks 9(}]b, S,I
PHP E>D6'bfZ#g{sx Web ksh*j+` ,D,S,G4 +4CK ,
S#
DB2 Connect M IBM WebSphere
IBM WebSphere®a )DgSLqbv=8H9C+3DE >` F$_(g PHP )a )
D|jF#WebSphere Application Servers ; +4P PHP DwVI\ DE>` F,x
RJmz(} Web "9C servlet"ASP M Enterprise JavaBeans
~ q , " R 9 a ) T y Z Web D < u ( } g , Java ™" TCP/
IP"HTTP"HTTPS"HTML"DHTML"XML"MIME"SMTP"IIOP" X.509 0d{)
D 'V#h z WebSphere,zIT :
v {C5gj< 4a_*"YHM+%YwT ns /
v ekZ }=$_<uM&C Lrr \
v Vv Web >cZ]T \M9CJ
v inw{> cT]I|`
v Z;)w *DYw73(AIX
i"Solaris Yw53M Microsoft Windows)OxP?p
v 9CV P D Web ~qw,|( Apache "IBM "Netscape M Microsoft a) D G)
~qw#
T4(Vx, S#Z K73P,Vx,SI TZ%v
™
4a)4SD _K
C'M, $LB ?
®
"HP-UX"Linux"Novell NetWare"z/OS"IBM
Z 3 B =8 15
WebSphere ;G;v z7,xGk T}v ;,?jP!D}v z7D5P# WebSphere
b v=8DKD? V G WebSphere Application Server#
WebSphere Application Server *}V`MDTsa)73#; VG JSP(Java server
page),|` FZ ASP#Z~vi~I Java servlet iI,xZ}VG Enterprise
JavaBeans# Enterprise JavaBeans G BKDC4?psf#"!
<#
WebSphere &C LrITk Web ~qwM DB2 ?pZ,;=(O#TZ DB2 z/OS
f " DB2 ~qw VM M VSE f M DB2 IBM i f ,WebSphere k DB2 Connect
~qwz 7?pZ,; =(O#
P `v WebSphere bv=8,T0 Rational
`E",kCJ http://www.ibm.com/software/webservers/appserv/was/
DB2 Connect w* Java &CLr~qw
(}9C Java ,m`E> o TD1 c <ITK ~#IBM a)KJmz Z Web BqD?
;WN9C Java D applet M &CLr#IBM a)D bv=8Jm9ClO< u,b
b6EI+E>` Fbv=8(g Perl DBI r Microsoft ASP )k DB2 dO9 C ,
r*x9C Java &CLr~qw
a)D|!3 Dbv=8(}g IBM WebSphere )#
3Ds56&C LrDj
®
Application Developer(RAD)#*Kb|
* Java Lr1a)K=V &CLr` L SZ(API)#Z;vG JDBC,|'V 9 C Java
4 *"}]P* Java Applet"Java &C LrT0 Java servlet "Java server pages(JSP)
M Enterprise Java Bean(EJB)#JDBC GwCcr=( w C API # m;v Java API G
SQLJ# SQLJ a)KZ Java L
q DM'zr ~ q wK9Cb=V API#
Z M'z K,applet"}]P* (data-aware )applet M&C LrG\ ' V D# Z }]b
K,Java tC|(}]b Ts(gC' (eD/} Mf" }L)#
TZ DB2 z/OS f" DB2 ~qw VM M VSE
=(IC4?p Java &CLr# I9C DB2 Connect vKf(} TCP/IP a)D1
S ,S ,2I!q(} DB2 Connect ~qwz 7 x P, S ,Cz7a)k IBM sM
z }]~qwD,S#
Z b=VivB,Web ODC';h*NNXbD m ~4C
/ @w4I#vh*20 DB2 Connect ~q w z7 MN N 5gj< Web ~q w #g
{ Web ~qwM DB2 Connect ;Z,; o mzwO,G4h*Z Web ~ qwO2
0 IBM }]~qwM'z #
T Z DB2 z/OS f,X|i ~ GZP d c~qwOKPD DB2 Connect
} K, SA DB2 z/OS f" DB2 ~qw VM M VSE fM DB2 i f~qwTb,
K i~9a) JDBC ~qw'V#M 'z D Web /@w2;h * NNXb D m ~ #
rZ8( SQL 1SekD& \#DB2 ITZ Web B
fM DB2 IBM i f,P=V;,D
J}]b,;hj<D Web
~ qwz 7 #
16 DB2 Connect C'8O
IBM **" Java &C LrM applet a)+fD'VM $ _#TZ} ] b&C Lr *
",DB2 }]bs5 *
WebSphere Application Server T0 DB2 z7M DB2 Connect T)bT#Z}= $ _
(g NetBeans"Borland JBuilder r Symantec Visual Cafe )2I Tk IBM D}]b
b v=8dO9C#
"_fa) Rational Web Developer"IBM Data Studio"DB2
Web ~qwOD DB2 Connect
IBM T HTTP (Web )~qwa)yP DB2 Connect z7# DB2 Connect ~qwz 7
(g DB2 Connect s5f )a)KT Apache r Lotus Domino ®Go web ~qwDn
b 'V,|9IT9CNNd{ Web ~q w (}g Microsoft Internet Information Server
r Netscape Enterprise Server)#
g{9CZ System z" IBM Power Systems"VM M VSE 53O KPD DB2 }]
b 5P,G4 Web ~qwOh* DB2 Connect ~ qwz 7 #DB2 Connect ~ qwz
7+a)bM(E SZ,T9 Web ~q w\;CJb)
TCP/IP Z Web ~qwk System z " IBM Power Systems "VM r VSE OKPD}
]b.dxP(E#
":IBM Web bv=8a)KZ,; “ +2 xXSZ ” (CGI )E> (g PHP )r CGI
E>D,;BqZ 9C`v }]b D\&#
f"}L
s ZM'z /~qw73P;y, Web &C LrD;vX * "b B n G!?uY"z Z
HTTP Server ksK}]b.dD w?#K"bBnZs? BqT&mPXpX*,b
V&mG s?VgSLq&C Lr DKD#
IBM sMz=(#IT9C
FvD=( G+f" }LP|( D`LM
DB2 }]b Linux f" UNIX fM Windows f M DB2 z/OS f" DB2 IBM i f
M DB2 VSE f+?2m,; N}<(4wCf" }L#
k9 C#f Web SZ E>;y,Web /@w +m%a ;xKP Web SZ E>D Web
~qw#+G,;G+?v %@
} LDks #Kf" } L|(Km` SQL od;g { ;Cf" } L,b)od+*%
@XKP#f" }LuYK Z Web SZ E>ks K}]b.d4Xw /D{" }#
f"}LDw*E cGuYK HTTP Server k DB2 }]
DB2 Connect M&CLr~qw
M 'z /~qw&C LrD v V9&C L rhF_IT(}Zng Windows .`D=(
O*&C Lra)< NC'gf4v?I C TM5M`5 I>#,1,|JminX
+ }]b\m & \&CZ wVYw53M2~=(O !3D}]b~qw#
M'z
z ~q w
qwrsKc#DB2 Connect a) T 2 cM 'z/~ qw&C LrD+f' V, dP}
] b~qwG DB2 z/OS f" DB2 IBM i fr DB2 ~ qw VM M VSE f#
/~qw#M( dP&C L r_- V<ZM'z $w>O)(#;F*
#Z=c#MP,&C L rG ZM'z cO ? pD,x }] b~qw5V ~
5 q_-k CGI &C Lr` L [OZ ;p#
D SQL od"MA DB2 }]b,x G "M4Pf"
bsKdDxgw? #
= cM'
f EM'z /~qw&C Lrs !DvS,=
v4K#+s ?D5q_-V<Z I YuA O'DM'z $w>a9d| \m I*4
S RI>_:D$w#NN5q f r |D <h*f;&C L r DM'z ?V#(#b
)&C L r*v;(*Zs 5D
C*; B#
y PM'z $w>OxP,,1*7# 5 q f rD &
c M'z /~qw#MD^s V ^ T MT>
Z 3 B =8 17
= cM'z /~qw#MD m ;v1cfEby D &C Lr9C D J4 ? )sxTV v
4#?pIYrO'D
w >D&m\&M] ? D *s#Kb ,T}]b~qw D *s 2 ss D vSK, -r
G?vM'z h*; v(CD }]b,SM, $kbyD ,S`X *DJ4#IZ f
"}LD c :9C, V"
;T#Mwv|D ,m;v1c ;]Wbv#
&CLr~qwbv =8
f E=cM 'z /~qw&C LrD I >M4STDO} ,s ? V n sD&C
Lr*<E Vy`c M'z /~qw "
4 |D #+GM'z cr 9 dK;vr` v Pd c (;c * ;v),y T F*
}c
#
Z}c#MP,M'zDwCB5* v&m C';% wC ,x ;|, NN5q
_ -#P d cGI;vr` v &C Lr~qwi I D# &C Lr~qwD?j
GZ5qwLM 5qf rDsfa)!3 D"MI> D_- 5V=8# s=c
M ;y,(# h *(}9Cf" } L4Dx T \ ,TK9d 5 qfrD5
#
V#
r *M'z $w>;Y5Vs i D&CLr_-,x Gv&mC' D ;%w
C,yTQss 5MKTM'z c DJ4hs#B5 O ,}c#MPDM'z
c(#F *
ks,yT |_P2mJ4D\& ,g2myP M 'zdD}]b,S#r
),}]b~qw;Y h*,$?v&C L rC'D( C,S#
VM'z
5q_-T=cM'z /~ qwD @5I\PyuY,+g{
]M'z
((#by Ft=cM'z )vSKT? vM'z $
9#Z`c #MP,}]b cDwCT
#Kb,r*Pk&C Lr~ qw &m4 TyPM'z D
?0,5gPfZm`}c&C L r~qwD>}
.”(ERP ))&L<9 C }c#M(g SAP R/3 M PeopleSoft V7 &C Lr)
45V{GD&C Lr#d{>}|(lHD“s5X5 \m” )&L,g Siebel
M Vantive#
&CLr~qwM DB2 Connect
DB2 Connect ~qwz 7 * ?p` c &CLra)+f' V #
)D'V|(IC 4*"&C Lr_- DwV API (ODBC "ADO.NET "DB2
CLI"6k= SQL"JDBC"SQLJ"Perl"PHP M OLE DB),T0C4k DB2
5P}]b~qwxP ;%Dj{ (E y! a9#
DB2 Connect 9'VI`v DB2 5P}]b~qwiID } ]bcD 5 V #
J m&C L r ~qw Z %vBqP 5 VT` v }]b~qwO D }]xP|
b
BDBq#
DB2 Connect a)D=WN d5-i'V# $ b V V< =B q D j{T# }
g ,&C LrITZ, ;BqP|B DB2 z/OS f } ]bM DB2 } ]b Linux
f"UNIX fM Windows fPD}]#
| ,G4&C Lr IZ,;BqPA! Oracle } ] b M| B DB2 5P}]
b#
Z B<P,DB2 Connect ~qwz 7 a)K&C Lr ~ qwksK}]b ~ q
wdD,SzFT 0 API,}g :DB2 Connect s5f#
# 8uyPD“s5J4f
DB2 Connect a
g{20KV<=ks 'V "tC K
18 DB2 Connect C'8O
<
6. DB2 Connect
T&C Lr~qwD' V
DB2 Connect D_6&\? ~ ,}g,SXss u YK&C LrJ4 D hs"
r/K&C Lr~qwD5V#
DB2 Connect M&C Lr~qwdC
k&C Lr~qwdO9C 1 , DB2 Connect ~qwz7 GXhD# DB2 Con-
nect vKfG;\'VDR;aq Ck&C Lr~qwdO9CDmI
5) &CLr~qwDM'&4if{ GD DB2 Connect ;pa) D unM u
~,TKbh *q!DC 'mI$}#
Z &C Lr~qw73PP= V CZ DB2 Connect D?p =( # DB2 Con-
nect ~qwz 7I20Z:
v &C Lr~qwO,r
v @"D(E~qwO
? VivB,W!Dbv=8G + DB2 Connect D 1>20Z&C Lr~
Zs
q wyZD~ q wO#+ DB2 Connect 20Z&CLr~qw O JmdNk&
CLr~qwI\5VDNNJO*F M:Xy b =8#KhC9I1ZXa
)|CDT\,-rG|E}K
Dnbx gPL>#Kb,9I r/\m,-rG;h *20M, $d{~q
w #
#Kb,
Z @"D~qwO20 DB2 Connect 1yXh
Z 3 B =8 19
+ DB2 Connect 20Z@"D~qwOZTBiv B GOCD!q;z D DB2
Connect ~qwz 7;ICZ KP&C L r ~qwDYw53r2~ =(#
DB2 Connect MBq&m` Sw
&C Lr~qwJ m s?DC'9 C nY ? D53J444 P &C Lr# &C Lr~
qwIT)9, TJmI&C L r~ qw4 PD&C L rwCQ -wD B q#KB q
-w(#;F *“B q &m”(TP )`Sw# TP `Swk&C L r ~qwdO9C
Bq
I ;SwKP i /DU#Y w D}P B ~,(# G ~qks #3rX&m B qM
G TP ` Sw;hFID$w`M#
Bq&m
#
? ;vi/<P h vdKw= = Df rM } L# 5 Vb)frDC'&C L r F*
q_ -
”(OLTP)#
L 5D OLTP D w * XwP:
`C' i/P Ds`}K <9C Bq &mG#{ Div,r*P\`Ka 0l 5q D
X4T s?VkFczD; %
rLD;%wC
2 mD}]
}]j{T
M I>/Bq
# b ) 5q &C L r y4 P D Bq (#F * “ B q& m” r “ *z B q &m
104,#
w Ccr Z ;N V ;NX4P, ;}L#}g,?l`
Ndk,;v)%r &m6n#
i /P DKkBq&m53 D s?V;% w CDVx1d<\ L #
r *}]m > i/D 4 ,,y T }];aP ;V1>
}]Xk m >i/D1 0 4,RZZ?Xk G;BD#}g,?v) %Xkk
;vM'G<`X*#
r*B q&mm>4P 5qD1SI>,d53I>X kGn !D#DB2 Con-
nect JmI Linux "UNIX M Windows OKPD &CLr
rT6L LAN"IBM s Mz}]b~qw4 PBq"I TP ` Sw4 -wb
)Bq#
#
~qwXFD&C L
5
20 DB2 Connect C'8O
<
7. DB2 ConnectTTP
`SwD'V
Z < 7 P, API T0&C Lr~qwMs K}]b ~ qw. d D,SzF<GI DB2
Connect ~qwz 7(g DB2 Connect s5f)a)D#
Bq&m` SwD >}
?0P!On #{D TP ` SwP:
v IBM WebSphere Application Server
v IBM WebSphere MQ
v IBM TxSeries CICS
v IBM TxSeries Encina ®`Sw
v BEA Tuxedo
v BEA WebLogic
v Microsoft Transaction Server(MTS)
IZIb) TP `Sw -wD BqP9C6L IBM Power Systems " System z M LAN
}]b~qw#
®
Z 3 B =8 21
X/Open V<=Bq&m( DTP)#M
4 P5q_-D&C L r I\ h *C4| B %vBqZ D `vJ4#}g,5V+ J
pS;vJ'*Am ;vJ'D xP&C L r,| h *S;v}]b(“4 ”J' ) h
v "fkm;v}]b(“?j ” J' )#
2PI\b=v}]
;v}]b* Oracle }]b# Q-(eK TP `SwkI&C LrCJDNNJ4.
d D+2 BqSZ,x; G I?;v TP `Sw4 5 V ? ;v}]b) & LD(CBq
SZ#K SZ;F*
TM)# 5V XA SZD I |BJ4;F* XA
w(
O vP > D TP ` S w< G {O XA D TM#(} DB2 Connect C J 1 ,6Lwz"
IBM Power Systems MyZ LAN D DB2 }]b G{O XA D RM#rK,NN_
P {O XA D TM D TP `Sw<IZ4P B qD5 q &C LrZ9 C wz" IBM
Power Systems MyZ LAN D DB2 }]b#
b G;,D)&La)D#}g,;v}]b* DB2 z/OS f,m
XA
SZ
# 9C“XA SZ”D TP ` S w;F* XA
f]J4\mw( RM)
f]Bq\m
#
22 DB2 Connect C'8O