For proper operation of IBM Informix Dynamic Server it is necessary to use certain environment variables. These environment variables should have an effect on all users. To do this you have to create one of the following shell scripts in the directory /etc/profile.d, depending on the type of OS shell.
1 Profile file
As root create the file informix.sh:
Copy
cd /etc/profile.d
Copy
cat > informix.sh
Paste the following code:
Copy
export INFORMIXDIR=`grep "^informix:" /etc/passwd | awk -F: '{ print $6 }'` export INFORMIXSERVER=`uname -n|awk -F'.' '{print $1}'` #ISO1 Locale #export DB_LOCALE=es_es.8859-1 #export CLIENT_LOCALE=es_es.8859-1 #ISO15 Locale #export DB_LOCALE=es_es.8859-15 #export CLIENT_LOCALE=es_es.8859-15 #UTF8 Locale export DB_LOCALE=en_us.utf8 export CLIENT_LOCALE=en_us.utf8 export DBDATE=DMY4- #Expand abbreviated year values. Default is R. #export DBCENTURY=C #Set DBMONEY to evade bug 173783 in IDS 10.0XC3 #export DBMONEY=, export PATH=${PATH}:${INFORMIXDIR}/bin export TERM=vt100 #In AIX is necessary sice it uses terminfo export TERMCAP=${INFORMIXDIR}/etc/termcap #4GL compatibility export LD_LIBRARY_PATH=${INFORMIXDIR}/lib:${INFORMIXDIR}/lib/esql:${INFORMIXDIR}/lib/tools:${LD_LIBRARY_PATH}
Give the new file execution permissions:
Copy
chmod +x informix.sh
And take the values of the environment variables:
Copy
su -