Pre koho je kurz určený
Tento kurz je určen pro programátory
databázového systému DB2, kteří vyvíjejí aplikace v prostředí UNIX/AIX/Linux
nebo Windows a chtějí při tom používat vnořené příkazy SQL v programovacím
jazyku C.
Čo Vás naučíme
Po ukončení kurzu budete schopni:
Používat vnořené statické příkazy SQL při aplikačním programování v jazycích
3. generace
Pochopit rozdíly mezi statickými a dynamickými dotazy
Požadované vstupné znalosti
Znalosti v rozsahu kurzů:
CF030CZ - DB2 Family Fundamentals
CF120CZ - DB2 SQL Workshop
Základy programovacího jazyka C.
Metódy výučby
Odborný výklad s praktickými ukázkami, cvičení na
počítačích.
Študijné materiály
Studijní materiál IBM.
Osnova kurzu
DB2 concepts
Identify DB2 family products
Explain DB2 workstation component functions
Identify DB2 objects
Identify the key differences between static SQL and other application
alternatives for accessing DB2 data
Program structure I
Embed INSERT, UPDATE, DELETE and single-row SELECT statements in application
programs
Effectively communicate with DB2 when processing NULL values and determining
the success of statement execution
Demonstrate use of DB2 coding aids
Code CONNECT statements within an application program
Identify connection types and impacts on a unit of work
Program preparation
Identify the additional steps necessary to prepare a program that contains
embedded SQL for execution
Describe the functions of the DB2 PRECOMPILE and BIND processes
Describe factors relevant to the BIND process, including RUNSTATS
positioning, package status, parameters, and authorization requirements
Program structure II
Use DECLARE, OPEN, FETCH, and CLOSE CURSOR statements to handle select
criteria that may return multiple rows in application programs
Issue positioned UPDATE and DELETE statements
Use compound SQL
Recovery and locking concepts
Define a unit of recovery
Identify the basic locking strategies used by DB2
Dynamic SQL introduction
Describe the difference between static and dynamic SQL
List the types of dynamic statements
Code dynamic SQL in a program
Managing test data
Identify methods to insert data into a table
Use the LOAD or IMPORT utility
Identify the purpose of the RUNSTATS utility
Identify the purpose of the REORG utility
Performance considerations
Use programming techniques that enhance DB2 application performance by
following general guidelines, using indexable predicates, and avoiding
unnecessary sorts
Identify the access paths available to DB2
List common causes of deadlocks and avoid such causes when possible
Use the EXPLAIN tools as aids to develop applications that emphasize
performance