Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> SQL Loader Help --
Hi,
I'm trying to load data into oracle from a sql server bcp character output
file -- here's the specifics
The error I receive is:
SQL*Loader-524: partial record found at end of datafile (oraclloadopts.txt)
the table is defined as
create table OrderProduct
(
OrderID NUMBER(6) not null, ShippingDate DATE not null, ProductID CHAR(10) not null, UnitPrice NUMBER(8,2) not null, Quantity INTEGER not null,)
Here's my control file contents:
OPTIONS (BINDSIZE=100000)
LOAD DATA
INFILE 'ORDERPRODUCT.TXT'
BADFILE 'ORDERPRODUCT.BAD'
INTO TABLE ORDERPRODUCT
FIELDS TERMINATED BY ','
-- hex code 27 is the single quote
OPTIONALLY ENCLOSED BY X'27'
(orderid, shippingdate DATE(23) "YYYY-MM-DD HH24:MI:SS", PRODUCTID,
UNITPRICE,QUANTITY)
Here's a sample record from the text file
78057,1976-04-15 07:44:12.000,' 0INT 0',656.37,5
Does someone know what I'm doing wrong??
Thanks
Dave Stienessen
Received on Tue Sep 21 1999 - 17:53:07 CDT
![]() |
![]() |