Start of Content Area

Procedure documentation Preparing SAP Scripts for ON-Archive  Locate the document in its SAP Library structure

Use

You need to copy and edit the SAP scripts to prepare them for use with ON-Archive and the Informix database. Only use this procedure if you are working on a UNIX platform, because ON-Archive does not run on NT platforms.

Procedure

First, you copy the scripts, then you edit the script logevent.sh .

Copying Scripts

To use the SAP scripts, you must copy them from the CD to your own directory:

  1. Mount the CD INFORMIX RDBMS .
  2. Log on as user <sid>adm using the following command:
  3. su - <sid>adm

  4. Change to the target directory ( /usr/sap/<SID>/SYS/exe/run ) using the following command:
  5. cdexe

  6. Copy the file arcprep from CD with the following command, replacing <CD-Mountdir> with the actual name of your mount directory:
  7. cp /<CD-Mountdir>/DBTOOLS/ARCPREP arcprep

  8. Repeat the previous step for the other scripts ( arcvolum , arcauto , arcpanic , archive_control , backup_control , and logevent.sh ).

Editing Script logevent.sh

To prepare the script logevent.sh for logical-log backup, you need to edit it as follows:

  1. Mount the CD INFORMIX RDBMS .
  2. Log in as user informix , using the following command:
  3. su - informix

  4. To prepare the script logevent.sh , set the following values in the script:
  5. MAX_PCT=50

    Set this value to the required percentage full for the logical log to trigger a logical-log backup. SAP recommends 50% full as the default.

    BACKUP_VSET=LOGTAP

    Set this value to the target volume set for the logical-log backup, normally LOGTAP .

  6. To activate the script logevent.sh , you must set the ALARMPROGRAM parameter in the ONCONFIG file. Make sure that the name and the directory for the parameter are correct. Refer to Editing the File ONCONFIG for ON-Archive.
  7. Stop and restart the SAP System and the Informix server for the changes to take effect.

Result

Now the scripts are active and ready for use.

 

See also:

Defining Devices for ON-Archive with SAP Scripts

Setting Up Volume Sets and Volumes for ON-Archive with SAP Scripts

Preparing for Recovery Reports with SAPDBA