ORA-12571 : TNS 包写入程序失败 的各种可能和解决方案

以下都是摘自互联网,暂未证实。

 今天登陆至一个数据库,遇到了ORA-12571,网上很多仁兄们总结过,大部分是关于服务器端参数文件SQLNET.ORA中SQLNET.AUTHENTICATION_SERVICES设置导致,于是把查到的资料稍作了整理。
针对服务器端SQLNET.AUTHENTICATION_SERVICES参数进行修改。
参数使用示例:SQLNET.AUTHENTICATION_SERVICES=(NTS)
    Use the parameter SQLNET.AUTHENTICATION_SERVICES to enable one or more authentication services. If authentication has been installed, it is recommended that this parameter be set to either none or to one of the authentication methods.

Note:

When installing the database with Database Configuration Assistant (DBCA), this parameter may be set to nts in the sqlnet.ora file.

Authentication Method使用Oracle Net Services可以设置的参数为:none\all\nts
    none for no authentication methods, including Windows native operating system authentication (to use Windows native operating system authentication, set this parameter to nts). When SQLNET.AUTHENTICATION_SERVICES is set to none, a valid user name and password can be used to access the database.
    all for all authentication methods.
    nts for Windows native operating system authentication.

Authentication Method使用Oracle Advanced Security可以设置为的参数为:kerberos5 \ radius \dcegssapi
    kerberos5 for Kerberos authentication.
    radius for RADIUS authentication.
    dcegssapi for DCE GSSAPI authentication.

Note:

Windows NT native authentication
An authentication method that enables a client single login access to a Windows NT server and a database running on the server.

摘自:http://blog.itpub.net/23513450/viewspace-736617/


错误原因 

解决方案 

修改D:/oracle/ora92/network/admin目录下sqlnet.ora,将”NAMES.DEFAULT_DOMAIN =” 这一行用#注释掉,将“SQLNET.AUTHENTICATION_SERVICES=(NTS)”中的NTS改为NONE。重新手动创建数据库,成功。 

备注 参考网站:http://blog.csdn.net/sosdsh/article/details/2695271

ORA-12541: TNS: 无监听程序  

错误原因 

没有监听服务 

解决办法

1. 查看oracle服务是否已是启动状态;

2.输入用户名、密码登录,看是否能顺利操作;

ORA-12154 : TNS: 无法解析指定的连接标识符

错误原因

调试用的web服务器默认在:C:\Program Files (x86)\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.EXE,路径中的括号找的麻烦。

解决办法

1)把WebDev.WebServer.exe拷贝到C:\dev目录里

2)运行里面输入cmd 命令

"C:\dev\WebDev.WebServer.EXE" /port:5100 /path:"D:\program\NXDB\Web" /vpath:"/"

备注       命令格式:c:\WebDev.WebServer.EXE物理路径 /port:8796 /path:"Web应用程序路径" /vpath:"/" 参考网址:http://blog.sina.com.cn/s/blog_6d0021460101545s.html

ORA-12170 TNS 连接超时

错误原因

服务器关闭了 

解决办法:

重启服务器 

参考网址: http://blog.csdn.net/fenglx871004/article/details/4071827

Ora-03114:未连接数据库

现象: 在使用pl/sql developer编译时总是报 Ora-03114:未连接数据库。 

解决方法:  去掉cdc功能。 

操作为: 

DROP TRIGGER sys.cdc_alter_ctable_before; 
DROP TRIGGER sys.cdc_create_ctable_after; 
DROP TRIGGER sys.cdc_create_ctable_before ; 
DROP TRIGGER sys.cdc_drop_ctable_before; 

做以上操作就可以编译了,如果还是不可以编译,就再执行如下的语句 

CALL sys.dbms_java.dropjava('-s rdbms/jlib/CDC.jar');

参考网站:

http://blog.csdn.net/wyzxg/article/details/4676909

用pl/sql developer连接数据库一直正常连接, 
突然之间就无法连接了, 
提示ORA-12571:TNS包写入程序失败, 
查询网络解决方案,都不好使, 
有的让重建监听, 
有的让改监听的配置, 
改了,通通的不对, 
最后发现问题的原因, 
是因为我们内网防火墙设置的原因。 
所以,碰到这个问题,先不要着急修改数据库配置, 
先检查一下网络,有没有变动防火墙的设置, 
不然,折腾的郁闷,还解决不了问题。

摘自:http://java-007.iteye.com/blog/1730526


TNS-12571 TNS包写入程序失败

系统平台:Windows 2003 EnterPrise

错误信息:

clip_image002

错误分析,参考Metalink ID 21497.1

同时参考Metalink 1143523.1

错误解决思路:

1、检查防火墙

2、跟踪监听发送的数据包,进行分析

3、修改SQLNET.AUTHENTICATION_SERVICES 配置为NONE

错误解决:

原创文章,转载请注明: 转载自PrudentWoo本文链接地址: TNS-12571 TNS包写入程序失败


  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值