dbms_scheduler.stop_job Change the Session User To SYS (Doc ID 2275575.1)

Last updated on JUNE 13, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Selecting user from dual returns SYS sometimes after using dbms_scheduler.stop_job.

However no SYS privileges can be executed.

 

Changes

After calling dbms_scheduler.stop_job('"'||c.job_owner||'"."'||c.job_name||'"');
The session user has changed (test case from SR) to SYS!!

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms