您的位置:首页 > 其它

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

2016-07-22 16:09 561 查看
以下都是摘自互联网,暂未证实。

 今天登陆至一个数据库,遇到了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

错误信息:





错误分析,参考Metalink ID 21497.1

1234567Error: ORA-12571 / TNS-12571Text: TNS:packet writer failure ---------------------------------------------------------------------------Cause: An error occurred during a data send. Action: Not normally visible to the user. For further details, turn on tracing and reexecute the operation. If error persists, contact Oracle Customer Support.
同时参考Metalink 1143523.1错误解决思路:1、检查防火墙2、跟踪监听发送的数据包,进行分析3、修改SQLNET.AUTHENTICATION_SERVICES 配置为NONE错误解决:

1

2

3

4

修改$ORACLE_HOME/network/admin/SQLNET.ORA,文件将

SQLNET.AUTHENTICATION_SERVICES=
(NTS)

改为

SQLNET.AUTHENTICATION_SERVICES=
(NONE)

原创文章,转载请注明: 转载自PrudentWoo本文链接地址: TNS-12571
TNS包写入程序失败
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: