HP Serviceguard Extension for SAP (SGeSAP) manual Additional Steps for Oracle

Page 84

Additional Steps for Oracle

The Oracle RDBMS includes a two-phase instance and crash recovery mechanism that enables a faster and predictable recovery time after a crash.

The instance and crash recovery is initiated automatically and consists of two phases:

Roll-forward phase: Oracle applies all committed and uncommitted changes in the redo log files to the affected data blocks. Following parameters can be used to tune the roll forward phase:

The parameter RECOVERY_PARALLELISM controls the number of concurrent recovery processes.

The parameter FAST_START_IO_TARGET controls the time a crash / instance recovery may take. Use this parameter to make crash / instance recovery predictable.

Roll-back phase: Oracle applies information in the rollback segments to undo changes made by uncommitted transactions to the data blocks. Following parameters can be used to tune the roll-back phase:

Fast-Start On-Demand rollback: with this feature Oracle automatically allows new transactions to begin immediately after the roll forward phase of recovery completes. This means that the database will be available again right after the completion of phase one roll-forward. This means that there will be no long waits until long running transactions are rolled back.

Fast-Start Parallel Rollback: configure the FAST_START_PARALLEL_ROLLBACK parameter to roll-back set of transaction in parallel. This parameter is similar to the RECOVERY_PARALLELISM parameter for the roll-forward phase.

All these parameters can be used to tune the duration of Instance / Crash recovery.

The following steps have to be performed in order to adjust the Oracle RDBMS setting to the HA configuration.

Logon as root to the primary host of the database where the package is running in debug mode.

Oracle Database Step: OR850

Perform the following step as <sid>adm

To ensure that a database that crashed during an online backup starts correctly after the crash, all data files that were in begin backup state need to be altered with an end backup statement. Adjust the required steps in /sapmnt/<SID>/exe/startdb.

Change the following code within the /sapmnt/<SID>/exe/startdb file. The sample code that is to be inserted for different Oracle releases can be found in the files: /opt/cmcluster/sap/SID/startdb.sqlplus and /opt/cmcluster/sap/SID/startdb.svrmgrl

#

#Startup the database without changing the ARCHIVELOG state

echo "connect internal;" > $SRVMGRDBA_CMD_FILE echo "startup;" >> $SRVMGRDBA_CMD_FILE

echo "exit;" >> $SRVMGRDBA_CMD_FILE

eval $SRVMGRDBA command=@$SRVMGRDBA_CMD_FILE >> $LOG 2>&1

Oracle Database Step: OR860

Perform the following steps as ora<sid>.

Configure the listener to listen on the relocatible name of the database package. To do this, change all references from <local> to the relocatible name <relocdb> in the files on the shared volume group. Be careful if these files were customized after the SAP installation. For example:

$ORACLE_HOME/network/admin/listener.ora

$ORACLE_HOME/network/admin/tnsnames.ora

When using Oracle 10g:

/sapmnt/<SID>/profile/oracle/listener.ora

/sapmnt/<SID>/profile/oracle/tnsnames.ora

Oracle Database Step: OR870

Copy $ORACLE_HOME/network/admin/tnsnames.ora to all additional application server hosts.

84 Step-by-Step Cluster Conversion

