解决ORA-21561: OID generation failed

xiaoxiao2021-02-28  62

mac解决ORA-21561: OID generation failed

mac在登录oracle数据库时报的这个错 ORA-21561: OID generation failed

解决方法: 在终端上输入 hostname

你会得到 bogon这样的主机名,然后修改/etc/hosts文件 vi /etc/hosts 在文件中添加 127.0.0.1 bogon

保存并退出,在此打开客户端就可以了

如果,文件为只读,就要sudo 修改文件 sudo vi /etc/hosts

总结执行步骤:

hostname vi /etc/hosts 127.0.0.1 hostname(hostname这里是你执行hostname的结果)
转载请注明原文地址: https://www.6miu.com/read-2600245.html

最新回复(0)