BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] SAS에서 Oracle table을 읽으면, “… ORA-29275: partial multibyte character …” 오류가 발생합니다.

Started ‎10-06-2021 by
Modified ‎10-06-2021 by
Views 406

[상세내용]

ERROR: Error fetching from cursor. ORACLE error is ORA-29275: partial multibyte character

 

[답변]

오류의 원인은 Oracle server에 설정된 NLS_CHARACTERSET과 Oracle Client에서 지정한 NLS_LANG 값이 다를 경우 발생할 수 있습니다.

[Oracle Server 의 NLS_CHARACTERSET 확인 방법]

 

proc sql;

connect to oracle(user=xxx password=yyy path=zz);

create table ora as

select * from connection to oracle

(select NLS_CHARACTERSET

from v$nls_parameters);

disconnect from oracle;

quit;

 

서버의 NLS_CHARACTERSET 이 확인되면

/<sashome>/SASFoundation/9.4/bin/sasenv_local 파일에 환경변수 export 하면 됨

 

[환경변수 설정방법]

export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601"

 

Version history
Last update:
‎10-06-2021 11:02 PM
Updated by:
Contributors

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Article Labels
Article Tags