日期:2014-05-19 浏览次数:20816 次
public class TestExp{
public static void main(String[] args) {
Runtime rt = Runtime.getRuntime();
Process processexp = null;
String exp = "exp scott/abcdef@testst file=f://sql16.dmp";
try {
processexp = rt.exec(exp);
processexp.waitFor();//阻塞当前进程
System.out.println("导出成功");
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}