Beruflich Dokumente
Kultur Dokumente
Raul F. Chong
IBM Toronto Laboratory
Agenda
Data movement overview
Export
Import
Load & Set Integrity
db2move
db2look
Agenda
Data movement overview
Export
Import
Load & Set Integrity
db2move
db2look
Database A
File
Import
Export
ASC
DEL
WSF
IXF
Load
Set Integrity
db2move
Easily export/import/load/copy set of tables & data (IXF)
db2look
Extracts:
DDL
permissions
database statistics
Tablespace characteristics
Agenda
Data movement overview
Export
Import
Load & Set Integrity
db2move
db2look
EXPORT
Export data based on SQL Statement
Control Center > (expand) All Databases folder > (select) Tables Folder > (right-click) Table > Export
8
Agenda
Data movement overview
Export
Import
Load & Set Integrity
db2move
db2look
IMPORT
High-speed SQL INSERT
Activates triggers
All Constraints enforced immediately
Uses BUFFERPOOL
10
Control Center > (expand) All Databases folder > (select) Tables Folder > (right-click) Table > Import
11
Agenda
Data movement overview
Export
Import
Load & Set Integrity
db2move
db2look
12
LOAD
Very High Speed, low level data loader
separate LOAD, BUILD, DELETE phases
Uses utility heap (UTIL_HEAP_SZ)
Does NOT use bufferpool and does NOT activate triggers
Constraints enforced as separate step, may define
EXCEPTION tables
online LOAD supported
Control Center > (expand) All Databases folder > (select) Tables Folder > (right-click) Table > Load
14
Control Center > (expand) All Databases folder > (select) Tables Folder > (right-click) Table > Set Integrity
15
Agenda
Data movement overview
Export
Import
Load & Set Integrity
db2move
db2look
16
db2move
17
Agenda
Data movement overview
Export
Import
Load & Set Integrity
db2move
db2look
18
db2look
Extract DDL, tablespace info, and statistics to script
Too many options to describe, see db2look -h for
details
Example:
db2look -d sample -l -e -o sample.ddl
output file
database name
layout
(tablespaces
& bufferpools)
extract DDL
19
Control Center > (expand) All Databases folder > (right-click) Database > (select) Generate DDL
20
Extraction Options
21
22
Whats Next?
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Client connectivity
Lesson 6
Lesson 7
Data movement
Lesson 8
Security
Lesson 9
Lesson 10
Maintenance
COMPLETED!
23