DougClifton - DB2 Utilities Update 2011-1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 55

DB2 for z/OS Utilities Update: Now and Next

Doug Clifton
Executive IT Specialist
cliftonw@us.ibm.com
1

2011 IBM Corporation

Disclaimer
THE INFORMATION CONTAINED IN THIS PRESENTATION IS PROVIDED FOR INFORMATIONAL
PURPOSES ONLY.
WHILE EFFORTS WERE MADE TO VERIFY THE COMPLETENESS AND ACCURACY OF THE
INFORMATION CONTAINED IN THIS PRESENTATION, IT IS PROVIDED AS IS, WITHOUT
WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
IN ADDITION, THIS INFORMATION IS BASED ON IBMS CURRENT PRODUCT PLANS AND STRATEGY,
WHICH ARE SUBJECT TO CHANGE BY IBM WITHOUT NOTICE.
IBM SHALL NOT BE RESPONSIBLE FOR ANY DAMAGES ARISING OUT OF THE USE OF, OR
OTHERWISE RELATED TO, THIS PRESENTATION OR ANY OTHER DOCUMENTATION.
NOTHING CONTAINED IN THIS PRESENTATION IS INTENDED TO, OR SHALL HAVE THE EFFECT OF:

CREATING ANY WARRANTY OR REPRESENTATION FROM IBM (OR ITS AFFILIATES OR ITS OR
THEIR SUPPLIERS AND/OR LICENSORS); OR

ALTERING THE TERMS AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT


GOVERNING THE USE OF IBM SOFTWARE.

2011 IBM Corporation

Agenda
Recent DB2 9 enhancements
Current DB2 9 work
DB2 10 utility enhancements
Summary

Based on presentations by:


Haakon Roberts
DB2 Development

2011 IBM Corporation

Delivery of enhancements in maintenance stream


When prudent to do so
Risk vs. benefit
Resource
Simplify utility processing
Reduce resource consumption
Improve performance
Reduce CPU consumption

2011 IBM Corporation

SORTNUM Elimination
CHECK INDEX, REBUILD INDEX, REORG, RUNSTATS
PK45916 (V8) & PK41899 (V9)
Better performance, more robust, simpler
SORTNUM no longer required

Difficult to estimate: failure if too low, excessive sort work allocation if too high
New zparms UTSORTAL & IGNSORTN (online changeable)

UTSORTAL YES|NO
Use RTS data to estimate number of rows to sort
DB2 will dynamically allocate sort work datasets
If SORTWK DD cards not hard coded

IGNSORTN YES|NO
Override utility job setting of SORTNUM
Recommendation

Turn on UTSORTAL, test it, then consider turning on IGNSORTN


DSNU3340I 168 08:13:52.66 DSNUGLSR - UTILITY PERFORMS DYNAMIC ALLOCATION OF SORT DISK SPACE
5

2011 IBM Corporation

Other recent enhancements


Permit use of ALIASes for LOAD, RUNSTATS and UNLOAD
PK77061 (V9)
New DSNACCOX stored procedure to gather statistics from catalog and make utility
recommendations
See PK44133
DSNACCOR still supported
Better information for DPROPR/QRep or other IFI 306 readers
Write diag log record at utility termination so IFCID 306 readers can trigger refresh
PK78558 (V9)
EAV dataset support
PK81151 (V8 & V9)
Improved LOAD/UNLOAD processing with NUMRECS parameter
PK88970/PK88972/PK88974 (V8 & V9)
Replaces SORTKEYS at table space level with NUMRECS at table level
Simpler, eliminates risk of LOAD failure for load of multiple tables with skewed data
distribution
6

2011 IBM Corporation

Other recent enhancements


LOAD/UNLOAD LOB file reference variable performance
PK75216 (V9)
PDS only, not HFS
56% ET reduction on UNLOAD, 93% ET reduction on LOAD
LOAD and UNLOAD to/from virtual file
USS named pipe support with templates
PK70269 (V8 & V9)
PK96023 (V8 & V9)
LBI on UNLOAD 60% CPU reduction, 50% ET reduction

LOAD COPYDICTIONARY
PK63324/PK63325 (V9)
REORG avoidance prime empty partitions with compression dictionary
Avoid FRVs for LOAD/UNLOAD of zero length LOBs
PM12286 (V9)
Performance
7

2011 IBM Corporation

Performance utility CPU consumption


Focus on real CPU reduction & zIIP exploitation
DB2 utilities have been zIIP-enabled since 2006
Real CPU cost reduction in V9
10-20% for COPY & RECOVER
5-30% for LOAD, REORG, REBUILD INDEX
20-60% for CHECK INDEX
35% for LOAD partition
30-40% for RUNSTATS INDEX
40-50% for REORG INDEX
70% for LOAD REPLACE partition with dummy input
Flashcopy exploitation in DB2 10 dramatically reduces CPU consumption
for COPY & reduces CPU for RECOVER & inline copies
More zIIP offload in DB2 10 with RUNSTATS

2011 IBM Corporation

Performance zIIP exploitation for sort processing


In spite of CPU reduction in V9, there is continued focus on
CPU consumption for utilities
Sort can consume ~60% of total utility CPU time
DB2 in concert with DFSORT provides zIIP offload of DB2
utility memory-object fixed-length record sort processing
Requirements:
DB2 APAR PK85889 (V8 or V9)
DFSORT APAR PK85856
z/OS 1.10
PTFs can be applied independently of each other
Exploitation is automatic

2011 IBM Corporation

DB2 Sort for z/OS v1.1


Announced Aug 10th, GA Sep 24th
Provides high speed utility sort processing for DB2 for z/OS
data
Provides CPU & elapsed time reduction
Up to 30% reduction in elapsed time
Up to 50% reduction in CPU consumption
zIIP-enabled for further CPU cost reduction
Improved resilience, resource management & data availability

*Customer results may vary.


10

Results based on analysis done at SVL lab


2011 IBM Corporation

New solutions for DB2 9


LOAD/UNLOAD FORMAT INTERNAL
Delivery early 2011
Unload and load data in true internal format
Avoid field processing
30% ET reduction, 50% CPU reduction measured for LOAD
50% ET reduction, 60% CPU reduction for UNLOAD
LOAD PRESORTED
PM19584 delivery in V9 & V10 post-GA
Avoid sort overhead
Up to 25% CPU reduction, 33% ET reduction depending on no of indexes
Can combine with Utility Enhancement Tool PRESORT option
Support REORG of multiple part ranges
PK87762 & PM13259 (V9)
E.g. REORG PART 1,45:71,500:503,4010
More efficient, improved availability, exploit parallelism
Allow CHECK SHRLEVEL CHANGE to use FASTREPLICATION(REQUIRED)
PM19034 (V9)
Fail CHECK utility rather than incur application outage
11

2011 IBM Corporation

DB2 10 REORG improved availability & removed restrictions


Reduced need for REORG INDEX
List prefetch of index leaf pages based on non-leaf information for range
scans
Improved performance for part-level REORG with NPIs & REORG INDEX
Index list prefetch results in up to 60% elapsed time reduction

Reduced need for REORG with compress on insert


New REORGCLUSTERSENS RTS column
If no clustering-sensitive queries then avoid REORG to restore clustering
DSNACCOX enhanced
REORG SHRLEVEL CHANGE for all cat/dir page sets
REORG SHRLEVEL REFERENCE|CHANGE to remove REORP

12

2011 IBM Corporation

DB2 10 REORG improved availability & removed restrictions


REORG SHRLEVEL CHANGE for LOBs
Independent of whether LOBs are LOG NO or LOG YES
No mapping table required
Base table space must be LOGGED
REORG FORCE option to cancel blocking threads
FORCE ALL or just READERS
Same process as CANCEL THREAD so requires thread to be active in
DB2 for it to be cancelled
Threads cancelled on final drain
Reduced application outage for REORG with inline stats
Update catalog after dedrain
REORG support for multiple part ranges
REORG support retrofitted to V9 in PK87762
LISTDEF support is not retrofitted
13

2011 IBM Corporation

Utilities improved availability & removed restrictions


New AUX keyword on REORG of partitioned base for improved LOB handling
Permit rows to flow between partitions
Allows REORG REBALANCE with LOB columns
Allows ALTER of LIMITKEY with LOB columns
Permits move of rows between parts on PBG REORG
Permits deletion of corresponding LOBs on REORG DISCARD
Default is AUX NO unless LOB objects required to complete REORG
No XML column support for classic partitioned or PBR
No mapping table change

LOB

Part 1

Part 2

14

LOB

2011 IBM Corporation

V10: LOAD/UNLOAD
Remove MAX_UTIL_PARTS zparm
Restriction removed for REORG in
V9

Up to 50% elapsed time reduction


