Restoring Transaction Logs

To restore Informix log and configuration files, and place the Informix server online, use the following steps.

Procedure

  1. Optional: If configuration files are corrupt and you want to restore them, at the command prompt, type the following command.

    onbar -r -cf only

    This command will restore the ixbar file, onconfig file, and oncfg file from the media.

  2. To restore logical logs and apply those to the server, at the command prompt, type the following command.

    onbar -r –e

  3. To place the server online, at the command prompt, type the following command.

    onmode –m

Example

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
export CvClientName=client001
export CvInstanceName=Instance002
onbar -r -e

Page contents

×

Loading...