解决 ORA-21561: OID generation fai

2016-09-23  本文已影响0人  XngPro

昨天更新了macOS Sierra 后,发现用 Navicat 连接 Oracle 报 ORA-21561: OID generation failed 错误

解决方法

hostname

发现是 local 而不是 localhost

cd /etc  
open hosts

内容为

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost 
sudo scutil --set HostName localhost
上一篇 下一篇

猜你喜欢

热点阅读