When I call a PL/SQL of particular schema in Java file it is getting executed and retrieves the result. But when I call another PLSQL in the same Java file of different schema it shows an error saying:
Message: `ORA-06550: line 1, column 7: PLS-00201: identifier 'TEST2' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored`
Example : There are two proc say A and B present in x schema and y schema
I am calling it under test.java file:
CallableStatement csforST= connection.prepareCall("{ call A() }");
csforST.execute();
It works fine.
But when I call:
CallableStatement cs= connection.prepareCall("{ call B() }");
cs.execute();
It displays an error saying B must be declared.