SYSTEM COPY & MIGRATION

OPTIMIZATION

This document lists several methods that can be used to optimize the standard system copy procedure. Database Tuning Sorted Versus Unsorted Unload Package Splitting Table Splitting R3load Options Migration Monitor Distribution Monitor Defining Unload/Load Order For more information about MS SQL Server-specific migration optimization options, see SAP Note 1054852 (Recommendations for migration to MS SQL Server).

DATABASE TUNING
This is just a list of database parameters which could help you to tune the database. This list is not meant to give you detailed recommendations about the parameter settings!

DATABASE TUNING MEASURES - DB2/OS390:
Create indexes deferred

DATABASE TUNING MEASURES - DB2 UDB FOR UNIX, WINDOWS
DB2 Optimization Techniques for SAP Database Migration And Unicode Conversion

DATABASE TUNING MEASURES - INFORMIX:
Usage of PDQPRIORITY

DATABASE TUNING MEASURES - ORACLE:
Links to information about tuning measures on external pages: o Oracle Tips on Quest Pipelines Homepage o Oracle Tips on Database Specialists Homepage o Oracle Newsletter on Quest Pipelines Homepage SAP Note 936441 (Oracle settings for R3load based system copy) Enlarge number and size of redo logs experiences from other pilot projects: add 4 additional redo logs of 100 MB each Enlarge number of db writers Enlarge temporary tablespace PSAPTEMP (~20-30 GB) Increase sort_area_size or use pga_* parameters Increase PSAPROLL (~20 GB)

com/swdc Support Packages and Patches Browse our Download Catalog 2 . The splitting was done by a Perl script called SPLITSTR. Add the unused main memory of non-running Application Server components to the database cache. depends on several factors. If a table can be exported unsorted. The consultant should discuss the pros and cons together with the customer and should only unload unsorted if the runtime of a sorted unload exceeds the downtime limits of the project. The Java-based tool can be used with the older releases as well. For more information. SORTED VERSUS UNSORTED UNLOAD During a system copy. splitting the files manually. For more information about influencing factors and about how to use an unsorted export earlier than NW 2007. In general. code page conversion. much more powerful tool. this script is replaced by a Java-based. PSAPTEMP) DISADVANTAGES: Import (index creation) is slower Data is created more distributed/less reorganized in the database STR files have to be split in a certain way (special STR files for unsorted unload/load) No improvements for database performance May influence the behaviour of (badly written) customer programs RECOMMENDATION: Although there is one big advantage when you export the data unsorted – if possible – you have to consider the disadvantages as well. like target database.SAR can be downloaded from SAP Service Marketplace at http://service.SAP DB / MAXDB General documentation about tuning measures of MaxDB version 7. If the export can be done without sorting the table data before exporting them depends on a lot of factors: ADVANTAGES: Export is faster No necessity to extremely enlarge tablespace for sorting (for example. As of SAP NetWeaver 2004 SR1. table type.5: MaxDB Performance Increase the parameter CACHE_SIZE to the maximum available size of main memory.User's Guide which is part of the tool archive. the data export can be done sorted or unsorted. The default setting is sorted.sap.0B SR1. then the consultant takes over the responsibility for supporting the resulting problems. unload as few tables as possible unsorted. Therefore we prefer to offer the unsorted export option only to experienced consultants. The archive SPLIT. see SAP Note 954268. If the unsorted unload is used in a way different from this description.PL. Increase the parameter MAXCPU to the maximum available number of processors to which the database system can distribute user tasks.DATABASE TUNING MEASURES . see the Package Splitter . PACKAGE SPLITTING The package splitting option is available and integrated into the system copy tools R3SETUP and SAPinst since SAP R/3 4.

