oracle ctl产生.bad文件,sqlldr不产生bad文件的问题

在做sqlldr时

如果数据库中目标表非空

导入失败

请问如何使其产生bad文件?

脚本如下:

sqlldr command:

D:\test>sqlldr ctaisxcz11/oracle@ctais control=DM_AJDJ.ctl bad=DM_AJDJ.bad log=DM_AJDJ.log discard= DM_AJDJ.dis rows=1000 errors=1000 bindsize=5000000

controlfile:

LOAD DATA

INFILE 'DM_AJDJ.dat'"str '|\n'"

PRESERVE BLANKS

INTO TABLE DM_AJDJ

FIELDS TERMINATED BY " ##### "

TRAILING NULLCOLS

(

AJDJ_DM,

AJDJ_MC

)

logfile:

SQL*Loader: Release 9.2.0.1.0 - Production on Tue Jul 12 10:29:34 2005

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

Control File:   DM_AJDJ.ctl

Data File:      DM_AJDJ.dat

File processing option string: "str '|\n'"

Bad File:     DM_AJDJ.bad

Discard File: DM_AJDJ.dis

(Allow all discards)

Number to load: ALL

Number to skip: 0

Errors allowed: 1000

Bind array:     1000 rows, maximum of 5000000 bytes

Continuation:    none specified

Path used:      Conventional

Table DM_AJDJ, loaded from every logical record.

Insert option in effect for this table: INSERT

TRAILING NULLCOLS option in effect

Column Name                  Position   Len  Term Encl Datatype

------------------------------ ---------- ----- ---- ---- ---------------------

AJDJ_DM                             FIRST     *           CHARACTER

Terminator string : ' ##### '

AJDJ_MC                              NEXT     *           CHARACTER

Terminator string : ' ##### '

SQL*Loader-601: For INSERT option, table must be empty.  Error on table DM_AJDJ

log文件提示插入失败,但没有产生bad文件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值