码迷,mamicode.com
首页 > 其他好文 > 详细

TNS-01189: The listener could not authenticate the user

时间:2015-08-06 11:05:47      阅读:282      评论:0      收藏: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

 

TNS-01189: The listener could not authenticate the user

标签:

原文地址:http://www.cnblogs.com/abclife/p/4707182.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!