Oracle Database 10g Java DB JDBC Database Web Services

21 downloads 1575 Views 720KB Size Report
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

8‘k]¡| $!BC/JS8 %a“)cW " HR,?GB

Oracle Database 10gRelease 1 $! Release 2

 ' JavaJDBC $! Web Services a“[Ÿ)€œ"(% a“$>;F8Y”u

(i) }p|)hz48?)‹f

'(ii) \Š|Q@ANS7S2Xž|)hzO81)mf '(iii) Oracle >;F8ž•U)\Š' LO=?’% ("HR,?GBJava and Web Services Developers Perspective on Oracle Database 10g 

(%a“)Y”u^Ž%[€ "

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]¡ '`š>;:8Z˜C*,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

-i˜QŽ‚!}!6J?:K|‘/sŒ&

int getNumberOfAvailableConnections(String cacheName) ! API "‚6J?:K

-i˜QŽ‚!}/&.-„

"API wšm!‚6J?:K!i˜QŽ‚!}!   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 -(S†vh! w|‚ —-%

w]|‚!DataSource }ˆ-K;

D>PC/mœk{-%

|‚ —-,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 /mœz/„XŠ‹œ ,'K;

:N|‚z/‹œ %"H=JN A *

API /:N NLS_LANG /‹œ,%H=JN B *

q

:N!TXN_ISOLATION z/‹œ RfŽ›xe%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‘„ˆ‡*r„ˆžd m)(| 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*qV 52=0s}xKSv Oo#`W! Lnzl#.@6 "Sv#_}! $&\!)…Y #%DŽ]nfp#=fpB†!zc)…YSgYŠ#&[l(u&  sQp ~’p&EU"ƒ„#!Ncri&  ) OracleJD Edwards # PeopleSoft  Oracle Corporation #>•:Vt–Z|jd}ˆ' 'XWZ|