Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

External Table

396896May 11 2006 — edited May 11 2006
Creating external table using below syntax

create table bill1
(compname varchar2(50),
account varchar2(100),
filename varchar2(100),
thedate date,
billablelc number(5),
flag varchar2(10),
STPIFLAG char(1))
ORGANIZATION EXTERNAL
(type oracle_loader
default directory dirtemp
ACCESS PARAMETERS
(
RECORDS delimited BY newline
FIELDS terminated BY ','
missing field values are null
(
compname,
account,
filename,
thedate date 'mm/dd/yyyy' ,
billablelc,
flag,
STPIFLAG
)
)
location('bill1.txt')
)


Bill1.txt contains
a74@rediffmail.com,Be Hoal,613443,2006-04-01 00:00:00,26,Supplier,Y
b2003@hotmail.com,Bet Memol,613445,2006-04-01 00:00:00,25,Supplier,Y

Querying the above table the following log is generated.

Error Log
KUP-04021: field formatting error for field THEDATE
KUP-04026: field too long for datatype

Can somebody please comment

Thanks
Kaushik
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2006
Added on May 11 2006
2 comments
171 views