Diagnosing 'broken' job

Oracle 10.2.0.4.0 EE on HP-UX 11.23
OEM (dbcontrol) is reporting 1 "broken" job and 2 "failed" jobs. Googling on fixing 'broken' jobs. A select on dba_jobs returns two rows. Following suggestions found elsewhere (mostly Burleson's site) I tried
SQL> select job from dba_jobs where broken='Y';
       JOB
        50
        51
2 rows selected.
SQL> exec dbms_job.broken(JOB=>50, NEXT_DATE=>SYSDATE+1/1440, BROKEN=>FALSE);
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
SQL> select job from dba_jobs where broken='Y';
       JOB
        51
1 row selected.wait a couple of minutes ....
SQL> /
       JOB
        50
        51
2 rows selected.
SQL> exec dbms_job.run(50);
BEGIN dbms_job.run(50); END;
ERROR at line 1:
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 413
ORA-06512: at "SYS.DBMS_JOB", line 275
ORA-06512: at line 1
SQL>I keep running into dead ends on how to diagnose why the job is failing ... pointers appreciated.

sb92075 wrote:
I keep running into dead ends on how to diagnose why the job is failing ... pointers appreciated.manually invoke same procedure as JOB 50 does & see what happens
SQL> select what from dba_jobs where job=51;
WHAT
BEGIN /*Quest PPCM Bottleneck job */  quest_ppcm_bottleneck.collect_data; END;
1 row selected.
SQL> BEGIN /*Quest PPCM Bottleneck job */  quest_ppcm_bottleneck.collect_data; END;
  2  /
BEGIN /*Quest PPCM Bottleneck job */  quest_ppcm_bottleneck.collect_data; END;
ERROR at line 1:
ORA-06550: line 1, column 39:
PLS-00201: identifier 'QUEST_PPCM_BOTTLENECK.COLLECT_DATA' must be declared
ORA-06550: line 1, column 39:
PL/SQL: Statement ignoredAnd the package body for QUEST_PPCM_BOTTLENECK is wrapped, so I'm not able to see what it is -- at least I don't know that I can. But being it is a well used commercial package, I'd not expect something like the error shown.
FWIW, and should have pointed out in my original, this database was rebuilt from scratch -- used dbca to create a template from it, then create scripts from the template. Run the CREATE DATABASE and related scripts from dbca, then reload the application schemas from the nightly export.
We could delete and re-install Spotlight (the only Quest product installed there) but as it's not critical at this point, I'd rather work through the problem as a learning exercise.

Similar Messages

  • Broken jobs and failed jobs

    hi all..
    please tell me difference between broken jobs and failed jobs
    thanks

    Please refer documentation .
    Failed Jobs
    If a job has the status of FAILED in the job table, it was scheduled to run once but the execution has failed. If the job was specified as restartable, all retries have failed.
    If a job fails in the middle of execution, only the last transaction of that job is rolled back. If your job executes multiple transactions, you need to be careful about setting restartable to TRUE. You can query failed jobs by querying the SCHEDULERJOB_RUN_DETAILS views.
    Broken Jobs
    A broken job is one that has exceeded a certain number of failures. This number is set in max_failures, and can be altered. In the case of a broken job, the entire job is broken, and it will not be run until it has been fixed. For debugging and testing, you can use the RUN_JOB procedure.
    You can query broken jobs by querying the SCHEDULERJOBS and SCHEDULERJOB_LOG views.
    Regards
    Renjith Madhavan

  • Query regarding broken jobs

    I am using Oracle 10.2.0.2 on Solaris
    There are a number of job which run continously every few seconds during deployment and a few of them fail over.
    I am facing lock issues in the database so I was wondering if the new sessions created by the DBMS_JOB package would be dropped automatically if the jobs fail and also whether the locks which were used by the jobs would be automatically released?

    Hi,
    any idea about how to fix it ?Most shops monitor for broken jobs, and incoke scripts to repair them automatically: http://www.dba-oracle.com/t_verifying_auditing_replication.htm
    Hope this answers your question . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • How can a broken job "re-enable" itself?

    I have noticed that a "broken" job will have re-started itself when I check it the next day. How is this possible?
    No one in my group deals with this job, except for me.
    There is no other job in any other schema that would enable this job.
    I have used both TOAD and the DBMS_JOB package to disable this job. Still, this job refuses to stay broken. Any ideas?

    What version of Oracle?
    From the 9.2 Administrators Guide >> If a job returns an error while Oracle is attempting to execute it, Oracle tries to execute it again. The first attempt is made after one minute, the second attempt after two minutes, the third after four minutes, and so on, with the interval doubling between each attempt. If the job fails 16 times, Oracle automatically marks the job as broken and no longer tries to execute it. However, between attempts, you have the opportunity to correct the problem that is preventing the job from running. This will not disturb the retry cycle, and Oracle will eventually attempt to run the job again. <<
    How is the job being ran? By the next value or is the job being demanded in by another process so that the next value in dba_jobs for this job is not really used?
    HTH -- Mark D Powell --

  • Unable to drop a broken job

    Hi Friends,
    i want to drop a broken job but it is taking long time why?
    i am using below syntax:
    begin
    dbms_job.broken(job=> 345,FALSE);
    commit;
    end;
    Thanx.

    Hi,
    you can drop the job and recreate it. To drop the job :-
    BEGIN
      DBMS_SCHEDULER.drop_job (job_name => 'job_name);
    END;To create a job
    BEGIN
      DBMS_SCHEDULER.create_job (
        job_name        => 'job_name',
        job_type        => 'PLSQL_BLOCK',
        job_action      => 'BEGIN your_procedure; END;',
        start_date      => SYSTIMESTAMP,
        repeat_interval => 'freq=hourly; byminute=0; bysecond=0;',
        end_date        => NULL,
        enabled         => TRUE,
        comments        => 'any_comment_you_want.');
    END;
    /

  • Dbms_job: question about broken jobs

    Hi.
    I have defined the following job:
    VARIABLE jobno NUMBER
    BEGIN
    DBMS_JOB.SUBMIT (:jobno,'test_proc;',SYSDATE,'SYSDATE + 5/86400');
    COMMIT;
    END;
    When the procedure is invalid the job queue tries to start it 16 times and marks the job as broken.
    Is there an option that dbms_job does an automatic recompile of the procedure after the job has the broken status?
    Thanks
    Markus

    you could do a two-step job to compile the proc, then execute it.
    VARIABLE jobno NUMBER
    BEGIN
    DBMS_JOB.SUBMIT (:jobno,'BEGIN
    ALTER PROCEDURE test_proc COMPILE;
    test_proc;
    END',SYSDATE,'SYSDATE + 5/86400');
    COMMIT;
    END;

  • Question about activating a broken job

    Dear all;
    I am trying to reactivate a job which was stopped in pl/sql developer. I am trying to do it using the following syntax and I keep getting the error message below.
    see syntax first
    begin
    sys.dbms_job.broken(103,'false',to_date('2010-10-12', 'YYYY-MM-DD'))
    end;error message
    ORA-06550 line 3, column 1:i have removed the end syntax and still get the message I dont know why. I am using oracle 9i

    I have included the ; but Unfortunately, I still get the error message
    ORA-06550
    PLS-00306
    Edited by: user13328581 on Oct 12, 2010 2:32 PM

  • Help diagnosing broken display

    I bought my roommate's Black Macbook C2D 2.0 after he gave up trying to fix it and I'd like to know what is wrong. Here's what I know:
    He claims that water was spilled on the computer and it stopped working. I have no other details about what caused this problem or if this was even the culprit. I figured the logic board was toast and was going to harvest parts for another broken Macbook I own but what do you know, it seemed to boot up! When it first starts booting I get maybe a one to two second glimpse of the gray screen then all black, then a little later I see a one to five second glimpse of the blue screen and "starting os x" with progress bar then back to black. Next I tried plugging into an external monitor and "viola", it works fine! How sweet! The System Profiler tells me that I'm running the Intel GMA 950 chipset but under Display Connector it says "Status: No Display Connected". Then it lists my external HDMI TV. In summary, I have a black screen but everything else works great.
    I'm suspecting that I may be able to fix this and without replacing the logic board. Does anyone have any info that could help me pinpoint the problem? I have another broken Macbook that definitely has a bad logic board but quite probably the other parts are sound.
    Thanks in advance!!!!!

    Update: the iSight camera is not working either. Could this be a cable? How would I isolate?

  • Jobs in sqlnavigator doesnt show in EM

    hi,
    my db version is 10.3.0.1, and i see the jobs in sqlnavigator but cant find them in Enterprise manager. theere are 4 broken jobs with owner portal and i cant correct them with sqlnavigator.
    in EM jobs section none of that jobs are shown just two remains there!please help how can i find the jobs in EM?

    in both cases logged on with sys user
    owner of the broken jobs is portal
    i can see the broken jobs when select broken jobs from dba_jobs,
    but in EM there are only two jobs in jobs section where are the others?
    how can i correct the broken states?
    sql nav. has a gui for this but it doesnt work for this condition, can i find this option in EM?

  • Suspending jobs scheduled in dba_jobs

    Oracle9i
    Hi: I have a few jobs scheduled as shown in the dba_jobs. I want to suspend some of the jobs for 2 days. Is there a way to suspend these jobs?
    select JOB,INTERVAL from dba_jobs;
           JOB INTERVAL
           121 trunc(sysdate+1/24, 'HH24')
           104 trunc(sysdate+1/12, 'HH24')+1/96
           107 trunc(sysdate+1/24, 'HH24')+3/96
            81 sysdate+1/12
           108 trunc(sysdate+1/24, 'HH24')+3/96
           186 trunc(sysdate+1/24, 'HH24')
           110 trunc(sysdate+1, 'HH24')
           206 trunc(sysdate+1/12, 'HH24')+1/96
           181 sysdate+1
           182 sysdate+1
           183 sysdate+1
           185 trunc(sysdate+1/24, 'HH24')
           201 trunc(sysdate+1/12, 'HH24')+1/96
           202 trunc(sysdate+1/12, 'HH24')+1/96
           203 trunc(sysdate+1/12, 'HH24')+1/96
           204 trunc(sysdate+1/12, 'HH24')+1/96
           205 TRUNC(SYSDATE+1/12, 'HH24')+1/96
           207 trunc(sysdate+1/12, 'HH24')+1/96
           208 trunc(sysdate+1/12, 'HH24')+1/96
           209 trunc(sysdate+1/12, 'HH24')+1/96
           210 trunc(sysdate+1/12, 'HH24')+1/96
           211 trunc(sysdate+1/12, 'HH24')+1/96
           212 trunc(sysdate+1/12, 'HH24')+1/96

    If you know when you want it to start again, use something like this
    begin
       sys.dbms_job.NEXT_DATE( job      => 1234,
                                next_date => TO_DATE( '13 Aug 2010 17:15:00', 'DD Mon YYYY HH24:MI:SS' ) );
    end;
    COMMIT;If you want it to not run until you decide to manually intervene, use something like this
    begin
      dbms_job.broken(job       => 66
                     ,broken    => TRUE);
    end;
    commit;

  • Unable to kill a DBMS job.

    Hi there,
    Using Oracle 11.1.0.6.0 on Windows 2008 R2.
    Being a novice, i need advice on the below:
    A developer had created this job on our database and i've been trying to delete this job for good but cant. Tried DBMS_JOB.REMOVE & setting job BROKEN=Y but for some reason it automatically generates a new JOB ID or resets the job BROKEN=N. Is there another way?
    Many thanks!
    DECLARE
    X NUMBER;
    BEGIN
    SYS.DBMS_JOB.SUBMIT
    ( job => X
    ,what => 'dbms_refresh.refresh(''"DEV"."SUBMISSIONS"'');'
    ,next_date => to_date('01/01/4000 00:00:00','dd/mm/yyyy hh24:mi:ss')
    ,interval => 'SYSDATE+1/24 '
    ,no_parse => FALSE
    Edited by: 943209 on 31-Aug-2012 07:17

    The DBMS_JOB package is an interface to the SYS.JOB$ table. The Submit() call for example does a SQL insert. Breaking a job is a SQL update. Removing a job is a SQL delete.
    An explicit commit is needed to make the SQL change to this table permanent.
    What a break/remove call does not do however, is kill and remove the job queue process that may be busy executing that job. If there is such a process, deleting/breaking the job does not affect the process. The process needs to be identified and killed (e.g. using the ALTER SYSTEM KILL SESSION command).
    The job queue manager does NOT start broken jobs automatically. You need to explicitly execute that job using the Run() call - in which case a successful job completion will result in the job entry in the table to updated and unbroken.
    The job queue manager CANNOT start a job that has been deleted/removed from the job table. No row. No job.
    So if the job appears to become active again - then you have another process that recreates that job using the Submit() call. And that is the process you need to "fix" to prevent the job from reappearing again as a running jobs after the job entry was broken or removed.

  • DBMS_JOB.BROKEN

    Hi,
    Is it possible that broken jobs (Using DBMS_JOB) executes? I have broken a job for statspack statistics collection using command
    execute dbms_job.broken(42,true); and then I checked user_jobs. Broken column was Y that time but still its executed and trying to execute that job.
    Can you tell me how this has happened?
    Malay

    Normally a broken flag is set to Y by Oracle after 16 unsuccessful attempts.
    The attempts will be made in a interval which is multiples of 2 like, 2, 4, 6,....
    and once it reaches the 16th attempt and still fails it sets the flag to Y.
    Now you have to manually run the job, and set the broken flag to N.
    Did you commit the operation after dbms_job.broken(42,true) ?

  • How do I find job numbers

    To disable a job I have to run DBMS_JOB.BROKEN (job,broken,next_date). But how do I find the job number to supply as argument

    Sergio
    I have a question on Jobs.
    I've submitted one via a page process but am using htmldb_plsql_job.SUBMIT_PROCESS to do this.
    If I want to kill off the job prematurely, how do I do this? I have tried using the standard broken/remove calls of dbms_job but I get
    ORA-23421: job number xxxx is not a job in the job queue
    Cheers
    Phil
    I've created a fresh thread for this so don't answer it here!
    Please click the following link:
    dbms_job vs htmldb_plsql_job

  • Monitor failed jobs

    Hi
    Is there any difference between Failed Job Count and Broken Job Count ?
    Thanks

    Yes please see the definition below.
    Broken Job Count The Oracle Server job queue is a database table that stores information about local jobs such as the PL/SQL call to execute for a job such as when to run a job. Database replication is also managed by using the Oracle job queue mechanism using jobs to push deferred transactions to remote master sites, to purge applied transactions from the deferred transaction queue or to refresh snapshot refresh groups.
    A job can be broken in two ways:
    Oracle has failed to successfully execute the job after sixteen attempts. The job has been explicitly marked as broken by using the procedure DBMS_ JOB.BROKEN
    This metric checks for broken DBMS jobs. A critical alert is generated if the number of broken jobs exceeds the value specified by the threshold argument.
    Failed Job Count The Oracle Server job queue is a database table that stores information about local jobs such as the PL/SQL call to execute for a job such as when to run a job. Database replication is also managed by using the Oracle job queue mechanism using jobs to push deferred transactions to remote master sites, to purge applied transactions from the deferred transaction queue or to refresh snapshot refresh groups.
    If a job returns an error while Oracle is attempting to execute it, the job fails. Oracle repeatedly tries to execute the job doubling the interval of each attempt. If the job fails sixteen times, Oracle automatically marks the job as broken and no longer tries to execute it.
    This metric checks for failed DBMS jobs. An alert is generated if the number of failed job exceeds the value specified by the threshold argument.

  • URGENT:Process Chains And events Related

    Hi All,
                  I have created a new process chain which is a normal ODS Process Chain.For that I started with the start Process and then created event in sm62 to trigger the start of process chain.Similarly,I have at the end of the process chain ,I have added 2 ABAP Programs ,one to mark the successful completion of process chain and another to mark the Error or Unsuccessful completion.For these programs,I maintaines Processvariants and here, we have utility Programs.So used the relevant utility program and created a program variant and Events ,One for successful completion of process chain and another to mark the Error or Unsuccessful completion.
    But ,Now ,I find that when I trigger the eventin sm64,I find that the process chain is not being run.Is that any problem with the events I created.This is the first i am involved  with creation of events in SM62.Can anyone help me in  this regard.
    Can anyone,tell me thatdo we need to do anything else apart from  Creating events .Imean like assigning jobs and then Programs in the Step of that Job.
    Please Kindly help me in this regard.It is very very urgent for me.Thank you.Points will be assigned.
    Regards,
    Samir

    Hi,
    I have tried in the same way you have said .I have maintained as after event and activated and scheduled.after that  i triggered the event insm64.But still,I am not able to see the Load in RSMO.
    I have just checked out in sm37.And found that some jobs have failed.I think this might be the reason for the Process chain to not run.
    I am just pasting the error msg and solution.
    Job BI_PROCESS_ABAP, waiting for event RSPROCESS 489W6WH6I7OHV7BL3N9909F7F, has no predecessor
    Message no. RSPC003
    Diagnosis
    Although job BI_PROCESS_ABAP has been started by event RSPROCESS 489W6WH6I7OHV7BL3N9909F7F and is recognized in the process chain, the current run for this process has no job preceding it.
    This is why the system was unable to determine a log ID, and the chain is broken.
    System response
    The job has been terminated.
    Procedure
    With the exception of the start process, each process must have a process that precedes it.
    Then Another error for the another cancelled job is
    Job BI_PROCESS_OR, waiting for event RSPROCESS 489WC2QYBC4AJSYILQ10TWABF, has no predecessor
    Message no. RSPC003
    Diagnosis
    Although job BI_PROCESS_OR has been started by event RSPROCESS 489WC2QYBC4AJSYILQ10TWABF and is recognized in the process chain, the current run for this process has no job preceding it.
    This is why the system was unable to determine a log ID, and the chain is broken.
    System response
    The job has been terminated.
    Procedure
    With the exception of the start process, each process must have a process that precedes it.
    Please kindly help me if you understand the problem.
    Thanks,
    Samir

Maybe you are looking for

  • ERROR

    dear all, i am having a peculiar error. while creating po thru me21n everyone must have seen a hold tab comes just after other purchase order tab. now whenever i am trying to make a service po thru me21n with cost center K and item category as D with

  • An error occurred when processing the spool request.  (Possibly due to memory problems)

    Hi SAP, My backgroud job is failing with log as shown below Job started Step 001 started (program ZMRS0065, variant SUS Step 002 started (program ZDRS0090, variant SUS Step 003 started (program ZFRS0305, variant SUS Step 004 started (program ZFRS0300

  • Unable to connect to network on Hyper-V under Win 8.1

            As good as Hyper-V might be I cannot get it to work because it does not connect to my network. When I select Virtual Switch Properties I have two options available: Intel 82579V Gigabit Network Connection and Realtec PCIeGBE Family Controller

  • Hex core efficiency in Bridge CS5 and Camera Raw 6.0

    Conclusion: Batch processing of files in Bridge CS5/Camera Raw 6.0 is limited by an unknown factor which I currently believe to be software design and/or software implementation.  While performance on a dual core would be more or less CPU bound, and

  • SDO_GEOMETRY(cast as BLOB (WKB as a string), SRID)

    I have a list of WKB strings. I want to use perl to insert them into a SDO_GEOMETRY column, something like assuming.... SQL> CREATE TABLE geometries _regions id NUMBER, geom SDO_GEOMETRY a perl version of this. INSERT into geometries VALUES ( 10000,