Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OAAdapter and ORA-04061: existing state of package has been invalidated

RobertMetcalfSep 28 2011 — edited Jun 11 2012
Oracle Applications Adapter and ORA-04061: existing state of package has been invalidated

Hi
We get the ORA-04061 error from time to time after a code change in our development environment. It causes our composites to fail. I have been asked to investigate this error to determine if it will cause problems for us in PROD.
Based on reading various articles (including http://oraclequirks.blogspot.com/2007/03/ora-04061-existing-state-of-package-has.html) it seems that there is a danger of this error occurring after we run a database patch that changes the PLSQL packages called through SOA. Our DBA’s tell me that forcing restarts of servers after patching is impractical.
To resolve the error all that is needed is that the PLSQL needs to be called again. I could put exception handlers into BPELs that try every PLSQL twice but that is a massive change to a lot of code and could introduce other problems. Is there an option for the Oracle Applications adapter to detect this error and retry?
Alternatively can we add some code to the database patch which would force WebLogic to close all active connections once the patch is applied?
Any advice would be appreciated
Thanks
Robert
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2012
Added on Sep 28 2011
1 comment
1,382 views