sapinst and oracle 11.2 compression asm smigr_create_ddl
TRANSCRIPT
SAPinst & Oracle 11.2:
Compression, ASM, SMIGR_CREATE_DDL
DOAG – German Oracle Users Group
18.11.2010 in Nurnberg
Uwe Specht
Oracle Platforms
SAP AG
Agenda
SAPinst Oracle 11.2
Tablespace Compression
BasicFile – SecureFile Handling
System Copy
ABAP Report SMIGR_CREATE_DDL
Outlook
ASM as of Netweaver 7.03
Dual-Stack Split 7.30/7.03
© SAP 2010 / Page 2
Future: System Copy – Storage-Based
not yet available
CI/JI/ …
put
/
sap
sapmnt
ABC
usr
ABC
trans
/oracle
sapdata
ABC
oraarch origlog
Instances of
the source
system
ABC
Instances of
the target
system XYZCI/JI/…
ABC
/
sap
sapmntusr
ABC
put trans
/oracle
sapdata
ABC
oraarch origlog
Graphic of the
file systems on
the source
system ABC
Graphic of the
file systems on
the target
system XYZ
1. Copy/clones of the file systems of all instances
2. Mounting of the file systems on the target host – under a new SID
3. Adjustments (file system authorizations, profiles, user environment, secure store,
OPS$user, …)
Oracle DB
Oracle DB
XYZ
XYZ
XYZ
© SAP 2010 / Page 3
SAPinst Compression – SecureFile
Systemcopy SMGR_CREATE_DDL
AusblickAutomatic Storage Management ASM ab Netweaver 7.03Dual Stack Split ab Netweaver 7.03, 7.30
SAPinst –
Motivation
SAPinst Oracle 11.2 Backward Release
Runtime release Oracle 11.2 created approx 6 months ago
System copy to Oracle 11.2 is only possible with the backward
releases
Very high logistical effort (approx.15 inst masters with 40 products)
Oracle 11.2
Disk space and I/O optimization by table compression and index
compression
Automatic storage management ASM
Deferred segment creation
– 60-70% of SAP tables are empty
Database file system (open)
Exadata, Oracle Enterprise Linux (open)
© SAP 2010 / Page 5
SAPinst –
Tools Prerequisites
SAPinst Installation Master DVDs for Oracle 11.2
Netweaver 6.40 – available immediately
Netweaver 7.00 und 7.01 – available mid-December 2010
Netweaver 7.10, 7.11, 7.20 and CE7.20 available end of Q1 2011
R3ldctl -version
Compile date > 20.03.2010
R3load –version
Compile date > 20.03.2010
For Oracle 11.2 system copy with backup/restore, no tool changes
necessary
© SAP 2010 / Page 6
SAPinst –
DDLORA*.TPL Extension
cretab: CREATE TABLE
&tab_name&
TABLESPACE &tablespace&
&compress&
STORAGE …
negcpr:ARFCSSTATE ARFCSDATA
ARFCRSTATE TRFCQDATA TRFCQIN
TRFCQOUT TRFCQSTATE
QRFCTRACE QRFCLOG
R3ldctl creates
DDLORA*.TPL during the
export with the new tempalte
&compress&
Negative list negcpr:
contains tables not to be
compressed
© SAP 2010 / Page 7
SAPinst –
Tablespace – compression
Tablespace compression via Advanced DB Configuration
Only for DB server version 11.2
• DB on raw device is
not supported as of 7.3
© SAP 2010 / Page 8
SAPinst –
Tablespace – compression
Compress tablespace for OLTP
Select in dialog
© SAP 2010 / Page 9
SAPinst –
Tablespace – compression
Only SAP tablespaces are listed and can be compressed
© SAP 2010 / Page 10
SAPinst –
Compression - SecureFile
SecureFile handling at SAP
Oracle 10.2: BasicFiles (CLOBS, BLOBS) are still created
Oracle 11.2 without table compression: BasicFiles are still created
Oracle 11.2 with table compression: SecureFiles are created
– SAP standard: table compressed -> SecureFile compressed
– SecureFile compression medium
– Available with Oracle Advanced Compression option
Indexes are not compressed
Changes can be made via online reorg or with BRSPACE functions
© SAP 2010 / Page 11
System Copy SMIGR_CREATE_DDL
SAPinst Compression - SecureFile
AusblickAutomatic Storage Management ASM ab Netweaver 7.03Dual Stack Split ab Netweaver 7.03, 7.30
System Copy –
SMIGR_CREATE_DDL
ABAP report executable on the source system
Must be executed on the source system before every export
Creates R3load SQL files for Oracle partitions (BW systems)
Creates R3load SQL files for exception lists (table compression)
ABAP: “copy as it is”
Report attempts to build the target system as an identical copy of the
source system
Java: “standard”
There is so far no SAP DDIC information on the compression of
tablespaces or tables
© SAP 2010 / Page 13
System Copy –
SMIGR_CREATE_DDL
Required SAP Basis Release
SAP_BASIS 7.00 SP21
SAP_BASIS 7.01 SP06
SAP_BASIS 7.10 SP09
SAP_BASIS 7.11 SP04
SAP Note corrections to SMIGR_CREATE_DDL
Note 1416108
Note 1516813
Note 1417127
© SAP 2010 / Page 14
OutlookAutomatic Storage Management ASM as of Netweaver 7.03Dual-Stack Split as of Netweaver 7.03, 7.30
SAPinst Compression - SecureFile
SystemcopySMIGR_CREATE_DDL
Outlook –
Automatic Storage Management ASM
Changes in SAP Installation
New user oracle
New groups oinstall, asmadmin, asmoper, asmdba
ASM software and also database software are installed as user
oracle:oinstall
Two ASM groups (+DATA und +ARCH) are recommended
ASM: available as of Netweaver 7.03
Oracle files in ASM
Tablespace data files in +DATA
Control file, spfile, and redolog files in +DATA
Oracle archive files in +ARCH
– Raw device installations are no longer supported
© SAP 2010 / Page 16
Outlook –
ASM Create Database
Creation of the SAP database in ASM
SQL>CREATE DATABASE USP ….
DATAFILE '+DATA' SIZE 350M REUSE AUTOEXTEND ON NEXT 20M
MAXSIZE 10000M EXTENT MANAGEMENT LOCAL
DEFAULT TEMPORARY TABLESPACE PSAPTEMP TEMPFILE '+DATA'
SIZE 350M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
UNDO TABLESPACE PSAPUNDO DATAFILE '+DATA' SIZE 700M REUSE
AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
SYSAUX DATAFILE '+DATA' SIZE 200M REUSE AUTOEXTEND ON
NEXT 20M MAXSIZE 10000M LOGFILE
GROUP 1 ('+DATA„, '+DATA') SIZE 50M REUSE ,
GROUP 2 ('+DATA', '+DATA') SIZE 50M REUSE ,
GROUP 3 ('+DATA', '+DATA') SIZE 50M REUSE ,
GROUP 4 ('+DATA', '+DATA') SIZE 50M REUSE;
© SAP 2010 / Page 17
Outlook –
ASM Data files
Creation of a tablespace data file in ASM
SQL> CREATE TABLESPACE PSAPSR3 DATAFILE '+DATA/' SIZE 2000M
REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M LOGGING
ONLINE PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE
SEGMENT SPACE MANAGEMENT AUTO ;
Creation of the spfile in ASM
SQL> create spfile=‘+DATA/USP/parameterfile/spfile.ora‘ from pfile;
Control file entry in spfile
control_files=( +DATA/USP/controlfile/cntrl1.dbf ,
+DATA/USP/controlfile/cntrl2.dbf ,
+DATA/USP/controlfile/cntrl3.dbf )
OraArch entry
log_archive_dest_1 = 'LOCATION=+ARCH'
© SAP 2010 / Page 18
Outlook –
ASM Container
ASM container structure
ASMCMD>+DATA/<SID>
– Control file (fixed name)
– Cntrl1.dbf cntrl2.dbf cntrl3.dbf
– Data file
– psap<SID>.<nr>.<nr> psap<SID>703.<nr>.<nr> psap<SID>usr.<nr>.<nr>
– System.<nr>.<nr> psapundo.<nr>.<nr> sysaux.<nr>.<nr>
– Online log
– 8 * group_<gnr>.<nr>.<nr>
– Parameter file (fixed name)
– spfile.ora
– Temp file
– Psaptemp.<nr><nr>
ASMCMD> +ARCH/<SID>/YYYY-MM-DD/thread_1_seq_<NR>.<nr>.<nr>
© SAP 2010 / Page 19
Outlook –
Dual-Stack Split
Dual-Stack Split
Installation ABAP & Java dual-stack installation no longer possible as
of 7.02
ABAP & Java instances receive their own SID
The Oracle database schema is unchanged
SAPinst separates the Java instances from the ABAP instance by:
– Deletion of the Java instance and recreation of it with a new SID
– Export of the Java schema and import to another server
© SAP 2010 / Page 20
Export and Install Java DB Schema
SCS
SAP Global Host
Java Schema
DB
Install SCS
ABAP Schema
Java Schema
DB
SCS
SAP Global Host
Central Instance
Host
C k I
Central Instance
Host
CIExport and Install
Java CI
SCS = Java Central Services Instance
CI = Central Instance
DB = Database Instance
ABAP
Java
© SAP 2010 / Page 21
Export and Install Java CI
MCOD
SCS
SAP Global Host
Central Instance
Host
CI
Export and Install SCS
SCS = Java Central Services Instance
CI = Central Instance
DB = Database Instance
ABAP
Java
ABAP Schema
Java Schema
DB
SCS
SAP Global Host
Central Instance
Host
C k I
© SAP 2010 / Page 22
Export JAVA
Install JAVA System
SCS
Host with
CI, SCS, and DB
ABAP Schema
DB
Java Schema
SCS CI
Host with
CI, SCS, and DB
DB
Java Schema
C k I
SCS = Java Central Services Instance
CI = Central Instance
DB = Database Instance
ABAP
Java
© SAP 2010 / Page 23
Questions?
See SDN:
o https://www.sdn.sap.com/irj/sdn/softwarelogistics Implementation
Installation bzw. System Copy and Migration
o https://www.sdn.sap.com/irj/sdn/ora
© SAP 2010 / Page 24
© SAP 2010 / Page 25
© 2010 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, Clear Enterprise, SAP BusinessObjects Explorer 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 SAP France in the United States and in other countries.
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.
The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without the express prior written permission of SAP AG.
This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains 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. Please note that this document is subject to change and may be changed by SAP at any time without notice.
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, or other 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 of merchantability, 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 limitation shall 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 these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages.