重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 923|回复: 0
打印 上一主题 下一主题

[Oracle] TNS-12543: TNS:destination host unreachable

[复制链接]
跳转到指定楼层
楼主
发表于 2023-11-5 16:55:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

一:问题描述

配完远程配置连接,用tnsping service_name结果报错:

TNS-12543: TNS:destination host unreachable
二:出错原因

机器的防火墙已开启,但没有开放该1521端口


三:解决办法

vi /etc/sysconfig/iptables

直接在配置文件里已有的-A INPUT那些命令下面

添加一行:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 1521-j ACCEPT

重启防火墙

[root@orcl ~]# /etc/init.d/iptables restart

iptables: Setting chains to policy ACCEPT: filter          [  OK  ]

iptables: Flushing firewall rules:                         [  OK  ]

iptables: Unloading modules:                               [  OK  ]

iptables: Applying firewall rules:                         [  OK  ]

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-2 06:13 , Processed in 0.244878 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表