解决 ORA-21561: OID generation failed

来源:互联网 发布:淘宝上买dnf账号 编辑:程序博客网 时间:2024/05/17 02:25

原文地址:http://blog.csdn.net/elonlink/article/details/52635523

解决方法

  • 打开终端,查看 hostname
hostname
  • 1

发现是 local 而不是 localhost

  • 查看 hosts 文件
cd /etc  open hosts
  • 1
  • 2

内容为

### Host Database## localhost is used to configure the loopback interface# when the system is booting.  Do not change this entry.##127.0.0.1   localhost255.255.255.255 broadcasthost::1             localhost 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 问题已经找到了,因为 hostname 和 hosts 文件里的 hostname 不一致
  • 解决办法,修改 hostname 与 hosts 里保持一致
sudo scutil --set HostName localhost
  • 1
  • 重新连接 Oracle

阅读全文
0 0