Spanned record support for
LOB/XML data
LOBs & XML documents inlined in
SYSREC with base data
Option in addition to FRVs
Performance & portability

S e c o n d s e la p s e d

Improved performance for LOAD


REPLACE with LOB data

700
600
500
400

PDSE
VBS

300
200
100
0
5000 10000 20000 30000 40000
LOBs unloaded

15

2011 IBM Corporation

V10: COPY
Dataset-level Flashcopy support
COPY, RECOVER, REORG, LOAD, REBUILD INDEX, REORG INDEX
New zparms & utility parms to govern
Significant CPU & elapsed time reduction for large pagesets
Create transaction-consistent image copies from SHRLEVEL CHANGE

3
2.5
2
1.5
1
0.5
0

IC
FC

25

50

75

Object size (MB)


16

Elapsed time per object (z10)

100

Seconds

S eco n d s

CPU time per object (z10)


3.5
3
2.5
2
1.5
1
0.5
0

IC
FC

25

50

75

100

Object size (MB)


2011 IBM Corporation

V10: COPY
Post-GA Flashcopy enhancements
Support for REORG AUX YES to FlashCopy aux objects
Remove requirement for sequential inline copy for REORG
Additional zparms with APAR PM26762

Govern whether FlashCopy is preferred or required for CHECK utilities


Govern FlashCopy in PPRC environments
Govern FlashCopy use by RECOVER to avoid conflict with BACKUP SYSTEM

3
2.5
2
1.5
1
0.5
0

IC
FC

25

50

75

Object size (MB)


17

Elapsed time per object (z10)

100

Seconds

S eco n d s

CPU time per object (z10)


3.5
3
2.5
2
1.5
1
0.5
0

IC
FC

25

50

75

100

Object size (MB)


2011 IBM Corporation

V10: COPY
Improved dataset management & performance
CHANGELIMIT will not allocate copy dataset unless copy taken
&ICTYPE now matches actual image copy type

Use RTS for CHANGELIMIT performance


Incremental copy will not allocate copy dataset unless pages
changed
Delivery post-GA

18

2011 IBM Corporation

V10: RECOVER
New BACKOUT YES option for point in time recovery
True rollback, not run of generated SQL undo statements
Requires COPY YES for indexes
VERIFYSET option to fail PIT recovery if entire set not included
Base, LOB, XML, history not RI
ENFORCE option to avoid CHKP/ACHKP when subset of set recovered
Improved performance due to avoidance of set checking (RI, aux)

19

2011 IBM Corporation

V10: Stats
RUNSTATS PROFILE support for simplification
RUNSTATS on views
Autonomic features through new stored procedures & catalog
tables
All catalog statistics columns made updatable
RUNSTATS SHRLEVEL REFERENCE updates RTS
TOTALROWS & TOTALENTRIES columns
zIIP-enablement for RUNSTATS
Auto sampling rates & page sampling instead of row sampling
Significant CPU & ET savings
TABLESAMPLE SYSTEM AUTO

20

2011 IBM Corporation

V10: CHECK
CHECK utilities will no longer set CHKP/ACHKP
CHECK SHRLEVEL CHANGE default changed to fail if Flashcopy not
available
ZPARM to govern
CHECK DATA enhanced for XML support
Document validation
Schema validation
Automated exception table processing for XML documents

21

2011 IBM Corporation

V10: Other
Removed UTSERIAL lock for greater utility concurrency
SQL SELECT on SYSLGRNX
Expect delivery post-GA
LISTDEF & TEMPLATE enhancements
LISTDEF support for CHECK DATA
LISTDEF support for multiple part ranges on REORG
LISTDEF support for DEFINED YES|NO|ALL
Improved utility performance since unnecessary to build & then discard
structures for undefined objects
Default changed to DEFINED YES & empty lists result in RC4
REPORT RECOVERY support for SLBs
DSNACCOX enhancements
Support hashed pagesets
New RTS columns for SSD, other

22

2011 IBM Corporation

Summary
Eliminate outages
Improve performance
Reduce resource consumption
Reduce complexity & improve automation
Day 1 utility support for core DB2 10 function
Continued delivery of performance improvements & features of
real value

23

2011 IBM Corporation

DB2 for z/OS Utilities:


Best Practices Update

24

2011 IBM Corporation

Agenda

General recommendations
Backup
Recovery/QUIESCE
MODIFY RECOVERY
LOAD/UNLOAD
REORG
CHECK utilities
DSN1COPY
Summary
25

