Vous êtes sur la page 1sur 7

System Copy for SAP

Systems Based on SAP


NetWeaver 2004s SR2
ABAP
Target Audience

n System administrators
n Technology consultants
Document version: 1.0 12/04/2006
SAP AG
Dietmar-Hopp-Allee 16
69190 Walldorf
Germany
T +49/18 05/34 34 34
F +49/18 05/34 34 20
www.sap.com

Copyright 2007 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, Outlook, and PowerPoint are
registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex,
MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries,
pSeries, xSeries, zSeries, System i, System i5, System p,
System p5, System x, System z, System z9, z/OS, AFP,
Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix,
i5/OS, POWER, POWER5, POWER5+, OpenPower and
PowerPC are trademarks or registered trademarks of IBM

Corporation.
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.
MaxDB is a trademark of MySQL AB, Sweden.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP
NetWeaver, 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 in several
other countries all over the world. 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.
This document was created using stylesheet 2006-12-31
(V5.1) and XSLT processor SAXON 6.5.2 from Michael Kay
(http://saxon.sf.net/), XSLT version 1.
Disclaimer

Some components of this product are based on Java. Any


code change in these components may cause unpredictable
and severe malfunctions and is therefore expressively
prohibited, as is any decompilation of these components.
Any Java Source Code delivered with this product is
only to be used by SAPs Support Services and may not be
modified or altered in any way.
Documentation in the SAP Service
Marketplace

You can find this document at the following address:


https://service.sap.com/instguides

2/120 PUBLIC 12/04/2006

Typographic Conventions
Example Description

Angle brackets indicate that you replace these words or characters with
appropriate
<>

entries to make entries in the system, for example, Enter your

<User Name>.

Arrows separating the parts of a navigation path, for example, menu options
Example Emphasized words or expressions
Example

Words or characters that you enter in the system exactly as they appear in

the
documentation

Example

Textual cross-references to an internet address, for example,

http://www.sap.com

Quicklinks added to the internet address of a homepage to enable quick


access to
/example

specific content on the Web


123456 Hyperlink to an SAP Note, for example, SAP Note 123456
Example n Words or characters quoted from the screen. These include field labels,
screen titles,
pushbutton labels, menu names, and menu options.
n Cross-references to other documentation or published works
Example

n Output on the screen following a user action, for example, messages

n Source code or syntax quoted directly from a program


n File and directory names and their paths, names of variables and parameters, and
names of installation, upgrade, and database tools
Technical names of system objects. These include report names, program
names,
EXAMPLE

transaction codes, database table names, and key concepts of a programming


language
when they are surrounded by body text, for example,
EXAMPLE

SELECT

and

INCLUDE

Keys on the keyboard

12/04/2006 PUBLIC 3/120

Document History
Caution

Before you start the implementation, make sure you have the latest version
of this document. You
can find the latest version on SAP Service Marketplace
http://service.sap.com/instguides.
The following table provides an overview on the most important document
changes:
Version Date Description

1.00 12/4/2006 Initial Version


4/120 PUBLIC 12/04/2006

Table of Contents

Chapter 1 Homogeneous and Heterogeneous System Copy for SAP Systems


Based
on SAP NetWeaver 2004s SR2 . . . . . . . . . . . . . . . . . 9
Chapter 2 Planning . . . . . . . . . . . . . . . . . . . . . . . . . 13
Chapter 3 Preparations . . . . . . . . . . . . . . . . . . . . . . . . 17
3.1 General Preparations . . . . . . . . . . . . . . . . . . . . . 17
3.2 Technical Preparations . . . . . . . . . . . . . . . . . . . . 19
3.3 Installing the Java Runtime Environment . . . . . . . . . . . . . 21
Chapter 4 System Copy Process . . . . . . . . . . . . . . . . . . . . 23
4.1 Database-Specific System Copy . . . . . . . . . . . . . . . . . 23
4.1.1 Oracle-Specific Procedure . . . . . . . . . . . . . . . . . . . 25
4.1.1.1 Generating the Control File Structure . . . . . . . . . . . . . . . 26
4.1.1.2 Creating an Offline Backup . . . . . . . . . . . . . . . . . . . 30
4.1.1.3 Preparing the Target System . . . . . . . . . . . . . . . . . . 30
4.1.1.4 Restoring the Database Files on the Target System . . . . . . . . . . 33
4.1.2 MS SQL Server-Specific Procedure . . . . . . . . . . . . . . . . 34
4.1.3 IBM DB2 UDB for UNIX and Windows Specific Procedures . . . . . . . 35
4.1.4 IBM DB2 for z/OS Specific Procedures . . . . . . . . . . . . . . . 38
4.1.4.1 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.1.4.2 Additional Information . . . . . . . . . . . . . . . . . . . . 40
4.1.4.2.1 Step 1: Check Consistency . . . . . . . . . . . . . . . . . . . 40
4.1.4.2.2 Step 3: Run SQL Statements in the Source System . . . . . . . . . . 41
4.1.4.2.2.1 SQL Statement Number 01 . . . . . . . . . . . . . . . . . . . 41
4.1.4.2.2.2 SQL Statement Number 02 . . . . . . . . . . . . . . . . . . . 41
4.1.4.2.2.3 SQL Statement Number 03 . . . . . . . . . . . . . . . . . . . 42
4.1.4.2.2.4 SQL Statement Number 04 . . . . . . . . . . . . . . . . . . . 43
4.1.4.2.2.5 SQL Statement Number 05 . . . . . . . . . . . . . . . . . . . 44
4.1.4.2.2.6 SQL Statement Number 06 . . . . . . . . . . . . . . . . . . . 44

4.1.4.3 SQL Statement Number 07 . . . . . . . . . . . . . . . . . . . 46


4.1.4.4 SQL Statement Number 08 . . . . . . . . . . . . . . . . . . . 46
4.1.4.5 SQL Statement Number 09 . . . . . . . . . . . . . . . . . . . 47
4.1.4.6 Step 5: Printing the Bootstrap Data Sets . . . . . . . . . . . . . . 48
4.1.4.7 Step 6: Making Copies of Source Data Sets . . . . . . . . . . . . . 49
12/04/2006 PUBLIC 5/120

4.1.4.8 Step 7: Creating the Target System . . . . . . . . . . . . . . . . 49


4.1.4.9 Step 8a: Changing the Bootstrap Data Sets (BSDS) . . . . . . . . . . 49
4.1.4.10 Step 8b: Start the Target System . . . . . . . . . . . . . . . . . 50
4.1.4.11 Step 8c: Creating a New STOGROUP Using the HLQ of the Target
System . . 51
4.1.4.12 Step 8d: Stopping Index Spaces . . . . . . . . . . . . . . . . . 51
4.1.4.13 Step 8e: Changing the User-Defined Indexes in the DB2 Catalog . . . .
. 51
4.1.4.14 Step 8f: Restart the Index Spaces . . . . . . . . . . . . . . . . . 51
4.1.4.15 Step 8g: Creating the Temporary Files for the DB2 Target System . . .
. . 51
4.1.4.16 Step 8h: Implementing HLQ of the Target System in the Work File
Database . 52
4.1.5 IBM DB2 for iSeries Specific Procedure . . . . . . . . . . . . . . . 53
4.1.6 MaxDB-Specific Procedure . . . . . . . . . . . . . . . . . . . 54
4.2 Database Independent System Copy . . . . . . . . . . . . . . . 56
4.2.1 System Copy Procedure on UNIX . . . . . . . . . . . . . . . . 57
4.2.2 System Copy Procedure on Windows . . . . . . . . . . . . . . . 59
4.2.3 System Copy Procedure on IBM eServer iSeries . . . . . . . . . . . 60
4.2.3.1 Preparing the Windows Host for the SAP System Installation . . . . . .
61
4.2.3.2 Preparing a Windows User Account and iSeries User Profile . . . . . . .
62
4.2.3.3 Installing TMKSVR and Creating an Installation Share . . . . . . . . 62

4.2.4 Generating DDL statements . . . . . . . . . . . . . . . . . . 64


4.2.5 Preparation for Table Splitting . . . . . . . . . . . . . . . . . . 65
4.2.6 Preparing the Export . . . . . . . . . . . . . . . . . . . . . 68
4.3 Exporting the Source System Using SAPinst . . . . . . . . . . . . . 68
4.3.1 Running SAPinst on UNIX to Perform the Export . . . . . . . . . . 69
4.3.2 Running SAPinst on Windows to Perform the Export . . . . . . . . . 74
4.3.3 Running SAPinst on IBM eServer iSeries to Perform the Export . . . . . 79
4.3.4 Restarting R3load Processes . . . . . . . . . . . . . . . . . . 83
4.4 Setting Up the Target System . . . . . . . . . . . . . . . . . . 83
4.4.1 Installing the Target System . . . . . . . . . . . . . . . . . . 84
Chapter 5 Follow-Up Activities . . . . . . . . . . . . . . . . . . . . 87
5.1 Performing Follow-Up Activities in the Source System . . . . . . . . . 87
5.2 Performing Follow-Up Activities in the Target System . . . . . . . . . 87
5.2.1 Performing Follow-Up Activities for ABAP . . . . . . . . . . . . . 87
Chapter 6 Additional Information . . . . . . . . . . . . . . . . . . . 93
6.1 R3load Procedures Using the Migration Monitor . . . . . . . . . . . 93
6.1.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . 93
6.1.2 Assigning DDL Files to Packages . . . . . . . . . . . . . . . . . 101
6.1.3 Defining Groups of Packages . . . . . . . . . . . . . . . . . . 102
6.1.4 Processing Split Tables . . . . . . . . . . . . . . . . . . . . 102
6.1.5 Starting the Migration Monitor . . . . . . . . . . . . . . . . . 104
6.1.6 Output Files . . . . . . . . . . . . . . . . . . . . . . . . 109
6/120

Vous aimerez peut-être aussi