메뉴 건너뛰기

Korea Oracle User Group

Admin

Windows 접속 에러 ORA-12638

Talros 2024.02.14 14:38 조회 수 : 110 추천:1

 

  테스트 OS : Windows Server 2019 Standard 64 bit

  DB Version : 11.2.0.4.201020 ( Windows Database Bundle Patch )

 

windows server 에 DB를 설치 후 Client 에서 접속시 아래와 같은 에러가 발생을 하였다.

 

SQL*Plus: Release 12.1.0.1.0 Production on Tue Feb 13 17:12:57 2024

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Enter password:
ERROR:
ORA-12638: Credential retrieval failed

 

 

서버 Alert log 에서도 같은 에러가 발생 하는 것을 확인 하였다.

 

TNS-12638: 인증서 검색을 실패했습니다.
  ns secondary err code: 0
  nt main err code: 0
  nt secondary err code: 0
  nt OS err code: 0
opiodr aborting process unknown ospid (2244) as a result of ORA-609

 

 

Client 단에서 에러 확인을 위해 sqlnet.ora 를 수정해 로그를 남깁니다.

  # 추가 할 내용

TRACE_LEVEL_CLIENT = 16
TRACE_FILE_CLIENT = client
TRACE_DIRECTORY_CLIENT = D:\temp
TRACE_TIMESTAMP_CLIENT = ON
TRACE_UNIQUE_CLIENT = ON
DIAG_ADR_ENABLED= OFF

 

에러를 발생 시켜 남긴 트레이스에서 오류 메세지를 찾습니다.

 

(14520) [13-FEB-2024 16:48:35:087] naun5authent: Authentication type is 0
(14520) [13-FEB-2024 16:48:35:089] naun5authent: SSPI: 0x80090303 error in InitializeSecurityContext
(14520) [13-FEB-2024 16:48:35:089] naun5authent: exit
(14520) [13-FEB-2024 16:48:35:089] naunauthent: exit
(14520) [13-FEB-2024 16:48:35:089] nau_ccn: get credentials function failed
(14520) [13-FEB-2024 16:48:35:089] nau_ccn: failed with error 12638
(14520) [13-FEB-2024 16:48:35:089] nacomsd: entry
(14520) [13-FEB-2024 16:48:35:089] nacomfsd: entry
(14520) [13-FEB-2024 16:48:35:089] nacomfsd: exit
(14520) [13-FEB-2024 16:48:35:089] nacomsd: exit
(14520) [13-FEB-2024 16:48:35:089] nau_ccn: exit
(14520) [13-FEB-2024 16:48:35:089] na_csrd: failed with error 12638
(14520) [13-FEB-2024 16:48:35:089] na_csrd: exit
(14520) [13-FEB-2024 16:48:35:089] nacomer: error 12638 received from Authentication service
(14520) [13-FEB-2024 16:48:35:089] nacomer: failed with error 12638

 

두개의 정보로 Oracle Support 를 확인 해보니 일치 하는 정보를 찾았습니다.

 

OS Authentication Fails With ORA-12638 On Non-English Windows System (Doc ID 1280996.1)

 

아래의 조건 중에 상황이 발생을 하는거 같습니다. 

 

테스트 환경은 Active Directory authentication만 제외하고 나머지는 일치한 환경이였습니다.

 

- You are running Oracle on a Windows system with an non-English language (typically French, but may happen with other languages)
- sqlnet.ora parameter sqlnet.authentication_services = (NTS) for Active Directory authentication.
- The Oracle services run with the local system account (default)
- The Domain user is properly added to the local ORA_DBA group.
- When you try to connect with a Domain user it fails with the error ORA-12638

 

해결 방법은 오라클 서비스를 기본인 로컬서비스 계정이 아닌 도메인\유저로 직접 할당을 해서 기동을 하거나

윈도우 기본 언어를 영어로 설정을 하도록 가이드를 하고 있습니다.


1.) Change the Oracle and Listener service to run with the same Domain user that you are using for the administrative purposes, you can do this by changing the 'logon as' user in the service properties of these services. The format of the credentials should be : domain\user

2.) Change the Windows system and set it up with the English language.

 

 

2번의 언어를 영문으로 변경 하는 것은 서비스중인 서버라 변경을 못하였고 아래 화면 처럼 리스너와 오라클 서비스를 도메인\유저 로 등록 재실행

윈도우화면저장.JPG

 

서비스 재기동 이후에 에러 없이 서버에 접속을 할 수 있었습니다.

 

 

P.S  Linux Client to Windows Server 로 접속 하는 것은 문제가 없던 것으로 봐서는 

     Wndows Client to Windows Server 에서만 발생을 하는 문제로 판단 됩니다.

 

번호 제목 글쓴이 날짜 조회 수
34 Oracle Archive log 사용량 확인(GV$ARCHIVED_LOG) [1] 에밀리오 2016.08.04 11210
33 내가 돌린 SQL ID 찾기 [1] Talros 2016.05.12 8804
32 DBMS_SCHEDULER을 통해 OS 레벨(EXTERNAL)의 shell 수행하기 명품관 2017.04.05 5766
31 오라클 패치 정보를 조회할 수 있는 뷰 DBA_REGISTRY_SQLPATCH 명품관 2017.03.02 5482
30 Schema Password 복사 하기 Talros 2016.10.05 3282
29 [12cR2 이상] 오브젝트 이름 30자이상 사용 가능 우뽕 2020.01.22 2892
28 Fixed Table에 대한 권한은 직접적으로 부여되지 않는다. 명품관 2016.08.26 2686
27 Oracle Resource Limit를 이용한 간단한 Parameter Check (GV$RESOURCE_LIMIT) 에밀리오 2016.07.15 2251
26 Partition 추가의 계절 - Range Partition 추가시 알아 두어야할 부분 [1] 명품관 2015.12.03 2222
25 Kill Session Script (GV$SESSION) 에밀리오 2016.07.12 2132
24 Alert Log를 SQL 사용하여 보기 (X$DBGALERTEXT) [1] 에밀리오 2016.01.28 2035
23 Pga 메모리 설정관련 내용 [1] 우뽕 2021.03.05 1812
22 Alert log 에서 갑자기 패치 정보가 나타나는 현상 Talros 2019.09.23 1662
21 테이블 컬럼의 Default 값에 대한 흔적은 Dictionary에 계속 남게 된다. 명품관 2016.04.05 1588
20 Block Cleanout(블럭 클린아웃) 명품관 2016.09.23 1508
19 Schema password 재 사용 불가능 하게 하기 [1] Talros 2022.01.26 1315
18 DB option Enable / Disable 정리 방법 - Mos 참고 file 우뽕 2021.01.31 1219
17 Active Session History를 이용한 TOP SQL 분석 (GV$ACTIVE_SESSION_HISTORY) 에밀리오 2016.07.12 1205
16 RECO 프로세스 트레이스 발생 하면서 ORA-02019 에러 발생시 명품관 2021.01.12 1025
15 SQL Plan Management(SPM) - 1 파라미터의 기능 확인 명품관 2020.03.19 1007
위로