title: Associating job with job class
body: <p>I'm attempting to create a job using DBMS_SCHEDULER in an Oracle 11g DB but having some trouble setting the job class attribute.  I have already looked in the SYS schema and there is a job class named "SCHED$_LOG_ON_ERRORS_CLASS" that only outputs to the log if a job fails, which is what I want instead of having it log every time the job succeeds.  Here is the script I am using to create the job: </p>
  
  <pre><code>BEGIN
      DBMS_SCHEDULER.CREATE_JOB(
          job_name =&gt; 'DIRXML.CHECK_EVENTLOG', 
          job_type =&gt; 'STORED_PROCEDURE', 
          job_action =&gt; 'DIRXML.P_Check_Eventlog', 
          job_class =&gt; 'DIRXML.SCHED$_LOG_ON_ERRORS_CLASS',
          repeat_interval =&gt; 'FREQ=SECONDLY;INTERVAL=30', 
          enabled =&gt; TRUE
      );
  END;
  /
  </code></pre>
  
  <p>The script will execute without errors if I remove the job_class attribute but when I add it I get the following error: </p>
  
  <blockquote>
    <p>ORA-27476: "SYS.SCHED$_LOG_ON_ERRORS_CLASS" does not exist ORA-06512:
    at "SYS.DBMS_ISCHED", line 124 ORA-06512: at "SYS.DBMS_SCHEDULER",
    line 271 ORA-06512: at line 2</p>
  </blockquote>
  
  <p>The only thing I could think of is that permissions aren't set up correctly for my user?</p>