Closed dan-corneanu closed 1 year ago
After a couple of days of frustrations, I have finally managed to find out what the problem is.
IT turns out that the TZ
environment variable was set to an incorrect value of New Zealand Standard Time
. Once I have changed it to Pacific/Auckland
the problem went away.
I've found the fix by pure luck. It would have been nice to have Oracle return more details in the OCIError
.
I guess the lesson is to double and triple check your environment variables when you are dealing with generic OCIErrors
.
Glad it's resolved. I was concerned about it but had no ideas.
Hello, I have a Rails app that gets deployed as an Azure App Service and needs to connect to an Oracle Database 18c Enterprise Edition Release 18.0.0.0.0. I am able to
ssh
into the running docker image and connect to the database withsqlplus
. However, when I try to establish a connection from rails console, it fails on me withOCIError (ORA-21500: internal error code, arguments: [kpubalts10], [30073], [0], [0], [0], [0], [0], [0])
.I've spent an entire day trying to figure out what might be wrong, but to no avail. I am hoping that someone here can give me advice on what else I could try.
Here is my setup
Connecting with sqlplus is successful.
Trying to connect from rails console fails.
Regards, Dan