How To Kill runaway processes After Terminating Concurrent Request
来源:互联网 发布:淘宝互动平台在哪看 编辑:程序博客网 时间:2024/05/01 04:17
Every concurrent Request uses some resources for running. If we find that the concurrent request is taking long time and decided to terminate the concurrent request , the resources may not be released soon. These processes are called runaway processes. So we need to manually kill the processes at database and os level to have the resources released to the system. Terminate the concurrent request from the front end. Then
SQL>select request_id,oracle_process_id,os_process_id from fnd_concurrent_requests where request_id=’&Req_Id’; SQL>select p.spid , s.sid , s.serial# from v$session s , v$process p where s.paddr = p.addr and s.process = &os_process_id ; SQL> alter system kill session ‘session-id,session-serial’ $ kill -9 <server pid>
Complete details about the request can be found using the following query :
SELECT qt.user_concurrent_queue_name , fcr.Request_Id Request_id , fu.User_name , p.spid , s.sid ||’, ‘ || s.serial# SIDSERIAL , SUBSTR( Fcpv.Concurrent_Program_Name ||’ – ‘ || Fcpv.User_Concurrent_Program_Name, 1,46) Program , TO_CHAR( fcr.actual_start_date, ‘mm/dd hh24:mi’ ) actual_start_date , phase_code , status_code , TO_CHAR( TRUNC(SYSDATE) + ( SYSDATE – fcr.actual_start_date ) , ‘hh24:mi:ss’ ) durationFROM apps.Fnd_Concurrent_Queues Fcq , apps.fnd_concurrent_queues_tl qt , apps.Fnd_Concurrent_Requests Fcr , apps.Fnd_Concurrent_Programs Fcp , apps.Fnd_User Fu , apps.Fnd_Concurrent_Processes Fpro , v$session s , v$process p , apps.Fnd_Concurrent_Programs_Vl FcpvWHERE phase_code = ‘C’AND status_Code = ‘X’AND s.paddr = p.addrAND fcr.requested_by = user_idAND fcq.application_id = qt.application_idAND fcq.concurrent_queue_id = qt.concurrent_queue_idAND userenv(’lang’) = qt.languageAND fcr.os_process_id = s.processAND fcr.Controlling_Manager = Concurrent_Process_IdAND ( fcq.concurrent_queue_id = fpro.concurrent_queue_id AND fcq.application_id = fpro.queue_application_id )AND ( fcr.concurrent_program_id = fcp.concurrent_program_id AND fcr.program_application_id = fcp.application_id )AND ( fcr.concurrent_program_id = fcpv.concurrent_program_id AND fcr.program_application_id = fcpv.application_id )ORDER BY fcr.actual_start_date;
source:http://www.appsdba.info/docs/oracle_apps/performance/How_To_Kill_Concurrent_Request.pdf
- How To Kill runaway processes After Terminating Concurrent Request
- How to create and kill processes on remote PC
- How to check others Concurrent Request Output
- How Django processes a request
- how nginx processes a request
- Concurrent programming - Principles and introduction to processes
- APPS:How to view the concurrent request output of other users
- How To Get Log, Trace Files In OA Framework Pages And Concurrent Request Programs
- "killall" to kill a group of processes on linux
- Use Perl to Kill Lotus Notes Processes on Windows
- nginx.org的How nginx processes a request页面翻译
- How To Get Log, Trace Files In OA Framework Pages And Concurrent Request Programs (文档 ID 290614.1)
- Concurrent Programming with Processes
- Kill Child Processes
- How to Create a Java Concurrent Program
- how to let the process kill itself?
- How to kill session by keywords?
- how-to-kill-the-running-job
- 正则表达式符号解释
- linux lcd驱动分析四
- Repair filesystem模式修复方法
- win7与Ubuntu 12.04双系统修改启动项顺序
- 马化腾谈互联网产品创新:灰度法则的七个维度
- How To Kill runaway processes After Terminating Concurrent Request
- C++程序设计原理与实践__记录1
- 在Ubuntu11.04中安装Ubuntu-tweak
- Windows进程间各种通信方式浅谈
- poj 3321
- android:应用、任务、进程、线程
- 【排序】从冒泡法到局部冒泡法
- 编程二三事
- Linux Tutorial