摘要:
项目中需要导入几十MB、上百MB的TXT文本文件,利用oracle的sql loader导入非常不错。 String cmd = "sqlldr userid=数据库用户名/密码@数据库监听实例名 skip=1 errors=0 control=d:/test.ctl data=d:/test.txt log=d:/log/log.log bad=d:/log/bad.bad ";//返回与当前 Java 应用程序相关的运行时对象 Runtime run = Runtime.getRuntime(); // 启动另一个进程来执行命令Process p = run.exec( 阅读全文
posted @ 2012-05-14 21:40 CN.programmer.Luxh 阅读(304) 评论(1) 推荐(1) 编辑