Solved

Oracle Multibyte issue

Posted on 2011-03-14
3
480 Views
Last Modified: 2012-05-11
There are several records that have a backslash at the end of a column which causes the load file to look like:
31082443130126091998|00000042041120012000|071010012020908\\|660175278|1|0.0|0.0|20|ACCOUNT DELINQUENT|1999-10-01 00:00:00|2000-01-10
00:00:00|0.0|2000-01-19 00:00:00|2000-01-10 00:00:00|68613.96|496.44|ASL52C|2000-01-20 00:00:00|11.04.42|F|GUAR RH LOAN DFLT STATUS
||||||65930656031918121996|

The error am getting seems to indicate the problem with the multi-byte issue:
Record 2455477: Rejected - Error on table SFHG_LOAN_STAT_RPT, column SVCR_ACCT_NBR.
ORA-12899: value too large for column SVCR_ACCT_NBR (actual: 17, maximum: 16)

However, the column is defined properly:
SVCR_ACCT_NBR                                      VARCHAR2(16 CHAR)

I’m wondering if it is the backslashes in the load file that is causing a problem.  It shouldn’t because the \\ should be interpreted as a single backslash.  The data does indeed have a backslash in it although it is for the same loan key.  Any thoughts on this one?

TIA,
N.
0
Comment
Question by:Nakuru1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35129908
It would be the double slashes.

17 characters cannot fit into a 16 character column.

Do you want one slash in the field or none?
0
 

Author Comment

by:Nakuru1234
ID: 35130316
Do you know what is causing the extra slash – that is the answer we are looking for on this one.

TIA,
N
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 35130331
>>Do you know what is causing the extra slash

It has to be whatever you are using to extract the data to create the pipe delimited file.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Read XML values 8 67
How do I search for a text string in my SQL code 18 48
Performance Issue in Oracle 3 44
Check for any ASM patches and install them. 1 23
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to recover a database from a user managed backup

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question