Professional Documents
Culture Documents
Skill Ramp Up Session: SAP DB2 Migration Preparation
Skill Ramp Up Session: SAP DB2 Migration Preparation
Agenda Day 1
DB2 Overview
Product Overview
Architectural Overview / DB2 Objects
23 May, 2008
Agenda Day 2
DB2 Administration
Backup / Recovery
RUNSTATS / REORG
Monitoring / Tuning
Problem determination
DB2 / SAP integration
DBA Cockpit
SAP DB2 Tools
Layout planning for SAP / DB2 databases
Table space concepts
Design recommendations
SAP migration overview
Terminology and concept
Available tools
23 May, 2008
Agenda Day 3
23 May, 2008
SAP
System
SID
SID
Export
DB
Informix
MS SQL Server
ORACLE
....
TAB A
Migration
DB2
TAB A
TAB B
23 May, 2008
Import
TAB B
NetWeaver 04 (TAR)
DB2 V8 FP12
on LINUX
kitkat
alete
Network
23 May, 2008
Change of
Change of
Operating System Database System
(DB)
(OS)
No
No
SAP OS Migration
Yes
No
No
Yes
Yes
Yes
SAP DB Migration
(heterogeneous system copy)
23 May, 2008
23 May, 2008
Customer chooses
migration partner
Analysis-Session
Contractual
arrangments with SAP
4-6 weeks
Going
Livebefore
check
Customer draws up
migration project
shedule together with
Migration Partner
Final Migration
on source system
Verification-Session
2-4 weeks
after
Going
Live check
on target system
> 6 weeks
Going Live check
23 May, 2008
Next
SAP - Upgrade
23 May, 2008
10
Backup/Restore?
(homogeneous or OS-Migration in some cases)
11
Document:
23 May, 2008
12
23 May, 2008
13
23 May, 2008
14
> 3 migrations
DEV
1x
QAS
PRD
1x
>1x
> 2 migrations
DEV
1x
23 May, 2008
QAS
0x
PRD
system
copy
>1x
15
DB
Definitions
Tables
Files
TABART
DDART
TA
TABART
SAPTA.STR
TSD
DD09L
TABARTTab.
TAB
(TA)
TSI
IND_P
IND_S
23 May, 2008
Package
TS<DBS>
DB Storage Units
SAPTA.EXT
SAPTA.TSK
TA<DBS>
IA<DBS>
TABART TSD
TABART TSI
TG<DBS>
IG<DBS>
16
Types of TABARTs
Type
TABART
Usage
Data
APPL0
APPL1
APPL2
USER, USER1
CLUST
POOL
SAUS
SDIC
SDOCU
SLDEF
SLEXC
SLOAD
SPROT
SSDEF
SSEXC
SSRC
DDIM
DODS
DFACT
Special
System
BW / BI
23 May, 2008
17
Excercise
tabart,
count(tabart) as "Tabs in TABART"
from sapsrc.dd09l
group by tabart
23 May, 2008
18
Excercise (continued)
tabart,
count(tabart) as "Tabs in TABART"
from sapsrc.dd09l
group by tabart
23 May, 2008
19
Excercise (continued)
23 May, 2008
20
23 May, 2008
21
23 May, 2008
22
23 May, 2008
23
23 May, 2008
24
Tables
DDLOADD
ad
e
R rite
W
some minutes
Read
DDLOADH
R3ldctl
up to several hours
W
r it
e
Files
DDL<DBS>.TPL
SAP<TABART>.STR
SAP<TABART>.EXT
DB
23 May, 2008
25
Excercise
Run R3ldctl and put the files to /mig_exp/test, the logfile should be named
test.log
R3ldctl -l test.log -p /mig_exp/test
23 May, 2008
26
Excercise (continued)
Run R3ldctl and put the files to /mig_exp/test, the logfile should be
named test.log
R3ldctl -l test.log -p /mig_exp/test
23 May, 2008
27
23 May, 2008
28
DDL<DBS>.TPL
[tsk: .../<installation>/<PACKAGE>.TSK]
icf:
.../DATA/<PACKAGE>.STR
dcf:
.../DB/DDL<DBS>.TPL
dat:
.../DATA bs=1K fs=1000M
dir:
.../DATA/<PACKAGE>.TOC
<PACKAGE>.STR
<PACKAGE>.cmd
<PACKAGE>.TSK
23 May, 2008
6.10 only
29
read
DDL<DBS>.TPL
<PACKAGE>.STR
read
write
<PACKAGE>.TOC
<PACKAGE>.nnn
<PACKAGE>.log
DB
read / write
23 May, 2008
STOP
Do not use
NFS (write)!
<PACKAGE>.TSK
30
FTP
Tape
DVD
USB disk devices
Laptop with high capacity disk drive
NetApp device
23 May, 2008
31
Filename(s)
<export_dir>
LABEL.ASC
<export_dir>/DB
DDL<target_DBS>.TPL
<export_dir>/DB/<target_DBS>
<PACKAGE>.EXT
DBSIZE.{TPL|XML}
<TABART>.SQL
<export_dir>/DATA
(if exists)
<PACKAGE>.STR
<PACKAGE>.TOC
<PACKAGE>.nnn
32
23 May, 2008
33
Customer task
Case sensitive!
34
Create DB
Determine the DB configuration
Size the table spaces
Distribute the table spaces (disk layout)
Configure the database logs (size, number, primary, secondary)
Adjust DBSIZE.{TPL|XML}
Create DB
May be very time-consuming when large databases are involved
(big table spaces)
Can take place in parallel to the unload of the source DB
23 May, 2008
35
read
DDL<DBS>.TPL
<PACKAGE>.STR
<PACKAGE>.EXT
write
<PACKAGE>.TOC
<PACKAGE>.nnn
<TABART>.SQL
DB
23 May, 2008
write
<PACKAGE>.log
read / write
<PACKAGE>.TSK
36
23 May, 2008
37
23 May, 2008
38
23 May, 2008
39
23 May, 2008
40
23 May, 2008
41
Migration Scenarios
SAP Standard Migration Tool
Use R3setup / SAPinst dialogs and run R3load for export and
import without special options
IBM DB2 Fast Migration
Use unsorted export (Note 954268 - Optimization of export:
Unsorted unload)
Use R3load fast LOAD option for DB2 to use DB2 Load API
instead of inserts
Use socket option if possible
Incremental Migration
Use if no other procedure is possible during downtime
Note 454173 - DB6: R3load migration accelerated with CLI LOAD API
Note 864861 - ORACLE DIRECT PATH LOAD SUPPORT IN R3LOAD 6.40 AND ABOVE
23 May, 2008
42
Source
Target
DB
DB
Import
n
Export
o
Transfer
23 May, 2008
43
Source
DB
Target
no
Unload
Transfer
Load
DB
DB2 LOAD
Sockets
Incremental Migration
Source
Target
Online
Initial Load
Apply Changes
Offline
Transfer Rest
45
Fastloader
DW < 48
DB < 1TB
Incremental Migration
DW < 24h
DB > 2TB
Standard Process
DW > 60h
DB < 500GB
23 May, 2008
DW:
DB:
Downtime Window
Database Size
46
Directory Structure
/
<installation>
<sap-instance>/j2ee/sltools
<export>
/APPS
/DB
ADS
KM
PORTAL
*.SAR
(application data
stored in filesystem)
DDL<DBS>.{TPL|XML}
...
/DB6
...
SQL - EXT
/DATA
/JDMP
XML EXPDUMP.nnn
/SDM
23 May, 2008
EXPORT.STA
SDMKIT.JAR
47
File
Directory
SMIGR_CREATE_DDL
<TABART>.SQL
(since 6.20)
<export>/DB/<DBS>
R3ldctl
DDL<DBS>.TPL
<Package>.STR
<export>/DB
<export>/DATA
R3ldctl / R3szchk
<Package>.EXT
[DBSIZE.{TPL | XML}]
<export>/DB/<DBS>
R3load
<Package>.TSK
(since 6.10)
<installation>
<Package>.cmd
<installation>
R3load
<Package>.TOC
<Package>.nnn
<Package>.log
<export>/DATA
<export>/DATA
<installation>
23 May, 2008
48
Questions ?
?
23 May, 2008
? !
?
?
49