Oracle Corporation What's New for Java DB, JDBC, and Database Web Services
.... 参考 Oracle Database 10g Release 1 における JDBC の機能 ..... 342B ha 12.
Oracle Database 10g Java DB JDBC Database Web Services 2005 5
Oracle Database 10g Java DBJDBC Database Web Services 2)8
&< ............................................................................................................................ 3 JDBC 2)8 ......................................................................................................... 3 /, Oracle Database 10g Release 1 JDBC )8 .................... 3 91............................................................................................ 3 (=3/'73/-%;3/5.3/ $ .................................. 4 Oracle Database 10g Release 2 JDBC 2)8.............................. 5 91............................................................................................ 5 (=3/'73/-%;3/5.3/ $ .................................. 5 2 JDBC 46.............................................................................. 6 Connection Cache Manager........................................................................... 6 Implicit Connection Cache............................................................................. 9 Fast Connection Fail-Over........................................................................... 15 46 .......................................................................................................................... 20
Oracle Database 10g Java DBJDBC Database Web Services
2
Oracle Corporation What’s New for Java DB, JDBC, and Database Web Services in Oracle Database 10g
Oracle Database 10g ' Java DBJDBC
$! Database Web Services {a
Oracle Database 10g Release 1
>;F8 Java NS;,KOracleJVM
Oracle JDBC $! Oracle Database Web Services a\)i
"Oracle Database 10g Release 2
x5I?Oracle >;F
8k]¡| $!BC/JS8 %a)cW " HR,?GB
Oracle Database 10gRelease 1 $! Release 2
' JavaJDBC $! Web Services a[)"(% a$>;F8Yu
(i) }p|)hz48?)f
'(ii) \|Q@ANS7S2X|)hzO81)mf '(iii) Oracle >;F8U)\' LO=?% ("HR,?GBJava and Web Services Developers Perspective on Oracle Database 10g
(%a)Yu^%[ "
JDBC Oracle Database 10g Release 1 JDBC Oracle9i Release 2 JDBC
?NS617MS9DI,S?Q0P
?NS617MS2QAP?NS617MS_~ PreparedStatement l $!1N,+S? JDBC @N,A' JDK 1.4x 5I?
JDBC 3.0 5I?)Yr "Oracle Database 10g Release 1 JDBC
s JDBC 3.0 a)b"
BNL;: CallableStatement $! PreparedStatement BN L;5I?( '#JDBC +EO37MS
BNL;)
&w¢BNL;)£ $!v&"
{ REF ,S;C.8 Datalink: DATALINK >;:8]¡ '`>;:8ZC*,P)oy"JDBC 3.0 q
{
JDBC >;d) Java d java.net.URL J=E" J2EE Connector Architecture Resource Adapter: Oracle JDBC @N,A
Oracle >
;F8 JCA O:8+;%|(L,BAwh=BE( XML t ÅD?>;%ª!Oracle Database 10g Release 1 JDBC ¢JSR-114 ¾^(O;!
&//%// -\FC-\FEZ;: Web MW+8% SQL ¨dÀ!X>; ¿ÃEZ;(g´'"«m Web 2W*)\E ID ( RDBMS -\:\° ' JDBC FW*J Oracle JDBC Datum 7QEo´rf: Datum U8{@+\[F7* BF
Instant Client JDBC-OCI FW*J: JDBC-OCI *\;EY(l©'@+\ [Fg´;P;J\FX\3
D?O;sIEEE DOUBLE $ IEEE FLOAT: Java $ J2EE )NX49V\»(¦'_$&}¤u(| ²D?O;peÄ`¿Ã x! LONG s% LOB s
ºk: CLOB $ BLOB LONG RAW $ LONG
RAW m 'ºkn$¡(lvfKL.R\;(i !
7*/
9=@
-m¥2H=6IFMD>/-v\T ')2H=6I fc-V$~FMD>/!~]j+# PooledConnections m¥+ PooledConnections ¢b )$m¥
!~]
FMD>/!2H=6I¡(¢b
)$
1
OracleConnectionCacheImpl
{e¤
Oracle Database 10g Java DBJDBC Database Web Services !'
8
Oracle Corporation (What’s New for Java DB, JDBC, and Database Web Services in Oracle Database 10g *+)
.+! API / Connection Cache Manager \s,v.!} 6J?:K
-iQ!}!6J?:K|/s&
int getNumberOfAvailableConnections(String cacheName) ! API "6J?:K
-iQ!}/&.-
"API wm!6J?:K!iQ!}! java.util.properties connAttr = null; connAttr.setProperty(“NLSLANG”, “ISO-LATIN-1”); connAttr.setProperty(“SecurityGroup”, “1”); connAttr.setProperty(“Application”, “HR”) // Request connection ds.setCacheName(“MyCache”); Oracle Database 10g Java DBJDBC Database Web Services Oracle Corporation What’s New for Java DB, JDBC, and Database Web Services in Oracle Database 10g !"
11
// First retrieval of connection from myCache conn = ds.getConnection(connAttr); … conn.close(connAttr); // apply attributes on the connection … // Next retrieval finds the connection in the cache conn = ds.getConnection(connAttr); …
getConnection()M85>B!7I@B)+g|connectionAttributes -(Svh! w|-%
w]|!DataSource }-K;
D>PC/mk{-%
|-,K;!|6E=48B getUnMatchedConnectionAttributes() API /^[sS
zjava.util.Properties
?@B/ %:
Nc%!0FM9B/m
/t\T %
$ |z/|,! 2 +%1 !|6E=48B applyConnectionAttributes(java.util.properties connAttr) API /:N, }-% !y
:N)+_-z|6E=48B
API /mz/X ,'K;
:N|z/ %"H=JN A *
API /:N NLS_LANG /,%H=JN B *
q
:N!TXN_ISOLATION z/ Rfxe%2 '!|6E=48Bclose(java.util.properties connAttr) API /:N, >
API !|/_-|z/G
PooledConnection|%
Oracle Database 10g Java DBJDBC Database Web Services Oracle Corporation
close() API /W}
12
What’s New for Java DB, JDBC, and Database Web Services in Oracle Database 10g "#!
applyConnectionAttributes() API
Oracle Database 10g Java DBJDBC Database Web Services
13
Oracle Corporation What’s New for Java DB, JDBC, and Database Web Services in Oracle Database 10g
u¡1H:/4B close(connectionAttributes) API '6V*v! API $&3Q?9R PooledConnection *3Q? 9R
Z' connectionAttributes * PooledConnection ! ($&Yn*rdm)(| oZ'*3Q?9Riq' ! // Sample connection request and close java.util.properties connAttr = null; connAttr.setProperty(“NLSLANG”, “ISO-LATIN-1”); conn = ds.getConnection(connAttr); // request connection based on attributes java.util.properties unmatchedAttr = conn.getUnMatchedConnectionAttributes(); … --- App Server code applies unmatched attributes to the connection, either by calling PL/SQL procedures or SQL, before using the connection. ----- work --… conn.close(connAttr); // apply attributes to connection
Fast Connection Fail-Over Fast Connection Failover Implicit Connection Cache P2E-X;=X; RAC A=J;l( '|oA=J;g^A=J;U;D$ ( & RAC -X;=X;&!-X;=X;z_!L; Bz_j[-X;=X;s('(
#s
(!2 FC2 -X;=X;*' RAC 4T;= 3Q?9R 100 h*a '$7- RAC )K24K2pjm P %J9
QeD!# UO,53Qe Java Audit Oracle Database 10g Release 2 A[PL/SQL =/4"E SQL NF ! Java (=,/9-/3 SQL Audit HP!IgG aJava -,Java (=, Java >-,"bZkTd HP
Java Audit '7+9Oracle Database 10g Release 1 Release 2 ! JavaJDBC Web Services OoSv f{" Sv-06^VF0*qV52=0s}xKSv Oo#`W! Lnzl#.@6 "Sv#_}! $&\!)
Y #%D]nfp#=fpB!zc)
YSgY#&[l(u& sQp ~p&EU"#!Ncri& ) OracleJD Edwards # PeopleSoft Oracle Corporation #>:VtZ|jd}' 'XWZ|