프린트 하기

OS환경 : Oracle Linux 7.9 (64bit)

 

DB 환경 : Oracle Database 19.3.0.0

 

에러 : ORA-12638 : credential retrieval failed

db 접속 시도시 에러 발생

1
2
3
4
5
6
7
8
9
10
11
12
CMD> sqlplus system/oracle@orcl
 
SQL*Plus: Release 19.0.0.0.0 - Production on 일 2월 18 09:01:27 2024
Version 19.3.0.0.0
 
Copyright (c) 19822019, Oracle.  All rights reserved.
 
ERROR:
ORA-12638: 신용 검색에 실패했습니다
ORA-12638 : credential retrieval failed
 
사용자명 입력: ^C

 

 

 

해결 방법 : 클라이언트의 sqlnet.ora 파일 중 SQLNET.AUTHENTICATION_SERVICES= (NTS) 주석처리

db서버가 아닌 접속 시도중인 클라이언트 pc나 클라이언트 서버의 오라클 클라이언트의 home/network/admin으로 이동

C:\app\client\user\product\19c\network\admin

리눅스의 경우 cd $ORACLE_HOME/network/admin 으로 이동 가능함

 

 

sqlnet.ora 파일 열어서 SQLNET.AUTHENTICATION_SERVICES= (NTS) 부분 주석처리

1
2
3
4
5
6
7
8
9
10
11
$ vi sqlnet.ora
# sqlnet.ora Network Configuration File: C:\app\client\user\product\19c\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
 
# This file is actually generated by netca. But if customers choose to 
# install "Software Only", this file wont exist and without the native 
# authentication, they will not be able to connect to the database on NT.
 
#SQLNET.AUTHENTICATION_SERVICES= (NTS) << 주석처리
 
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

 

 

또는 SQLNET.AUTHENTICATION_SERVICES= (NONE) 으로 변경

 

 

재접속 시도

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CMD> sqlplus system/oracle@orcl
 
SQL*Plus: Release 19.0.0.0.0 - Production on 일 2월 18 09:03:06 2024
Version 19.3.0.0.0
 
Copyright (c) 19822019, Oracle.  All rights reserved.
 
마지막 성공한 로그인 시간: 일 2월  18 2024 09:01:01 +09:00
 
다음에 접속됨:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
 
SQL> select 1 from dual;
 
         1
----------
         1

정상적으로 접속됨

 

 

원인 : NTS 인증 문제

NTS 인증 문제로 해당 설정을 NONE로 변경하거나 주석 처리하면 정상접속됨

NTS(Network Time Security)는 주요 클라이언트를 확장하도록 설계된 NTP(Network Time Protocol) 인증 메커니즘

 

 

참조 : https://www.dba-oracle.com/t_ora_12638_credential_retrieval_failed.htm

https://access.redhat.com/documentation/ko-kr/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/assembly_overview-of-network-time-security-in-chrony_configuring-basic-system-settings