ORA-12631: Username retrieval failed

博客提及Oracle 10G冒出错误,但未详细说明错误情况。主要围绕信息技术领域的Oracle数据库相关问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Oracle 10G冒出的错误:

ORA-12631: Username retrieval failed
Cause: The authentication service failed to retrieve the name of a user.
Action: Enable tracing to determine which routine is failing.

Error Type:
Microsoft OLE DB Provider for Oracle (0x80004005)
ORA-12631: Username retrieval failed
/apps/beta14a.asp, line 96
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SBC; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Page:
GET /apps/beta14a.asp
Time:
Monday, July 12, 2004, 10:23:05 AM

对于这个错误 ,一般是由于使用域用户帐号登录导致的,如果换成本地用户则没有问题。
解决方案:
RESOLUTION on METALINK:

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) 
 
通过使用NONE,成功解决此问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值