29
SAP Installation and Database Copy: Latest Developments Uwe Specht Oracle Platforms SAP AG November 2009

SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAP Installation and Database Copy:Latest Developments

Uwe SpechtOracle Platforms

SAP AG

November 2009

Page 2: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Agenda

SAPinstExport and ABAP table splitterExport and Java table splitter

R3loadPerformance: cluster table splitting

OutlookR3szchkStorage-based system copyOracle 11g R2

© SAP 2009 / Page 2

Page 3: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinstExport and Table Splitters for ABAP & Java

R3loadPerformance: Cluster table splitting

AusblickR3szchk – Storage Based System Copy – Oracle 11g R2

Page 4: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – ABAP – Product catalog

© SAP 2009 / Page 4

Page 5: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Export Interactions

*.WHR, WHR.txt

DBSIZE.XML *.STR, *.00*, *.TOC

*.EXT

<Export-Verzeichnis>

ABAP JAVA

DATADB

ORA <DBTYPE>

© SAP 2009 / Page 5

Page 6: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – ABAP Dialog

F1-help

© SAP 2007 / Pa9e 6

Page 7: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Dialog

© SAP 2009/ Page 7

Page 8: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Dialog

© SAP 2009 / Page 8

Page 9: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – ABAP Step Phase

SAPinst:In the step phase,

the *.WHR filesand whr.txt

files are generated

© SAP 2009 / Page 9

Page 10: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPInst – ABAP Generated files

© SAP 2009 / Page 10

Page 11: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPInst – ABAP Table Splitter

SummarySAPinst generates R3load WHERE conditions for several R3loadprocesses on a tableSAPinst generates HINTS in the WHR filesNo new table calculation after changeABAP – MigMon automatically uses R3load where conditionsParallel export of individual tables is possible for all databasesSplitting by column is also possible for migration to another databasePL/SQLSplitter is available as of SAPinst 702Can also be used in a sqlplus environment

© SAP 2009 / Page 11

Page 12: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPInst – Restrictions on ROWID Splitting

Import only with loadprocedure-fast (default)Only for transparent tables– Exception: ROWID splitting for cluster tablesOnly for homogeneous copy from Oracle to Oracle

SAP Notes– 1043380: Efficient Table Splitting for Oracle Databases– 960280: R3load export tuning for split tables with oracle

© SAP 2009 / Page 12

Page 13: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Java – Product catalog

© SAP 2009 / Page 13

Page 14: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Java Export

© SAP 2007 / Page 14

*.XML, *.00*, *METADAT.001

<Export-Verzeichnis>

JAVA ABAP

SDMDB

ORA <DBTYPE>

JDMP

APPS TOOLS

DBSIZE.XML

Page 15: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Java Dialog

© SAP 2009 / Page 15

F1-help

Page 16: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Java Export Step Phase

© SAP 2009 / Page 16

SAPinst:In the step phase,

the Javaexport dumpis generated

Page 17: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPinst – Java Generated Files

© SAP 2009 / Page 17

Page 18: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

SAPInst – Java Table Splitter

SummarySAPinst generates jload WHERE conditions for several jloadprocesses on a tableJava-MigMon automatically uses jload WHERE conditionsSplitting possible for migrations to all databasesJava table splitter is available as of SAPinst 702

© SAP 2009 / Page 18

Page 19: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

R3loadPerformance: Cluster table splitting

SAPinstExport und TableSplitter ABAP & Java

AusblickR3szchk – Storage Based System Copy – Oracle 11g R2

Page 20: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

R3load: Cluster Table Splitting

Pilot projectSpecial R3load of cluster tables not automatically sorted

– option –noclustersortPL/SQLSplitter generates n-1 packets unsorted and one packetsorted on the primary key

– Why?– Cluster rows with subsequent rows must be sorted for the

unload– If cluster tables only have a few subsequent rows, the high

administrative overhead is not justifiedProblem: it is only possible to identify faulty imported cluster tableslater, when the application is started

© SAP 2009 / Page 20

Page 21: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

OutlookR3szchk – Storage-Based Copy – Oracle 11g R2

SAPinstExport und TableSplitter ABAP & Java

R3loadPerformance: Cluster table splitting

Page 22: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Outlook: R3szchk

R3szchkDetermines the size of the source databaseCalculates from this the size of the target database

– Generates EXT files– Limited to 1700 MB– Is used for the package splitter

– Generates DBSIZE.XML– Generates DDL<DBTYPE>.TPL

Two basic options:– -s DB obtains data from the DB DDIC– -s DD obtains data from the SAP DDIC

© SAP 2009 / Page 22

Page 23: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

R3szchk: DBSIZE.XML

<columns>

<column name="tblspName„/>

<column name="tblspSize„/>

<column name="sapdataDir„/>

</columns>

<row>

<fld name="tblspName">

<strval><![CDATA[PSAP@SCHEMAID@]]>

</strval>

</fld>

<fld name="tblspSize">

<strval><![CDATA[2000]]>

</strval>

</fld>

<fld name="sapdataDir">

<strval><![CDATA[SAPDATA4]]>

</strval>

</fld>

</row>

© SAP 2009 / Page 23

Page 24: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Outlook: R3szchk Changes

R3szchk -s DD is withdrawnLong run timeInaccurate values

EXT file sizes no longer restricted to 1700 MBParameter initial no longer controlled by EXT fileParameter next no longer controlled by DDLORA.TPLDBSIZE.XML only contains approximate sizes

Tablespace compressionASM – Automatic Storage ManagementASSM – Automatic Segment Space Management

© SAP 2009 / Page 24

