DB2 V9 MigrationDB2 V9 Migration Dexia Technology … GSE DB2V9 migration... · DB2 V9 MigrationDB2...
Transcript of DB2 V9 MigrationDB2 V9 Migration Dexia Technology … GSE DB2V9 migration... · DB2 V9 MigrationDB2...
DB2 V9 MigrationDB2 V9 Migration Dexia Technology Services Alain Pary – DBMS DB2Alain Pary DBMS DB2Gent, March 2010
DB2 V9 Migration Dexia configuration
• Datasharing (3 Way in production)./OSZ/OS 1.9
• object by Environment (5 env PRD/UAT/GTU/PTP/TST) .6022 Tablespaces6022 Tablespaces
26143 Table partitions
13719 Indexes
35011 Index partitions
11750 Tables
• Space allocated by env.PRD : 8.3 T ; UAT 0.4 T ; PTP 2.0 T ; GTU 0.4 T ; TST 0.4 T
2 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Activity Keys numbers in production
• BP pages 28 Giga
• GBP capacity 16 Giga
• Get pages 16 billions per days
• SQL 8 billions per days
• commit 80 millions per days
• log volume 170 X 1600 Cylinders
3 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Calendar
Environment DB2 V9 CM DB2 V9 NFM
Tgt : DB2 for System team 14/02/2009 18/07/2009
Ptp : performance test for
Critical applications07/03/2009 08/08/2009
Gtu : functional test 28/03/2009 29/08/2009
Uat : user acceptance test 18/04/2009 19/09/2009
Prd : production 23/05/2009 07/11/2009
Tst : development 13/06/2009 05/12/2009Tst : development 13/06/2009 05/12/2009
4 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Constraint development
• UAT (01/01 – 03/10)V9CM V9NFM
P24 P25 P26 P27
• PRD (14/03 – 21-11)• PRD (14/03 21-11)
V9CM V9NFM
P24 P25 P26 P27
5 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Intervention in production
• All the members are stopped.
• start one member in access(maint)To avoid concurrency on catalog.
To avoid abnormal behaviour in user programTo avoid abnormal behaviour in user program.
• Go to version 9 in CM or NFM mode New loadlib procedures hold actionNew loadlib, procedures, hold action..
Dexia IVP , check the interface.
• Start the first member in access(*)
• Inject the maintenance in the other members
• start all the members in access(*)( )
6 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• A new format in DB2 V9 : Reordered Row Format .
With RRF you do not have to worry about the order of columns within the row.You can specify
the order however you wish and DB2 automatically reorders the columns within the row andthe order however you wish, and DB2 automatically reorders the columns within the row and
places all of the variable length columns at the end of the physical row within the data page.
Instead of storing the columns with their length, DB2 stores all of the offsets for the variable
length columns in an area following the last fixed length column and prior to the first variable
length column. DB2 can now directly access each variable length column and know its length
b d i i l l l ti ith th ff t I t thi i h ffi i tby doing simple calculations with the offsets. In most cases this is a much more efficient way
to process individual varying length columns.
7 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• Table definition
• data insert
8 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• Table content (via SQL)
9 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF (dump of page)
10 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF (dump of page)
It is not really readable so transform it
11 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW
12 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
13 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
14 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
15 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
16 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
17 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
18 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
Length Varchar2
19 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
Length Varchar2
20 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
Length Varchar2
Varchar2
21 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
Length Varchar2
Varchar2
22 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
Length Varchar2
Varchar2
Char1
23 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
Length Varchar2
Varchar2
Char1
Char2Char2
24 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 BRF BY ROW Record length
Length Varchar1
Varchar1
Length Varchar2
Varchar2
Char1
Char2Char2
25 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF (dump of page)
26 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW
27 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
28 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
29 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
30 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
31 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
32 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
33 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
34 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
35 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
36 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
37 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
38 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
39 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
Char2Char2
40 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
Char2Char2
41 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
Char2Char2
Length Varchar1
42 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
Char2Char2
Length Varchar1Offset varchar2-offset varchar1
43 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
X’0D’ – X’0B’ = X’02’=2
Offset Varchar2
Varchar2
X’15’- X’0B’ = X’0A’ = 10
Char1
Char2X’0B’ – X’0B’ = X’00’ = 0
Char2
Length Varchar1Offset varchar2-offset varchar1 X’10’ – X’0B’ = X’05’ = 5X 10 – X 0B = X 05 = 5
44 Pary Alain DBMS DB2 Dexia Technology Services
X’15’- X’0B’ = X’0A’ = 10
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
Char2Char2
Length Varchar1Offset varchar2-offset varchar1
Length Varchar2Rec Length – 6 – offset varchar2
45 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
Offset Varchar2
Varchar2
Char1
Char2Char2
Length Varchar1Offset varchar2-offset varchar1
Length Varchar2
46 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
• DB2 RRF BY ROW Record length
Offset Varchar1
Varchar1
X’16’ - X’06’ – X’0D’ =
X’03’ = 3
Offset Varchar2
Varchar2
X’25’- X’06’ - X’15’ =
X’0A’ = 10
Char1
Char2X’12’ – X’06’ - X’0B’ = Char2
Length Varchar1Offset varchar2-offset varchar1
X’01’ = 1
Length Varchar2Rec Length – 6 – offset varchar2
X’1C’ – X’06’ - X’10’ =
X’06’ = 6
47 Pary Alain DBMS DB2 Dexia Technology Services
X’1B’- X’06’ - X’15’ =
X’00’ = 0
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
Catalog impact
SYSIBM.SYSTABLEPART table
Format Char(1) not null with default
Indicates the format of the rows in the table space or partition
R Indicates reordered row format
blank Indicates basic row format or a LOB tablespace
48 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
Mixed format within partition of a tablespaceAft d it’ diffi lt t th d tAfter a drop it’s difficult to recover the data.Only one format possible at creation via Zparm positionning.
For DSN1COPY between DB2 the Format must be synchronised.o S CO be ee e o a us be sy c o sed
49 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
APAR PK85881, PK87348
. ZPARM impact
Hidden DSNZPARM SPRMRRF will be converted to an opaque, online changeable DSNZPARM Default value will remain SPRMRRF=ENABLEchangeable DSNZPARM. Default value will remain SPRMRRF=ENABLE.
• new statement for load and ReorgROWFORMATROWFORMAT
RRFBRF
•Messages| DSNU1173I | csect-name TABLE SPACE dbname.tsname WILL BE CONVERTING | FROM row-format1 TO row-format2 DSNU1174I | t TABLE SPACE db t WILL REMAIN IN | f t DUE TODSNU1174I | csect-name TABLE SPACE dbname.tsname WILL REMAIN IN | row-format DUE TO explanation Sample : DSNU1173I -SD1S 060 18:21:24.44 DSNURFIT - TABLE SPACE DSN00014.RRFFORMA WILL BE CONVERTING FROM BASIC ROW FORMAT TO REORDERED ROW FORMAT
50 Pary Alain DBMS DB2 Dexia Technology Services
DB2 V9 Migration Basic Row Format (BRF) or Reordered Row Format (RRF)
Conclusion
PTF must be installed to control the format of TS.Mixed format TS must be avoid.RRF management is not enough user driven.RRF management is not enough user driven.– not like compression (alter, keep dict).RRF will be implementedRRF will be implemented.
51 Pary Alain DBMS DB2 Dexia Technology Services