[oracle 10g]오라클 한글깨짐 현상 해결방법[oracle 10g]오라클 한글깨짐 현상 해결방법

Posted at 2019. 10. 22. 08:25 | Posted in DataBase
반응형

오라클(Oracle) 연결시 한글이 깨진다? 무엇때문일까요?


한글이 깨지는 경우 보통 데이터베이스와 클라이언트 문자셋(characterset)


맞지 않아 발생됩니다. 오라클 한글깨짐 현상 해결방법을 살펴보시죠.


첫번째로 문자셋을 확인 해봐야합니다.


1. Oralce(오라클) 버전 확인

 

SELECT *

  FROM PRODUCT_COMPONENT_VERSION;




 


2. 서버 설정된 characterset 확인

 SELECT PARAMETER, VALUE

  FROM NLS_DATABASE_PARAMETERS

 WHERE PARAMETER LIKE '%CHAR%'




3. 캐릭터셋 변경 


UPDATE SYS.PROPS$ SET VALUE$='AMERICAN' WHERE NAME='NLS_LANGUAGE';

UPDATE SYS.PROPS$ SET VALUE$='AMERICA' WHERE NAME='NLS_TERRITORY';

UPDATE SYS.PROPS$ SET VALUE$='KO16MSWIN949' WHERE NAME='NLS_CHARACTERSET';



위처럼 update 하는 이유는 오라클 데이터베이스의 Characterset을 호스트 시스템과 같게 


해주기위한겁니다. 


4. DB 재가동


5. 시작 → 실행  Regdit 


 ▼ 윈도우10 Regdit 경로의 NLS_LANG에서 변경 

레지스터리


오라클 한글깨짐 현상 해결방법 잘 보셨나요?

간혹 이런경우가 발생하면 위 방법대로 해보시면 해결이 될겁니다.


#oracle versions #oralce copy table #fsb oracle #oracle database 18c

반응형

'DataBase' 카테고리의 다른 글

오라클 UPDATE 후 COMMIT 한 데이터 복구방법  (0) 2019.10.16
Table 목록 가져오기  (0) 2019.10.16
오라클 export 및 import  (0) 2013.08.30
archive mode로 변경  (0) 2013.08.30
Table Import  (0) 2013.08.30

//

listener.log 파일 사이즈 크기 변경listener.log 파일 사이즈 크기 변경

Posted at 2013. 8. 30. 17:59 | Posted in 카테고리 없음
반응형

As the listener.log file grows, the DBA will want to either remove or rename this log file. If you have ever tried to remove or rename the listener.log file on Windows while the TNS listener process was running you will quickly notice that Windows holds a lock on this file and returns an error: 

C:\> del C:\oracle\ora92\network\log\listener.log 
C:\oracle\ora92\network\log\listener.log 
The process cannot access the file because it is being used by another process.Most DBAs simply stop the TNS listener process, rename (or remove) the file, then restart the TNS listener process. This can, however, cause potention connection errors for users that are attempting to connect while the listener process is down. 
Even under UNIX, problems exist when attempting to rename the listener.log file while the TNS listener process is running. Just like under Windows, the Oracle TNS listener process holds an open handle to the file. Under UNIX, you CAN remove the file, but Oracle will not re-create the file when it attempts to write to it again. The TNS listener will need to be stopped and restarted in order for it to create the new listener.log file. 

Well, here is a solution for renaming (or removing) the listener.log file without having to stop and start the TNS listener process under either Windows or UNIX: 


Windows 
C:\> cd \oracle\ora92\network\log 
C:\oracle\ora92\network\log> lsnrctl set log_status off 
C:\oracle\ora92\network\log> rename listener.log listener.old 
C:\oracle\ora92\network\log> lsnrctl set log_status on 



UNIX 
% cd /u01/app/oracle/product/9.2.0/network/log 
% lsnrctl set log_status off 
% mv listener.log listener.old 
% lsnrctl set log_status on

반응형

//