如何查找可能由连接错误导致的 Oracle 错误代码?

发布于 2024-07-06 16:28:41 字数 168 浏览 6 评论 0原文

我想处理网络/数据库连接中断时抛出的 OracleException,在哪里可以找到可能收到的错误代码?

我想既然我们正在讨论连接中断,那么从技术上讲,这些都是 TNS 错误,例如 ORA-12560“TNS:协议适配器错误”。 但我注意到其他几个取决于连接丢失的确切位置,并且希望获得完整的列表。

I would like to handle an OracleException thrown when my network/database connection is interrupted, where can I find out what error codes I might can receive?

I guess since we are talking about a connection interruption these would be technically TNS errors such as ORA-12560 "TNS:protocol adapter error." But I have noticed a couple others depending on where exactly the connection is lost and would like to get a full list.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

请帮我爱他 2024-07-13 16:28:41

这里有一个完整的列表:
http://ora-code.com

但请注意其中一些,例如“TNS:协议适配器错误” ,实际上可以意味着许多不同的事情。

There's a full list here:
http://ora-code.com

But note that some of them, like "TNS:protocol adapter error", can actually mean many different things.

中性美 2024-07-13 16:28:41
ORA-12154 TNS:could not resolve service name"
ORA-12203 TNS:unable to connect to destination"
ORA-12500 TNS:listener failed to start a dedicated server process"
ORA-12545 TNS:name lookup failure"
ORA-12560 TNS:protocol adapter error"
ORA-12154 TNS:could not resolve service name"
ORA-12203 TNS:unable to connect to destination"
ORA-12500 TNS:listener failed to start a dedicated server process"
ORA-12545 TNS:name lookup failure"
ORA-12560 TNS:protocol adapter error"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文