DISADVANTAGES: If the parallel processing is not optimal or if the single packages are processed serial. . you therefore have to delete all data from this table and reload them all again! It may happen that the R3ta cores when processing a table. Under certain conditions it is recommended to create additional temporary indexes on the column used in the WHERE condition. we welcome any feedback which helps us to improve the tools. only the processing of the package with the error has to be repeated instead of (un)loading the complete table once again. If the export or import of a table aborts with an error. the complete processing time for one table may increase when using WHERE conditions. Many manual steps have to be performed. we cannot release this feature generally. but if you run into problems. this may not be feasible during productive operation (time consuming. The export and import of one table can be performed in parallel by starting several R3load processes to work on some packages in parallel. This may lead to problems when deleting parts of table data during restart. ATTENTION: As the usage of WHERE conditions requires a lot of experience and many manual steps and because there are still some problems not yet solved..Additional Components SYSTEM COPY TOOLS independent SPLIT_<ID>.40 or above.. 3 . with which a subset of table data can be accessed. SYSTEM COPY TOOLS <release> #OS TABLE SPLITTING For copying large tables. AVAILABILITY: Table splitting can be used for ABAP systems with SAP kernel 6. Depending on the database. you cannot claim for support or an immediate fix of the problem.). If the import of one package aborted with an error. You may use the feature ‘WHERE conditions’ and the tool R3ta and in many cases it will work without problems. Using WHERE conditions may not be optimal for every database management system and therefore has to be considered carefully.SAR. Nevertheless. The reason is still under investigation and there is no solution yet. KNOWN PROBLEMS: The sorting order may be different on non-Unicode source system and Unicode target system. These WHERE conditions are integrated into the R3load TSK files. the tool R3ta has been developed to automatically generate WHERE conditions. ADVANTAGES: Large tables are processed in many small packages. table locking. The creation and evaluation of WHERE conditions is an iterating process which requires some experience and some detailed database knowledge.

The generated WHERE conditions should not cover more than one column. run the tool again with different row-count parameters.40 for . but it is also possible to use the monitor for copying older releases by starting it manually. In addition.6D) or '-loadprocedure fast': These options are available from SAP kernel release 4.DB2/UDB (see SAP Note 1058437 .MSSQL .DB6: R3load options for compact installation) . DATABASE-SPECIFIC INFORMATION ABOUT TABLE SPLITTING: Oracle: SAP Note 1043380 (Efficient Table Splitting for Oracle Databases) MaxDB: SAP Note 1385089 (R3ta for table splitting with MaxDB) R3LOAD OPTIONS R3load option '-fast' (<= 4. you must be aware of the fact. The Migration Monitor will: Create R3load command files Create R3load task files if required Start the R3load processes to unload the data Transfer packages from the source to the target host if required Start the R3load processes to load the data as soon as a package is available 4 . If R3ta calculated conditions with more columns. the Migration Monitor is integrated into the SAPinst system copy tool. that a badly chosen WHERE condition can increase the total table processing time a lot. If the ‘WHERE conditions’ are used in a way different from this description. Informix).01. then the consultant takes over the responsibility for supporting the resulting problems.2008) MIGRATION MONITOR The Migration Monitor is a tool which helps you to perform and control the unload and load process during the system copy procedure. if your R3load has at least patch level 73 (compile date: 12.MSSQL from SAP kernel release 6. As of SAP NetWeaver 2004 SR1.Oracle (see SAP Note 1045847 .0B for . the consultant takes over the responsibility for the completeness of the data! You can often reduce the export time of a table which is processed with WHERE conditions if you create a (temporary) additional index on the column used within the WHERE condition. If you decide to create WHERE conditions manually (without the R3ta tool).Oracle Direct Path Load Support in R3load) R3load socket option: You can use the socket option.DB2/UDB . CAUTION: This may not be possible on databases that need exclusive access on the table when creating an index (for example.

According to their size (largest first. 5 . only for import). see SAP Note 855772. then move the STR files from the <export dump>/DATA directory to a different one and copy them back to the DATA directory in the order they should be processed. DEFINING UNLOAD/LOAD ORDER R3SETUP will process the packages according to the modification date of the STR files. In custom order.SAR. The archive MIGMON. The Migration Monitor has a property orderBy to specify the order of processing packages. For more information. DISTRIBUTION MONITOR You can use the Distribution Monitor to speed up Unicode Conversion by distributing the R3load workload to multiple machines. SAPinst presents a dialog on which you can choose how to process the packages: In alphabetical order. If you have certain requirements regarding the export and/or import.Inform the person performing the system copy in case of errors For more information.com/swdc Support Packages and Patches Browse our Download Catalog Additional Components SYSTEM COPY TOOLS SYSTEM COPY TOOLS <release> #OS independent MIGMON_<ID>. see SAP Note 784118 (System Copy Java Tools) and the Migration Monitor User's Guide which is part of the tool archive.sap.SAR can be downloaded from SAP Service Marketplace at http://service.

RACF. R/3. iSeries. . WinFrame. S/390. Outlook. i5/OS. BladeCenter. Xcelsius. Inc. OS/400. if any. System z9. POWER5.Copyright © Copyright 2012 SAP AG. GPFS. MVS/ESA. Program Neighborhood. Crystal Reports. System Storage. System i5. z10. System p5. Parallel Sysplex. ByDesign. zSeries. Citrix. Intelligent Miner. without representation or warranty of any kind. Business Objects and the Business Objects logo. OS/2. Acrobat. and other countries. Massachusetts Institute of Technology. Netfinity. Microsoft. Crystal Decisions. HTML. SAP Business ByDesign. Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. System p. World Wide Web Consortium. and Motif are registered trademarks of the Open Group.S. in the United States and in other countries. Adobe. PostScript. DB2. System z10. XHTML and W3C are trademarks or registered trademarks of W3C®. Linux is the registered trademark of Linus Torvalds in the U. XML. Duet. PowerPC. HACMP. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services. These materials are subject to change without notice. Java is a registered trademark of Sun Microsystems. VideoFrame. z9. PowerVM. and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Redbooks. the Adobe logo. and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S. used under license for technology invented and implemented by Netscape. Inc. WebSphere. Data contained in this document serves informational purposes only. System x. Web Intelligence. POWER6. POWER5+. z/VM. DB2 Universal Database. BusinessObjects. BatchPipes.. POWER. and SAP Group shall not be liable for errors or omissions with respect to the materials. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. X/Open. UNIX. IBM. ICA. MetaFrame. Windows. AIX. OS/390. Nothing herein should be construed as constituting an additional warranty. SAP. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. All other product and service names mentioned are the trademarks of their respective companies. Power Architecture. OSF/1. Inc. National product specifications may vary. JavaScript is a registered trademark of Sun Microsystems. PartnerEdge. and PowerPoint are registered trademarks of Microsoft Corporation.A. S/390 Parallel Enterprise Server. System i. and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only. xSeries. Excel. eServer. z/OS. AS/400. System z. DB2 Connect. Business Objects is an SAP company. OpenPower. pSeries. POWER6+. Oracle is a registered trademark of Oracle Corporation. All rights reserved. RETAIN. and MultiWin are trademarks or registered trademarks of Citrix Systems. SAP NetWeaver.