OCIError: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86 Error: 2: No such file or directory
from oci8.c:694:in oci8lib_210.bundle
...
I'm trying to connect to a remote db on the server.
my OS is El capitan.
remote Oracle version is 12c.
I'm using the ruby-oci8 version 2.2.2 (also tried the latest version)
I have the 12c instantclient files under /opt/oracle/instantclient
client library is version 12.1.0.2.0
I'm getting this error and is unable to connect:
I'm trying to connect to a remote db on the server. my OS is El capitan. remote Oracle version is 12c. I'm using the ruby-oci8 version 2.2.2 (also tried the latest version) I have the 12c instantclient files under /opt/oracle/instantclient client library is version 12.1.0.2.0
the following is in .bash_profile:
I have a tnsnames.ora file under $TNS_ADMIN
sqlplus works on the terminal. I'm able to connect to the same database using the tnsnames.ora definitions.
However i get the above error when I'm in rails using ruby-oci8.
Any help resolving this is greatly appreciated.