oracl表已经建立,但是导入时仍然报SQL*Loader-941
表已经建立,但是导入时仍然报SQL*Loader-941,用命令sqlldrscott/123123control=C:\huadanfenxi\controlfile\...
表已经建立,但是导入时仍然报SQL*Loader-941,
用命令sqlldr scott/123123 control = C:\huadanfenxi\controlfile\input1.ctl direct = true skip = 1 errors = 99 log =C:\huadanfenxi\evdo.log
控制文件为
load data
infile 'C:\huadanfenxi\WHDO00-02.csv'
INTO table EVDOFENXI
fields terminated by ','
报错SQL*Loader-941 展开
用命令sqlldr scott/123123 control = C:\huadanfenxi\controlfile\input1.ctl direct = true skip = 1 errors = 99 log =C:\huadanfenxi\evdo.log
控制文件为
load data
infile 'C:\huadanfenxi\WHDO00-02.csv'
INTO table EVDOFENXI
fields terminated by ','
报错SQL*Loader-941 展开
2015-02-27
展开全部
你用哪个用户建立的表,就应该用哪个用户来执行SQLLOAD
执行:
sqlldr userid=system/psw control=d:\custs.ctl
结果:
SQL*Loader: Release 9.2.0.1.0 - Production on 星期三 6月 4 21:38:01 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
执行:
sqlldr userid=system/psw control=d:\custs.ctl
结果:
SQL*Loader: Release 9.2.0.1.0 - Production on 星期三 6月 4 21:38:01 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
追问
用scott用户建立的表,用的scott用户仍然导入失败,只能往user表空间的的表
展开全部
一、登录用户名需与表用户相同,登录连接串配置要正确!!!
如:sqlldr control=sbtotal.ctl,userid=odsbdata/odsbdata@10.1.0.1:1521/orcl log=logfile.log
二、表名需大写,引号,不能超过30个字符
示例如下:
options(skip=0,rows=1024,direct=Y)
Load DATA
CHARACTERSET 'utf8'
INFILE 'C:\Users\Administrator\Desktop\as.csv'
BADFILE 'D:\sqluldr2\sqlldr\loadtable.bad'
DISCARDFILE 'D:\sqluldr2\sqlldr\loadtable.dsc'
APPEND
INTO TABLE "XYKHK_SMRZ_TMP"
fields terminated by '|' optionally enclosed by '"'
trailing nullcols
(
orderid,
txntime,
pyacct,
idtftp,
idtfno,
userna,
mobile,
authmsg,
cvn3,
validdate,
merid,
status,
reason,
etl_date
)
如:sqlldr control=sbtotal.ctl,userid=odsbdata/odsbdata@10.1.0.1:1521/orcl log=logfile.log
二、表名需大写,引号,不能超过30个字符
示例如下:
options(skip=0,rows=1024,direct=Y)
Load DATA
CHARACTERSET 'utf8'
INFILE 'C:\Users\Administrator\Desktop\as.csv'
BADFILE 'D:\sqluldr2\sqlldr\loadtable.bad'
DISCARDFILE 'D:\sqluldr2\sqlldr\loadtable.dsc'
APPEND
INTO TABLE "XYKHK_SMRZ_TMP"
fields terminated by '|' optionally enclosed by '"'
trailing nullcols
(
orderid,
txntime,
pyacct,
idtftp,
idtfno,
userna,
mobile,
authmsg,
cvn3,
validdate,
merid,
status,
reason,
etl_date
)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询