To restore Informix log and configuration files, and place the Informix server online, use the following steps.
Procedure
-
Optional: If configuration files are corrupt and you want to restore them, at the command prompt, type the following command.
onbar -r -cf onlyThis command will restore the ixbar file, onconfig file, and oncfg file from the media.
-
To restore logical logs and apply those to the server, at the command prompt, type the following command.
onbar -r –e -
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:$pathexport INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS PATH
export CvClientName=client001export CvInstanceName=Instance002onbar -r -e