String cmd="sqlplus username/password@sid @c:/test.sql > c:/test.log";
try {
Process pr = Runtime.getRuntime().exec(cmd);
pr.waitfor();
} catch (IOException e) {
e.printStackTrace();
}
String cmd="sqlplus username/password@sid @c:/test.sql > c:/test.log";
try {
Process pr = Runtime.getRuntime().exec(cmd);
pr.waitfor();
} catch (IOException e) {
e.printStackTrace();
}