Date post: | 26-Mar-2018 |
Category: |
Documents |
Upload: | truonghanh |
View: | 242 times |
Download: | 5 times |
SAP & Oracle Neue Features im Software Provisioning Manager
Rename DB, Shared Oracle Home, RAC
Uwe Specht SAP AG
Oracle Platforms
DOAG Nürnberg
20. November 2013
© 2013 SAP AG. All rights reserved. 2 Customer
Disclaimer
The information in this presentation is confidential and proprietary to SAP and may not be disclosed without the permission of SAP. This presentation is not subject to your
license agreement or any other service or subscription agreement with SAP. SAP has no obligation to pursue any course of business outlined in this document or any
related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation and SAP's strategy and possible future
developments, products and/or platforms directions and functionality are all subject to change and may be changed by SAP at any time for any reason without notice. The
information on this document is not a commitment, promise or legal obligation to deliver any material, code or functionality. 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. This
document is for informational purposes and may not be incorporated into a contract. SAP assumes no responsibility for errors or omissions in this document, and 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 this document. This
limitation shall not apply in cases of intent or gross negligence. All forward-looking statements are subject to various risks and uncertainties that could cause actual results
to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates, and they
should not be relied upon in making purchasing decisions.
© 2013 SAP AG. All rights reserved. 3 Customer
Agenda
Software Provisioning Manager (SWPM) - ehemals SAPinst
SWPM
Woher bekomme ich den Software Provisioning Manager?
Oracle RAC Installationserweiterungen
Oracle Rename - Jetzt mit Offline/Online Methode
Shared Oracle Homes
SWPM Ausblick
Oracle 12c
– User- und Gruppenkonzept bei SAP
– Oracle Home, Oracle Base
SAP & Oracle Woher bekomme ich den Software Provisioning Manager?
© 2013 SAP AG. All rights reserved. 5 Customer
Woher bekomme ich den SWPM?
Software Provisioning Manager: Installation / System Copy Tools based on SAP NetWeaver
• Produktunabhängig, daher nicht mehr auf der Installation Master DVD, sondern auf SAP Service Marketplace
( evtl. sind weitere DVDs zu verwenden, z.B. Kernel DVD (Hinweis 1680045) )
• http://service.sap.com/sltoolset -> Software Logistics Toolset 1.0 Software Provisioning Manager
• Alle 3 Monate gibt es neue Versionen, Patches bei Bedarf immer neueste Tools verwenden
• Aktuelle Version: SL Toolset 1.0 SPS09
© 2013 SAP AG. All rights reserved. 6 Customer
Woher bekomme ich den SWPM?
http://service.sap.com/sltoolset Software Logistics Toolset 1.0 Software Provisioning Manager
Guides auf der Seite weiter unten
Download der Tools
© 2013 SAP AG. All rights reserved. 7 Customer
Woher bekomme ich den SWPM?
SWPM 7.0x
System Rename & Dual Stack Split
integriert
© 2013 SAP AG. All rights reserved. 8 Customer
Woher bekomme ich den SWPM?
SWPM 7.1x and higher
System Rename & Dual Stack Split
integriert
SAP & Oracle SWPM: Oracle Rename - Jetzt mit Offline/Online Methode
© 2013 SAP AG. All rights reserved. 10 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
Motivation für Online Copy Methode
Offline Methode -> Instance Recovery ist nicht immer ausreichend und führte zu Fehlern beim Rename DB
Z.B.: Split-Mirror Technologie, Snapshot Technologie
Zu lange dauernde Snapshots führte zu Inkonsistenzen der Oracle Control Files
Online Methode -> Landschaften kopieren mit SAP NetWeaver
Landscape Virtualization Management (LVM)
LVM siehe Hinweis 1678609
Online Recovery
Point-In-Time Recovery
© 2013 SAP AG. All rights reserved. 11 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
Offline Copy Methode
Keine weiteren Aktivitäten im SWPM notwendig
SWPM macht ein automatisches Instance Recovery, falls notwendig
select count(*) from V$RECOVER_FILE;
Online Copy Methode
Aktivitäten auf dem Source Host (Integriert im LVM)
/usr/sap/hostctrl/exe/saphostctrl –function PrepareDatabaseCopy –dbname US1 –dbtype ora –dbconfdir
<sharedDisk> -copymethod Online –timeout -1
Split-mirror oder Snapshot oder jeden anderen Backup
/usr/sap/hostctrl/exe/saphostctrl –function FinalizeDatabaseCopy –dbname US1 –dbtype ora –dbconfdir
<sharedDisk> -copymethod Online –timeout -1
* Additional Windows Parameter: %ProgramFiles%\SAP\hostctrl\exe\saphostctrl.exe … -user sapadm <password>
© 2013 SAP AG. All rights reserved. 12 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
PrepareDatabaseCopy
Setzt die Datenbank in den Begin Backup Modus
Erzeugt dboractrl_SID.cfg im shared Verzeichnis
FinalizeDatabaseCopy
Setzt die Datenbank in den End Backup Modus
Speichert dboractrl_SID.cfg im shared Verzeichnis
Sichert alle redolog archive ins shared Verzeichnis
Sichert ein backup controlfile ins shared Verzeichnis
© 2013 SAP AG. All rights reserved. 13 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
Beispiel:
/usr/sap/hostctrl/exe/saphostctrl -function PrepareDatabaseCopy -dbname US3 -dbtype ora
-dbconfdir /sharedOnlineFS -copymethod Online -timeout -1
/usr/sap/hostctrl/exe/saphostctrl -function FinalizeDatabaseCopy -dbname US3 -dbtype ora
-dbconfdir /sharedOnlineFS -copymethod Online -timeout -1
File /tmp/dboractrl_US3.cfg
Database/CopyMethod = Online
ArchivedLogChangeNumber = 3218437
ArchivedLogBackupDir = $(Database/ConfigurationDirectory)/dboractrl_logarchive
ArchivedLog_0 = /oracle/US3/oraarch/US3arch1_2_830713863.dbf
ArchivedLogBackup_0 = $(Database/ConfigurationDirectory)/dboractrl_logarchive/US3arch1_2_830713863.dbf
ArchivedLog_1 = /oracle/US3/oraarch/US3arch1_3_830713863.dbf
ArchivedLogBackup_1 = $(Database/ConfigurationDirectory)/dboractrl_logarchive/US3arch1_3_830713863.dbf
ControlFileBackup = $(Database/ConfigurationDirectory)/dboractrl_cntrl-US3.dbf
ControlFile_0 = /oracle/US3/origlogA/cntrl/cntrlUS3.dbf
© 2013 SAP AG. All rights reserved. 14 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
© 2013 SAP AG. All rights reserved. 15 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
Offline Methode:
Default (wenn das Feld leer bleibt)
Online Methode:
Pfad zum dboractrl_<DBSID>.cfg
angeben
© 2013 SAP AG. All rights reserved. 16 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
Offline Methode: Technische Umsetzung im SWPM REM @(#) $Id: //inst/inst_scripts/lmti_005_COR/components/nw/ora/s_ora_backup_restore.xml#9 $
WHENEVER SQLERROR CONTINUE
connect / as sysdba
spool rename2.log
BEGIN
DECLARE
counter number;
statement varchar2(1024);
BEGIN
SELECT COUNT(*) INTO counter from V$RECOVER_FILE;
IF counter <> 0 THEN
statement := 'ALTER DATABASE RECOVER';
execute immediate statement;
END IF;
statement := 'ALTER DATABASE OPEN';
execute immediate statement;
EXCEPTION …
END;
© 2013 SAP AG. All rights reserved. 17 Customer
Oracle Rename - Jetzt mit Offline/Online Methode
Online Methode: Technische Umsetzung im SWPM REM @(#) $Id: //inst/inst_scripts/645_SP_COR/components/nw/ora/s_ora_backup_restore.xml#42 $
WHENEVER SQLERROR CONTINUE
connect / as sysdba
set feedback off
spool rename2.log
set serverout on
set termout on
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
/oracle/US1/oraarch/US3arch1_2_830713863.dbf
/oracle/US1/oraarch/US3arch1_3_830713863.dbf
CANCEL
ALTER DATABASE OPEN RESETLOGS;
EXIT
SAP & Oracle SWPM: Oracle RAC Installationserweiterungen
© 2013 SAP AG. All rights reserved. 19 Customer
Oracle RAC Installationserweiterungen
© 2013 SAP AG. All rights reserved. 20 Customer
Oracle RAC Installationserweiterungen
Database Name = US1
Instance Name = D03
Service Name = US1_D03
Shell Script = US1_D03.sh
Preferred RAC Instance = US100[1-3]
START_D03_lw103448 oder US2_D03_lw103448
SETENV_06 = dbs_ora_tnsname=US1_D03
tnsnames.ora
US1_D03.WORLD = (Description = ( Address_list =
(Address = ... (Host = lu-scan) (Port=1521))))
US1_D03.sh
srvctl add service –d US1 –s US1_D03 –r US1002
-a US1001, US1003 –P …
© 2013 SAP AG. All rights reserved. 21 Customer
Oracle RAC Installationserweiterungen
US1_D03.sh ausführen auf dem Database Host
(evtl. schon während der Installation der Dialog Instanz)
srvctl status database –d US1 –v
Instance US1001 is running on node lu0261
with online Services
US1_D03 US1_DVEBMGS01.
Instance status: Open.
Instance US1002 is running on node lu0262.
Instance status: Open.
sqlplus -> show parameter service_names
US1_DVEBMGS01, US1_D03, US1, US1001
© 2013 SAP AG. All rights reserved. 22 Customer
Oracle RAC Installations Erweiterungen
Ausführen auf jedem RAC-Knoten
Kernelabhängig
Installiert User & Gruppen
plus Environment,
Kernel,
DBA-Tools
RAC / ASM / Exadata Database Instance Preparation
© 2013 SAP AG. All rights reserved. 23 Customer
Oracle RAC Installations Erweiterungen
Zusammenfassung: Ablauf RAC Installation mit SWPM
High-Availability System
Installation ASCS für ABAP
Installation SCS für Java
Installation Enque Replication Server Instance
Database Instance
Installation des ersten Cluster Knoten
InstallationRAC/ASM/Exadata Preparation auf jedem weiteren Cluster Knoten
Primary Application Server Instance
Ausführen des erzeugten Shell Scipts <Database Name>_<Instance Name>.sh auf dem ersten Cluster
Knoten
Additional Application Server Instance
Ausführen des erzeugten Shell Scripts <Database Name>_<Instance Name>.sh auf dem ersten Cluster
Knoten
© 2013 SAP AG. All rights reserved. 24 Customer
Oracle RAC Installations Erweiterungen
SAP & Oracle SWPM: Shared Oracle Homes
© 2013 SAP AG. All rights reserved. 26 Customer
Shared Oracle Homes
Motivation
Weitere Installations Option anbieten
Flexiblere Datenbank Umgebung
Pro
Schnellerer Datenbankupgrade
Schnelleres und nur einmaliges Patchen mit opatch oder mopatch
Weniger Plattenplatz
Contra
Nur eine Datenbankversion für alle betroffenen Systeme
Alle Systeme haben die gleichen Vorrausssetzungen bzgl. DB Version und Patches
Mehr Support Aufwand durch weitere Option
© 2013 SAP AG. All rights reserved. 27 Customer
Shared Oracle Homes
© 2013 SAP AG. All rights reserved. 28 Customer
Shared Oracle Homes
SAP Hinweise 1727160 und 1778431
Voraussetzung: Software Owner oracle:oinstall,
es wird kein orasid User mehr installiert
Weitere Gruppen wie bei den Exadata, ODA, RAC oder ASM Installationen
asmdba, asmadmin, asmoper, oinstall
Support vom SAP RUNINSTALLER: ab Release 11.2.0.4
(wg. Anlegen von /oracle/<DBSID> Verzeichnis und link auf 112 / 112_64)
Beispiel:
<IHRDBMS> =/oracle/RDBMS/11203
<OHRDBMS1> =/oracle/C11/112 --> /oracle/RDBMS/11203
<OHRDBMS2> =/oracle/C12/112 --> /oracle/RDBMS/11203
SAP & Oracle Ausblick Oracle 12c
Neues User Konzept
Automatic Data Optimization
Multitenant (pluggable databases)
© 2013 SAP AG. All rights reserved. 30 Customer
Ausblick Oracle 12c
Änderungen Single Instance Installation
Ohne Suffix _64 oder _32 für ORACLE_HOME
Installation unter oracle:oinstall als neuer Default
Installation auch mit orasid:dba für vorhandene Systeme, die upgegradet werden
orasid:rmandba wird immer angelegt auch für RAC, Shared Oracle Home, ASM (offen)
<IHRDBMS> /oracle/DBSID/<rel1> <rel1> = 12101, 12102, 12201, 12202, …
<OHRDBMS> /oracle/DBSID/<rel2> <rel2> = 121, 122, …
SAP RUNINSTALLER erzeugt Link von <IHRDBMS> nach <OHRDBMS>
© 2013 SAP AG. All rights reserved. 31 Customer
Ausblick Oracle 12c
Änderungen Engineered Systems (Exadata, ODA)
Installationspfad <IHRDBMS>
/u01/app/oracle/12.1.0.*/dbhome_1
/u01/app/oracle/12.2.0.*/dbhome_1
Runtime Path <OHRDBMS>
/oracle/DBSID/<rel> <rel> =112, 121, 122, …
ORACLE_BASE (SAP Hinweis 1521371)
/oracle für Single Instance
/oracle/BASE für GI
/oracle/<DBSID> für RDBMS
/u01/app/oracle für GI und RDBMS bei ODA/Exadata
New SAP Hinweis 1897633 for 12c (UNIX und Windows)
© 2013 SAP AG. All rights reserved. 32 Customer
Ausblick Oracle 12c
Oracle 12c: Was werden wir anbieten im SWPM?
ADO Automatic Data Optimization
Policy auf Tablespaces
Policy-Managed RAC Databases
Multitenant Architecture (Pluggable Databases)
DOAG 2014
© 2013 SAP AG. All rights reserved. 33 Customer
Fragen?
Weitere Informationen im SCN:
SAP on ORACLE
(http://scn.sap.com/community/oracle)
SWPM on SAP Service Marketplace
(https://www.service.sap.com/sltoolset)
© SAP 2007 / Page 33