Upload
lekhanh
View
303
Download
4
Embed Size (px)
Citation preview
SAP & Oracle New Features in Software Provisioning Manager
Rename DB, Shared Oracle Home, RAC
Uwe Specht SAP AG
Oracle Platforms
DOAG Nürnberg
November 20, 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) - formerly SAPinst
SWPM
Where do I obtain the Software Provisioning Manager?
Oracle RAC installation extensions
Oracle rename – now with offline / online method
Shared Oracle Homes
SWPM perspective
Oracle 12c
– User and group concept at SAP
– Oracle Home, Oracle Base
SAP & Oracle Where do I obtain the Software Provisioning Manager?
© 2013 SAP AG. All rights reserved. 5 Customer
Where do I obtain the SWPM?
Software Provisioning Manager: Installation / System Copy Tools based on SAP NetWeaver
• Product-independent, therefore no longer on the installation master DVD but on SAP Service Marketplace.
(maybe more DVDs are to be used, e.g. Kernel DVD (SAP Note 1680045) )
• http://service.sap.com/sltoolset -> Software Logistics Toolset 1.0 Software Provisioning Manager
• Every 3 months, there are new versions, patches if required always use the latest tools
• Current Version: SL Toolset 1.0 SPS09
© 2013 SAP AG. All rights reserved. 6 Customer
Where do I obtain the SWPM?
http://service.sap.com/sltoolset Software Logistics Toolset 1.0 Software Provisioning Manager
Guides further down on the page
Download of Tools
© 2013 SAP AG. All rights reserved. 7 Customer
Where do I obtain the SWPM?
SWPM 7.0x
System Rename & Dual Stack Split
integrated
© 2013 SAP AG. All rights reserved. 8 Customer
Where do I obtain the SWPM?
SWPM 7.1x and higher
System Rename & Dual Stack Split
integrated
SAP & Oracle SWPM: Oracle rename – now with offline / online method
© 2013 SAP AG. All rights reserved. 10 Customer
Oracle Rename – Now with Offline / Online Method
Motivation for Online Copy method
Offline mode -> instance recovery is not always adequate, leading to mistakes with the rename DB
For example: split-mirror Technology, snapshot technology
Snapshots that last too long lead to inconsistencies of the Oracle Control Files
Online Method -> copy landscapes with SAP NetWeaver
Landscape Virtualization Management (LVM)
LVM see SAP Note 1678609
Online recovery
Point-in-time recovery
© 2013 SAP AG. All rights reserved. 11 Customer
Oracle Rename – Now with Offline/Online Method
Offline Copy Method
No further activities necessary in the SWPM
SWPM creates an automatic instance recovery, if necessary
select count(*) from V$RECOVER_FILE;
Online Copy Method
Activities on the source host (Integrated in LVM)
/usr/sap/hostctrl/exe/saphostctrl –function PrepareDatabaseCopy –dbname US1 –dbtype ora –dbconfdir
<sharedDisk> -copymethod Online –timeout -1
Split-mirror or Snapshot or every other 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 – Now with Offline / Online Method
PrepareDatabaseCopy
Place the database in the Begin Backup mode
Create dboractrl_SID.cfg in the shared directory
FinalizeDatabaseCopy
Place the database in the End Backup mode
Store dboractrl_SID.cfg in the shared directory
Save all redolog archive in the shared directory
Save a backup control file in the shared directory
© 2013 SAP AG. All rights reserved. 13 Customer
Oracle Rename - Now with Offline / Online Method
Example:
/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 – Now with Offline / Online Method
© 2013 SAP AG. All rights reserved. 15 Customer
Oracle Rename – Now with Offline / Online Method
Offline Method:
Default (if the field stays empty)
Online Method:
Indicate the path to
dboractrl_<DBSID>.cfg
© 2013 SAP AG. All rights reserved. 16 Customer
Oracle Rename – Now with Offline/Online method
Offline Method: Technical Implementation in the 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 – Now with Offline / Online Method
Online Method: Technical Conversion in the 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 installation extensions
© 2013 SAP AG. All rights reserved. 19 Customer
Oracle RAC Installation Extensions
© 2013 SAP AG. All rights reserved. 20 Customer
Oracle RAC Installation Extensions
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 Installation Extensions
US1_D03.sh execute on the database host
(maybe already during the installation of the dialog instance)
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 Installation extensions
Perform on each RAC node
Kernel-dependent
Install users & groups
plus environment,
kernel,
DBA tools
RAC / ASM / Exadata Database Instance Preparation
© 2013 SAP AG. All rights reserved. 23 Customer
Oracle RAC Installation extensions
Summary: Sequence for RAC Installation with SWPM
High-availability system
Installation ASCS for ABAP
Installation SCS for Java
Installation enqueue replication server instance
Database Instance
Installation of the first cluster node
Installation RAC / ASM / Exadata preparation on each further cluster node
Primary application server instance
Execution of the generated shell scripts <Database Name>_<Instance Name>.sh on the first cluster node
Additional application server instance
Execution of the generated shell Scripts <Database Name>_<Instance Name>.sh on the first cluster node
© 2013 SAP AG. All rights reserved. 24 Customer
Oracle RAC Installation Extensions
SAP & Oracle SWPM: Shared Oracle Homes
© 2013 SAP AG. All rights reserved. 26 Customer
Shared Oracle Homes
Motivation
Offer further installation option
More flexible database environment
For
Quicker database upgrade
Quicker and only one-time patching with opatch or mopatch
Less disk-space
Against
Database version for all affected systems
All systems have the same prerequisites regarding DB version and patches
More cupport cost through a further option
© 2013 SAP AG. All rights reserved. 27 Customer
Shared Oracle Homes
© 2013 SAP AG. All rights reserved. 28 Customer
Shared Oracle Homes
SAP Notes 1727160 and 1778431
Prerequisite: Software Owner oracle:oinstall,
no more orasid users are installed
Further groups as with the Exadata, ODA, RAC or ASM installations
asmdba, asmadmin, asmoper, oinstall
Support from SAP RUNINSTALLER: from Release 11.2.0.4
(for set up of /oracle/<DBSID> directory and link to112 / 112_64)
Example:
<IHRDBMS> =/oracle/RDBMS/11203
<OHRDBMS1> =/oracle/C11/112 --> /oracle/RDBMS/11203
<OHRDBMS2> =/oracle/C12/112 --> /oracle/RDBMS/11203
SAP & Oracle View of Oracle 12c
New user concept
Automatic data optimization
Multitenant (pluggable databases)
© 2013 SAP AG. All rights reserved. 30 Customer
Perspective Oracle 12c
Changes for single instance installation
Without suffix _64 oder _32 for ORACLE_HOME
Installation under oracle:oinstall as new default
Installation also with orasid:dba for existing systems that are being upgraded
orasid:rmandba is always being set up for RAC, shared oracle Home, ASM also (open)
<IHRDBMS> /oracle/DBSID/<rel1> <rel1> = 12101, 12102, 12201, 12202, …
<OHRDBMS> /oracle/DBSID/<rel2> <rel2> = 121, 122, …
SAP RUNINSTALLER generates a link from <IHRDBMS> to <OHRDBMS>
© 2013 SAP AG. All rights reserved. 31 Customer
Perspective Oracle 12c
Changes for engineered systems (Exadata, ODA)
Installation path <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 Note 1521371)
/oracle for single instance
/oracle/BASE for GI
/oracle/<DBSID> for RDBMS
/u01/app/oracle for GI and RDBMS at ODA/Exadata
New SAP Note 1897633 for 12c (UNIX and Windows)
© 2013 SAP AG. All rights reserved. 32 Customer
Outlook Oracle 12c
Oracle 12c: what will we offer in SWPM?
ADO Automatic Data Optimization
Policy on tablespaces
Policy-managed RAC databases
Multitenant architecture (pluggable databases)
DOAG 2014
© 2013 SAP AG. All rights reserved. 33 Customer
Questions?
Further information in 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
© 2013 SAP AG. All rights reserved. 34 Customer
© 2013 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.
National product specifications may vary.
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.
SAP 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.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.