Multilingual Support Parameters [message #518473] |
Thu, 04 August 2011 01:31  |
|
Hey Everyone,
I had an dump file which contains multilingual data in the table but when I tried to do import in my database I got below mentioned error.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\dsharma>cd\
C:\>imp hell2/hell2 file='D:\SHARED\hell.dmp' full=y
Import: Release 11.2.0.1.0 - Production on Thu Aug 4 11:42:02 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by HELL, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing HELL's objects into HELL2
. . importing table "EMP"
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "HELL2"."EMP"."ENAME" (actual: 14, maximum: 10)
Column 1 7499
Column 2 ALLéNALLéN
Column 3 SALESMAN
Column 4 7698
Column 5 20-FEB-1981:00:00:00
Column 6 1600
Column 7 300
Column 8 30
Column 9
Column 10 0
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "HELL2"."EMP"."ENAME" (actual: 14, maximum: 10)
Column 1 7566
Column 2 JONéSJONéS
Column 3 MANAGER
Column 4 7839
Column 5 02-APR-1981:00:00:00
Column 6 2975
Column 7
Column 8 20
Column 9
Column 10 0
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "HELL2"."EMP"."ENAME" (actual: 14, maximum: 10)
Column 1 7698
Column 2 BLAKéBLAKé
Column 3 MANAGER
Column 4 7839
Column 5 01-MAY-1981:00:00:00
Column 6 2850
Column 7
Column 8 30
Column 9
Column 10 0
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "HELL2"."EMP"."ENAME" (actual: 12, maximum: 10)
Column 1 7844
Column 2 TURNéRTURN
Column 3 SALESMAN
Column 4 7698
Column 5 08-SEP-1981:00:00:00
Column 6 1500
Column 7 0
Column 8 30
Column 9
Column 10 0
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "HELL2"."EMP"."ENAME" (actual: 14, maximum: 10)
Column 1 7900
Column 2 JAMéSJAMéS
Column 3 CLERK
Column 4 7698
Column 5 03-DEC-1981:00:00:00
Column 6 950
Column 7
Column 8 30
Column 9
Column 10 0
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "HELL2"."EMP"."ENAME" (actual: 12, maximum: 10)
Column 1 7934
Column 2 MILLéRMILL
Column 3 CLERK
Column 4 7782
Column 5 23-JAN-1982:00:00:00
Column 6 1300
Column 7
Column 8 10
Column 9
Column 10 0 8 rows imported
Import terminated successfully with warnings.
C:\>
My database is having the default characterset WE8MSWIN1252 and the value for "NLS_LENGTH_SEMANTICS" is "BYTE". I changed it to "CHAR" but nothing changed.
Thanks
Deepak
|
|
|
Re: Multilingual Support Parameters [message #518479 is a reply to message #518473] |
Thu, 04 August 2011 01:44   |
 |
Michel Cadot
Messages: 67743 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
UTF8 is a varying-length character set which means that each character can take from 1 to 3 bytes, so your error.
You have to change all your varchar2 column length semantics from BYTE to CHAR using "ALTER TABLE MODIFY...".
The parameter NLS_LENGTH_SEMANTICS is effective for the future tables.
Regards
Michel
[Edit: add last sentence]
[Updated on: Thu, 04 August 2011 01:46] Report message to a moderator
|
|
|
|
|
Re: Multilingual Support Parameters [message #518530 is a reply to message #518519] |
Thu, 04 August 2011 06:51   |
|
I have tried but i got the same error for the missing data at the time of import, the changes you said can be done only once the table import is done.
I want some which can be done at the import time.
Regards
Deepak
|
|
|
|
|
|
|
|
Re: Multilingual Support Parameters [message #518616 is a reply to message #518614] |
Fri, 05 August 2011 01:47   |
|
But this won't be for the single table they might have to do for the several tables, as I can not ask them simply to change the CHARACTERSET of their database that will be like ending my career.
I'll try to implement it at my end for all the existing tables in database.
Thanks
Deepak
|
|
|
|
Re: Multilingual Support Parameters [message #518672 is a reply to message #518619] |
Fri, 05 August 2011 07:17   |
|
Hello Sir,
It didnot resolve the issue as when I tried to do theimport using the "rows=n" keyword,
all the tables were imported succesfully wihtout data and there after I made the changes
by altering the table with the command:
alter table xxx modify column_name varchar(250 char);
but there after when I tried to import the data I got the errors related to the foreign key
"violated - parent key not found"
Check out the Errors below:
ORA-02291: integrity constraint (SHARMA.FK_2A550F80) violated - parent key not found
Column 1 371
Column 2 9
Column 3 0
Column 4 214
Column 5 2
IMP-00019: row rejected due to ORACLE error 2291
IMP-00003: ORACLE error 2291 encountered
ORA-02291: integrity constraint (SHARMA.FK_2A550F80) violated - parent key not found
Column 1 272
Column 2 5
Column 3 1
Column 4 150
Column 5 1
IMP-00019: row rejected due to ORACLE error 2291
IMP-00003: ORACLE error 2291 encountered
ORA-02291: integrity constraint (SHARMA.FK_2A550F80) violated - parent key not found
Column 1 223
Column 2 44
Column 3 0
Column 4 127
Column 5 2
IMP-00019: row rejected due to ORACLE error 2291
IMP-00003: ORACLE error 2291 encountered
ORA-02291: integrity constraint (SHARMA.FK_2A550F80) violated - parent key not found
Column 1 235
Column 2 3
Column 3 3
Column 4 133
Column 5 1
IMP-00019: row rejected due to ORACLE error 2291
IMP-00003: ORACLE error 2291 encountered
ORA-02291: integrity constraint (SHARMA.FK_2A550F80) violated - parent key not found
Column 1 239
Column 2 8
Column 3 3
Column 4 135
Column 5 1
IMP-00019: row rejected due to ORACLE error 2291
IMP-00003: ORACLE error 2291 encountered
ORA-02291: integrity constraint (SHARMA.FK_2A550F80) violated - parent key not found
Column 1 359
Thanks
Deepak
|
|
|
|
|
|
Re: Multilingual Support Parameters [message #518818 is a reply to message #518750] |
Sun, 07 August 2011 08:41  |
|
Hi All,
The problem has been resolved, I first did the import without data bu using "ROWS=n", then I change the datatype of the column to CHAR by using "ALTER TABLE MODIFY COLUMN..." command.
Now before importing the data I disabled the constraint for the particular schema and there after issued the import command to import data and everything went well and the import was done successfully without any error.
Thanks everyone for all their efforts.
Regards
Deepak
|
|
|