To check environment vars in a linux setup:

[bash]set[/bash]

…this should return a list of the environment entries and can retrieve entries like:

[bash]HOME # the active user’s home dir
HOSTNAME # the server’s name
ORACLE_HOME # the default path of an oracle installation
ORACLE_SID # the service/name of a db instance[/bash]