String statement ="sqlplus username/password@sid @c:\test.sql";
try {
Runtime.getRuntime().exec(statement);
} catch (IOException e) {
e.printStackTrace();
}
try {
Runtime.getRuntime().exec(statement);
} catch (IOException e) {
e.printStackTrace();
}