Added support for TWO_TASK and ORACLE_SID, fixed incorrect return code