Read sapctl_v5_11_2 text version

Overview of High Availability for SAP Resources .................................................... 3 SAP Support for High Availability............................................................................. 3 Installation and Management...................................................................................... 7 Overview Of Installation and Configuration............................................................... 8 Functionality............................................................................................................. 12 Conclusion................................................................................................................ 15 Worked Example ...................................................................................................... 16 Appendix 1 ­ Sample profile scripts......................................................................... 22 Appendix 2 ­ Troubleshooting and Log Files .......................................................... 24 Appendix 2 - SAPCTL Bill of Materials .................................................................. 25

Providing High Availability for SAP Resources

Page 2

Providing High Availability is an essential component in the world of business continuity This paper explains how to use Oracle Clusterware to enable high availability for SAP resources

OVERVIEW OF HIGH AVAILABILITY FOR SAP RESOURCES

SAP SUPPORT FOR HIGH AVAILABILITY

Providing High Availability for SAP Resources

Page 3

The term `service' is used to signify the SAP process that provides either Enqueue or Replication The nodes that host these services are termed the `Enqueue Server' and the `Replication Server'

Active Enqueue Service

Replication Service

VIP R/3 Instance R/3 Instance

Passive Replication Service

Passive Replication Service

R/3 Instance

R/3 Instance

Providing High Availability for SAP Resources

Page 4

ORACLE CLUSTERWARE

OVERVIEW OF THE SAPCTL IMPLEMENTATION

Providing High Availability for SAP Resources

Page 5

SUPPORTED CONFIGURATIONS

· ·

Node 1 Node 2

RAC Instance RAC Instance

Active Enqueue Service

Replication Service

VIP

R/3 Instance R/3 Instance

VIP R/3 Instance R/3 Instance

RAC Instance RAC Instance

Node 1 Active Enqueue Service

Node 2 Replication Service

Node 3

Node 4

Providing High Availability for SAP Resources

Page 6

INSTALLATION AND MANAGEMENT

REQUIREMENTS FOR RUNNING SAPCTL

· · · ·

Providing High Availability for SAP Resources

Page 7

OVERVIEW OF INSTALLATION AND CONFIGURATION

· ·

CONFIGURING SAP

Providing High Availability for SAP Resources

Page 8

USER PROFILE SID<ADM>

· · · ·

# su ­ sid<adm> # for TYPENAME in "sapenv sapsrc dbenv dbsrc" do for NODENAME in "node2 node3 node4" do ln .$TYPENAME_node1.sh .$TYPENAME_$NODENAME.sh ln .$TYPENAME_node1.csh .$TYPENAME_$NODENAME.csh done done

Providing High Availability for SAP Resources

Page 9

USER PROFILE ORA<SID>

INSTANCE PROFILE: CENTRAL SERVICES INSTANCE (ASCS, SCS), ENQEUE AND MESSAGE SERVICE FOR ABAP AND JAVA

See Appendix 1 for the changes that are required to these profiles:

INSTANCE PROFILE: ENQUEUE REPLICATION INSTANCE (ERS)

See Appendix 1 for the changes that are required to these profiles

INSTANCE PROFILE: CENTRAL INSTANCE (CI) OR APPLICATION SERVER INSTANCES (DV)

Providing High Availability for SAP Resources

Page 10

See Appendix 1 for the changes that are required to these profiles

Providing High Availability for SAP Resources

Page 11

REGISTERING WITH ORACLE CLUSTERWARE

MANAGEMENT INTERFACE

FUNCTIONALITY

