I'm starting a plsql procedure from my Oracle Apex application using dbms_scheduler.create_job. The job starts immediately.
The procedure fails because it uses Oracle Apex collections and it won't run outside the Oracle Apex application context.
There are some code examples on the internet showing how to create an Oracle Apex application context but I was wondering if it's possible to use the existing context. For example by passing the session ID to the job and reusing it there.
If this is possible, how can it be done and will this be different for Oracle Apex 4.02 and 5.02?