-
Notifications
You must be signed in to change notification settings - Fork 75
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
OCIError: ORA-04088: error during execution of trigger 'SYS.USER_LOGIN_MONITORING' #235
Comments
Could you check the environment variables in cron and console? In crontab: minute hour * * * env | sort > /tmp/env-on-cron.log (change above After $ env | sort > env-in-console.log
$ diff -u env-in-console.log /tmp/env-on-cron.log |
@kubo I am using Kubernetes to run jobs. I am not sure if I can see ENV variables by the method provided by you.
|
@aman29april Could you ensure that the Oracle client libraries in Kubernetes in the console are same by |
In general, this isn't a ruby-oci8 issue. The error was raised in the trigger In general, it is almost impossible to resolve the issue without detailed information. For example, source code of the trigger, ruby code, data which kick the trigger, and so on. However you wrote that you could run the job manually and it failed in Kubernetes. So I thought that if the environment in Kubernetes was same with that where you ran it manually, it would works fine. |
Here are ENV when the job runs fine. RBENV_VERSION: 2.5.1 |
@aman29april |
@kubo I am not removing any ENV. Both jobs use the same ENV variables. I am accessing a shared file from both jobs to export ENV variables. So in both cases, the same ENV variables are created. While posting ENV in the comments above, I removed a few ENV's as they had some tokens and other sensitive information. Can you tell any specific ENV variable which may cause this issue, maybe I can set that ENV and test. |
@aman29april Sorry, I never thought the environment variable
I thought it might be related to If |
@kubo
To use AL32UTF8, do we need to do anything extra? |
You specified invalid environment. In https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-86A29834-AE29-4BA5-8A78-E19C168B690A:
For example |
@kubo |
I am running a cron job using k8, which connects with the oracle database.
When I am manually running the jobs, it works fine. But if its runs automatically through cron, It's giving below error
Warning: NLS_LANG is not set. fallback to US7ASCII.
rails aborted!
OCIError: ORA-04088: error during execution of trigger 'SYS.USER_LOGIN_MONITORING'
ORA-00604: error occurred at recursive SQL level 1
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 13
ISToci8.c:603:in oci8lib_250.so
This was working fine for me and recently started happening.
The text was updated successfully, but these errors were encountered: