You are on page 1of 6

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)

DATABASE TUNING MEASURES - SAP DB / MAXDB


General documentation about tuning measures of MaxDB version 7.5: MaxDB Performance Increase the parameter CACHE_SIZE to the maximum available size of main memory. Add the unused main memory of non-running Application Server components to the database cache. Increase the parameter MAXCPU to the maximum available number of processors to which the database system can distribute user tasks.

SORTED VERSUS UNSORTED UNLOAD


During a system copy, the data export can be done sorted or unsorted. The default setting is sorted. 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, 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. Therefore we prefer to offer the unsorted export option only to experienced consultants. 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. In general, unload as few tables as possible unsorted. If a table can be exported unsorted, depends on several factors, like target database, table type, code page conversion. For more information about influencing factors and about how to use an unsorted export earlier than NW 2007, see SAP Note 954268. If the unsorted unload is used in a way different from this description, then the consultant takes over the responsibility for supporting the resulting problems.

PACKAGE SPLITTING
The package splitting option is available and integrated into the system copy tools R3SETUP and SAPinst since SAP R/3 4.0B SR1. The splitting was done by a Perl script called SPLITSTR.PL. As of SAP NetWeaver 2004 SR1, this script is replaced by a Java-based, much more powerful tool. The Java-based tool can be used with the older releases as well, splitting the files manually. For more information, see the Package Splitter - User's Guide which is part of the tool archive. The archive SPLIT.SAR can be downloaded from SAP Service Marketplace at http://service.sap.com/swdc Support Packages and Patches Browse our Download Catalog

Additional Components SYSTEM COPY TOOLS independent SPLIT_<ID>.SAR.

SYSTEM COPY TOOLS <release>

#OS

TABLE SPLITTING
For copying large tables, the tool R3ta has been developed to automatically generate WHERE conditions, with which a subset of table data can be accessed. These WHERE conditions are integrated into the R3load TSK files. Using WHERE conditions may not be optimal for every database management system and therefore has to be considered carefully.

AVAILABILITY:
Table splitting can be used for ABAP systems with SAP kernel 6.40 or above.

ADVANTAGES:
Large tables are processed in many small packages. If the export or import of a table aborts with an error, only the processing of the package with the error has to be repeated instead of (un)loading the complete table once again. The export and import of one table can be performed in parallel by starting several R3load processes to work on some packages in parallel.

DISADVANTAGES:
If the parallel processing is not optimal or if the single packages are processed serial, the complete processing time for one table may increase when using WHERE conditions. The creation and evaluation of WHERE conditions is an iterating process which requires some experience and some detailed database knowledge. Many manual steps have to be performed. Under certain conditions it is recommended to create additional temporary indexes on the column used in the WHERE condition. Depending on the database, this may not be feasible during productive operation (time consuming, table locking, ...).

KNOWN PROBLEMS:
The sorting order may be different on non-Unicode source system and Unicode target system. This may lead to problems when deleting parts of table data during restart. If the import of one package aborted with an error, 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. The reason is still under investigation and there is no solution yet.

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, we cannot release this feature generally. You may use the feature WHERE conditions and the tool R3ta and in many cases it will work without problems, but if you run into problems, you cannot claim for support or an immediate fix of the problem. Nevertheless, we welcome any feedback which helps us to improve the tools.

The generated WHERE conditions should not cover more than one column. If R3ta calculated conditions with more columns, run the tool again with different row-count parameters. If you decide to create WHERE conditions manually (without the R3ta tool), you must be aware of the fact, that a badly chosen WHERE condition can increase the total table processing time a lot. In addition, 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. CAUTION: This may not be possible on databases that need exclusive access on the table when creating an index (for example, Informix). If the WHERE conditions are used in a way different from this description, then the consultant takes over the responsibility for supporting the resulting problems.

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.6D) or '-loadprocedure fast': These options are available from SAP kernel release 4.0B for - DB2/UDB - MSSQL from SAP kernel release 6.40 for - DB2/UDB (see SAP Note 1058437 - DB6: R3load options for compact installation) - MSSQL - Oracle (see SAP Note 1045847 - Oracle Direct Path Load Support in R3load) R3load socket option: You can use the socket option, if your R3load has at least patch level 73 (compile date: 12.01.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. As of SAP NetWeaver 2004 SR1, the Migration Monitor is integrated into the SAPinst system copy tool, but it is also possible to use the monitor for copying older releases by starting it manually. 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

Inform the person performing the system copy in case of errors For more information, see SAP Note 784118 (System Copy Java Tools) and the Migration Monitor User's Guide which is part of the tool archive. The archive MIGMON.SAR can be downloaded from SAP Service Marketplace at http://service.sap.com/swdc Support Packages and Patches Browse our Download Catalog Additional Components SYSTEM COPY TOOLS SYSTEM COPY TOOLS <release> #OS independent MIGMON_<ID>.SAR.

DISTRIBUTION MONITOR
You can use the Distribution Monitor to speed up Unicode Conversion by distributing the R3load workload to multiple machines. For more information, see SAP Note 855772.

DEFINING UNLOAD/LOAD ORDER


R3SETUP will process the packages according to the modification date of the STR files. If you have certain requirements regarding the export and/or import, 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. SAPinst presents a dialog on which you can choose how to process the packages: In alphabetical order, In custom order, According to their size (largest first; only for import). The Migration Monitor has a property orderBy to specify the order of processing packages.

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

You might also like