使用weblogic环境,写了个程序调用Oracle工具sqlldr来倒入数据,数据量小没有问题,但是现在对一个超过十万条记录的文件操作,就会挂掉,在数据库中也只有几百条记录,求解,指教,谢谢。
程序如下:
String [] envCommand={"sqlldr","boss/boss@Oracle","control=C:/InputType.ctl ROWS=3000 ","data="+strFilePath+"\\"+strFileName,"log=C:/import.log"}
Process p = Runtime.getRuntime().exec(envCommand);
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String line;
if ((line=reader.readLine())!=null) {
rsp.setSuccess(false);
return rsp;
}
System.out.println("import su!");