DBAsupport.com Forums - Powered by vBulletin
Results 1 to 9 of 9

Thread: How do I killing a running Job

  1. #1
    Join Date
    Oct 2000
    Posts
    42
    I have a distributed network that fails occassionally. When it fails, the running job transaction session cannot be killed. DBMS_job.remove or .broken does not help. Does any one have a script that can unlock any job queue lock or terminate the session without doing shutdown abort? Trying to kill the session doesn't produce the desired effect.
    This is an AIX box and 8.1.6 product.

    Oisaya

  2. #2
    Join Date
    Nov 1999
    Posts
    226

    kille session

    get the SID , serial 3 from v#session where sid in V$LOCK .
    Then kill the session in SQLPLUS by alter database Kill session (sid, serial#)

    or get the SPID from v$process table and kill at OS LEVEL by Kill -9 SPID

    regards

  3. #3
    Join Date
    Nov 2000
    Posts
    440
    It's alter system kill session 'sid, serial#';


    Steeve Bisson
    EMail: steeve_2@videotron.ca

  4. #4
    Join Date
    Oct 2000
    Posts
    42
    I have tried to kill the session with no success. It shows that the session has been killed, yet the database still hangs and I have to do shutdown abort and restart the instance before any work can be done on this machine.

    I have not tried killing it at the OS level yet.

    Oisaya

  5. #5
    Join Date
    Nov 1999
    Posts
    226

    Hi Back

    Try OS level killing next time

    use Kill -9 PID for that

  6. #6
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    You will have to wait for the transaction to rollback after you issue the alter system kill session.
    Jeff Hunter

  7. #7
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    I try to stay away from kill -9 because it always doesn't kill the process on the backend.
    Jeff Hunter

  8. #8
    Join Date
    Oct 2000
    Posts
    34
    select * from dba_jobs
    and check next_date
    perhaps
    1. update this table ( next_date ).
    2. change system date on system.

  9. #9
    Join Date
    Oct 2000
    Posts
    34
    And
    shutdown abort
    -- change time
    startup
    of course

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width