`
sunxuecheng
  • 浏览: 23479 次
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

sqlloader6

阅读更多
try
            {
                // 获得执行结果.判断,如果为2,表示执行成功
                exitValue = ldr.waitFor();
                if (exitValue == 2 || exitValue == 0)
                {
                    if (logger.isDebugEnabled())
                    {
                        logger.debug("ORACLE SQLLoad success.");
                    }
                    result = true;
                }
                else
                {
                    logger.error("ORACLE SQLLoad failed," + this);
                }
            }
            catch (InterruptedException e)
            {
                logger.error("ORACLE SQLLoad interrupted.", e);
            }
            finally
            {
                boolean delResult = new File(cmdarray[CMD_CTLFILEPATHNAME_IDX])
                        .delete();
                if (delResult)
                {
                    if (logger.isDebugEnabled())
                    {
                        logger.debug("ORACLE SQLLoad delete ctl file "
                                + cmdarray[CMD_CTLFILEPATHNAME_IDX]
                                + " success.");
                    }
                }
                else
                {
                    logger.error("ORACLE SQLLoad delete ctl file "
                            + cmdarray[CMD_CTLFILEPATHNAME_IDX] + " failure.");
                }
            }

        }
        catch (IOException e)
        {
            logger.error(e.getMessage(), e);
        }
        return result;
    }
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics