lanzi
客户端plsql连接linux(centos5.3)系统的oracle,老是提示:tns连接超时

解决:关闭linux系统的防火墙服务
service iptables stop

 

但是直接把防火墙服务关闭可能导致系统不安全,因此可以通过修改防火墙表将1521这个端口为防火墙所接受。

 1.编辑iptables表,增加如下内容

iptables -I INPUT -p tcp --dport 1521 -j ACCEPT

iptables -I INPUT -p tcp --dport 1521 -j ACCEPT

iptables -A INPUT -p tcp --dport 1521 -j ACCEPT

iptables -A INPUT -p tcp --dport 1521 -j ACCEPT

[root@localhost ~]# vi /etc/sysconfig/iptables

 2.保存

[root@localhost ~]# service iptables save

 奇怪,保存后,再次打开该文件,怎么变成了如下的样子

# Generated by iptables-save v1.3.5 on Thu Apr 12 22:30:46 2012
*filter
:INPUT ACCEPT [558:52040]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [598:350149]
COMMIT
# Completed on Thu Apr 12 22:30:46 2012

但是保存后重启了iptables服务,客户端的plsql就可以连接该linux系统上的oracle数据库了。

 

分类:

技术点:

相关文章:

  • 2022-01-01
  • 2022-01-01
  • 2018-01-31
  • 2021-10-30
  • 2021-07-31
  • 2021-04-21
  • 2021-06-21
  • 2021-09-18
猜你喜欢
  • 2021-04-13
  • 2021-09-05
  • 2022-03-01
  • 2021-06-26
  • 2021-11-05
相关资源
相似解决方案