Can't stop a job

Hello,
The job "refreshfrommetalink" is running since 4 days and I can't stop it through the manager.
When I click on "Stop" the job is flagged "Stop pending", but it dones not stop.
On other screens it is still flagged "Running".
How can I stop it ?
Version 10.0.1.2
Regards

I have had some success with finding the offending session and killing it, then killing the offending OS process.
Since we are using RAC (on RHEL), and the session is known to be running under a job class, which runs under a service, we find the offending session by:
select sid, serial#, status from gv$session where service_name = 'BACKUPS';
SID SERIAL# STATUS
3185 4664 ACTIVE
Then issue: ALTER SYSTEM KILL SESSION '3185, 4664' IMMEDIATE;
SID SERIAL# STATUS
3185 4664 KILLED
Now, find the OS process associated with that SID (assuming you are using UNIX):
select s.username, s.status, s.sid oracle_sid, s.process unix_pid, s.serial#, p.spid, s.machine, s.lockwait
     from v$session s, v$process p
     where s.sid = '&oracle_sid'
     and s.paddr = p.addr
Enter value for oracle_sid: 3185
USERNAME STATUS ORACLE_SID UNIX_PID
APP_SERVER INACTIVE 3185 1234
Then, leave sqlplus, and kill the offending OS process using a command prompt on the server:
kill -9 1234
After this, the job can be disabled/modified/dropped

