1. 시스템 환경변수 설정
export NLS_LANG='KOREAN_KOREA.AL32UTF8'


2. Oracle DB에 sys 계정으로 접속

-- 현재 설정 조회
select * from nls_database_parameters;

-- 캐릭터셋 업데이트
update sys.props$ set value$='AL32UTF8' where name='NLS_CHARACTERSET';

update sys.props$ set value$='AL32UTF8' where name='NLS_NCHAR_CHARACTERSET';

update sys.props$ set value$='KOREAN_KOREA.AL32UTF8' where name='NLS_LANGUAGE';

-- DB 캐릭터셋 반영
sql> startup mount;
sql> alter system enable restricted session;
sql> alter system set job_queue_process=0;
sql> alter system set aq_tm_processes=0;
sql> alter database open;
sql> alter database character set AL32UTF8;
sql> shutdown immediate;
sql> startup;

+ Recent posts