In Linux distribution, when creating a informix server, sometimes you might get an error saying...
oninit: Fatal error in initializing ASF with 'ASF_INIT_DATA' flags; asfcode = '-406'.
Commad:
ccmsrv create
Error:
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
WARNING: unable to initialize the database server
see /synergy/cm721/ccm/informix/log/cm721.log for details
oninit: Fatal error in initializing ASF with 'ASF_INIT_DATA' flags; asfcode = '-406'.
In $CCM_HOME/informix/log/<server>.log
16:39:11 IBM Informix Dynamic Server Started.
16:39:12 Could not disable priority aging: errno = 13
Thu Jun 24 16:39:12 2014
16:39:12 Error: Unable to reset open files limit, must run as super-user
16:39:12 Event alarms enabled. ALARMPROG = '/synergy/cm721/ccm/informix/etc/alarmprogram.sh'
16:39:12 (0) error in creating /INFORMIXTMP
Workaround
Login as root and create a directory /INFORMIXTMP under the root directory. Change the permissions as follows:
root# mkdir /INFORMIXTMP
root# chown informix:informix /INFORMIXTMP
root# chmod 1775 /INFORMIXTMP
Execute 'ccmsrv create' again.
oninit: Fatal error in initializing ASF with 'ASF_INIT_DATA' flags; asfcode = '-406'.
Commad:
ccmsrv create
Error:
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
WARNING: unable to initialize the database server
see /synergy/cm721/ccm/informix/log/cm721.log for details
oninit: Fatal error in initializing ASF with 'ASF_INIT_DATA' flags; asfcode = '-406'.
In $CCM_HOME/informix/log/<server>.log
16:39:11 IBM Informix Dynamic Server Started.
16:39:12 Could not disable priority aging: errno = 13
Thu Jun 24 16:39:12 2014
16:39:12 Error: Unable to reset open files limit, must run as super-user
16:39:12 Event alarms enabled. ALARMPROG = '/synergy/cm721/ccm/informix/etc/alarmprogram.sh'
16:39:12 (0) error in creating /INFORMIXTMP
Workaround
Login as root and create a directory /INFORMIXTMP under the root directory. Change the permissions as follows:
root# mkdir /INFORMIXTMP
root# chown informix:informix /INFORMIXTMP
root# chmod 1775 /INFORMIXTMP
Execute 'ccmsrv create' again.
Good one, thanks for sharing, saved lot of time
ReplyDelete