All Oracle Error CodesOracle DBA Forum

SQL-02139:

Unable to get the OCI handles
Cause: The call to OCIExtProcGetEnv failed.
Action: Ensure that the OCIExtProcContext that the external procedure has been created with a CONTEXT parameter and that this context is correctly referenced in the EXEC SQL REGISTER CONNECT statement.