I have been trying to load some data into an Oracle table through sqlldr80 by way of the command prompt. I keep...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
getting the message of...
Record 2: Rejected - Error on table CSRD_LOG_RTT, column PURPOSE. Field in data file exceeds maximum length
And I have tried to fix it by maxing out my constraint to varchar2(4000) and I still get this message. When I went back to the problem, I counted the characters and I got only 270. What could be causing this? I am rather new at this, so if it is a dumb question I apologize but I truly don't know what to do.
Thank you for any help possible,
First a little bit of terminology here. Your column does not have a "constraint" limiting it to so many characters. Rather it is "defined" to be at most so many characters. You can change this by issuing the following command:
ALTER TABLE csrd_log_rtt MODIFY (purpose VARCHAR2(4000));
This will let the PURPOSE column of the table hold at max 4000 characters. But this may not have been your problem. In order to use SQL*Loader, you must use a control file. This control file specifies how to handle the incoming data and where to put it. There may be a limitation in the control file on that column. You stated that there were 270 characters in the input file. What is the limitation on that column in the control file? Chances are very good that it is fewer than 270 characters.
For More Information
- What do you think about this answer? E-mail us at editor@searchDatabase.com with your feedback.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle tip to offer your fellow DBA's and developers? The best tips submitted will receive a cool prize--submit your tip today!
- Ask your technical Oracle questions--or help out your peers by answering them--in our live discussion forums.
- Ask the Experts yourself: Our Oracle gurus are waiting to answer your toughest questions.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.