ORA-21561: OID generation failed

I got ” ORA-21561: OID generation failed ”  error in Oracle database.

 

ORA-21561: OID generation failed

 

Details of error are as follows.

ORA-21561: OID generation failed

Cause: The handles passed in may not be valid

Action: Check the validity of the env, svc handles



SQL*Plus connections from a remote client via the listener fail with the following error:

ORA-21561 : OID generation failed

e.g.
-bash-2.05b$ sqlplus username/password@tns_connect_string

SQL*Plus: Release 11.2.0.4.0 - Production on Fri Mar 7 16:15:10 2008

Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

ERROR:
ORA-21561 : OID generation failed
Enter user-name: <username>/<password>@<tns connect string>
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning and Data Mining options

SQL>

 

 

OID generation failed

This ORA-21561 errors are related with the handles passed in may not be valid.

Check the validity of the env, svc handles.

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

To solve this error, Check the client’s /etc /…/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.

 

Check your /etc/hosts file.

127.0.0.1 localhost localhost.localdomain

You should change it as follows.

127.0.0.1 localhost localhost.localdomain hostname

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *