Loading...

Creating a Script for Pre-Snap Process

Create a script for pre-snap process similar to that shown in the following example.

Procedure

  1. To export the Informix environment variables, for example, INFORMIXDIR, INFORMIXSERVER, ONCONFIG, and INFORMIXSQLHOSTS, at the command prompt, type the following command. You might have different variables to export depending on your environment.

    export <Informix envt variables>

  2. Block the Informix server to take a snapshot.

    onmode -c block

Example

cat /opt/presnap.sh

#!/bin/ksh

#

INFORMIXDIR=/opt/IBM/informix

INFORMIXSERVER=ol_informix1170_1

ONCONFIG=onconfig.ol_informix1170_1

INFORMIXSQLHOSTS=/opt/IBM/informix/etc/sqlhosts.ol_informix1170_1

PATH=${INFORMIXDIR}/bin:${PATH}

export INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS PATH

onmode -c block

Last modified: 2/12/2019 3:57:00 AM