在Mac上用Navicat连接Oracle的时候总是提示:ORA-21561: OID generation failed
解决过程
在终端上输入:~ hostname
localhost
查看/etc/hosts文件:~ cat /etc/hosts
127.0.0.1 localhost
保持hostname与hosts文件中127.0.0.1对应的名称一致即可!

方法1.修改hosts文件
方法2.执行sudo scutil --set HostName localhost

问题解决!!!
网友评论