SQL LOADER GIVING ERROR

时间:2009-09-20 00:40:03

标签: oracle sql-loader

我执行命令并在控制台获取以下消息:

----------------------------------------------------------------------
SQLLDR APPS@VIS/APPS CONTROL=

SQL*Loader: Release 9.2.0.1.0 - Production on Tue Sep 2 10:49:27 2003

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

Commit point reached - logical record count 27
----------------------------------------------------------------------

WHEN I CHECK THE RECORDS I COULD NOT SEE DATA IN THE XXB_RJT_STAGING TABLE 

My control file is as follows:
----------------------------------------------------------------------
LOAD DATA
INFILE ''
INTO TABLE XXB_RJT_STAGING
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(
FIRSTNAME,LASTNAME
)
----------------------------------------------------------------------

我从EXCEL表创建了STAGE.CSV文件。

当我检查我的舞台时。包裹它的语言

FIRSTNAME,LASTNAME
MIKE,STONE
ROHAN,SPEED

2 个答案:

答案 0 :(得分:3)

将log,bad和discard选项添加到您的命令中,并查看其中的内容。

#>sqlldr userid=username/password control=yourcontrolfile.ctl data=yourdata.csv log=yourlogfile.log bad=yourbadfile.bad  discard=yourdiscardfile.disc

我使用一个控制文件来创建从excell创建的csv文件:

options (skip =6)
load data
append
into table table_name
fields terminated by "," optionally enclosed by '"'
(column_name1
,column_name2
,etc.
)

Skip = 6是跳过文件中的标题

答案 1 :(得分:0)

将日志文件添加到CTL中,查看日志文件的内容。 此外,如果您发布表定义,它可能会给出一个线索(例如,它可能没有这些列)。