Improved: Used OracleConnection to get domain name instead of system parameters