HP Storage Essentials SRM Enterprise Edition 6.0 Microsoft Windows Application Integration Software for SAP ACC version A.02.00 User Guide (T4283-96336, July 2008)

Application Scripts Description and Usage64
You can use these sample scripts as a reference for developing scripts customized to perform those
operations on your system. The sample scripts were designed for Microsoft Windows.
The scripts provided are the following:
prepareCI.cmd.rename: sample script that includes commands to install and start the SAP
Central Instance.
attachDB.cmd.rename: sample script that includes commands to attach the Database
Instance.
detachDB.cmd.rename: sample script that includes commands to detach the Database
Instance.
deleteCI.cmd.rename: sample script that includes commands to stop the SAP Central
Instance.
hpqcc_attach_db.sql.rename, sap_change_usr.sql.rename, and
sap_clear_db.sql.rename: SQL stored procedures called by the
attachDB.cmd.rename and detachDB.cmd.rename scripts.
For systems running SAP ACC version 1.0, copy the scripts from the sample directory on the SRM
server to the C:\usr\sap\adaptive directory on each Managed Node, and customize them for
each machine environment. You can then run each script at the MS-DOS command prompt by
entering the appropriate command line with the relevant input parameters.
Further details about each script are provided in the following sections.
Script Design
It is recommended that you modify and test the scripts working with two scripts at one time with
prepare CI and delete CI as the first pair, and attach and detach DB as the second pair. The reason
for this methodology is that since they are complementary pairs, the second script of the pair
undoes most of the modifications performed by the first script of the pair returning the system back to
its original state. This simplifies the debugging process, where a script may need to be run
repeatedly and its changes reversed before a new trial. The following sections provide further
information about each of the reference sample scripts.
This section describes the following:
Preparing the SAP Central Instance, page 64
Attaching the SAP Database Instance, page 66
Detaching the SAP Database Instance, page 68
Deleting the SAP Central Instance, page 69
Preparing the SAP Central Instance
The first script to customize is prepareCI.cmd.rename. The purpose of this script is to install and
start the SAP Central Instance (CI). Prior to running this script, the SAP SID system containing the
profile’s executables must already be mounted.
This section describes the following:
Sample Input Parameters, page 65