标签归档:onmonitor

onmonitor 启动出错处理

[informix@datacenter ~]$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export INFORMIXDIR=/home/informix/
export PATH=$INFORMIXDIR/bin:$PATH
export INFORMIXSERVER=online_db
export ONCONFIG=onconfig.online_db
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts.online_web

[informix@datacenter ~]$ onmonitor
Program stopped at “tb4_main.4gl”, line number 78.
FORMS statement error number -1170.
The type of your terminal is unknown to the system.
[informix@datacenter ~]$ export TERM=xterm
[informix@datacenter ~]$ onmonitor
Program stopped at “tb4_main.4gl”, line number 78.
FORMS statement error number -1170.
The type of your terminal is unknown to the system.
[informix@datacenter ~]$ export TERMCAP=$INFORMIXDIR/etc/termcap
[informix@datacenter ~]$ onmonitor

或者

[informix@datacenter ~]$ onmonitor
Program stopped at “tb4_main.4gl”, line number 78.
FORMS statement error number -1170.
The type of your terminal is unknown to the system.
[informix@datacenter ~]$ export TERMCAP=$INFORMIXDIR/etc/termcap
[informix@datacenter ~]$ onmonitor
Program stopped at “tb4_main.4gl”, line number 78.
FORMS statement error number -1170.
The type of your terminal is unknown to the system.
[informix@datacenter ~]$ export TERM=xterm

得出结论:TERMCAP与TERM环境变量缺一不可(IBM Informix Dynamic Server Version 11.70.UC7)

export TERMCAP=$INFORMIXDIR/etc/termcap
export TERM=xterm