ORA-21561: OID generation failed

在工作中,使用sqlplus连接数据库

SQL> conn system/oracle@depdb1
ERROR:
ORA-21561: OID generation failed


出现该错误后,查看metalink

Connection Via 10.2.0.3 SQL*Net Fails With Error ORA-21561: OID Generation Failed [ID 559981.1]

Cause

Incorrect /etc/hosts mapping for the client machine or no mapping at all.

Solution

Check the client's /.../hosts file and verify that the local node is correctly identified with a mapping for both the short and fully qualified name of the host.

同时检查自己的/etc/hosts文件,确实存在这个问题,修改/etc/hosts后问题解决

[@more@]
请使用浏览器的分享功能分享到微信等