title: Oracle Scheduler Job Executor, or who is the USER during Job Runtime
body: <p>I have a function in a package which returns special value, when the USER = SYS.
  I have a Job scheduled in Scheduler to be executed daily. For strange reasons I am getting errors on some DB instances, indicating, that the USER is not really SYS, but &lt;SCHEMA&gt;.
  I am using Oracle SQL Database 11g version.</p>
  
  <p>From my tests I have found just one way how to have different USER in a Job. It is when the Job is scheduled directly by user USER=&lt;SCHEMA&gt;. Problem is, that this is an unlikely scenario, because normally all the scripts are executed under SYS.</p>
  
  <p>Please, could you explain me how the determination of Job "executor" really works? Is there a way of determining by PL/SQL script who the Job executor will be? Can you direct me to a documentation, which would describe it?</p>