New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error : ORA-21561 OID generation failed #47
Comments
when does this happen, what are you doing? |
i'm sorry about that . --> err console log just that Error : ORA-21561 OID generation failed thanks. |
the only thing I found by googling pointed to problems with the hostname. please check that the database is reachable under exactly the hostname you are using (check tnsnames.ora and /etc/hosts). From your code snippet, I assume that the value for the "database" is an IP address or hostname, please try the name (or probably the SID) you can see the in tnsnames.ora instead. EDIT: SID instead of name in tnsnames.ora |
thanks. now i'm faced new error err : Error: ORA-28547: connection to server failed, probable Oracle Net admin error. |
Please verify with sqlplus that you are able to connect |
thanks about ur comment. |
@hkjang did you solve it? I stumbled upon the same error today and it was caused by the network setup: Oracle running in a VM, using "shared" networking, using WiFi in a coffee shop. After I went home, the problem disappeared. |
yes i solve that. linux locale is ko_KR.EUC-KR and oracle locale is KOREAN. thanks ^^ |
@vrvolle good day~ Oracle Sqlplus is expressing encoding Korean normally. this is console.log from array list -- oracle lang setting -- linux lang setting $ uname -a $ cat /etc/issue |
@hkjang could you please close this issue Sorry, But I don't have any experience with language settings and node-oracle |
@vrvolle i'm sorry. thanks for ur helpful mention. i will close this issue now. |
I experienced this error and fixed it by following the instructions from this link: http://chaos667.tumblr.com/post/20006357466/ora-21561-and-oracle-instant-client-11-2 |
Thanks @cyates81! -- your solution fixed it for me! ( I am building a Django server on RHEL6.5 ) |
For posterity, the solution in that blog post that cyates81 linked to above is basically this:
Or, as a one-liner: |
thanks raztus, your solution fixed it for me |
I got rid on the issue by adding "hostname": "127.0.0.1" to the connection object. |
+1 for @raztus |
What if you run into this issue -- OID generation error -- when you are trying to connect from your Web server to your database server? The 'hostname' issue does not resolve the problem. |
+1 for @raztus |
+1 for @raztus and @cyates81 |
Sorry I have to bother you guys, but I've been trial and error on the subject for days now. Now I have been deleting and reinstalling oracle instant client, i tried basic and lite trying to get oracledb work, but no luck |
You are using node-oracledb which is not this repo. It is https://github.com/oracle/node-oracledb I haven't seen this on OS X but the general Linux solution is given above. |
Sorry about that, I've been using ip address directly |
Hy guys, this issue can also be cause by wrong permissions on /etc/hosts file. If it is not readable for oracle uid the errors will show up. Make sure your /etc/hosts is readable by everybody: ls -l /etc/hosts |
I've been working on this issue all day. This finally worked for me. Thank you! |
i had this error message
how can i solve that ?
Error : ORA-21561 OID generation failed
OCI_INCLUDE_DIR="/opt/instantclient/sdk/include/"
OCI_LIB_DIR="/opt/instantclient"
ORACLE_HOME="/opt/instantclient"
$ uname -a
Linux xxxxxx2.6.18-348.4.1.el5 #1 SMP Fri Mar 22 05:41:51 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/issue
Red Hat Enterprise Linux Server release 5.9 (Tikanga)
Kernel \r on an \m
$ gcc --version
gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The text was updated successfully, but these errors were encountered: