Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
handling special characters in sqlldr
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dmardkar  
View profile  
 More options Sep 9 2010, 12:11 pm
Newsgroups: comp.databases.oracle.server
From: dmardkar <dmard...@gmail.com>
Date: Thu, 9 Sep 2010 09:11:52 -0700 (PDT)
Local: Thurs, Sep 9 2010 12:11 pm
Subject: handling special characters in sqlldr
Hi,

I am trying to load a record(s) in a table which contains a field of
text datatype. The records in question contain occasional single
qoutes. This is an example of such records:

en|PRD-SHPE|11.0|NOTE:  If a slab is a dummy', an asterisk is
displayed at the end of the|20011003.0|

I am then creating a control file and use sqlldr to load the data but
the load fails with the following messege:

Record 1: Rejected - Error on table SCRHLP_REC, column HLP_TXT.
ORA-12899: value too large for column
"RPSNX31"."SCRHLP_REC"."HLP_TXT" (actual: 75, maximum: 74)

Here is the control file I am using:

load data
infile "./scrhlp.dat" "str X'400A'"
badfile "./scrhlp.bad"
into table scrhlp_rec
fields terminated by "|"
(
HLP_LNG_CD         ,
HLP_FLD_NM         ,
HLP_LN_NO          ,
HLP_TXT ,
HLP_REF_DT
)

If I remove the single qoute in the data, all works fine. How do I
specify that a single qoute is acceptable in this case? Please help.

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shakespeare  
View profile  
 More options Sep 9 2010, 5:11 pm
Newsgroups: comp.databases.oracle.server
From: shakespeare <what...@xs4all.nl>
Date: Thu, 09 Sep 2010 23:11:15 +0200
Local: Thurs, Sep 9 2010 5:11 pm
Subject: Re: handling special characters in sqlldr
Op 9-9-2010 18:11, dmardkar schreef:

Make the column some chars longer.

Shakespeare


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ddf  
View profile  
 More options Sep 9 2010, 5:13 pm
Newsgroups: comp.databases.oracle.server
From: ddf <orat...@msn.com>
Date: Thu, 9 Sep 2010 14:13:34 -0700 (PDT)
Local: Thurs, Sep 9 2010 5:13 pm
Subject: Re: handling special characters in sqlldr
On Sep 9, 12:11 pm, dmardkar <dmard...@gmail.com> wrote:

I have no problems loadng data with a single-quote inline; are your
text strings enclosed with ' or "?  Using " my loads succeed.
Possibly you should change the enclosing quotation character for your
string data.

David Fitzjarrell


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »