My understanding of the statement (I've just tested it) is that 4 bytes
equates to 4 chars. Try changing that to 255 and it should be fine.
I have to say I haven't seen that definition (4 byte) before, so I may be
talking out of my bottom..
M.
-----Original Message-----
From: Pravin Subramanian
[mailto:oracledba-ezmlmshield-x75361503.[Email address protected]
Sent: 08 January 2008 11:18
To: LazyDBA Discussion
Subject: RE: export schema
Hi Michael,
Pauline has specified 4 bytes (256 characters) as the limit. So I don't
understand why must an error be prompted in such a situation. Please do let
me know.
Thanks and Regards,
Pravin
-----Original Message-----
From: Michael Peel
[mailto:oracledba-ezmlmshield-x13019177.[Email address protected]
Sent: Tuesday, January 08, 2008 4:34 PM
To: LazyDBA Discussion
Subject: RE: export schema
HI,
I think it's the fact that your data is longer than the column definition
you've given for the external table.
M.
-----Original Message-----
From: pauline
[mailto:oracledba-ezmlmshield-x1964267.[Email address protected]
Sent: 08 January 2008 10:58
To: LazyDBA Discussion
Subject: RE: export schema
Thank you Viswa, Amit
I have created the external table, now the problem comes when I have to
select data from it. I get an ORA-01401.
It looks like the datatypes are different from those I specified on the
external table. DO you have any idea why this could be the case?
This is the structure of my external table:
create table pauline.xternal_tester
( JAN VARCHAR2(4 BYTE),
FEB VARCHAR2(10 BYTE),
MAR VARCHAR2(8 BYTE)
)
organization external
( default directory xternal_data_dir
access parameters
( records delimited by newline
fields terminated by ','
)
location ('tester.csv')
)
reject limit unlimited;
This is the output of the LOG:
Field Definitions for table XTERNAL_TESTER
Record format DELIMITED BY NEWLINE
Data in file has same endianness as the platform
Rows with all null fields are accepted
Fields in Data Source:
JAN CHAR (255)
Terminated by ","
Trim whitespace same as SQL Loader
FEB CHAR (255)
Terminated by ","
Trim whitespace same as SQL Loader
MAR CHAR (255)
Terminated by ","
Trim whitespace same as SQL Loader .
.
error processing column JAN in row 1 for datafile c:\temp\tester.csv
ORA-01401: inserted value too large for column
oracledba-ezmlmsh
ield-x80803713.x1
[Email Address Removed] To
.com [Email address protected]
cc
2008/01/08 11:36
AM Subject
RE: export schema
Hi Pauline,
Viswa is right. If you need more help, plz have a look at the below link. i
think it will help you a lot.
http://blog.econtentpark.com/2006/08/07/Import-of-a-Excel-or-any-other-f
ile-into-Oracle/
Regards,
Amit
**********************************************************************
This e-mail is confidential and may be privileged.
It may only be read, copied and used by the intended recipient.
If you have received it in error please contact the sender immediately
by return e-mail. Please then delete the e-mail and any copies of it
and do not use or disclose its contents to any person.
**********************************************************************
Registered Office: Farncombe House, Broadway, Worcestershire, WR12 7LJ
AccuRead Limited Registered Number: 3076187 England
GSL UK Limited Registered Number: 3333860 England
Global Solutions Limited Registered Number: 3189802 England
**********************************************************************
Oracle LazyDBA home page