TNS-01189: The listener could not authenticate the user
2015-08-06 10:04 abce 阅读(3361) 评论(0) 编辑 收藏 举报查看监听时,发现监听状态异常,报TNS-01189: The listener could not authenticate the user错误
$ lsnrctl stat LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 06-AUG-2015 01:47:42 Copyright (c) 1991, 2013, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=testdb)(PORT=1521))) TNS-01189: The listener could not authenticate the user
原因,本机器是克隆而来,修改了ip地址之后,没有修改对应的hosts文件
# ifconfig eth1 Link encap:Ethernet HWaddr 00:50:56:A0:72:9A inet addr:10.11.12.190 Bcast:10.11.12.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fea0:729a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:195745 errors:0 dropped:0 overruns:0 frame:0 TX packets:101000 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:295931844 (282.2 MiB) TX bytes:6260200 (5.9 MiB) # more /etc/hosts 10.11.12.180 testdb 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
修改方法:
修改host配置
# more /etc/hosts 10.11.12.190 testdb 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 我与微信审核的“相爱相杀”看个人小程序副业
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· spring官宣接入deepseek,真的太香了~