A `worked example' using SAPCTL appears later in this paper

Providing High Availability for SAP Resources

Page 12

USAGE

sapctl <command> [<object>] -sapsid <SAP_SID> [options] Command: start|stop|status|create|remove|relocate Objects: abapvip|javavip|abapenq|javaenq| abaprep|javarep|abapall|javaall| asinstall|asinstvip|asinst|all NOTE: Create and remove commands work on all objects only. For detailed help about each command and object and its options use: sapctl <command> -h <Objects>

<Commands>

·

·

·

Providing High Availability for SAP Resources

Page 13

·

·

·

Providing High Availability for SAP Resources

Page 14

CONCLUSION

Providing High Availability for SAP Resources

Page 15

WORKING EXAMPLE

· · · ·

Providing High Availability for SAP Resources

Page 16

The SAPCTL utility [[email protected] bin]# sapctl Production Copyright 2010 Oracle. All rights reserved USAGE: sapctl <command> [<object>] -sapsid <SAP_SID> [options] command : start|stop|status|create|remove|relocate objects : abapvip|javavip|abapenq|javaenq|abaprep|javarep |abapall|javaall|asinstall|asinstvip|asinst|all NOTE: Create and remove commands work on all objects only For detailed help on each command and object and its options use: sapctl <command> -h

Enable Oracle Clusterware Protection for your SAP resources [[email protected] bin]# sapctl create -sapsid RAC -if eth0 ­nm 255.255.255.0 ­nodes oracx1,oracx2,oracw1,oracw2 -abapvip 140.86.242.63 ­abapmsport 3601 ­abapenq ASCS01 ­abaprep ERS03 ­javavip 140.86.242.64 ­javamsport 3902 ­javaenq SCS02 ­javarep ERS04 ­asinstvip 140.86.242.65 ­asinst DVEBMGS00 Production Copyright 2010 Oracle. All rights reserved Creating SAP ABAP VIP Creating SAP ABAP Enqueue resource Creating SAP ABAP Replication resource Creating SAP JAVA VIP Creating SAP JAVA Enqueue resource Creating SAP JAVA Replication resource Creating SAP INST VIP for DVEBMGS00 Creating SAP INST resource for DVEBMGS00 Done

Providing High Availability for SAP Resources

Page 17

To see which SAP Instances have been protected by Oracle Clusterware

[[email protected] bin]# sapctl config Production Copyright 2010 Oracle. All rights reserved SAP_SIDs protected by the Oracle Clusterware are : RAC

Check the Status of the Oracle Clusterware Protected SAP resources [[email protected] bin]# sapctl status all -sapsid RAC Production Copyright 2010 Oracle. All rights reserved SAP ABAP Enqueue service is OFFLINE SAP JAVA Enqueue service is OFFLINE SAP ABAP Replication service is OFFLINE SAP JAVA Replication service is OFFLINE SAP instance DVEBMGS00 is OFFLINE

Providing High Availability for SAP Resources

Page 18

Start the Oracle Clusterware Protected SAP resources [[email protected] bin]# sapctl start all -sapsid RAC Production Copyright 2010 Oracle. All rights reserved Starting SAP ABAP Enqueue service Starting SAP JAVA Enqueue service Starting SAP ABAP Replication service Starting SAP JAVA Replication service Starting SAP instance DVEBMGS00 SAP ABAP Enqueue service is ONLINE on oracx1 SAP JAVA Enqueue service is ONLINE on oracx1 SAP ABAP Replication service is ONLINE on oracx2 SAP JAVA Replication service is ONLINE on oracx2 SAP instance DVEBMGS00 is ONLINE on oracx1 Done

Check the Status after the start [[email protected] bin]# sapctl status all -sapsid RAC Production Copyright 2010 Oracle. All rights reserved SAP ABAP Enqueue service is ONLINE on oracx1 SAP JAVA Enqueue service is ONLINE on oracx1 SAP ABAP Replication service is ONLINE on oracx2 SAP JAVA Replication service is ONLINE on oracx2 SAP instance DVEBMGS00 is ONLINE on oracx1

Stop the Enqueue Service for Web AS ABAP (and associated VIP) [[email protected] bin]# sapctl stop abapenq -sapsid RAC Production Copyright 2010 Oracle. All rights reserved Stopping SAP ABAP Enqueue service SAP ABAP Enqueue service is OFFLINE Done

Providing High Availability for SAP Resources

Page 19

Start the Enqueue Service for Web AS ABAP (and associated VIP) [[email protected] bin]# sapctl start abapenq -sapsid RAC Production Copyright 2010 Oracle. All rights reserved Starting SAP ABAP Enqueue service SAP ABAP Enqueue service is ONLINE on oracx2 Done

Relocate SAP resources to other hosting member [[email protected] bin]# sapctl relocate ­sapsid RAC ­abaprep ERS03 ­to oracw1 Production Copyright 2010 Oracle. All rights reserved Stopping SAP ABAP replication service Relocating SAP ABAP Replication Service to node oracw1 Done

Providing High Availability for SAP Resources

Page 20

Stop all of the Oracle Clusterware managed SAP resources [[email protected] bin]# sapctl stop all -sapsid RAC Production Copyright 2010 Oracle. All rights reserved Stopping SAP instance for DVEBMGS00 Stopping SAP JAVA Replication service Stopping SAP ABAP Replication service Stopping SAP JAVA Enqueue service Stopping SAP ABAP Enqueue service SAP ABAP Enqueue service is OFFLINE SAP JAVA Enqueue service is OFFLINE SAP ABAP Replication service is OFFLINE SAP JAVA Replication service is OFFLINE SAP instance DVEBMGS00 is OFFLINE Done

Remove Oracle Clusterware protection for SAP resources [[email protected] bin]# sapctl remove all -sapsid RAC Production Copyright 2010 Oracle. All rights reserved Removing resource SAP ABAP Enqueue service Removing resource SAP ABAP VIP Removing resource SAP JAVA Enqueue service Removing resource SAP JAVA VIP Removing resource SAP ABAP Replication service Removing resource SAP JAVA Replication service Removing resource SAP instance DVEBMGS00 Removing resource SAP instance VIP for DVEBMGS00 Done

Providing High Availability for SAP Resources

Page 21

APPENDIX 1 ­ SAMPLE PROFILE SCRIPTS

Script: DEFAULT.PFL

#---------------------------------------------------------------------# rdisp/mshost must resolve to the IP address given as ­abapvip # parameter in sapctl create command #---------------------------------------------------------------------rdisp/mshost = sap_abapvip rdisp/msserv = sapmsRAC rdisp/msserv_internal = 3901 enque/process_location = REMOTESA #---------------------------------------------------------------------# enque/serverhost must resolve to the IP address given as ­abapvip # parameter in sapctl create command #---------------------------------------------------------------------enque/serverhost = sap_abapvip enque/serverinst = 01 #----------------------------------------------------------------------# SAP Central Service Instance for J2EE #----------------------------------------------------------------------#---------------------------------------------------------------------# j2ee/scs/host must resolve to the IP address given as ­javavip # parameter in sapctl create command #---------------------------------------------------------------------j2ee/scs/host = sap_javavip j2ee/scs/system = 02 j2ee/ms/port = 3902

Script: RAC_ASCS01_sap_abapvip

enque/table_size=4096 enque/process_location=LOCAL enque/server/internal_replication=true enque/server/replication=true

Script: RAC_ERS03_sap_abapvip

enque/table_size=4096 enque/process_location=LOCAL enque/server/internal_replication=true enque/server/replication=true enque/enrep/keepalive_count=0

Script: RAC_SCS02_sap_javavip

Providing High Availability for SAP Resources Page 22

enque/table_size=4096 enque/process_location=LOCAL enque/server/internal_replication=true enque/server/replication=true enque/enrep/keepalive_count=0

Script: RAC_ERS04_sap_javavip

enque/table_size=4096 enque/process_location=LOCAL enque/server/internal_replication=true enque/server/replication=true enque/serverinst = 02 enque/enrep/keepalive_count=0 rdisp/msserv = 0 rdisp/msserv_internal = 3902 ms/standalone = 1 ms/server_port_0 = PROT=HTTP,PORT=81$$

Script: RAC_DVEBMGS00_sap_instvip

#---------------------------------------------------------------------# No changes required here. All required parameters are in DEFAULT.PFL #----------------------------------------------------------------------

Providing High Availability for SAP Resources

Page 23

APPENDIX 2 ­ TROUBLESHOOTING AND LOG FILES

/usr/sap/<SID>/sapctl/sapctl.log

${ORA_CRS_HOME}/log/<hostname>/crsd/crsd.log

Providing High Availability for SAP Resources

Page 24

APPENDIX 2 - SAPCTL BILL OF MATERIALS

· · · · · ·

Providing High Availability for SAP Resources

Page 25

Providing High Availability for SAP Resources with Oracle Clusterware 11 Release 2 August 2010 Version 5.0 Authors: David Austin, Mark Bauer, Andrey Gusev, Kurt Broeg, and Rajiv Jayaraman Contributing Authors: Philip Newlan, Jan Klokkers Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A. Worldwide Inquiries: Phone: +1.650.506.7000 Fax: +1.650.506.7200 oracle.com Copyright © 2009, Oracle. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission. Oracle, JD Edwards, and PeopleSoft, are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Information

sapctl_v5_11_2

26 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

585782


Notice: fwrite(): send of 207 bytes failed with errno=104 Connection reset by peer in /home/readbag.com/web/sphinxapi.php on line 531