ORA-12631 / TNS-12631: Username retrieval failed

From Metalink:

Problem Description:
====================
When your server is not connected to the network and you try to connect in
Server Manager (svrmgrl), the connection fails returning an ORA-12570. If you
check the "sqlnet.log" you will find a TNS-12631 error.

ORA-12570 / TNS-12570: TNS:packet reader failure 
ORA-12631 / TNS-12631: Username retrieval failed 

Problem Explanation:
====================
These errors are associated with remote authentication on NT under NTS (NT Transport Services).

Essentially, the following parameter is set in the "sqlnet.ora":
SQLNET.AUTHENTICATION_SERVICES = (NTS)
As a result, if you are logged on as a domain user, and you don't have a network connection (network cable temporary removed or laptop booted standalone), you will not be able to connect to the database because the authentication will try to reach the domain users database on the PDC (Primary Domain Controller) or BDC (Backup Domain Controller).


Solution Description:
=====================
There a 2 solutions to connect to the database when no network is present:
1. You can log in as a NT local user. 
2. You can disable NTS in sqlnet.ora by setting the following parameter:
  SQLNET.AUTHENTICATION_SERVICES = (NONE)

Explanation:
============
1. When you log in as a local user, then the local users database is contacted and not the remote domain users database.
2. When NTS is disabled, even though you are logged in as a domain user, the domain user's database will not be accessed.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值