Image 84
Contents Managing Serviceguard Extension for SAP Version B.05.00 Page Table of Contents SGeSAP Cluster Administration 137 SAP Supply Chain ManagementSAP Master Data Management MDM 111 List of Figures Page List of Tables Page Printing History About this ManualRelated Documentation INSTNR, INRDesigning SGeSAP Cluster Scenarios General Concepts of SGeSAPMutual Failover Scenarios Using the Two Package Concept Mutual Failover Scenarios Using the Two Package Concept Robust Failover Using the One Package Concept Follow-and-Push Clusters with Replicated Enqueue Replicated Enqueue Clustering for Abap and Java Instances Applications/sap/enqor/SID ersINSTNRDedicated NFS Packages Handling of Redundant Dialog Instances Dedicated Failover Host Replicated Enqueue Clustering for Abap and Java Instances Planning the Storage Layout SAP Instance Storage ConsiderationsOption 1 SGeSAP NFS Cluster Common Directories that are Kept LocalDirectories that Reside on Shared Disks System and Environment Specific Volume Groups Option 2 SGeSAP NFS Idle Standby ClusterOption 3 SGeSAP CFS Cluster Database Instance Storage Considerations Directories that Reside on CFS$ORACLEHOME/common/nls/admin/data Oracle Single Instance RdbmsOracle Real Application Clusters File System Layout for NFS-based Oracle ClustersMaxdb Storage Considerations Globals IndepData=/sapdb/data IndepPrograms=/sapdb/programs Sapnfs Planning the Storage Layout Step-by-Step Cluster Conversion Pgname = pkgtypeINSTNRSIDStep-by-Step Cluster Conversion SAP Pre-Installation Considerations SAP PreparationSAP Netweaver High Availability Cmmakepkg -m sgesap/sapinstance -m ... /sap.config Cmmakepkg -m sgesap/db -m sgesap/ciCmmakepkg -m sgesap/db Cmmakepkg -m sgesap/ci Cmmakepkg -m sgesap/scs Cmmakepkg -m sgesap/ersPage SAPINSTMASTERDVD/IMXOS/SAPINST/UNIX/OS Replicated Enqueue ConversionVolume group needs to be created for the Ascs instance Splitting an Abap Central InstanceCreate a new mountpoint Su sidadm Mkdir /usr/sap/SID/ASCSINSTNRIf the used SAP kernel has a release older than Sapsystemname =SIDInstancename =ASCSINSTNR SAPSYSTEM=INSTNR2SAPLOCALHOST=DRELOC Volume group needs to be created for the ERS instance Creation of Replication InstanceSu sidadm Mkdir /usr/sap/SID/ERSINSTNR Mkdir -p exe/servicehttp/sapmc Sapstartsrv Sapcontrol ServicehttpScsid = INR PF = $DIRPROFILE/SIDERSINSTNRAREPRELOCHP-UX Configuration Directory Structure Configuration Cluster Filesystem ConfigurationLs -d /usr/sap/???/*INSTNR Installation Step IS049 Non-CFS Directory Structure Conversion Mkdir /usr/sap/SID.newMaxdb Database Step SD040 Installation Step IS050 Filename localcopy checkexistOpen the password file, /etc/passwd, on the primary side Cluster Node SynchronizationOpen the groupfile, /etc/group, on the primary side Look at the service file, /etc/services, on the primary side Copy the sidadm home directory to the backup nodesSTARTPROFILE=STARTDVEBMGSINRprimary STARTPROFILE=STARTDVEBMGSINRsecondarySu orasid Mkdir -p /oracle/SID Exit Su sqddbsid Mkdir -p /sapdb/DBSIDCluster Node Configuration Mkdir /dev/vgdbSIDmknod /dev/vgdbSID/group c 64Mkdir -p /usr/sap/tmp Swlist grep ssh Ssh-keygen -t dsaIddsa Iddsa.pub Ssh hostN date Ssh -l sidadm hostN dateExternal Application Server Host Configuration Configure /etc/nsswitch.conf to avoid problemsHosts filesNOTFOUND=continue UNAVAIL=continue TRYAGAIN=ns Set -uModular Package Configuration DB=ORACLEDBRELOC=0.0.0.0 Sapsystem C11 Modular Package Configuration Step-by-Step Cluster Conversion Example entries for the package configuration file Sapextinstance DVEBMGS10 Sapextsystem QAS Sbin/init.d/sapinit referenced by /sbin/rc3.d/S###sapinit Cmapplyconf -P ./sap.config Legacy Package Configuration Serviceguard ConfigurationCreated configuration files need to be edited Mkdir -p /etc/cmcluster/SIDServicename ciC11ms Servicefailfastenabled YES ServicehalttimeoutServicename ciC11disp Touch /etc/cmcluster/SID/debugResourcename /applications/sap/enqor/C11ascs Applications/sap/enqor/SIDersinstnrENQORSCSPKGNAMEC11=foobar ENQORREPPKGNAMEC11=foorep SGeSAP Configuration Specification of the Packaged SAP ComponentsDistribute the package setup to all failover nodes NFSRELOC=0.0.0.0 CINAME=DVEBMGS CINR=00 AREPNAME=ERS AREPNR=01 AREPRELOC=0.0.0.0DNAME0=D DNAME1=DConfiguration of Application Server Handling JCINAME=SCS JCINR=01JCIRELOC=0.0.0.0 REPNAME=ERS REPNR=00Page $STARTWITHPKG, $STOPWITHPKG, $RESTARTDURINGFAILOVER Restart Stop StartASTREAT0=$RESTARTDURINGFAILOVER ASPLATFORM0=SG-PACKAGE ASPSTART=1WAITOWNAS=1 Optional Parameters and Customizable Functions WAITOWNAS=2WAITOWNAS=0 SAPROUTERSTART0=1 SAPROUTERPORT0=-S3299 RFCADAPTERSTART=1RFCADAPTERCMD=runadapter.sh Global Defaults SAPCCMSRSTART=1SAPSTARTSRVSTART=1 SAPSTARTSRVSTOP=1 Legacy Package Configuration HA NFS Toolkit Configuration EXEDIR= /usr/sap/SID/SYS/exe/runUJMSSERVBASE=3600 Packagename sapnfsAuto FS Configuration HANFSSCRIPTEXTENSION=pkgtypeExport/sapmnt/SID Export/usr/sap/trans Sapmnt/SID Usr/sap/transAUTOMASTER=/etc/automaster AUTOMOUNTOPTIONS=-f $AUTOMASTER AUTOMOUNTDOPTIONS= -L AUTOFS=1AUTOMASTER=/etc/automaster AUTOOPTIONS=-f $AUTOMASTER NFSCLIENT=1 NFSSERVER=1 NUMNFSD=4 NUMNFSIOD=4Database Configuration Additional Steps for Oracle Perform the following step as sidadmPerform the following steps as orasid If you use more than one SAP system inside of your cluster Lsnrctl start LISTENERSID1/2Additional Steps for Maxdb Additional steps for Oracle 9i RdbmsAdditional steps for Oracle 10g Rdbms SAP Application Server Configuration SAP Abap Engine specific configuration steps CdproRdisp/enqname = relocciSIDinstnr Sapmnt/SID/profile/SIDINSTNAMEINRSaplocalhostsidinstnr SID/dbhost = relocdbBatch jobs can be scheduled to run on a particular instance SAP J2EE Engine specific installation steps Rdisp/starticman=TRUEIcm/hostnamefull=relocatibleip Admin/host/SID relocdb Jdbc/pool/SID/Url jdbcoraclethin@relocdb1527SIDPage SAP Supply Chain Management More About Hot Standby Planning the Volume Manager Setup Option 1 Simple Clusters with Separated PackagesOption 2 Non-MAXDB Environments Option 3 Full FlexibilityMaxdb Storage Considerations Option 4 Hot Standby liveCacheLiveCache Installation Step LC010 HP-UX Setup for Options 1, 2 Synchronize the /etc/group and /etc/passwd filesDo the following to continue Copy file /etc/opt/sdb to the second cluster nodeMkdir /sapdb Mkdir -p /sapdb/data Mkdir /sapdb/LCSIDHP-UX Setup for Option If you use DNSHosts filesNOTFOUND=continue UNAVAIL=continue \ TRYAGAIN=ns HORCCMRCF=1 HORCMINST=0SGeSAP Modular Package Configuration Cmmakepkg -m sgesap/livecache lcLCSID.configPackagename lcLCSID SGeSAP Modular Package Configuration SGeSAP Legacy Package Configuration Create standard package control and configuration filesCp /opt/cmcluster/sap/*.functions /etc/cmcluster Packagetype FailoverCold Admin Warm Online LCPRIMARYROLE=primarynode LCSECONDARYROLE=secondarynodeLivecache Service Monitoring LCCOPYMECHANISM=BUSINESSCOPYAVOIDWWIDCHECK=1 LCSTANDBYRESTART=1APO Setup Changes Su lcsidadm Dbmcli -ux SAPLCSID,password -ul Mv .XUSER.62 .XUSER.62.ORG Default key# dbmcli on hostname Lcsid quit General Serviceguard Setup Changes For optionSapdb/programsrelocsapnfss/export/sapdb/programs Last step is to reconfigure the cluster with cmapplyconf1m Master Data Management Overview Master Data Management User Interface ComponentsMDM Server Components SAP Netweaver XI componentsInstallation and Configuration Considerations PrerequisitesMDM SGeSAP File System Layout Oracle/MDMSingle or Multiple MDM Serviceguard Package Configurations Single MDM Serviceguard Package ONEMultiple MDM Serviceguard packages FOUR+ONE Opt/MDMRun ioscan and insf to probe/install new disk devices Mkdir -p /oracle/MDMMkdir -p /export/home/mdmuser Mkdir -p /home/mdmuser Mkdir -p /opt/MDM Installation and Configuration Considerations Runscripttimeout Notimeout Haltscripttimeout NotimeoutNodename Runscript /etc/cmcluster/MDMNFS/mdmNFS.control.scriptScp -rp /etc/cmcluster/MDMNFS clunode2/etc/cmcluster/MDMNFS Scp -p /etc/auto.direct clunode2/etc/auto.directSbin/init.d/nfs.client stop Sbin/init.d/nfs.client start Runscript /etc/cmcluster/MDM/mgroupMDM.control.script Haltscript /etc/cmcluster/MDM/mgroupMDM.control.scriptRunscript /etc/cmcluster/MDM/mdbMDM.control.script Haltscript /etc/cmcluster/MDM/mdbMDM.control.script Runscript /etc/cmcluster/MDM/mdsMDM.control.scriptHaltscript /etc/cmcluster/MDM/mdsMDM.control.script Runscript /etc/cmcluster/MDM/mdisMDM.control.script Haltscript /etc/cmcluster/MDM/mdisMDM.control.scriptRunscript /etc/cmcluster/MDM/mdssMDM.control.script Haltscript /etc/cmcluster/MDM/mdssMDM.control.scriptRunscript /etc/cmcluster/MDM/masterMDM.control.script Haltscript /etc/cmcluster/MDM/masterMDM.control.scriptSsh -X clunode1 -l oramdm Sidmdm KITS/ora9208/Disk1/runInstller Specify File LocationsSetup Step MDM218 SAP Master Data Management MDM MDM = Description = Addresslist = Connectdata = Server = Dedicated Servicename = MDM Listener = Descriptionlist = Description = Addresslist =Sidlistlistener = Sidlist = Siddesc = Globaldbname = MDM Installation and Configuration Considerations Create a /home/mdmuser/mdss directory Global SAP Master Data Management MDM Single Serviceguard package configure sap.config MDMLISTENERNAME=LISTENERMDMUSER=mdmuser MDMPASSWORD= MDMREPOSITORYSPEC= MDMMDSRELOC=172.16.11.96MDMMONITORINTERVAL=60 MDMMGROUPDEPEND=mdb mds mdis mdssServicefailfastenabled no Servicehalttimeout Vi /etc/cmcluster/MDM/mdsMDM.config Servicename mdsMDMmonCmapplyconf -P /etc/cmcluster/MDM/mdsMDM.config Cmrunpkg mgroupMDM Cmhaltpkg mgroupMDMCmrunpkg masterMDM Cmhaltpkg masterMDM Change Management System Level ChangesSGeSAP Cluster Administration SAP Software Changes Upgrading SAP Software Mixed ClustersSwlist -l bundle T2357BA T2803BA Swlist -l bundle B7885BA T2803BACd /sapmnt/SID Mv exe exepa Cd /sapmnt/SID Mkdir exeipfCd /sapmnt/SID Ln -s /sapmnt/SIDexelocal exe Cd /sapmnt Ln -s /sapmnt/SID/exepa /sapmnt/SIDexelocal
Related manuals
Manual 35 pages 22.06 Kb