windows下sqlplus连接到linux oracle不成功

错误:

cpp 复制代码
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 11月 22 13:53:22 2024

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

ERROR:
ORA-12170: TNS: 连接超时


请输入用户名:
ERROR:
ORA-12560: TNS: 协议适配器错误


请输入用户名:
ERROR:
ORA-12560: TNS: 协议适配器错误

原因,防火墙端口未打开

解决方法:

  1. 检查是否已经安装了firewalld防火墙:

    "shell systemctl status firewalld "

  2. 如果没有安装firewalld,请先安装它:

    "shell yum install firewalld "

  3. 启动firewalld服务:

    "shell systemctl start firewalld "

  4. 开启1521端口:

    "shell firewall-cmd --zone=public --add-port=1521/tcp --permanent "

    这将在防火墙配置中添加一个规则,使1521端口可以通过防火墙通信。

  5. 重新加载防火墙配置:

    firewall-cmd --reload

相关推荐
阿白的白日梦5 小时前
winget基础管理---更新/修改源为国内源
windows
chlk1231 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑1 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件1 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号2 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash2 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI2 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行3 天前
Linux和window共享文件夹
linux
木心月转码ing3 天前
WSL+Cpp开发环境配置
linux
埃博拉酱4 天前
VS Code Remote SSH 连接 Windows 服务器卡在"下载 VS Code 服务器":prcdn DNS 解析失败的诊断与 BITS 断点续传
windows·ssh·visual studio code