简体   繁体   English

ORA-12532: TNS: 无效参数

[英]ORA-12532: TNS:invalid argument

My applicatino is giving ORA-12532: TNS:invalid argument exception.我的应用程序给出了ORA-12532: TNS:invalid argument异常。 My app is in C# and I am using ODP.Net to connect to oracle database.我的应用程序在 C# 中,我使用 ODP.Net 连接到 oracle 数据库。

I googled for this error but couldnt find much information.我用谷歌搜索了这个错误,但找不到太多信息。 I found this page where it says this error occures when internal method receives invalid parameters.我发现这个页面说当内部方法收到无效参数时会发生此错误。 I am not sure how to regenerate this exception as this error has occured on client's enviornment and my app works fine on my enviornment.我不确定如何重新生成此异常,因为此错误发生在客户端的环境中,并且我的应用程序在我的环境中运行良好。

Has anyone encountered this error?有没有人遇到过这个错误? How to avoid this error?如何避免这个错误?

Likely causes:可能的原因:

  • Invalid TNS names configuration (check the tnsnames.ora files)无效的 TNS 名称配置(检查 tnsnames.ora 文件)

  • Prolematic characters in the password (in particular the @ sign can cause problems)密码中的问题字符(尤其是@ 符号可能会导致问题)

  • Too strict firewall rules (unable to connect to port 1521)防火墙规则太严格(无法连接到端口 1521)

这里开始,您的 TNS 条目可能配置错误,或者系统帐户之一的密码中有一个特殊字符(如@ )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM