When I call oninit -i
command in an Ubuntu server terminal, it shows an error like this:
INFORMIXSERVER does not match DBSERVERNAME or any of the DBSERVERALIASES.FAILED
Can anyone give me a solution for this problem?
What is the setting of $INFORMIXSERVER
in your environment, and what values are set for DBSERVERNAME
and DBSERVERALIASES
in the $ONCONFIG
file? It seems that you've set $INFORMIXSERVER
to a value that isn't present in the $ONCONFIG
file that is in use. Maybe you didn't set $ONCONFIG
at all, or maybe you set $INFORMIXSERVER
incorrectly, or maybe the names in the $ONCONFIG
file are incorrect.
If you don't set $ONCONFIG
, it defaults to onconfig
(and maybe even falls back to onconfig.std). But you should normally set $ONCONFIG
to a known value. I usually use onconfig.<servername>
where the <servername>
is the value of DBSERVERNAME
in the file. However, nothing enforces that convention.