Consultor Eletrônico



Kbase P5355: How to make a UNIX script to back up and empty after-image (AI) extents.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to make a UNIX script to back up and empty after-image (AI) extents.

FACT(s) (Environment):

UNIX

FIX:

The UNIX script for backing up and emptying AI extents is described as follows:

last_full=`_rfutil mydb -C AIMAGE EXTENT FULL`
tar -cvf ./ai_archive $last_full ret=$? if [ $ret ] then


rfutil mydb -C AIMAGE EXTENT EMPTY $last_full else echo "WARNING tar failed. AI Empty not performed." fi
It is implied that this code could be placed in a loop and the return value from the AIMAGE EXTENT FULL could be checked off for a non-null value.

When there are no full AI extents the return from the rfutil command will be:
Database has no full extents. (3804)

The DLC environment variable must be correctly set for the above sample or most other Progress related scripts to work correctly.
The PATH environment variable should contain $DLC/bin as its first entry to avoid conflicts with other versions or scripts with similar names.