简体   繁体   English

如何修复oracle TNS - 远程连接数据库时连接超时错误?

[英]How to fix oracle TNS - Connection timed out error when connecting to database remotely?

I am trying to connect to oracle database hosted on Linux server remotely from my windows machine and getting error ORA-12170: TNS: Connect Timeout. 我试图从我的Windows机器远程连接到Linux服务器上托管的oracle数据库并收到错误ORA-12170:TNS:连接超时。 I've already checked the following: 我已经检查了以下内容:

  1. listener.ora configuration and it's status. listener.ora配置及其状态。
  2. tnsnames.ora naming parameters. tnsnames.ora命名参数。
  3. firewall is listening on the IP and the default port 1521 防火墙正在侦听IP和默认端口1521

If there is no firewall between the client and the target database then you should not normally need to adjust the timeout. 如果客户端和目标数据库之间没有防火墙,那么通常不需要调整超时。 You can try adjusting the sqlnet parameters mentioned in the error message: *Action: If the error occurred because of a slow network or system, // reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, // SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. 您可以尝试调整错误消息中提到的sqlnet参数:*操作:如果由于网络或系统速度较慢而发生错误,//重新配置一个或所有参数SQLNET.INBOUND_CONNECT_TIMEOUT,// SQLNET.SEND_TIMEOUT,SQLNET.RECV_TIMEOUT在sqlnet.ora中更大的值。 - - However, I think you should ask your network team to trace your connection attempt especially if after increasing the timeout you still get the error. - - 但是,我认为您应该要求您的网络团队跟踪您的连接尝试,尤其是在增加超时后仍然会出现错误。 The full Oracle version in use and the platforms (client and target) may be important. 正在使用的完整Oracle版本和平台(客户端和目标)可能很重要。

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

相关问题 如何修复“连接到 localhost:6379 的错误 111。 当我启动 rq-worker 时连接被拒绝? - How to fix 'Error 111 connecting to localhost:6379. Connection refused' when I start rq-worker? VSFTPD 错误,连接尝试超时 - VSFTPD error, Connection attempt timed out Minikube 启动错误:如何修复“不幸的是,发生了错误:等待条件超时”错误 - Minikube Start Error: How to fix "Unfortunately, an error has occurred: timed out waiting for the condition" error Python piramiko,建立SSH连接时连接超时错误 - Python piramiko, Connection Timed Out Error While Establishing SSH Connection ssh连接超时 - ssh connection timed out RPC:端口映射正在运行时超时错误 - RPC: Timed out error when portmap is running 如何解决 java.sql.SQLRecoverableException:IO 错误:连接超时 - How to resolve java.sql.SQLRecoverableException: IO Error: Connection timed out ORA-12546: TNS: 权限被拒绝错误连接到远程 oracle 服务器 - ORA-12546: TNS:permission denied error connection to remote oracle server 一般错误:20003 Adaptive Server 连接超时 [20003](严重性 6) - General error: 20003 Adaptive Server connection timed out [20003] (severity 6) 54.148.143.49连接已超时 - 54.148.143.49 connection has timed out
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM