"library cache pin" issue when running a procedure through a job
Hi,
The DB version is 19.20.
One of our clients is experiencing a "libray cache pin" issue while running a batch process. This is happening only at the client site, we're not reproducing the problem on our side.
The batch process calls a procedure from a package, let's say PKG.proc1, and does the following:
- runs some inserts to prepare the data to be extracted
- does some stats computation
- create a DBMS_SCHEDULER job to perform the extraction, the job calls a procedure that is also in the PKG package, let's say PKG.proc2
This has been working so far, but for some reason we have yet to identify, on the client site the job that calls PKG.proc2 immediately goes into a "library cache pin" wait event and gets stuck forever.