System Copy for SAP Systems Based on the Application Server ABAP
Total Page:16
File Type:pdf, Size:1020Kb
Operations Guide | PUBLIC Software Provisioning Manager 1.0 SP32 Document Version: 3.7 – 2021-06-21 System Copy for SAP Systems Based on the Application Server ABAP of SAP NetWeaver 7.3 EHP1 to 7.52 on UNIX Target Databases: SAP ASE; SAP MaxDB; Oracle; IBM Db2 for z/OS; IBM Db2 for Linux, UNIX, and Windows company. All rights reserved. All rights company. affiliate THE BEST RUN 2021 SAP SE or an SAP SE or an SAP SAP 2021 © Content 1 Homogeneous and Heterogeneous System Copy................................... 10 1.1 About Software Provisioning Manager 1.0............................................11 1.2 SAP Products Based on SAP NetWeaver 7.3 EHP1 to 7.52 Supported for System Copy Using Software Provisioning Manager 1.0 ................................................12 1.3 New Features...............................................................13 1.4 Naming Conventions..........................................................18 1.5 Constraints................................................................20 1.6 Accessing the Installation Guides.................................................21 1.7 Accessing the SAP Library......................................................22 2 Planning..................................................................23 2.1 Before You Start.............................................................23 2.2 Use Cases for System Copy.....................................................24 2.3 System Copy Methods........................................................ 25 2.4 Creating a System Copy Plan....................................................26 2.5 Basic Planning Aspects and Parameters............................................27 2.6 System Copy and Migration Optimization...........................................30 Database Tuning ..........................................................31 Sorted Versus Unsorted Unload............................................... 32 Package Splitting..........................................................33 Table Splitting............................................................34 R3load Options...........................................................36 Migration Monitor......................................................... 37 Distribution Monitor........................................................37 Defining the Unload/Load Order...............................................38 Database-Specific Central Notes...............................................38 3 Preparation............................................................... 39 3.1 General Technical Preparations ..................................................39 3.2 Product-Specific Preparations...................................................41 3.3 Preparing the Media Required for Performing the Export................................ 43 Downloading and Extracting the Software Provisioning Manager 1.0 Archive................43 Downloading Dedicated Kernel Archives for the Export...............................45 4 Database Independent System Copy............................................ 47 4.1 System Copy Procedure.......................................................48 Generating DDL Statements..................................................54 Using a Dedicated Kernel for the Export..........................................55 System Copy for SAP Systems Based on the Application Server ABAP of SAP NetWeaver 7.3 EHP1 to 7.52 on UNIX 2 PUBLIC Content Preparing the Table Split.....................................................55 Preparing Parallel Export and Import............................................59 Exporting the Source System.................................................60 Setting Up the Target System.................................................82 5 Database-Specific System Copy................................................88 5.1 Oracle-Specific Procedure......................................................90 Performing Online or Offline Recovery with “saphostctrl”..............................91 Using a CONTROL.SQL File Created by the ORABRCOPY Tool..........................93 Creating a Backup........................................................102 5.2 SAP MaxDB-Specific Procedure.................................................103 5.3 IBM Db2 for Linux, UNIX, and Windows-Specific Procedures.............................106 5.4 IBM Db2 for z/OS Specific Procedures.............................................111 Step 1: Check the Source System and Stop it after Successful Check.....................112 Step 2: Consider DB2 Procedures of the Target System.............................. 114 Step 3: Delete All Obsolete Objects of the Target System............................. 114 Step 4: Copy All Objects of the Source System into the Target System....................114 Step 5: Add All DB2 Subsystem Libraries to a PARMLIB Containing Definitions Required for APF...................................................................114 Step 6: Alter the BSDS of the Target System......................................115 Step 7: Change Entries of logcopy Data Sets in the BSDS of the Target System..............115 Step 8: Customize DB2 Modules Using DSNTIJUZ..................................115 Step 9: Configure the Distributed Data Facility (DDF)................................116 Step 10: Start the Target System Using ACCESS(MAINT).............................116 Step 11: Update the DB2 Catalog Using CATMAINT UPDATE VCAT SWITCH................116 Step 12: Stop and Restart the Target System......................................116 Step 13: Create DSNTEP2 and DSNTEP4 Load Modules for the Target System..............117 Step 14: Alter All WLM Environments of Stored Procedures............................117 Step 15: Perform Post-Offline System Copy Actions (Optional)......................... 117 5.5 SAP ASE Server-Specific Procedure.............................................. 118 6 Copying Single Instances Only................................................120 6.1 Copying the Primary Application Server Instance Only..................................121 6.2 Copying the Database Only – Move Database Instance.................................121 6.3 Copying the Database Only – Refresh Database Instance............................... 123 6.4 Copying the Database Only - Refresh Database Content................................124 Copying the Database Only - Refresh Database Content on SAP ASE.....................125 Copying the Database Only - Refresh Database Content on IBM Db2 for Linux, UNIX, and Windows...............................................................129 Copying the Database Only - Refresh Database Content on Oracle Database...............134 Copying the Database Only - Refresh Database Content on IBM Db2 for z/OS.............. 136 Copying the Database Only - Refresh Database Content on SAP MaxDB...................137 System Copy for SAP Systems Based on the Application Server ABAP of SAP NetWeaver 7.3 EHP1 to 7.52 on UNIX Content PUBLIC 3 7 Database Migration Option Preparation.........................................140 7.1 Preparing Target Database SAP ASE..............................................140 7.2 Preparing Target Database IBM Db2 for Linux, UNIX, and Windows.........................142 7.3 Preparing Target Database SAP MaxDB............................................144 7.4 Preparing Target Database Oracle................................................146 8 Follow-Up Activities........................................................ 148 8.1 Performing Follow-Up Activities in the Source System..................................148 8.2 Performing Follow-Up Activities in the Target System..................................149 Installing the SAP License Key................................................149 SAP Solution Manager: Connection Between SLD and LMDB..........................150 Performing Follow-Up Activities for ABAP........................................150 Checking the Database Parameters for IBM Db2 for Linux, UNIX, and Windows.............159 Performing Jobhead Correction after Homogeneous System Copy......................160 9 Additional Information...................................................... 161 9.1 R3load Procedures Using the Migration Monitor......................................161 About the Migration Monitor.................................................162 Configuration............................................................163 Assigning DDL Files to Packages.............................................. 177 Defining Groups of Packages.................................................177 Processing Split Tables.....................................................178 Starting the Migration Monitor............................................... 180 Using the “migmonCtrl” Add-On for the Export....................................185 Output Files.............................................................187 Installing the Target System Using the Migration Monitor.............................188 9.2 Analysis of the Export and Import Times...........................................189 9.3 Table Comparison with Software Update Manager....................................189 Restrictions.............................................................190 Modes of the Table Comparison Tool...........................................190 Using the Table Comparison Tool..............................................191 9.4 Using the Package Splitter.....................................................193