Skip to Main Content

APEX

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!

How to use Apex session in scheduled job

Rene W.Feb 6 2017 — edited Feb 6 2017

I'm starting a plsql procedure from my Apex application usingĀ  dbms_scheduler.create_job. The job starts immediately.

The procedure fails because it uses Apex collections and it won't run outside the Apex application context.

There are some examples of code on this forum to create an 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 Apex 4.02 and 5.02?

Message was edited by: Rene W.

This post has been answered by Pavel_p on Feb 6 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2017
Added on Feb 6 2017
3 comments
2,042 views