2011 IBM Corporation

General recommendations

26

2011 IBM Corporation

Summary
Newer releases are better than older releases

Performance
Function
But be mindful of part level REORG in V9
Newer maintenance levels are better than older maintenance
levels

Performance
Function
Go to Utility Update talks at conferences to get the
latest information

27

2011 IBM Corporation

Sort processing
Improved utility sort processing
CHECK INDEX, REBUILD INDEX, REORG, RUNSTATS
PK45916 (V8) & PK41899 (V9)
Better performance, more robust, simpler
SORTNUM no longer required
Correct value hard to determine, resulting in utility failure if too low or excessive
sort work allocation if too high
New zparms UTSORTAL & IGNSORTN (online changeable)
UTSORTAL YES|NO
Use RTS data to estimate number of rows to sort
DB2 will dynamically allocate sort work datasets
If SORTWK DD cards not hard coded
IGNSORTN YES|NO
Override utility job setting of SORTNUM
Recommendation
Turn on UTSORTAL, test it, then consider turning on IGNSORTN

DSNU3340I 168 08:13:52.66 DSNUGLSR - UTILITY PERFORMS DYNAMIC ALLOCATION OF SORT DISK SPACE
28

2011 IBM Corporation

Sort processing
Sort work data set allocation
If assigning a data class though ACS routine, ensure its defined as
single volume only
Turn off space constraint relief in assigned data class
Use large volumes for sort work data sets
>64K tracks supported since z/OS 1.7
DDs for ACS routines:
SORTWKnn, SWxxWKnn, DATAWKnn, DAxxWKnn, STATWKnn,
STxxWKnn
See infoapars II14047 & II14213 for sort/DFSORT recommendations
Add //SORTDIAG DD DUMMY to utility job JCL
Negligible cost
Adds 10 lines of DFSORT diagnostic output required in unlikely event
of problem

29

2011 IBM Corporation

PBGs
No LOAD or REORG parallelism
No pruning of partitions
No LOAD at partition level
Rows can flow from one part to another within part range
LOAD / REORG at table space level will grow new parts as
needed
REORG cannot grow new parts if LOB column exists
REORG cannot move rows between parts if LOB column exists
REORG of single part or subset of parts will not grow new
parts
Rows must fit back into part, but may not!
PCTFREE/FREEPAGE may cause REORG to fail

PBG
Part 1
UTRW/UTRO

Part 2
UTRW

Part 3
UTRW

What to do if REORG fails because rows wont fit?


View as single table and REORG whole table space
If LOB columns exist then may need to UNLOAD/RELOAD
PK83397 new zparm to ignore PCTFREE/FREEPAGE
Solutions planned for Vnext
30

2011 IBM Corporation

RRF
RRF row format introduced in V9 NFM to remove overhead of processing rows
with variable length columns
Some concern about conversion to RRF from BRF on REORG or LOAD in V9 NFM
Primarily concern is worse compression ratio for rows with many var length columns
Currently PK78958 disables RRF conversion for compressed page sets
Conversion is also blocked for tables with editprocs
UTS table spaces are expected to be in RRF format
Hidden zparm can govern conversion/creation in BRF/RRF format
Recommendation: Leave hidden zparm alone
unless cannot tolerate RRF for new page sets in V9 NFM
Compressed page sets will not get converted
New page sets, including UTS page sets, will be RRF
If hidden zparm is turned off, UTS page sets created in BRF format run a higher risk of
defects
New developments
PK87348/PK85881
Externalise zparm to govern BRF/RRF conversion, provide external options on
31LOAD/REORG
2011

IBM Corporation

Utilities on demand with supplied stored procedures


Run utilities only when necessary and not on fixed schedules
Information on the current status of all objects is contained in RealTime Statistics (RTS) tables
DSNACCOR/DSNACCOX apply our suggested thresholds and
formulas against a list of objects and recommend utility actions
DSNACCOX in V9 NFM has improved RTS exploitation and
recommendations
Leverage the ability to invoke utilities programmatically via stored
procedures
DSNUTILS for EBCDIC parameters
DSNUTILU for UNICODE parameters
Rich application logic can control what is run and when
Refer to the DB2 Utility Guide and Reference Appendix B and
samples
Use LISTDEFs and TEMPLATEs for further simplification and
automation of utilities
32

2011 IBM Corporation

BACKUP

33

2011 IBM Corporation

