81,092
社区成员
发帖
与我相关
我的任务
分享
import java.io.IOException;
public class DBBackupTest {
public static void main(String[] args) {
String cmd = "exp scott/tiger@orcl file=D:\\orcl_backup.dmp owner=scoot log=D:\\db_backup.log";
try {
Runtime.getRuntime().exec(cmd);
} catch (IOException e) {
e.printStackTrace();
}
}
}