转贴 :http://blog.csdn.net/tianlesoftware/article/details/7265721
1. Check the running Job (From here you will get the SID thatrunning the Job)
SQL> SELECT * FROM DBA_JOBS_RUNNING;
2. Make Job become Broken/offline
BEGIN SYS.DBMS_IJOB.BROKEN(job#,TRUE); END;
SQL> BEGIN SYS.DBMS_IJOB.BROKEN('136451',TRUE); END;
3. Kill the Oracle’s Session
SQL> ALTER SYSTEM KILL SESSION 'sid,serial#';
4. Kill the O/S Process ID (PID)
SELECT p.spid FROM v$session s, v$process p
WHERE s.paddr = p.addr
AND s.sid = :sid;
For Windows, at the DOS Prompt: orakill sid spid
For UNIX at the command line> kill '9 spid
Ussually Oracle Job running with Process Name : ora_j00%
5. Check if the Job is Still Running
SQL> SELECT * FROM DBA_JOBS_RUNNING;
6. Determine the Current Number of Job Queue Processes
SQL> col value for a10
SQL> select name,value from v$parameter where name = 'job_queue_processes';
7. Alter the Job Queue to Zero
SQL> ALTER SYSTEM SET job_queue_processes = 0;
This will bring down the entire job queue processes.
8. Validate that No Processes are Using the Job Queue
SQL> SELECT * FROM DBA_JOBS_RUNNING;
9. Mark the DBMS_JOB as Not Broken
BEGIN SYS.DBMS_IJOB.BROKEN(job#,FALSE); END;
10. Alter the Job Queue to Original Value
SQL> ALTER SYSTEM SET job_queue_processes = original_value;
分享到:
相关推荐
oracle kill 进程
从oracle库中导出自定义的job脚本。
orckle kill session,讲述如何去kill session
ORACLE进程无法KILL处理方案.docx
总结如何使oracle job有效停止 不建议使用job
基于最新 xxl-job 2.3.0 版本编写的 oracle 数据库适配版本
Oracle查找被锁进程,及如何在数据库级或操作系统级Kill掉相应被锁的进程
Oracle_Kill_Session_终极篇
Oracle Job定时任务
查询oracle正在运行的sql和锁定的表
oracle的job定时,henyouyongde ziliao
描述了oracle停止一个job的详细的操作步骤介绍。
oracle job实例 测试通过
oracle job 使用详解: 每天1点执行的oracle JOB样例
xxl-job-admin-oracle 2.3.0 修改为oracle版 sql xxl-job-admin-oracle\src\main\resources\sql\tables_xxl_job-oracle.sql
oracleJob创建job的脚本。 sql语句
oracle job
简单的oracle job脚本,如有需求,清参考网上其他资源
安装Oracle所需的全部运行库的详细说明
这是本人在实践中总结的关于oracle中job的一些总结。希望能帮助大家在理论上和实际中解决一些问题。