Getting Started with DB2 Express-C
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Contents 9<br />
13.4.2 Cursor stability ............................................................................................ 221<br />
13.4.3 Read stability .............................................................................................. 223<br />
13.4.4 Repeatable read ......................................................................................... 223<br />
13.4.5 Comparing isolation levels .......................................................................... 223<br />
13.4.6 Setting the isolation level ............................................................................ 224<br />
13.5 Lock escalation .................................................................................................. 225<br />
13.6 Lock monitoring .................................................................................................. 226<br />
13.7 Lock wait ............................................................................................................ 227<br />
13.8 Deadlock causes and detection ......................................................................... 228<br />
13.9 Concurrency and locking best practices ............................................................ 229<br />
13.10 Summary .......................................................................................................... 231<br />
13.11 Exercises ......................................................................................................... 231<br />
PART III – LEARNING <strong>DB2</strong>: APPLICATION DEVELOPMENT .................................... 237<br />
Chapter 14 – Introduction to <strong>DB2</strong> Application Development ................................... 239<br />
14.1 <strong>DB2</strong> Application Development: The big picture ................................................. 239<br />
14.2 Server-side development ................................................................................... 241<br />
14.2.1 Stored Procedures ...................................................................................... 241<br />
14.2.2 User-defined functions ................................................................................ 242<br />
14.2.3 Triggers ....................................................................................................... 242<br />
14.3 Client-side development .................................................................................... 243<br />
14.3.1 Embedded SQL .......................................................................................... 243<br />
14.3.2 Static SQL vs. Dynamic SQL ...................................................................... 244<br />
14.3.3 CLI and ODBC ............................................................................................ 246<br />
14.3.4 JDBC, SQLJ and pureQuery ...................................................................... 249<br />
14.3.5 OLE DB ....................................................................................................... 251<br />
14.3.6 ADO.NET .................................................................................................... 252<br />
14.3.7 PHP ............................................................................................................. 253<br />
14.3.8 Ruby on Rails ............................................................................................. 254<br />
14.3.9 Perl .............................................................................................................. 254<br />
14.3.10 Python ....................................................................................................... 254<br />
14.4 XML and <strong>DB2</strong> pureXML ..................................................................................... 255<br />
14.5 Web Services ..................................................................................................... 255<br />
14.6 Administrative APIs ............................................................................................ 257<br />
14.7 Other development ............................................................................................ 257<br />
14.7.1 Working <strong>with</strong> Microsoft Access and Microsoft Excel .................................. 257<br />
14.8 Development Tools ............................................................................................ 259<br />
14.9 Sample programs ............................................................................................... 259<br />
14.10 Summary .......................................................................................................... 260<br />
Chapter 15 – <strong>DB2</strong> pureXML .......................................................................................... 261<br />
15.1 Using XML <strong>with</strong> databases ................................................................................ 262<br />
15.2 XML databases .................................................................................................. 262<br />
15.2.1 XML-enabled databases ............................................................................. 262<br />
15.2.2 Native XML databases ................................................................................ 263<br />
15.3 XML in <strong>DB2</strong> ........................................................................................................ 264<br />
15.3.1 pureXML technology advantages ............................................................... 265