Professional Documents
Culture Documents
Document1495576.1
Ravi(Available)
PowerViewisOff
Dashboard
Knowledge
ServiceRequests
Patches&Updates
GiveFeedback...
Community
YouhavebeendirectedtothisdocumentbasedonanIDmatch.
(0)
ContactUs
Help
1495576.1
Alternatively,clickheretosearchonthisphrase.
HowToLoadChineseCharactersUsingSQL*Loader(DocID1495576.1)
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=124153417109841&id=1495576.1&_adf.ctrlstate=1ba6kx95kj_77
Hide
ToBottom
1/3
2/14/2016
Document1495576.1
InthisDocument
Wasthisdocumenthelpful?
Yes
No
Goal
Fix
References
DocumentDetails
APPLIESTO:
Type:
Status:
LastMajor
Update:
LastUpdate:
OracleServerEnterpriseEditionVersion10.2.0.5to11.2.0.4[Release10.2to11.2]
Informationinthisdocumentappliestoanyplatform.
RelatedProducts
ThisnotehelpsyouinloadingchinesecharactersusingSQL*Loader.
FIX
OracleDatabaseEnterprise
Edition
InformationCenters
LogintotheUNIXserverandconfiguretheservertouseunicode.SetthecorrectenvironmentvariablesforLC_ALLand
NLS_LANG.
InformationCenter:Overview
DatabaseServer/Client
Installationand
Upgrade/Migration
[1351022.2]
Forexample,setenvironmentvariableNLS_LANG=AMERICAN_AMERICA.UTF8forloadingchinesecharacterscorrectly.
Reference/Notes:
IndexofOracleDatabase
InformationCenters
[1568043.2]
Note788156.1AL32UTF8/UTF8(Unicode)DatabaseCharacterSetImplications
InformationCenter:Overview
ofDatabaseSecurityProducts
[1548952.2]
Note:UTF8canbe1,2,3or6bytes/character.anyAL32UTF8characterthatis4byteswillbestoredas2time3bytesin
UTF8.Theamountof"reallife"charactersthatwillbe6bytesislimitedandwillonlyexistwhenusing(some)chinesecharacters
see<Note69518.1>and<Note787371.1>.
DocumentReferences
StoringandChecking
CharacterCodepointsinan
UTF8/AL32UTF8(Unicode)
database[69518.1]
altersessionsetNLS_LANGUAGE='dutch'
selectrpad('',5,'x')fromdual
selectrpad(to_nchar(''),5,to_nchar('x'))fromdual
altersessionsetNLS_LANGUAGE='simplifiedchinese'
selectrpad('',5,'x')fromdual
selectrpad(to_nchar(''),5,to_nchar('x'))fromdual
sessionSETaltered.
HOWTO
PUBLISHED
16Oct2012
16Oct2012
GOAL
AL16UTF16implementsthe"contextaware"behaviorof"East_Asian_WidthAmbiguous"characters.Note:thisneedsa
NLS_NCHAR_CHARACTERSETsettoAL16UTF16
AL32UTF8/UTF8(Unicode)
DatabaseCharacterSet
Implications[788156.1]
RPAD('',5,'X')
xxxx
RPAD(TO_NCHAR(''),5,TO_NCHAR('X'))
xxxx<<<<<hereis1displaywidthsbecausethecontext(NLS_LANGUAGE)isDutch
sessionSETaltered.
RPAD('',5,'X')
xxxx
RPAD(TO_NCHAR(''),5,TO_NCHAR('X'))
xxx<<<<<hereis2displaywidthsbecausethecontext(NLS_LANGUAGE)is
Chinese
RecentlyViewed
HowToLoadChinese
CharactersUsing
SQL*Loader[1495576.1]
ARTaxNotTransferringTo
APInvoiceForAGIS
Transaction[1676465.1]
AGIS:Approved
Transactions(OnlineMode)
arenotPassedtoAR,AP
Interfaces[1538364.1]
HowToProcessAnAGIS
BatchWhen
Receivables/PayablesPeriod
isAlreadyClosed?
[1955766.1]
EBTaxDataCorruption
Issues&Recommended
Solutions[1316316.1]
ShowMore
Thiscanbeusedtoforce"East_Asian_WidthAmbiguous"characterstousea2displaywidth:
createorreplacefunctionRpad_amb(p_strvarchar2,p_occnumber,p_padvarchar2default'')return
varchar2is
v_nls_languagevarchar2(40)
v_Rapd_nNvarchar2(2000)
v_pad_nNvarchar2(2000)
begin
v_Rapd_n:=to_nchar(p_str)
v_pad_n:=to_nchar(p_pad)
selectvalueintov_nls_languagefromnls_session_parameterswhereparameter='NLS_LANGUAGE'
executeimmediate('altersessionsetNLS_LANGUAGE=''simplifiedchinese''')
v_Rapd_n:=Rpad(v_Rapd_n,p_occ,v_pad_n)
executeimmediate('altersessionsetNLS_LANGUAGE='''||v_nls_language||'''')
returnto_char(v_Rapd_n)
end
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=124153417109841&id=1495576.1&_adf.ctrlstate=1ba6kx95kj_77
2/3
2/14/2016
Document1495576.1
end
Note:TheEastAsianlanguagesincludeChinese,Japanese,andKorean.Thecomplexscriptandrighttoleftlanguagesinclude
Arabic,Armenian,Georgian,Hebrew,theIndianlanguages,Thai,andVietnamese.
REFERENCES
NOTE:69518.1StoringandCheckingCharacterCodepointsinanUTF8/AL32UTF8(Unicode)database
NOTE:788156.1AL32UTF8/UTF8(Unicode)DatabaseCharacterSetImplications
Didn'tfindwhatyouarelookingfor?
AskinCommunity...
Related
Products
OracleDatabaseProducts>OracleDatabaseSuite>OracleDatabase>OracleDatabaseEnterpriseEdition>SQL*Loader
Keywords
AL16UTF16 AL32UTF8 CHARACTERSET CHINESE NLS_LANG
BacktoTop
Copyright(c)2016,Oracle.Allrightsreserved.
LegalNoticesandTermsofUse
PrivacyStatement
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=124153417109841&id=1495576.1&_adf.ctrlstate=1ba6kx95kj_77
3/3