How to export $ORACLE_HOME
and $PATH
in java program so oracle related commands will work?
If I execute ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
and export PATH=$PATH:$ORACLE_HOME/bin
from terminal
now if i run Linux command lsnrclt
status it gives result.
How can I do this using Java program so that will be in path and i can get result of lsnrctl
status command result?