COPY
Exploit parallelism
Consider OPTIONS EVENT(ITEMERROR,SKIP)
Sets UTRW state only for duration of copy of individual
page set
But increases COPY overhead
Serialisation required for each pageset on the fly

Consider taking incremental copies and MERGECOPY


MERGECOPY marks relevant page set UTRW!
Copy indexes on large, critical tables
Particularly if rarely or never updated
Must include in MODIFY RECOVERY

34

2011 IBM Corporation

Backup solutions
Multiple options
BACKUP SYSTEM
Significant DASD investment required
Can be complex to set up & administer, but invocation simple
Must understand any limitations that currently exist
E.g. DASD mirroring issues, dataset movement issues, etc.
Sequential image copies
Tried and trusted solution since V1.1
Other external backups, such as volume-level backups
Outside of DB2s control
Requires careful management and co-ordination
Expect further options in future
Choice is dependent on environment and requirements, all options
will continue to be supported
35

2011 IBM Corporation

RECOVERY/QUIESCE

36

2011 IBM Corporation

Recovery/QUIESCE
Maximise exploitation of parallel restore and Fast Log Apply
Recover multiple objects in a list in parallel but ideally <100
Never run more than 10 RECOVER jobs per member
Split off page sets that are not updated and recover separately
For PIT recovery, include whole RI set in same RECOVER
statement
For PIT recovery, include base and aux objects in same RECOVER
statement
Vnext will enforce this
If you want object level recovery from system level backup in V8
then use Recovery Expert tool
QUIESCE
Do you still need it in V9 with PIT recovery with consistency?
Use WRITE NO unless you absolutely have to have pages written
out
37

2011 IBM Corporation

MODIFY RECOVERY

38

2011 IBM Corporation

MODIFY RECOVERY
Base your MODIFY strategy on your backup strategy
and not vice versa
Consider running every time a backup is taken or at
least weekly
REORG SYSLGRNX regularly for optimal performance
and minimal MODIFY impact on system
DB2 9 has RETAIN LAST n, GDGLIMIT and BSDS
options
Careful with GDGLIMIT if you use multiple GDGs for a
single object
Will not clean up orphan entries in V9
Run MODIFY to delete recovery information from prior
to a REORG that materialises row alterations
Makes subsequent REORGs more efficient
39

2011 IBM Corporation

LOAD/UNLOAD

40

2011 IBM Corporation

LOAD/UNLOAD
Run with LOG NO, REUSE, KEEPDICTIONARY if
possible
Allocate inline copy data sets to DASD
Split up input dataset and drive LOAD partition
parallelism in a single LOAD
Use SORTNUM elimination
Specify SORTKEYS if input is on tape or variable
length
For LOAD REPLACE, consider loading into a clone
then renaming tables or datasets
Consider using USS named pipes
Refer to PK70269 for V8 and V9
41

2011 IBM Corporation

LOAD/UNLOAD

Consider whether you want UNLOAD utility or HPU


High Performance Unload is a separately chargeable tool
Comparable elapsed time
Less CPU
Permits SQL interface
Permits unload from page set on DASD
FRV processing for LOAD/UNLOAD
Apply PK75216 for significant performance enhancement for PDS FRVs in
V9
HFS still performs better in elapsed time
Note limit of 522,239 members in a PDS/E
NULL LOBs are handled better than zero length LOBs
No FRV created on UNLOAD for null LOBs
V8 zero length LOBs will result in zero length LOBs put in LOB table
space
Fixed in V9
42

2011 IBM Corporation

LOAD/UNLOAD V10 considerations

LOAD into a hashed table is expensive


Alternative process:
1 DDL to set up an indexed table
2 LOAD data into table
3 Alter table to organize by hash
1 No clustering index allowed

4 REORG with AUTOESTSPACE YES

Total elapsed time <60mins


Elapsed time for corresponding load into hashed table was 5
hrs

43

2011 IBM Corporation

REORG

44

2011 IBM Corporation

REORG
LOAD COPYDICTIONARY can avoid need to run REORG
If an NPI exists then concurrent REORGs of parts in the same table space is
not permitted in V9
Due to shadowing of NPIs, due to removal of BUILD2 phase
Expect to provide ability to REORG disparate parts via APAR in V9
Be aware that REORG of a single part with an NPI can take longer in V9
Need to shadow NPI
If NPI is disorganized then it can take longer since unloading keys in order
But parallelism in V9 on unload/reload/logapply means multi-part REORG
should be faster and the log phase is much better at keeping up with
logging rates
So REORG multiple (adjacent) parts in the same REORG statement
Inline statistics can increase application outage duration
Catalog statistics updated after switch but whilst data is drained
45

