Insert Chinese Data(Character Set
Can any Chinese DBA tell me how to store chinese data in Oracle 8.1.5.0.0 Database.
I tried the combination of UTF8 database character set with UTF8 national character set and UTF8 database character set with ZHS16MACCGB231280 national character set. A column in a table was defined as nchar/nvarchar2. But when I tried to insert chinese data into the column using insert into... command, I always got the error message 'Character Set Mismatch'.
Originally NCHAR was defined for a few selective fixed with Aisan character sets. In 9i it was redefined to support unicode. For 8.1.5 you will need to store your Chinese data in char, varchar, and CLOB data types.
Similar Messages
-
How to insert chinese data into MS SQL Server 2000 through JDBC
I am trying to insert chinese data into MS SQL server 2000 using JDBC. how to do this?
can anybody help me.
thanx.I am trying to insert chinese data into MS SQL server 2000 using JDBC. how to do this?
can anybody help me.
thanx. -
Insert Chinese data in Oracle but cannot be shown when querying
I use:
JDK 1.1.8, Oracle 8i, thin driver.
The OS is HP Unix.
I successfully insert the Chinese Big5 encoding data into Oracle. But I can't show the Chinese again when I querying.
Here's my code:
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection
("jdbc:oracle:thin:@hpdev.wisers.com:1521
:research", "corp", "corp");
stmt = con.createStatement();
String sqlString = new String("insert into filetable values(1,"
+ var1 + "," + var2 + "...)");
stmt.executeQuery(sqlString);
Then I show the result by "select * from filetable;". However, the Chinese Big5 encoding data cannot be shown, "+??.." is shown instead. There is no problem when the data is in English.
I have tried
byte[] sqlStringBytes = sqlString.getBytes("Big5");
String newsql = new String(sqlStringBytes,"Big5");
stmt.executeQuery(newsql);
but still not successful.
My NLS_LANG is
AMERICAN_AMERICA.ZHT16BIG5
How can I make use of this variable? How can I solve the problem?
I am very in hurry. The program deadline is coming!! Help please!!
nullYour code looks fine ?
What's your db character set ?
I successfully insert the Chinese Big5 encoding data into Oracle.How do you know this ? Did you verify with SQL*Plus to see whether the data can be retrieved ?
What are var1 and var2 ? -
Problem inserting XML doc (character set)
Hi all,
I'm having trouble trying to insert XML either "posting" it (xsql) or "putting" it
(OracleXML putXML).
The error that I get: "not supported
oracle-character-set-174".
The environment is:
Oracle 8i 8.1.5
(NLS_CHARACTERSET EL8MSWIN1253 for greek)
JDK 1.2.2
Apache Web Server 1.3.11
Apache JServ 1.1
XSQL v 0.9.9.1 and
XMLSQL, XML parser v2 that comes with it.
I had dropped all java classes and reloaded
them using oraclexmlsqlload batch file.
But still getting the same error.
The thing that is that I am
able to insert XML doc that was generated
with an authoring tool called W4F that extracts data from HTML pages and map them to
XML document, even with greek characters
in it. But when XML is generated using
an editor or the servlet like the following:
newschedule.xsql like
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="latestschedules.xsl"?>
<page connection="dtv" xmlns:xsql="urn:oracle-xsql">
<xsql:insert-request date-format="DD'/'MM'/'YYYY" table="schedule_details_view"
transform="request-to-newschedule.xsl"/>
<xsql:query table="schedule"
tag-case="lower" max-rows="5" rowset-element="latestschedules"
row-element="schedule">
select *
from schedules
order by schedule_id desc
</xsql:query>
</page>
request-to-newschedule.xsl like
<?xml version = '1.0'?>
<ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<xsl:for-each select="request/parameters">
<ROW>
<SCHEDULE_ID><xsl:value-of select="Schedule_id_field"/></SCHEDULE_ID>
<DESCRIPTION><xsl:value-of select="Description_field"/></DESCRIPTION>
<DETAILS>
<DETAILS_ITEM>
<STARTING_TIME><xsl:value-of select="Starting_Time_field_1"/></STARTING_TIME>
<DURATION><xsl:value-of select="Duration_field_1"/></DURATION>
</DETAILS_ITEM>
<DETAILS_ITEM>
<STARTING_TIME><xsl:value-of select="Starting_Time_field_2"/></STARTING_TIME>
<DURATION><xsl:value-of select="Duration_field_2"/></DURATION>
</DETAILS_ITEM>
<DETAILS_ITEM>
<STARTING_TIME><xsl:value-of select="Starting_Time_field_3"/></STARTING_TIME>
<DURATION><xsl:value-of select="Duration_field_3"/></DURATION>
</DETAILS_ITEM>
<DETAILS_ITEM>
<STARTING_TIME><xsl:value-of select="Starting_Time_field_4"/></STARTING_TIME>
<DURATION><xsl:value-of select="Duration_field_4"/></DURATION>
</DETAILS_ITEM>
<DETAILS_ITEM>
<STARTING_TIME><xsl:value-of select="Starting_Time_field_5"/></STARTING_TIME>
<DURATION><xsl:value-of select="Duration_field_5"/></DURATION>
</DETAILS_ITEM>
</DETAILS>
</ROW>
</xsl:for-each>
</ROWSET>
Hope that someone could help me on this ...
Any advice is highly appreciated.
Thanks in advance
Nicos Gabrielides
email: [email protected]Hi,
How about applying an XSL on the existing XML doc to create another XML doc to filter out the table column not found in the target db table, so that all the columns are matched and then use putXML to load?
Hope that helps.
OTN team@IDC -
Character Set based on Logon Language
Hi expert,
We have an issue here after upgrade from ECC5 to ECC6.
- In ECC5 (non-unicode), if we login with language ZH (chinese), the character set automatic set to Simplified Chinese.
- In ECC6(unicode), if we login with language ZH (chinese), the character set remain be Western European.
How can we set the system to automatic set the correct character set based on user logon language?
Currently in ECC6, user have to go to application toolbar -> Customize Local Layout -> Character Set to select the correct character set.
Any advice will be very appreciate.
Thank you.Hi,
Does someone has any idea on my issue?
Thank you. -
ADADMIN Convert Character Set CUSTOM_TOP
Hi All,
I am in the process of converting my 11i instance to UTF8. The database has been converted using DMU. The application folder structure is conveted using the ADADMIN utility.
The conversion of APPL_TOP is fine and no issues.
The conversion of CUSTOM_TOP created issues, the permission of files have chagned and none of the files in the custom top has execute permission.
Has anyone done characteset conversion in the past?
How to handle the CUSTOM_TOP character set conversion ? Can we just ignore the CUSTOM_TOP from converting to UTF8 ?
Regards
Sridhar MThe files that were present in the CUSTOM_TOP during the conversion had their permissions changed after the conversion. ie., none of the files had the execute privilege and hence the users were getting permission denied error on the CUSTOM objects.You can simply set the execute permission on those files.
If you have followed any metalink document please share it with me. Please see the docs referenced in these threads.
Character Set Migration
Oracle E-Biz Applications Database characterset conversion
MLS Data Character Set Conversion
http://forums.oracle.com/forums/search.jspa?threadID=&q=Convert+AND+Characterset&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
http://forums.oracle.com/forums/search.jspa?threadID=&q=Migrate+AND+Characterset&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Hi everybody
In Oracle eBS R12 on unix, how to determine which character set to choose.
Thanks and regardsHi,
Please refer to [Oracle Applications Installation Guide: Using Rapid Install|http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121oaig.pdf], Page 1-20 NLS Settings.
You may also see the following threads.
MLS Data Character Set Conversion
MLS Data Character Set Conversion
NLS_CHARACTERSET UTF8 to NLS_CHARACTERSET WE8ISO8859P9
Re: NLS_CHARACTERSET UTF8 to NLS_CHARACTERSET WE8ISO8859P9
Regards,
Hussein -
Cannot insert Chinese character into nvarchar2 field
I have tested in two environments:
1. Database Character Set: ZHS16CGB231280
National Character Set: AL16UTF8
If the field type of datatable is varchar2 or nvarchar2, the provider can read and write Chinese correctly.
2. Database Character Set:WE8MSWIN1252
National Character Set: AL16UTF8
The provider can not read and write Chinese correctly even the field type of datatable is nvarchar2
I find that for the second one, both MS .NET Managed Provider for Oracle and Oracle Managed Data Provider cannot read and write NCHAR or NVARCHAR2 fields. The data inserted into these fields become question marks.
Even if I changed the NLS_LANG registry to SIMPLIFIED CHINESE_CHINA.ZHS16CGB231280, the result is the same.
For the second situation, only after I change the Database Character Set to ZHS16CGB231280 with ALTER DATABASE CHARACTER SET statement, can I insert Chinese correctly.
Does any know why I cannot insert Chinese characters into Unicode fields when the Database Character Set is WE8MSWIN1252? Thanks.
Regards,
JasonHi Jason,
First of all, I am not familiar with MS .NET Managed Provider for Oracle or Oracle Managed Data Provider.
How did you insert these Simplified Chinese characters into the NVARCHAR2 column ? Are they hardcoded as string literals as part of the SQL INSERT statement ? If so, this could be because, all SQL statements are converted into the database character set before they are parsed by the SQL engine; hence these Chinese characters would be lost if your db character set was WE8MSWIN1252 but not when it was ZHS16CGB231280.
Two workarounds, both involved the removal of hardcoding chinese characters.
1. Rewrite your string literal using the SQL function UNISTR().
2. Use bind variables instead of text literals in the SQL.
Thanks
Nat -
Error while inserting the Unicode (Russian/Chinese) Data in Oracle Database
Hi all,
I am using Oracle 9i and have created database with AL32UTF8 character set. I am using OraOLEDDB 9.0.1.0.1 to connect oracle from ATL COM. I have set the NLS_LANG= AMERICAN_AMERICA.AL32UTF8 registry.
I have created a table ItemMaster with two column ItemName Varchar2(20) and ItemDescription CLOB.
Values are accepted in ASP page and passed to COM function. In COM function inserting in ItemMaster table using ADO record set.
It works fine when I insert English Charaters.
COM is getting crash when insert Russian or Chinese Characters. Error message is given below. Looks like there is problem in OraOLEDB but not sure.
Guide me if I am doing something wrong.
Exception: E06D7363
Address: 0x7C81EB33
Call Stack:
kernel32!RaiseException + 0x52
UTFTran! + 0x4B2D
UTFTran! + 0x3D39
UTFTran! + 0x3D11
UTFTran! + 0x1870
OLEAUT32!DispCallFunc + 0xC3
OLEAUT32!DispCallFunc + 0x6D3
UTFTran! + 0x1C28
OLEAUT32! + 0x7BF39
OLEAUT32! + 0x7B1BD
RPCRT4!NdrProxyFreeBuffer + 0xB5
RPCRT4!CStdStubBuffer_Invoke + 0x82
OLEAUT32!VarMonthName + 0xCF89
ole32!StgGetIFillLockBytesOnFile + 0x10489
ole32!StgGetIFillLockBytesOnFile + 0x10433
ole32!CoReleaseMarshalData + 0x7DC
ole32!CoReleaseMarshalData + 0x701
ole32!StgGetIFillLockBytesOnFile + 0x10369
ole32!StgGetIFillLockBytesOnFile + 0x10214
ole32!StgGetIFillLockBytesOnFile + 0xFF6D
RPCRT4!NdrGetTypeFlags + 0x1C9
RPCRT4!NdrGetTypeFlags + 0x12E
RPCRT4!NdrGetTypeFlags + 0x5A
RPCRT4!CreateStubFromTypeInfo + 0x2E2
RPCRT4!CreateStubFromTypeInfo + 0x323
RPCRT4!NdrConformantArrayFree + 0x28B
RPCRT4!I_RpcBCacheFree + 0x14C
RPCRT4!I_RpcBCacheFree + 0x5EA
RPCRT4!I_RpcBCacheFree + 0x403
RPCRT4!I_RpcBCacheFree + 0x5D2
kernel32!GetModuleFileNameA + 0x1B4
Regards,
ManiCrossposted: http://forum.java.sun.com/thread.jspa?threadID=5293664&tstart=0
-
Character sets - UTF8 or Chinese
Hi,
I am looking into enhancing the application I have built in Oracle to save/display data in Chinese & English. I have looking into how to change the character set of a database to accept different languages i.e. different characters.
From what I understand I can create a database to use a Chinese character set (apparently English ascii characters are also a part of any Chinese character set) or I can set the database to use a unicode multi-byte character set (UTF8) - which seems to be okay for all languages.
Has anyone had any experience of a) changing an existing standard 7 byte ascii database into database which can handle Chinese and/or b) the difference/ implications between using a Chinese and unicode character sets.
I am using Oracle RDBMS 8.1.7 on SuSE Linux 7.2
Thanks in advance.
DanIf the data is segmented so that character set 1 data is in a table and character set 2 data is in another table then you may have a chance to salvage the data with help from support. The idea would be to first export and import only your CL8MSWIN1251 data to UTF8. Be careful that your NLS_LANG is set to CL8MSWIN1251 for export so that no conversion takes place. Confirm the import is successful and remove CL8MSWIN1251 data from database. Oracle support can now help you override the character set via ALTER database to say MSWIN1252. Now selectively export/import this data, again make sure NLS_LANG is set to MSWIN1252 for export so that no conversion takes place. Confirm the import is successful and remove MSWIN1252 data from database. And then do the same steps for 1250 data.
-
UTF8 character set conversion for chinese Language
Hi friends,
Would like to some basic explanation on UTF8 feature,what does it help while converting the data from chinese language.
Would like to know what all characters this UTF8 will not support while converting from chinese language.
Thanks & Regards
Ramya NomulaNot exactly sure what you are looking for, but on MetaLink, there are numerous detailed papers on NLS character sets, conversions, etc.
Bottom line is that for traditional Chinese characters (since they are more complicated), they require 4 bytes to store the characters (such as UTF-8, and AL32UTF8). Some mid-eastern characters sets also fall in this category.
Do a google search on "utf8 al32utf8 difference", and you will get some good explanations.
e.g., http://decipherinfosys.wordpress.com/2007/01/28/difference-between-utf8-and-al32utf8-character-sets-in-oracle/
Recently, one of our clients had a question on the differences between these two character sets since they were in the process of making their application global. In an upcoming whitepaper, we will discuss in detail what it takes (from a RDBMS perspective) to address localization and globalization issues. As far as these two character sets go in Oracle, the only difference between AL32UTF8 and UTF8 character sets is that AL32UTF8 stores characters beyond U+FFFF as four bytes (exactly as Unicode defines UTF-8). Oracle’s “UTF8” stores these characters as a sequence of two UTF-16 surrogate characters encoded using UTF-8 (or six bytes per character). Besides this storage difference, another difference is better support for supplementary characters in AL32UTF8 character set.
You may also consider posting your question on the Globalization Suport forum which pertains more to these types of questions.
Globalization Support -
Inserting Chinese character using sqlplus
I am not able to insert Chinese character using sqlplus .
Am getting disconnected when trying to insert.
with no error
message coming
is disconnected form oracle enterpise 10.2.0.2.0 with .. mining..
Please help.sql is simple insert statement
insert into t5(txt) values ('中中 中 中 中 中 中 中 中 中 ');
os is AIX
I wonder when i using sql developer I am able to insert.
regarding environmental variable , I am not setting any variable regarding NLS.
I simply connect sqlplus username/password
when I execute following statement
sqlplus disconnect without giving any error.
question is why sql developer is able able to insert and sqlplus not
Thanks for reply -
How to insert chinese or Japanese character into database
Hi,
Can any one please let me know how to insert chinese character to database.
We tried to insert some chinese character by copying but the characters are showing different while selecting from the database.
Should we install any font or something into database server for getting the character???Hi,
If your NLS_NCHAR_CHARACTERSET is set as AL16UTF16, then you can create a table with datatype NCHAR or NVARCHAR in the same instance and will be able to store foreign characters provided your client termional is configured to enter chinese characters.
Regards,
Mario Alcaide
http://marioalcaide.wordpress.com -
We developed a SSIS Package to pull the data From Oracle source to Sql Server 2012. Here we used ADO.Net source to pull the records from Source but getting the below error after pulling some 40K records.
[ADO NET Source [2]] Error: The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on ADO NET Source returned error code 0xC02090F5.
The component returned a failure code when the pipeline engine called PrimeOutput().
The meaning of the failure code is defined by the component,
but the error is fatal and the pipeline stopped executing.
There may be error messages posted before this with more
information about the failure.
Anything that we can do to fix this?Hi,
Tried both....
* Having schema type as Nvarchar(max). - Getting the same error.
* Instead of ADO.Net Source used OLEDB Source with driver as " Oracle Provide for OLE DB" Getting error as below.
[OLE DB Source [478]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on OLE DB Source returned error code 0xC0202009. The component returned a failure
code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the
failure.
Additional Info:
* Here the Source task is getting failed not the conversion or destination task.
Thanks,
Loganathan A. -
Character set marker unknown error while importing data in 10g from 8i
Hi All,
I am trying to import the whole database schema wise (one by one) through oracle 10g database control page (which is browser based)
But when i try to import the objects of a schema i get the error that
"IMP-00037 : Character set marker unknown "
Import terminated unsuccessfully
Would anybody please tell me about the mentioned error ???
Kindly provide the solution.
Mentioned below are the character sets available in both the version.
Character sets in oracle 8.1.7 :-
Database Character Set :: WE8ISO8859P1
National Character Set :: WE8ISO8859P1
Character sets in oracle 10.2.0.1.0 :-
Database Character Set :: WE8ISO8859P1
National Character Set :: AL16UTF16
Regards
Milin...
Message was edited by:
user640001Hi,
As you have asked, i have mentioned the export command below to get the full database export file.
And I have copied this export file (dump) to another machine(Server) where i have to import that file to upgrade the database to 10g Rel 2.
SET CC=%DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%
exp username/password@db_name
file=D:\PAY_BKP\EXP_FULL_PAY_%CC%.DMP log=D:\PAY_BKP\EXP_FULL_PAY.log
indexes=yes
full=yes
Kindly provide guidance.
Regards
Milin
Maybe you are looking for
-
Loops and Instruments still greyed out after purchase.
I paid for the extra loops and instruments on my iPad mini quite a few months ago. I just got a new mac and have tried everything to unlock them on here but nothing is working. It says they are in my purchases list but it just says GarageBand has bee
-
There are no details about which version the update applies to. I cannot be sure that this is not a scam so I have not uploaded it. The fact that the box stays on the screen for only a few seconds, before the regular Firefox screen opens, suggests th
-
Disabling Acrobat Connect and PDFMaker 8.0 permanently in Word 2003
I wish to disable Acrobat Connect and PDFMaker 8.0 permanently in Word 2003. I've tried several things, but they Add-on keeps appearing. Can anyone help me, please?
-
CR 2008 report not displaying until Group Tree clicked
We are having an issue with our CR 2008 web based reports. The reports run correctly locally, but not when launched from a Windows 2008 Server on which we installed Crystal Reports 2008 Fix Pack 3.3 - Redist Install. This is a web based application
-
Hi Experts, I know that the EDI Out Bound Process comprises of the following. steps Selection Program Message Control The Port Definition The RFC Destination The Partner Profile So, pls let me know the same in the same manner (broder way) for IN BOUN