Similar Messages

  • Can't stop a job from plsql 27486 - stops fine from sql

    Hi,
    I'm trying to create a simple package that will stop known jobs that the user owns. (Same user owns the jobs and the package)
    the code just does
    dbms_scheduler.disable('JOB_EMAIL_QUEUE', TRUE);
    dbms_scheduler.stop_job('JOB_EMAIL_QUEUE', TRUE);
    At stop_job I get
    ORA-27486 insufficient privilege
    ORA-06512 at "SYS.DBMS_ISCHED", line 164
    ORA-06512 at "SYS.DBMS_SCHEDULER", line 483
    Yet if I put the exact same code in an anon block it runs fine in sqlplus for the same user. The user holds the role SCHEDULER_ADMIN but I have now granted him execute access on both dbms_isched and dbms_scheduler.
    Whassup?
    Thanks,
    Steve

    Hi,
    I think what you're seeing is caused by the following two facts
    - a user must have the manage scheduler system privilege to stop a job with force=>true
    - definer's rights pl/sql stored procedures don't honour system privileges granted through roles. See
    http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10807/08_subs.htm#sthref1072
    The simplest solution is to grant MANAGE SCHEDULER directly to the definer of the definer's rights stored procedure.
    Hope this helps,
    Ravi.

  • Can't stop a job execution

    I have Oracle 10g and a scheduled job which executes a hot backup every day at 2 AM.
    Yesterday evening at 10 PM the listener hung. I rebooted the machine this morning and everything is fine now.
    However, the Jobs page shows, that the last backup has been running for 15 hours now!
    When I try to stop it, it says "The job was stopped successfully", but I see status is still "Running". I tried to delete it, but it says it must be stopped first.
    Is there any way to kill this job?
    I know there is a DBMS_SCHEDULER.STOP_JOB procedure, but it requires job name and I don't know how to get that.
    I didn't find anything useful in dba_jobs or any other view.

    I have had some success with finding the offending session and killing it, then killing the offending OS process.
    Since we are using RAC (on RHEL), and the session is known to be running under a job class, which runs under a service, we find the offending session by:
    select sid, serial#, status from gv$session where service_name = 'BACKUPS';
    SID SERIAL# STATUS
    3185 4664 ACTIVE
    Then issue: ALTER SYSTEM KILL SESSION '3185, 4664' IMMEDIATE;
    SID SERIAL# STATUS
    3185 4664 KILLED
    Now, find the OS process associated with that SID (assuming you are using UNIX):
    select s.username, s.status, s.sid oracle_sid, s.process unix_pid, s.serial#, p.spid, s.machine, s.lockwait
         from v$session s, v$process p
         where s.sid = '&oracle_sid'
         and s.paddr = p.addr
    Enter value for oracle_sid: 3185
    USERNAME STATUS ORACLE_SID UNIX_PID
    APP_SERVER INACTIVE 3185 1234
    Then, leave sqlplus, and kill the offending OS process using a command prompt on the server:
    kill -9 1234
    After this, the job can be disabled/modified/dropped

  • Cannot stop Oracle job

    Hi there,
    I have a scheduled backup job which set to run daily, for some reason or another it has failed and it's current status is skipped and has been so for the last couple of days. I have tried to stop the job, but it sill remains there in the same state. I have tried restarting the database, but have had no joy.
    How can I stop the job, and getting it back on schedule?
    Thanks...

    The job is a database backup job which reported an obscure error the other day, I posted it but got no useful replies as to the nature of the error, the error was as follows
    Failed due to Unexpected error. No future executions will be scheduled. Details: ORA-28239: no key provided
    ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
    ORA-06512: at "SYS.DBMS_CRYPTO", line 44
    ORA-06512: at "SYSMAN.DECRYPT", line 9
    I have restarted the database and now I plan to stop the job and reshedule it, but the problem is that I can't stop the job, any suggestions?

  • How to stop the job which is running infinite time......

    Hi ,
    I created one procedure with the below code. Using dbms_scheduler i created one job and called that program. That job is in sleep mode for long time. How can i stop that job.
    create or replace procedure bpc_test_batch
    is
    begin
    dbms_lock(30000000)
    end;
    Regards,
    Thiru

    Have you tried this already?
    exec dbms_scheduler.stop_job('Your_Job_Name',true);

  • Can't "stop" data pump job via dbms_datapump

    DBMS_DATAPUMP.101
    I have a job I have OPENd, but never started. How do I get rid of it?
    SQL> declare
    2 v_handle number;
    3
    4 begin
    5
    6 v_handle := DBMS_DATAPUMP.ATTACH('RefreshFromDev','SYSTEM')
    7 DBMS_DATAPUMP.STOP_JOB(v_handle );
    8
    9 end;
    10 /
    declare
    ERROR at line 1:
    ORA-31626: job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 911
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3279
    ORA-06512: at line 6
    SQL> SELECT JOB_NAME, OWNER_NAME , STATE FROM DBA_DATAPUMP_JOBS;
    JOB_NAME
    OWNER_NAME
    STATE
    RefreshFromDev
    SYSTEM
    DEFINING
    Obviously the job exists. I've tried issuing another Open with the same name and It complains that the job already exists. As I understand it, I have to attach to the job and issue a stop_iob in order to dispose of it.
    Thanks
    Steve

    OK, mystery solved, sort of. If I close my sqlplus session, and log in again, issuing the same sql, it works.
    I suppose I should read the message "job does not exist" as something like "already attached to a job, detach or disconnect"
    Can anyone shed some light on this? I guess it means you can only attach to one job per session, or that only one handle can be issued per job per session. But I'm only guessing.
    Thanks,
    Steve

  • I can't stop my song from looping back to the beginning

    I have created some backing tracks for a swing band that has lost its rhythm section and have to date played them back (via a big speaker) using Logic pro X on a macbook air.
    I want to use my ipad instead as it's smaller and handier when you have to juggle with ipad, an instrument, sheet music and mutes etc..
    I've succeeded in copying tracks exported from Logic into GarageBand iOS version using the "Export All Tracks as Audio Files" option.  I imported them as individual tracks into GB and they play back just fine.  However...
    I can't stop them from looping back and starting again, which in a rehearsal environment I DO NOT need!  I assume this is because I had to import them using the loop-loading tool - set to "audio" - in GB iOS.  Can anyone help me get round this please.  Or is there an iOS DAW that would do this job instead of GB?
    Many thanks in advance.

    Looks like playback for GB on iOS always loops the current section or the whole song. Export the songs to iTunes and you can play them as you want, probably putting each in its own playlist so it is easier to play once then stop, or by adding long silences between tracks that you can then skip when you are ready.
    tt2

  • How can I stop Firefox from asking me over and over (even on pages with no flash content) to install Flash? I don't want Flash installed and this stupid pop-up.

    So even when I load up websites (like ones we here at my job have created) with very simple HTML and absolutely nothing Flash related, I still get a pop-up asking me to install flash (pops down from the URL bar at left.) How can I stop this without disabling all plug-in updates?
    Moreover, why in the name of all that's good is it asking me about Flash when I have no pages open with anything remotely Flash like on them?
    Thanks to anyone who can answer.

    I do not see why this should happen because of Firefox. Maybe you have some sort of adware on your system.
    Please attach a screenshot of the popup
    * [[How do I create a screenshot of my problem?]]
    Try Firefoxin safe mode to rule out your standard extensions. if that does not solve the problem then scan for malware with multiple and up-to-date tools.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How to stop print job in SAP?

    Can some help in explaining how to stop print job in SAP .???
    i

    HI Swati,
    Thanks for the additional info. as per previously mentioned use SM37 - however be sure to check the box ''Sched' when performing the search for the job in question (and untick the others so the resulting list will be clearer to read etc.)
    You can then choose to delete the job and reschedule it to different periods via SM36
    Best of luck,
    Rgds, Derrick

  • Stop a job from printing

    Hope Experts how are you today?
             One of our users created a job SD_203_Z_AUTO_DEL.  Everytime this jobs runs it prints out. She would like to stop this job from printing. Is there anything in SM37 job overview that I need to change. If not in SM37 than were do I go. I see that SU01 under Spool Control OutputDevice is QU6, but if I change this than she won't be able to print anything. Sorry for the novice question. I don't spend alot of time in SAP these days........   

    Using transaction SM37, you can select the job from the list and select Job -> Change from the menu.  Select the Step button, which will list the steps in the job.  Select the step (program) that creates the output and select Step -> Change from the menu.  There should be a Print Specifications button at the bottom of the screen.  Select this button and then select the Properties button.  Change the Time of Printing to 'Send to SAP spool' and save all of your entries.

  • Can we stop the process chain in middle of the process ?

    hi experts,
        Can we stop the process chain in middle of the process after scheduled.
        my process chain is like  start--->load>psa>ods1-->further updates--->ods2. In this case I have already scheduled but i want to stop the process how can i. After rectifying the error I want to restart again.
    if it is possible what are the steps we fallow pl give me step by step procedure.
    thanks & regards.
    venkat

    stopping the process chain is pretty simple. you just need to kill the jobs associated to them as mentioned by other folks.
    for restarting, have a look at this blog.
    Restarting Processchains
    there he explains how to restart a stopped process chain.
    Raghav

  • Can't Stop Cover Page from Printing

    Every time a user prints a report, they are getting a cover page as listed below. If there is a way, how can we stop this cover page from printing? Thanka ahead of time.
    ########## User: applmgr@prowvdb1
    ##### Title: JDoe.649719
    ##### Date: Mon 09:35 Aug 20, 2007
    ##### Job: Lazerjet5326_HP-12721
    #####

    Hello,
    This seems to be what is called a "Separator page" in Windows printer driver.
    Separator pages are used at the beginning of each document to make it
    easy to find a document among others at the printer
    On Windows, it is a "Printer Driver" setting
    Regards

  • Can't Stop Print Queue with HP J3680

    I've been using an HP J3680 Officejet for several years. I hadn't noticed this problem until recently: I can't stop a print job after it has begun. There is no HP software that is pertinent. I've tried opening Print & Fax in System Preferences, then clicking on Open Print Queue, and nothing happens. Even if I power down, the job continues on Restart. All the latest drivers have installed via the AppStore. Does anyone have a similar tale of woe, or suggestions? Thank you.

    The most effective thing I've found is the CUPS internal admin web page - jobs tab.
    get to it here:
    http://localhost:631
    Forgot to tell you - if it says you can't access that internal page, type this command in the Terminal:
    cupsctl WebInterface=yes

  • How can i kill a job in BW

    Hi,
    Any budy please help me that how can i kill a background job in BW
    Cheers,
    KGB

    hi u can kill job in SM 37 also.
    also u can cancel in SM50.also use tis link
    How to stop scheduled job in bw.
    Hope it solves your query
    Thanks,
    pathak
    Edited by: npathak on Aug 2, 2010 9:09 PM

  • How can I stop "badges" on file imports?

    When I import a photo using Lightroom a "badge"  appears over the thumbnail in my Windows 7 folder.
    The "badge" is a green rectangle with two right facing arrows that blocks seeing most of the thumbnail.
    It appears that they are being produced by Lightroom.
    How can I stop them from occurring?  They are very anoying.
    I also find a red rectangular "badge" with a large white check on many of my thumbnails that have been
    in my computer for a while.  What is the purpose of these....perhaps showing that the file has been backed up?
    How do i get rid of these?  They too are anoying and I have another backup program that does the job.

    Well I am actually using a template. And the flash video that
    was created is way beyond my ability. So I tried initially to
    separate the two, the intro video, and the navigation. But they are
    intertwined in a way that I do not understand. I do need to do the
    variable thing. I took a flash class in school, and my book does
    not touch anywhere close to this. I know its probably too
    complicated to explain through a forum, but can you recommend any
    resources online or books that would go more in depth with this
    sort if thing. If I can just see the way it works on another site,
    I know that I can do on mine.
    Thank you!!!
    :)

Maybe you are looking for

  • Foreign currency settings and cross company code settings

    Hi      Any one can send me the configuration documents on foreign currency settings and cross company code postings. Regards Shilpa.

  • Encore DVD 2.0 and windows 7

    I'd like to use my Encore DVD 2.0 with windows 7. It's seems it is not possible. So, is it still possible for me tu upgrade Encore DVD 2.0 to a version i can install with windows 7 ? Thank you for your answer and sorry for my bad english...

  • Idea about handling app crashes

    Hi everyone: Just want to run this by you and see if maybe someone else implemented it. I was thinking of a way to automate submissions of my apps crashes and came up with a method that will register for global unhandled exceptions: //From applicatio

  • Movie not loading in local machine

    Here is a strange thing, if the player.swf is at the site root, everything works, but just because I want to place it "nicely" inside a swf folder, the movie does not load any longer... any ideas?

  • NullPointerException when adding an object into a Vector Class

    So here is the code: package Image; import java.io.Serializable; import java.util.Vector; public class Album implements Serializable{ private String name; private String password; Vector<ImageClass> allImages; public Album( String name, String passwo