Page 25: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Outlook: System Copy – Storage-Based

CI/JI/ …

put

/

sap

sapmnt

ABC

usr

ABC

trans

/oracle

sapdata

ABC

oraarch origlog

Sourcesysteminstances

Instances ofthe file systemXYZ

CI/JI/…

ABC

/

sapsapmntusrABC

put trans

/oracle

sapdata

ABC

oraarch origlog

File systems onthe sourcesystem ABC

File system onthe targetsystem XYZ

1. Copies/clones the file systems of all instances2. Mounts the file systems on the host under the new SID3. Adjusts (file system permissions, profiles, user environment, secure store,

OPS$user, …)

Oracle DB

Oracle DB

XYZXYZ

XYZ

© SAP 2009 / Page 25

Page 26: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Outlook: System Copy – Storage-Based‘Classical’ versus Storage-Based System Copy

Classical:File system, profiles, configurations, … aregenerated again – like for a fresh installationSAP kernel is installed, not copiedDatabase software is installed, not copiedDatabase contents are copied from thesource system to the target system (forexample, backup/restore, detach/attach) orunloaded/loaded with SAP tools

Storage-Based System Copy:File system SAP instances(/usr/sap/<SAPSID>, /sapmnt/<SAPSID>,<DB Verzeichnisse>) are copied, including:

SAP kernelDatabase softwareDatabase contentsProfiles, ...

File systems, profiles, configurations files, …are adapted to the target system

© SAP 2009 / Page 26

Page 27: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Outlook: Oracle 11g R2

SAP 6.40 and 7.*Tablespace / Table compressionSecure File support

SAP > NW 7.*ASMSAPinst & Oracle RAC

© SAP 2009 / Page 27

Page 28: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Further Information

Software logistics:

https://www.sdn.sap.com/irj/sdn/softwarelogisticsImplementationInstallation or System Copy and Migration

SAP on Oracle:

https://www.sdn.sap.com/irj/sdn/ora

© SAP 2009 / Page 28

Page 29: SAP Installation and Database Copy: Latest Developments · 2019-11-12 · SAPInst – ABAP Table Splitter Summary SAPinst generatesR3load WHERE conditionsfor several R3load processes

Copyright 2009 SAP AGAll 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 changedwithout prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

SAP, R/3, xApps, xApp, SAP NetWeaver, Duet, SAP Business ByDesign, ByDesign, PartnerEdge and other SAP products and services mentioned herein as well as their respective logos aretrademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned and associated logos displayedare the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

The information in this document is proprietary to SAP. This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This documentcontains only intended strategies, developments, and functionalities of the SAP® product and is not intended to be binding upon SAP to any particular course of business, product strategy,and/or development. SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, orother items contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties ofmerchantability, fitness for a particular purpose, or non-infringement.

SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitationshall not apply in cases of intent or gross negligence.

The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in thesematerials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages

Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durchSAP AG nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden.

Einige von der SAP AG und deren Vertriebspartnern vertriebene Softwareprodukte können Softwarekomponenten umfassen, die Eigentum anderer Softwarehersteller sind.

SAP, R/3, xApps, xApp, SAP NetWeaver, Duet, SAP Business ByDesign, ByDesign, PartnerEdge und andere in diesem Dokument erwähnte SAP-Produkte und Services sowie diedazugehörigen Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und in mehreren anderen Ländern weltweit. Alle anderen in diesem Dokument erwähnten Namenvon Produkten und Services sowie die damit verbundenen Firmenlogos sind Marken der jeweiligen Unternehmen. Die Angaben im Text sind unverbindlich und dienen lediglich zuInformationszwecken. Produkte können länderspezifische Unterschiede aufweisen.

Die in diesem Dokument enthaltenen Informationen sind Eigentum von SAP. Dieses Dokument ist eine Vorabversion und unterliegt nicht Ihrer Lizenzvereinbarung oder einer anderenVereinbarung mit SAP. Dieses Dokument enthält nur vorgesehene Strategien, Entwicklungen und Funktionen des SAP®-Produkts und ist für SAP nicht bindend, einen bestimmtenGeschäftsweg, eine Produktstrategie bzw. -entwicklung einzuschlagen. SAP übernimmt keine Verantwortung für Fehler oder Auslassungen in diesen Materialien. SAP garantiert nicht dieRichtigkeit oder Vollständigkeit der Informationen, Texte, Grafiken, Links oder anderer in diesen Materialien enthaltenen Elemente. Diese Publikation wird ohne jegliche Gewähr, wederausdrücklich noch stillschweigend, bereitgestellt. Dies gilt u. a., aber nicht ausschließlich, hinsichtlich der Gewährleistung der Marktgängigkeit und der Eignung für einen bestimmten Zwecksowie für die Gewährleistung der Nichtverletzung geltenden Rechts.

SAP übernimmt keine Haftung für Schäden jeglicher Art, einschließlich und ohne Einschränkung für direkte, spezielle, indirekte oder Folgeschäden im Zusammenhang mit der Verwendungdieser Unterlagen. Diese Einschränkung gilt nicht bei Vorsatz oder grober Fahrlässigkeit.

Die gesetzliche Haftung bei Personenschäden oder die Produkthaftung bleibt unberührt. Die Informationen, auf die Sie möglicherweise über die in diesem Material enthaltenen Hotlinkszugreifen, unterliegen nicht dem Einfluss von SAP, und SAP unterstützt nicht die Nutzung von Internetseiten Dritter durch Sie und gibt keinerlei Gewährleistungen oder Zusagen überInternetseiten Dritter ab.

Alle Rechte vorbehalten.

© SAP 2009 / Page 29