Download Embedding IBM Informix

Transcript
#sed command to modify the rootsize in your configuration file.
config_mod="sed -i -e \"/^ROOTSIZE/ c ROOTSIZE\ $rootsizeKB\"
${ONCONFIG_LOC_esc}"
eval $config_mod
#check for presence of files lists and run installation script to set
properties for deployed files
if [ ! -f "${INFORMIXDIR}/etc/Glsfiles.installed" ] || [ ! -f
"${INFORMIXDIR}/etc/Messagefiles.installed" ] || [ ! -f
"${INFORMIXDIR}/etc/IIFfiles.installed" ] ; then
echo "One or more files list is absent in your archive"
exit 1
else
cd $INFORMIXDIR
$INFORMIXDIR/etc/install $INFORMIXDIR/etc/Glsfiles.installed NOCHK
DOBRAND DOUPGRADE ismp informix informix informix informix
$INFORMIXDIR/etc/install $INFORMIXDIR/etc/Messagefiles.installed NOCHK
DOBRAND DOUPGRADE ismp informix informix informix informix
$INFORMIXDIR/etc/install $INFORMIXDIR/etc/IIFfiles.installed NOCHK
DOBRAND DOUPGRADE ismp informix informix informix informix
fi
ONCONFIG=onconfig.$INFORMIXSERVER
INFORMIXSQLHOSTS="$INFORMIXDIR/etc/sqlhosts.$INFORMIXSERVER"
PATH=${INFORMIXDIR}/bin:${PATH}
export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS PATH
#create sqlhosts file
echo "$INFORMIXSERVER $PROTOCOL $HOSTNAME $PORT">$INFORMIXSQLHOSTS
#Copy pacakged dbspace into new preferred location
cp ${EXISTING_ROOTPATH} ${ROOTPATH}
#change the ownership and group for dbspace and config file to informix
chown -R informix $ROOTPATH $INFORMIXDIR/etc/$ONCONFIG
chgrp -R informix $ROOTPATH $INFORMIXDIR/etc/$ONCONFIG
#run the oninit command.
eval $oninit_cmd
The script takes, as arguments, an archive (the required root dbspace for the
server instance), the location of the configuration file to be used for the deployed
server, the desired port number, the connection protocol to be used, and the full
path to the root data space to be used for the deployed server. For example:
deploy.sh <archive> <onconfig_file> <portnum> <protocol> <rootpath>
Appendix B. IBM Informix Version 11.50 installation and configuring client connectivity
419