Oracle stored proc call fails from db link when called from Java application
There are two oracle DB's db1 and db2.
There is a package in DB1 which calls a procedure from DB2, the procedure gets called successfully when executed directly from sqlplus environment but throws following error message when called from Java web application:
ORA-06512: at "PKG", line 117
ORA-06512: at "PKG", line 196
ORA-06512: at line 1