Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the ORA-21561 problem when an Oracle client connects to a remote server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to solve the ORA-21561 problem encountered when the Oracle client connects to the remote server". In the daily operation, it is believed that many people have doubts about how to solve the ORA-21561 problem encountered when the Oracle client connects to the remote server. The editor consulted all kinds of materials and sorted out a simple and useful operation method. I hope it will be helpful for you to answer the question of "how to solve the ORA-21561 problem encountered when the Oracle client connects to the remote server"! Next, please follow the editor to study!

Under the Ubuntu 16.04system, after installing the Oracle client and SQLPLUS tools, I encountered a problem when connecting to the database through sqlplus: "ORA-21561: OID generation failed".

Root@SvrInterface: ~ # sqlplus mandala_ods@ods

SQL*Plus: Release 11.2.0.4.0 Production on Mon Dec 9 14:23:24 2019

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Enter password:

ERROR:

ORA-21561: OID generation failed

Checked the Oracle document and said that the cause of the problem is related to environmental variables.

ORA-21561: OID generation failed

Cause: The handles passed in may not be valid

Action: Check the validity of the env, svc handles

After looking it up on the Internet, we found that it was the hostname. Specifically, it was:

In the / etc/hosts file, the hostname corresponding to 127.0.0.1 does not match the hostname returned by hostname.

Root@SvrInterface: ~ # hostname

SvrInterface

Root@SvrInterface: ~ # cat / etc/hosts

127.0.0.1 localhost

192.168.84.153 SvrNursePDA

# The following lines are desirable for IPv6 capable hosts

:: 1 localhost ip6-localhost ip6-loopback

Ff02::1 ip6-allnodes

Ff02::2 ip6-allrouters

Modify the / etc/hosts file to change the hostname corresponding to 127.0.0.1 to the hostname returned by hostname. After the two match, the problem is eliminated.

At this point, the study on "how to solve the ORA-21561 problem encountered when the Oracle client connects to the remote server" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report