当前位置:网站首页>linux下oracle服务器打开允许远程连接
linux下oracle服务器打开允许远程连接
2022-06-24 09:32:00 【euler1983】
环境:linux,oracle服务器,使用docker里的python访问oracle数据库。
报错:ORA-12541:TNS:no listener
排查:
su - oracle切换成oracle用户后,用sqlplus可以连接到数据库,说明数据库本身是没问题的。
运行:lsnrctl status,发现监听终端是localhost。
明白了,这是限制了远程连接。
解决方法:
修改配置服务端listener.ora,加上HOST=0.0.0.0,如果不加,默认只能运行在本机的程序才能访问。
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST =0.0.0.0)(PORT = 1521))
)
重启一下监听:lsnrctl stop、lsnrctl start
边栏推荐
- PostgreSQL
- Talking about the knowledge of digital transformation
- Literature Research Report
- 深度学习论文阅读目标检测篇(七)中英对照版:YOLOv4《Optimal Speed and Accuracy of Object Detection》
- Implementation of simple floating frame in WindowManager
- 百度AI模板 获取知识理解
- Threejs point light + ambient light
- threejs的点光源+环境光
- CF566E-Restoring Map【bitset】
- Easyexcel single sheet and multi sheet writing
猜你喜欢

About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution

Servlet fast foundation building

ApplicationContextInitializer的三种使用方法

PTA monkey chooses King (Joseph Ring problem)

Grpc local test joint debugging tool bloomrpc

latex公式及表格识别

Oracle数据文件头SCN不一致处理方法

CF566E-Restoring Map【bitset】

Prct-1400: failed to execute getcrshome resolution

Zero foundation self-study SQL course | having clause
随机推荐
ggplot2颜色设置总结
谈谈数字化转型晓知识
Oracle数据库监听文件配置
Easyexcel single sheet and multi sheet writing
关于thinkphp5 使用模型save()更新数据提示 method not exist:think\db\Query-> 报错解决方案
居家办公如何管理数据中心网络基础设施?
Learning Tai Chi Maker - esp8226 (XIII) OTA
LeetCode: 377. Combined sum IV
Servlet快速筑基
PHP使用递归和非递归方式实现创建多级文件夹
ApplicationContextInitializer的三种使用方法
The ambition of JD instant retailing from 618
什么情况下应该使用GridFS?
P6698-[balticoi 2020 day2] virus [AC automata, DP, SPFA]
How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!
198. 打家劫舍
可直接套用的Go编码规范
Algorithm - the K row with the weakest combat power in the matrix (kotlin)
使用Live Chat促進業務銷售的驚人技巧
【自定义Endpoint 及实现原理】