OracleDriver oracleDriver = new OracleDriver();
Connection conn =
oracleDriver.defaultConnection();
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery(
"select 'Hello '||initcap(USER)||'!' result from dual");
String greeting = null;
if (rset.next())
greeting = rset.getString(1);
rset.close();
stmt.close();
conn.close();
return greeting;