Error in Loading Data with SQLLDR in Oracle 10G [message #393153] |
Fri, 20 March 2009 09:50 |
megee
Messages: 7 Registered: March 2009 Location: London
|
Junior Member |
|
|
Hello,
Can any one suggest whats the problem in the below mentioned Control file used for loading data through SQL*LOADER
LOAD DATA
INFILE 'D:\test\temt.txt'
BADFILE 'test.bad'
DISCARDFILE 'test.dsc'
INTO TABLE "TEST"
INSERT
(SRNO INTEGER(7),
PROD_ID INTEGER(10),
PROMO_ID INTEGER(10),
CHANNEL_ID INTEGER(10),
UNIT_COST INTEGER(10),
UNIT_PRICE INTEGER(10)
)
I am trying to load data in SCOTT schema as user scott.
But i get an error "Commit point reached - logical record count 64"
Why do i get such an error, please refer the attach Log file.
If you need Bad file also please do let me know.
Edit: Mahesh Rajendran
Added CODE tags
-
Attachment: temt.log
(Size: 7.37KB, Downloaded 1375 times)
[Updated on: Fri, 20 March 2009 09:56] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Error in Loading Data with SQLLDR in Oracle 10G [message #393165 is a reply to message #393162] |
Fri, 20 March 2009 11:04 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
>>there might by some reason why i am not able to load data in table.Any point which i might not be considering.
Yes. There must be.
But we cannot help you unless you can post ***atleast*** some relevant information.
You have not given the table details or data details or the method you used to invoke sqlldr.
We cannot read your mind.
Please read my previous post.
Post the information that was asked here.
[Updated on: Fri, 20 March 2009 11:04] Report message to a moderator
|
|
|
|
|
Re: Error in Loading Data with SQLLDR in Oracle 10G [message #393179 is a reply to message #393172] |
Fri, 20 March 2009 11:45 |
megee
Messages: 7 Registered: March 2009 Location: London
|
Junior Member |
|
|
Does the below mentioned Control file make sense,
--1
LOAD DATA
INFILE 'D:\test\temt.txt'
BADFILE 'test.bad'
DISCARDFILE 'test.dsc'
INTO TABLE "TEST"
INSERT
FIELD TERMINATED BY (,)
(SRNO INTEGER(7),
PROD_ID INTEGER(10),
PROMO_ID INTEGER(10),
CHANNEL_ID INTEGER(10),
UNIT_COST INTEGER(10),
UNIT_PRICE INTEGER(10)
)
--2
LOAD DATA
INFILE 'D:\test\temt.txt'
BADFILE 'test.bad'
DISCARDFILE 'test.dsc'
INTO TABLE "TEST"
INSERT
FIELD TERMINATED BY (,) optionally enclosed by '"'
(SRNO INTEGER(7),
PROD_ID INTEGER(10),
PROMO_ID INTEGER(10),
CHANNEL_ID INTEGER(10),
UNIT_COST INTEGER(10),
UNIT_PRICE INTEGER(10)
)
For code--1 i get below mentioned error..
D:\>sqlldr scott/tiger
control = D:\test\temt.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Fri Mar 20 16:36:00 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-350: Syntax error at line 8.
Expecting "(", found "FIELD".
FIELD TERMINATED BY (,)
^
And for code--2 i get the below error,
D:\>sqlldr scott/tiger
control = D:\test\temt.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Fri Mar 20 16:39:22 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-350: Syntax error at line 8.
Expecting "(", found "FIELD".
FIELD TERMINATED BY (,) optionally enclosed by '"'
^
|
|
|
|
|
|
|