2011 IBM Corporation

REORG
SHRLEVEL CHANGE main recommendations
Use DRAIN ALL to minimize application impact
(DRAIN_WAIT+MAXRO)<(IRLMRWT -5 or 10 seconds)
Avoid application timeouts
But dont set MAXRO too low

REORG of LOB page sets


Get to V9 and use SHRLEVEL REFERENCE, available in V9
CM
Expect SHRLEVEL NONE to be deprecated in future

46

2011 IBM Corporation

REORG INDEX vs. REBUILD INDEX


REBUILD INDEX SHRLEVEL CHANGE provided in V9
Excellent for create of new non-unique indexes and for indexes
that are broken or already in RBDP
Does not operate against a shadow, so will set RBDP if not
already set
REORG INDEX operates against a shadow
Conclusion:
REBUILD INDEX SHRLEVEL CHANGE if index is broken or
already RBDP
REORG INDEX if index is accessible and want to maintain
availability

47

2011 IBM Corporation

CHECK utilities

48

2011 IBM Corporation

CHECK
If no applications are impacted and you just want to check
consistency, then:
Either run CHECK SHRLEVEL CHANGE
Or run standard CHECK utility but be ready with REPAIR to reset
CHKP/ACHKP states
Or could consider running SQL ISO(UR) instead
If running SHRLEVEL CHANGE:
It will not reset CHKP or ACHKP states, nor will it set them
Make sure the page set is on FlashCopy-enabled DASD
If not then youll get a slow copy with the data in UTRO
If using DASD mirroring or BACKUP SYSTEM then use ZPARM
UTIL_TEMP_STORCLAS to prevent impacting either
Refer to PK41711
49

2011 IBM Corporation

LOB integrity checking


CHECK DATA on base tablespace

SCOPE AUXONLY

AUXERROR REPORT

AUXERROR INVALIDATE

Base table space

CHECK INDEX

Aux index

CHECK DATA

Row

LOB
CHECK LOB

Row
LOB

LOB table space

50

2011 IBM Corporation

Checking data integrity


CHECK INDEX on DOCID, NODEID, XML indexes
CHECK DATA on base tablespace

SCOPE AUXONLY

AUXERROR REPORT

AUXERROR INVALIDATE

XML table space


CHECK INDEX(2)

Base table space


NODEID
Index

CHECK INDEX(1)
DOCID
Index

CHECK DATA(3)
Cols:

Cols:
DOCID
XMLCOL

DOCID
NODEID
XML Record Value

XML
Index
CHECK INDEX(2)

51

2011 IBM Corporation

DSN1COPY

52

2011 IBM Corporation

DSN1COPY
DSN1COPY is an essential part of the utilities portfolio
DSN1COPY runs standalone and cannot ensure that data matches
definition at target
All target datasets must be pre-allocated for multi-piece table spaces
Areas to watch out for:
BRF-RRF mismatch
Tolerated by SQL, but not REORG
Convert page sets to ensure copy is RRF-RRF or BRF-BRF
If that isnt possible, e.g. if image copy is BRF, then UNLOAD from BRF
image copy and LOAD into RRF page set
Data definition changes, e.g. columns added
Use REPAIR VERSIONS at target site
For alterations prior to V8, REORG at source before DSN1COPY
Different table space types or different segsizes
Not policed, abends will occur

53

2011 IBM Corporation

DSN1COPY
Areas to watch out for:
XML
Data-dependent information kept in catalog table XMLSTRINGS
Cannot DSN1COPY XML table space from one subsystem/group to
another
DSN1COPY within a subsystem/group is fine
Solution is UNLOAD/LOAD/CROSSLOADER

DOCID is a sequence generated by DB2 DSN1COPY to a new


target where the DOCID is lower will result in -803 on insert
because DB2 generates a value of n but n already exists in the
table. ALTER of the sequence isnt allowed for DB2-generated
sequences.
SELECT NEXT VALUE FOR <seq-for-docid> can be used to increment
the number up to the max DOCID in the table

54

2011 IBM Corporation

Summary
Stay reasonably current on versions and maintenance
Understand what this gives you in terms of utility capability
Revisit your existing utility jobs to benefit from new options

55

2011 IBM Corporation

You might also like