Distribution Monitor (Version 1.8.1) Users' Guide
Distribution Monitor (Version 1.8.1) Users' Guide
Distribution Monitor (Version 1.8.1) Users' Guide
1)
Users’ Guide
1. INTRODUCTION..................................................................................................................................3
2. TOOLS...................................................................................................................................................4
3. RESTRICTIONS..................................................................................................................................6
4. WORKING WITH THE DISTRIBUTION MONITOR...................................................................7
4.1 PROCEDURE - OVERVIEW...............................................................................................................9
4.2 SETTING CODE PAGE INFORMATION FOR SYSTEM COPY OF NON-UNICODE SYSTEMS WITHOUT
CONVERSION TO UNICODE..........................................................................................................................10
5 RUNTIME REQUIREMENTS.........................................................................................................11
5.1 JAVA.............................................................................................................................................11
5.2 SYSTEM COPY BINARIES...............................................................................................................11
5.3 DATABASE CONNECTION..............................................................................................................11
6 CONFIGURATION............................................................................................................................12
6.1 GENERAL OPTIONS......................................................................................................................12
6.2 PREPARATION MODE (-P) OPTIONS..............................................................................................13
6.2.1 Preparation Mode – General.................................................................................................13
6.2.2 Preparation Mode – Export/Import command files...............................................................14
6.2.3 Preparation Mode – Export/Import command files - host specific........................................18
6.2.4 Preparation Mode – R3ldctl...................................................................................................19
6.2.5 Preparation Mode – R3szchk.................................................................................................19
6.2.6 Preparation Mode – Package splitter....................................................................................20
6.2.7 Preparation Mode – R3ta.......................................................................................................21
6.2.8 Preparation Mode – Distribution...........................................................................................22
6.3 EXPORT MODE (-E) OPTIONS.......................................................................................................24
6.4 IMPORT MODE (-I) OPTIONS........................................................................................................24
6.5 DISPLAY MODE (-D) OPTIONS.....................................................................................................24
7 PREPARATION MODE....................................................................................................................25
7.1 GENERAL......................................................................................................................................25
7.2 LOG AND STATUS FILES...............................................................................................................26
7.3 SPECIAL HANDLING IN CASE OF TABLESPACE CHANGE...............................................................27
7.4 AUTOMATIC CALCULATION OF PACKAGE DISTRIBUTION.............................................................27
8 EXPORT MODE.................................................................................................................................28
8.1 GENERAL......................................................................................................................................28
8.2 LOG AND STATUS FILES...............................................................................................................28
8.3 EXPORT STATE PROPERTIES........................................................................................................29
8.4 ADDITIONAL EXPORT RESULT: SUMG DIRECTORY....................................................................29
9 IMPORT MODE.................................................................................................................................30
9.1 GENERAL......................................................................................................................................30
9.2 LOG AND STATUS FILES...............................................................................................................30
9.3 IMPORT STATE PROPERTIES.........................................................................................................31
9.3.1 Restarting R3load Processes..................................................................................................31
9.4 ADDITIONAL IMPORT RESULT: SAPINSTIMPORT DIRECTORY.......................................................31
10 DISPLAY MODE................................................................................................................................32
10.1 INPUT FILES.................................................................................................................................32
20.07.2021 1
10.2 LOG AND STATUS FILES...............................................................................................................32
10.3 BAR CHARTS WITH PACKAGE RUNTIME (TIME ANALYZER)........................................................32
10.4 PACKAGE STATES.........................................................................................................................33
11 INTEGRATION INTO THE SAPINST COPY PROCEDURE.....................................................34
11.1 EXPORT........................................................................................................................................34
11.2 IMPORT.........................................................................................................................................34
11.2.1 NW2004s...........................................................................................................................34
11.2.2 NW04 SR 1.........................................................................................................................34
11.2.3 WebAS 6.20.......................................................................................................................35
12 EXPLANATION OF WARNING MESSAGES...............................................................................36
13 ERROR ANALYSIS...........................................................................................................................36
14 FAILURE AND REDO SCENARIOS..............................................................................................37
APPENDIX A – ENVIRONMENT FOR DATABASE CONNECTION................................................40
A.1 DB6................................................................................................................................................40
A.2 Oracle.............................................................................................................................................40
A.3 MS SQL Server...............................................................................................................................43
A.4 MaxDB...........................................................................................................................................43
A.5 DB2 z/OS........................................................................................................................................43
APPENDIX B – VERSION HISTORY......................................................................................................45
VERSION 1.4.0............................................................................................................................................45
VERSION 1.5.0............................................................................................................................................45
VERSION 1.6.0............................................................................................................................................45
VERSION 1.7.0............................................................................................................................................45
VERSION 1.7.1............................................................................................................................................45
VERSION 1.8.0............................................................................................................................................46
VERSION 1.8.1............................................................................................................................................46
Appendix C - References................................................................................................................................46
You will always find the newest version of this document attached to SAP note 855772.
20.07.2021 2
4 Introduction
The Distribution Monitor (DM) is a tool which helps you to perform and control the
unload and the load process distributed across multiple machines during the System Copy
procedure. The following figure shows an example where two application servers are
used for the System Copy process.
Server1
Export Data Import
Dir
commDir Target
Source
DB DB
Server2
Export Data Import
Dir
20.07.2021 3
The control information is shared among the machines using a shared directory that is
readable and writeable by all machines. This directory is called the communication
directory (commDir). The communication directory can be located on one of the involved
servers. The DM gets setup on each involved server.
The preparation phase needs to be finished before the export and import phase can start.
The export and import phase can run in parallel if the source and the target database are
available at the same time. The target database needs to be created by SAPinst before
starting the import phase. The DM only creates tables and indexes at the target database.
The R3load data files are written to and read from data directories located at the
individual server.
During the process it is possible to monitor the status.
5 Tools
The application is located in the SAPCAR archive DISTMON.SAR. The SAR file
encompasses the DM, the Migration Monitor, the Java Split Tool and the Time Analyzer.
Please refer to note 784118 for details about the Migration Monitor, the Java Split Tool
and the Time Analyzer.
o Properties files (export_monitor_cmd.properties, import_monitor_cmd.properties)
needed to run the Migration Monitor are automatically generated by the
Distribution Monitor. This is done mainly during the Preparation Phase. Some
parameters are set later during the Export and Import Phase. Normally it is not
necessary to modify the generated files. However, you could modify them if
needed after the Preparation Phase completed in the <commDir>\<HOSTNAME>
directory before starting the Export and Import Phase.
o For the properties files (package_splitter_cmd.properties;
package_splitter_tables.txt) needed to run the Java Split Tool samples are
provided. You can use them as start to create them in your working directory
before starting the Preparation Phase. For example, package_splitter_tables.txt
20.07.2021 4
contains tables that should be handled in separate packages. You could replace the
default list by the 50 largest tables selected in transaction DB02.
o The Time Analyzer frequency is set using the analyzerFrequency export and
import option. No properties files are used.
20.07.2021 5
6 Restrictions
The following restrictions apply to the current implementation:
The DM does not support system copies of releases lower than SAP_BASIS 6.20.
It is strongly recommended to perform read/write actions of R3load data files
(<hostname>.dataDirs) and R3load control files (<hostname>.exportInstallDir,
<hostname>.importInstallDir) only on local file systems. NFS-mounted file
systems sometimes fail on high parallel load.
Only the net mode of the Migration Monitor is supported with the DM (ftp and
socket mode are not supported).
Oracle: tablespace changes according to note 425079 require manual handling of
the database template. Please read section 9.3. Oracle specific handling.
Double stack installation: DM only processes the data of the ABAP stack which
are processed with R3load. For data of the Java stack which are processed with
Jload use standard system copy procedure.
20.07.2021 6
7 Working with the Distribution Monitor
The monitor can be started using:
The shell script distribution_monitor.sh for UNIX platforms
The batch file distribution _monitor.bat for Windows platforms
The application allows you to specify options in the command line and/or in the
application property file. The name of the property file is
distribution_monitor_cmd.properties. Templates for these files are included in the
application archive and must be located in the current user’s working directory. The
options specified in the command line take precedence over the corresponding options in
the application property file. Options are case-sensitive. To specify an option in the
command line, enter ‘-optionName optionValue’; in the application property file, insert
the new line ‘optionName=optionValue’.
Start the monitor, it will terminate when all requested jobs are finished. The monitor
processes will run in background. Use monitor *.log files to check monitor processing
state.
20.07.2021 7
# Distribution Monitor options
#
# Common options
# Communication directory
commDir=C:\projects\comm
# R3szchk arguments
r3szchkArgs=-s DB -t db6 C11 620
Server2.dataDirs=E:\SAPData
Server2.exportInstallDir=E:\SAPData\log
Server2.exportR3loadExe=E:\CDs\620_NUC\R3load\R3load.exe
Server2.exportJobNum=5
Server2.importR3loadExe=E:\CDs\620_UC\R3load\R3load.exe
20.07.2021 8
7.1 Procedure - Overview
1. Select machines that you want to use for your System Copy.
Option: hostNames
2. Define the share which is used to communicate between the machines
Option: commDir
3. For each machine:
define number of export and import processes
Rule of thumb is 2-4 export processes and 1-4 import processes per CPU (also
depending on the capacity of the database server; more details about performance
estimation can be found in note 857081)
Option: <hostname>.expJobNum, <hostname>.impJobNum
4. On each machine
Unpack DISTMON.SAR
(You need a separate distribution monitor directory on each machine)
5. On each machine
Check Java environment. JAVA_HOME must point to JDK 1.4.2 or higher
version
6. On each machine:
Check availability of matching R3load and databases connection to the source
database (for export)
One way to ensure this is installing a application server instance and run
Distribution Monitor as user <srcsid>adm
7. On each machine:
Check availability of matching R3load and databases connection to the target
database (for import)
One way to ensure this is installing a application server instance and run
Distribution Monitor as user <tgtsid>adm
8. On each machine:
set commDir in distribution_monitor_cmd.properties
9. On the machine where you want to run the preparation step:
Check the availability of Non-Unicode R3load, R3ldctl, R3szchk and the database
connection to the source database
One way to ensure this is installing an application server instance and run the DM
as user <srcsid>adm
10. On the machine where you want to run the preparation step:
enter the options defined in step 1-3 into distribution_monitor_cmd.properties
(and further options if you like)
11. Run the preparation step: distribution_monitor –p
12. After running the preparation mode for the first time it is recommended to save
results of R3ldctl, R3szchk, PkgSplit and (optional) R3ta step and set the
corresponding skip options in distribution_monitor_cmd.properties.
This enables repeating parts of the preparation without repeating unnecessary
steps
13. After changes to table structures R3ldctl and R3zchk have to be repeated
20.07.2021 9
14. If export and import run on separate databases
Prepare the target database (see also chapter 14.2 Import)
Start export and import on each machine
15. Else if export and import run on same database
Start export on each machine
After all exports have finished drop source database
Prepare the target database (see also chapter 14.2 Import)
Start the import on each machine
16. During export and import you can monitor the state with the display mode
(distribution_monitor –d)
The DM can also be used for system copies of Non-Unicode systems without conversion
to Unicode. In this case it is mandatory to set the preparation mode options dataCodepage
and dbCodepage. The value depends on the content of table TCPDB. If the table contains
multiple entries or if it contains a single entry with an ambiguous blended code page, then
both options need to be set to ‘MDMP’. Otherwise both options need to be set to the code
page number listed in TCPDB.
20.07.2021 10
8 Runtime requirements
The following prerequisites must be fulfilled in order to run the DM on a host.
8.1 Java
JRE version 1.4.1 or higher
The environment variable JAVA_HOME must point to the JRE directory
For Export mode (Unicode/Non-Unicode and database type matching to the source
system):
o R3load
For Import mode (Unicode/Non-Unicode and database type matching to the target
system):
o R3load
For the Unicode executables also the Unicode shared libraries (libsapu16, icu libraries;
UCLIB.SAR package on http://service.sap.com/swdc) are required.
All shared libraries must be contained in the OS specific shared library search path (see
note 981133).
Note: Migration Monitor, Time Analyzer and Package Splitter come with the
DISTMON.SAR package.
20.07.2021 11
9 Configuration
The DM provides the following options. To specify an option in the command line, enter
‘-optionName optionValue’; in the application property file
distribution_monitor_properties.cmd, insert the new line ‘optionName=optionValue’.
All option names are case sensitive.
Additionally to the options, there are several configuration files that influence the DM
behaviour (e.g. table_splitter_tables.txt, unsorted_export.txt). DM looks in the working
directory for these configuration files and uses them if they are present.
20.07.2021 12
test Database test connect
- preparation/export mode
test connect to source DB
- import mode:
test connect to target DB
- display mode:
not available
The Preparation Mode should always be executed with the environment profile of
the source database.
20.07.2021 13
9.2.2 Preparation Mode – Export/Import command files
20.07.2021 14
SMIGR_CREATE_DDL Directory with SQL files
generated by report
SMIGR_CREATE_DDL
(notes: 777024 (6.20),
771209 (6.40), 888210
(7.00))
These SQL files are copied
to DB/<dbtype> subdirectory
of <hostname>.dataDirs
before import (they are
evaluated by R3load during
import)
- file
(read package list from
file
unsorted_export.txt)
- separate
(all tables that are put
into separate packages)
If option is not specified
and file
unsorted_export.txt exists,
package list is taken from
this file.
Note:
For unsorted export
DDL<dbtype>_LRG.TPL
template file is required.
20.07.2021 15
parallel_index_import read package list Packages for which index
from file creation should be
parallel_index.txt parallelized during import.
Reason:
Speed up index creation for
large tables
Possible values:
- none
- file (read package list
from file
parallel_index.txt)
- separate (all tables that
are put into separate
packages)
If option is not specified
and file
parallel_index.txt exists,
package list is taken from
this file.
Note:
For parallel index creation
during import
DDL<dbtype>_LRG.TPL
template file is required.
Currently only supported by
Oracle database
20.07.2021 16
Filename Mandatory Description
20.07.2021 17
9.2.3 Preparation Mode – Export/Import command files - host specific
20.07.2021 18
<hostname.dataDirs>/
<hostname>. importInstallDir Directory where the R3load
importInstallDir TSK and log files will be
written. Must exist and must
be readable and writable for
this machine.
20.07.2021 19
Default expects R3szchk reachable via
PATH environment variable
Note: In case of performance problems with R3szchk on Oracle databases use note
558746.
20.07.2021 20
Filename Mandatory Description
Note: for availability of R3ta tool see note 952514 “Using the table splitting feature”
20.07.2021 21
parallelR3ta 1 Number of parallel R3ta processes.
20.07.2021 22
Filename Mandatory Description
20.07.2021 23
Option name Mandatory Default Description
20.07.2021 24
10 Preparation Mode
10.1 General
During the preparation phase the DM gets called in preparation mode on one machine.
The following subdirectories will be created during the preparation phase:
It is possible to repeat the preparation phase as often as needed, e.g. when the default split
options need to be changed. This can be done by editing the
package_splitter_cmd.properties file.
You can skip the generation of some of the control files by using the option -skipR3ldctl
(skipR3ldctl= ) or -skipR3szchk (skipR3szchk= ). This is done when the files are already
available from previous runs. It is possible to pass a directory with the skip options. This
needs to be done when the control files are not located in the commDir R3ldctl/R3szchk
subdirectory.
At the end of the preparation phase a signal file <hostname>.SGN for each machine is
written to <commDir>.
20.07.2021 25
Note: Once the export started no more changes should be made.
In the following you can see the program flow chart for the preparation mode:
hostNam Create machine
es commDir\HOSTNAM
subdirectories E
commDir\HOSTNAM
Machine Generate export_monitor_cmd.prop
E\
specific Migration erties
information Monitor import_monitor_cmd.prop
Properties erties
Call R3ldctl commDir\R3ldctl\*.ST
R
commDir\R3ldctl\*.TP
L
*.STR Call
R3szchk commDir\R3szchk\*.EX
T
commDir\Pk Distribute
gSplit\*.STR Workload commDir\HOSTNAME\*.S
TR
20.07.2021 26
o <commDir>\str_splitter_properties.txt
o <commDir>\separately_packaged_tables.txt
o <commDir>\split_tables.txt
It is possible to use the new DDL<DBTYPE>.TPL file also for the export since the
table-tablespace mapping contained in this file is only used during the import, it is not
used during the export.
20.07.2021 27
11 Export Mode
11.1 General
The export_monitor_cmd.properties file will be copied from commDir\HOSTNAME to
the local working directory. Those properties are then used to start the Migration Monitor
in export mode. After the Migration Monitor export is finished the Time Analyzer is
called to provide an overview of package and table processing times.
You can check the database connect environment before starting the export by using the
testconnect option “-test”. If additional environment variables need to be set, it is possible
to pass them in a file via the profile option. When the export is finished the log files are
copied to the commDir\HOSTNAME directory. The Time Analyzer results are copied
directly to the commDir\export_time_<HOSTNAME>.html.
It is possible to repeat the export of packages. For this purpose you can change the status
in the export state properties file, please view 8.2.1. Export State Properties. To repeat the
export just call the DM the same way again, e.g. distribution_monitor.bat –e –profile
export_profile.txt.
20.07.2021 28
11.3 Export State Properties
The export state file contains package state lines such as the following:
SAPUSER=?
The format of the lines is <PACKAGE>=<STATE>. The possible values for state are as
follows:
20.07.2021 29
12 Import Mode
12.1 General
The import_monitor_cmd.properties file will be copied from commDir\HOSTNAME to
the local working directory. Those properties are then used to start the Migration Monitor
in import mode. After the Migration Monitor import is finished the Time Analyzer is
called to provide an overview of package and table processing times.
You can check the database connect environment before starting the import by using the
testconnect option “-test”. If additional environment variables need to be set, it is possible
to pass them in a file via the profile option. When the import is finished the log files are
copied to the commDir\HOSTNAME directory. The TimeAnalyzer results are copied
directly to the commDir\import_time_<HOSTNAME>.html.
It is possible to repeat the import of packages, e.g. when a tablespace overflow occurred.
Therefore you can change the status in the import state property, please view 9.1.1.
Import State Properties. To repeat the import just call the DM the same way again, e.g.
distribution_monitor.bat –i –profile import_profile.txt.
The import of the SAPVIEW package is controlled automatically. The last importing
machine will call R3load directly to handle the SAPVIEW.STR file of the
commDir/Sapview directory.
20.07.2021 30
12.3 Import State Properties
Both the import state file contains package state lines such as the following:
SAPUSER=+
The format of the lines is <PACKAGE>=<STATE>. The possible values for state are as
follows:
0 Package import not yet started.
? Package import in progress.
- Package import finished with errors.
20.07.2021 31
13 Display Mode
You can start the DM in display mode any time. A GUI session comes up with a
overview panel and a panel for each machine and with the list of packages involved in the
system copy.
The overview panel shows you the rough overview information on source and target
system and the involved machines.
The machine panel is called as the machines hostname. It tells you
export and import state.
export and import processing times
On a Unix system please make sure that the DISPLAY environment variable is set
correctly.
To refresh the display please select Status -> Refresh. Only the active panel will be
refreshed.
o <commDir>\<HOSTNAME>\export_state.properties
o <commDir>\<HOSTNAME>\import_state.properties
o <commDir>\distribution.status
o <commDir>\<HOSTNAME>.SGN
o <commDir>\export_time_<HOSTNAME>.txt
o <commDir>\import_time_<HOSTNAME>.txt
o distribution_monitor_display.log
o DistributionMonitor.console.log
20.07.2021 32
13.4 Package states
The state view for export and import shows the following information:
Note:
Total = Initial + Running + Completed + Failed
is not always true
- Initial, Running, Completed and Failed are 0 until running Distribution Monitor
import/export transfers status information to <commDir> for the first time
- A package is not counted for import before export is completed (the package is
not initial since it is not ready for importing)
20.07.2021 33
14 Integration into the SAPinst Copy Procedure
14.1 Export
The export preparation task (R3ldctl, R3szchk, package splitting, table splitting) are done
during distribution monitor preparation. So SAPinst is not needed for export.
14.2 Import
14.2.1 NW2004s
1. Install the Database instance and the Central Instance.
Attention: If you want to start the installation of the target system before the
export of the source system has been started, make sure that at least the files
<importDir>/LABEL.ASC
<importDir>/DB/<your database>/DBSIZE.{TPL|XML}
<importDir>/DB/DDL<your database>.TPL
exist and contain the correct data.
2. Select the SAPinst option “Installation using Migration Monitor”.
3. After the exit step, stop SAPinst.
4. Start the DM Import.
5. After all packages have been loaded successfully, restart the installation tool and
finish the installation. <commDir>/SapinstImport contains collection of all
STR and TSK files so that SAPinst can check successful load.
14.2.2 NW04 SR 1
1. Install the Central Instance.
2. Run the installation of the Database Instance.
Attention: If you want to start the installation of the target system before the
export of the source system has been started, make sure that at least the files
<importDir>/LABEL.ASC
<importDir>/DB/<your database>/DBSIZE.{TPL|XML}
<importDir>/DB/DDL<your database>.TPL
exist and contain the correct data.
3. Select the SAPinst option “Installation using Migration Monitor”.
4. After the exit step, stop SAPinst.
5. Start the DM Import.
6. After all packages have been loaded successfully, restart the installation tool and
finish the installation. <commDir>/SapinstImport contains collection of all
STR and TSK files so that SAPinst can check successful load.
20.07.2021 34
14.2.3 WebAS 6.20
Please check note 857734, it might be possible to use NW 04 SR 1 tools. Otherwise
1. Install the Central Instance.
2. Run the installation of the Database Instance.
Attention: If you want to start the installation of the target system before the
export of the source system has been started, make sure that at least the files
<importDir>/LABEL.ASC
<importDir>/DB/<your database>/DBSIZE.{TPL|XML}
<importDir>/DB/DDL<your database>.TPL
exist and contain the correct data.
3. Interrupt the installation after all files are copied to the installation directory.
4. Modify the file control.xml
SAPinst
a) Add an exit step as a follow-on step to the component that is
processed immediately before the database load.
b) Remove the subcomponent call of DatabaseLoad from the
CSAPComponent.
5. Restart the installation from the installation directory.
6. After the exit step, you can start the DM Import.
7. After all packages have been loaded successfully, restart the installation tool
and finish the installation. <commDir>/SapinstImport contains collection
of all STR and TSK files so that SAPinst can check successful load.
20.07.2021 35
15 Explanation of warning messages
16 Error analysis
See note 989116.
20.07.2021 36
17 Failure and Redo Scenarios
When a conversion or parts of it failed, you can take appropriate action and repeat the
conversion or parts of it. The following table shows some failure scenarios and possible
actions.
Repeating steps of a conversion requires modification of R3load and/or Migration
Monitor status information.
Note:
Restarting the conversion is only safe, if neither source nor target system have been
started in the meantime. Otherwise you either have to be sure, that the data that belong to
the restarted package have not been touched in the source and target system or you have
to redo the complete conversion.
The conversion of nametab package can be repeated, if neither in the source, nor in the
target system dictionary changes have been done and no transports have been applied.
Scenario: Reaction:
1. Repeat export/import of a failed After fixing the cause of the problem, determine
package P after DistMon is finished host (H) converting P.
2. Repeat export/import of package P After fixing the cause of the problem, determine
on which R3load terminated host (H) converting P.
irregularly (either due to a core dump Merge P .TSK and P .TSK.bck files as
or R3load process aborted by the described in note 455195.
user) after DistMon is finished Then restart DistMon on this host
Scenario 2 can be distinguished from TSK.bck files contain package status before
scenarion 1 by the existence of R3load was started, TSK file contains status of
<package>.TSK.bck files. package parts that have been processed.
R3load refuses to export/import while
TSK.bck files exist.
20.07.2021 37
Change task file status, in file P.TSK in
directories dataDir/exportInstallDir and
importInstallDir, from ok to err.
From the export data directory delete data files
(P.00*) and table of content file (P.TOC) of P.
On H restart export (DM -e) and import (DM -i)
with parameters of original conversion.
20.07.2021 38
command line that is used by MigMon to call
R3load.
7. Host H fails; all exports and imports Find replacement host HH.
that ran on H are affected.
Install the DM on HH.
distribution_monitor_cmd.properties:
Status information local on H is
unavailable. enter commDir and hostnames
In commDir/HH:
- remove export and import install directories;
per default: exportInstallDir,
importInstallDir;
- adapt export_monitor_cmd.properties
for HH ; same for
import_monitor_cmd.properties
Create commDir/HH.SGN
8. Completely reset DistMon results Drop all tables and views from target database
(e.g. to repeat a test conversion) run DistMon –i –cleanAll and DistMon –e –
cleanAll on all hosts
run DistMon –p –cleanAll on preparation host
20.07.2021 39
Appendix A – Environment for database connection
A.1 DB6
The database client software is available on a machine, but the database connection to the
source and target system is not set up yet. You must catalog nodes for the remote servers
of the databases first, afterwards catalog the databases at the corresponding node. When
the source and the target database have the same SID, then one of them needs to be
cataloged using an alias that is different from the SID. In the example SID C11 is used.
Please make sure that the parameter DB2DBDFT is set to this alias in the profile.
Here is a sample of the node creation statement for the database servers. The source
system with alias C11_NUC is located at host h0001; the target system with alias
C11_UC is located at host h0002.
CATALOG TCPIP NODE tcpsrc REMOTE h0001 SERVER 5912
REMOTE_INSTANCE db2prd;
CATALOG TCPIP NODE tcptrg REMOTE h0002 SERVER 5912
REMOTE_INSTANCE db2prd;
# Filename: export_profile
SAPSYSTEMNAME=C11
dbms_type=db6
DB2DB6_CONNECT_PASSWD=c11pw
DB2DBDFT=C11_NUC
DB6_DBSL_IGNORE_COLLATE_INFO=1
dbs_db6_schema=sapc11
DB2TEMPDIR=C:\PROGRA~1\IBM\SQLLIB\
DIR_LIBRARY=C:\conversion\exe_nuc
JAVA_HOME= C:\jdk1.4.2
A.2 Oracle
The database client software is available on a machine and the database connection to the
source and target system needs to be set up, but both use the same SID. Different names
for the databases can be specified in the tnsnames.ora file. Please make sure that the
same name is used to set the parameter dbs_ora_tnsname.
20.07.2021 40
Here is a sample tnsnames.ora file for a system called C11. The source system with
alias C11_NUC is located at host h0001; the target system with alias C11_UC is located
at host h0002.
<Shared library search path> means OS specific shared library search path (see note
981133).
# Filename: tnsnames.ora
#
C11_NUC.WORLD=
(DESCRIPTION =
(SDU = 32768)
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = h0001)
(PORT = 1529)
)
)
(CONNECT_DATA =
(SID = C11)
(GLOBAL_NAME = C11.WORLD)
)
)
C11_UC.WORLD=
(DESCRIPTION =
(SDU = 32768)
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = h0002)
(PORT = 1527)
)
)
(CONNECT_DATA =
(SID = C11)
(GLOBAL_NAME = C11.WORLD)
)
)
20.07.2021 41
Here is a sample export profile:
# Filename: export_profile
SAPSYSTEMNAME=C11
dbms_type=ORA
dbs_ora_tnsname=C11_NUC
ORACLE_SID=C11
ORACLE_BASE=/oracle
ORACLE_HOME=/oracle/C11/920_64
dbs_ora_schema=SAPR3
NLS_LANG=AMERICAN_AMERICA.WE8DEC
DIR_LIBRARY=/conversion/exe_nuc
JAVA_HOME=/usr/java14
<Shared library search path>=/usr/lib:/lib:/conversion/exe_nuc:<oracle
client dir>
The name of the environment variable <Shared library search path> is
platform dependent (e.g. PATH on Windows, LD_LIBRARY_PATH on most Unix
systems, LIBPATH on AIX)
20.07.2021 42
A.3 MS SQL Server
The database client software is available on a machine and the database connection to the
source and target system needs to be set up.
For example, the source system C11 is running on server h0001. It is possible to connect
via NT-User authentication or SQL-Login. Here is a sample export profile for the
connection to the source system using SQL-Login:
# Filename: export_profile
SAPSYSTEMNAME=C11
dbms_type=mss
NLS_LANG=AMERICAN_AMERICA.WE8DEC
DIR_LIBRARY=C:\conversion\exe_nuc
MSSQL_SERVER=h0001
MSSQL_DBNAME=C11
MSSQL_SCHEMA=c11
MSSQL_USEINTEGRATEDSECURITY=0
MSSQL_USER=user
MSSQL_PASSWD=pw
JAVA_HOME=C:\jdk1.4.2
SQL2005 users should check SAP note 734034 to avoid the connection error “You must
use SNAC to access SQL 9.0 or later.” (ERROR: DbSlConnect rc= 99).
A.4 MaxDB
The database client software is available on a machine and the database connection to the
source and target system needs to be set up.
20.07.2021 43
for optimized import (e.g. DDLDB2_LRG.TPL) you need to copy DDLDB2.TPL and
change as appropriate. This is necessary as in the database build phase only the file
DDLDB2.TPL is changed.
20.07.2021 44
Appendix B – Version History
Version 1.4.0
First version with general availability
Version 1.5.0
- Check if WHR files are consistent and cover table completely and that split
condition does not use more then one column (for performance reasons)
Manually created WHR files (not recommended) may fail the test
Check can be skipped with option -skipWhrChk
- Option -SMIGR_CREATE_DDL to support SQL files created by report
SMIGR_CREATE_DDL
- Directory <commDir>\SapinstImport with all STR and TSK files to show
SAPinst complete import state
- Time overview page for display mode
Version 1.6.0
- Support unsorted export and parallel index creation during import (by using of db
template DDL<dbtype>_LRG.TPL instead of DDL<dbtype>.TPL for certain
packages)
- Support sequential import of split tables
- Fix: table splitting for tables with ‘/’ in table name
- Fix: WHR file check accept numeric conditions
- Fix: WHR file check option –skipWhrChk during export was not working
- Fix: parameter dbCodepage was not working
- Fix: in cleanAll toUpper case conversion of host names was missing
Version 1.7.0
- Move default for export- and importInstallDir from commDir to local data
directory (to avoid NFS synchronisation problems)
- Fix: OrderBy for tables with ‘/’ in table name
- Fix: package ordering failed sometimes on packages with size 0 with message '/
by zero'
Version 1.7.1
- Wait 10 seconds between R3load task file creation and R3load import/export (to
avoid NFS synchronisation problems)
- Check TSK file consistency after MigMon finished
- Check if WHR files exists if option skipR3ta contains a value
- Fix: SAPVIEW was not imported if additional r3load arguments have been
supplied
20.07.2021 45
Version 1.8.0
- Calculation of package distribution
a) based on explicit description of package size (file pkgsize.txt)
b) based on results from previous run (option –timeDir)
c) based on EXT files
d) based on results from report UMG_R3LOAD_RUNTIME_PREDICTION
(note 857081; file DB02Packages.info)
Version 1.8.1
- Prevent multiple start of export and import on the same machine
- Prevent start of preparation during export and import
- Write orderBy file for import of tables
- Fix: orderBy for tables with slash in table name
Appendix C - References
SAP note 784118
Migration Monitor Users’ Guide
Java Split Tool Users’ Guide
Time Analyzer Users’ Guide
20.07.2021 46