Une petite astuce à utiliser pour afficher la valeur des variables définies au moment du lancement d'un processus :
# ps -ef |grep db2sysc
db2inst1 2097466 2425200 14 Feb 12 - 15543:28 db2sysc 0
# ps eww 2097466|tr ' ' '\n'|grep =|sort
AIXTHREAD_SCOPE=S
CLASSPATH=/homedb2/db2inst1/sqllib/java/db2java.zip:/homedb2/db2inst1/sqllib/java/sqlj.zip:/homedb2/db2inst1/sqllib/function:/homedb2/db2inst1/sqllib/java/db2jcc_license_cu.jar:/homedb2/db2inst1/sqllib/tools/clpplus.jar:/homedb2/db2inst1/sqllib/tools/jline-0.9.93.jar:/homedb2/db2inst1/sqllib/java/db2jcc.jar:.
DB2INSTANCE=db2inst1
DB2INSTDEF=db2inst1
DB2LIB=/homedb2/db2inst1/sqllib/lib
DB2LPORT=0
DB2NODE=0
DB2SYSC_EXEC_OWNER=DB2
DB2_HOME=/homedb2/db2inst1/sqllib
LANG=C
LIBPATH=/homedb2/db2inst1/sqllib/lib64:/homedb2/db2inst1/sqllib/function:/homedb2/db2inst1/sqllib/java/jdk64/jre/lib/ppc64:
LOCPATH=/usr/lib/nls/loc
ODMDIR=/etc/objrepos
PATH=/homedb2/db2inst1/sqllib/bin:/homedb2/db2inst1/sqllib/adm:/bin:
PWD=/
TZ=CET-1CEST,M3.5.0/2:00:00,M10.5.0/03:00:00