EBS 11i使用者的請求無法提交一直等待

yhj20041128001發表於2013-12-26
EBS 11i使用者的請求無法提交,一直等待。
檢查併發管理器發現有幾個併發管理器沒有起來。

1.停止併發管理器 ./adcmctl.sh stop apps/apps
2.確保沒有併發管理器的程式執行。
ps -ef |grep FNDLIBR 
ps -ef |grep FNDSM
ps -ef |grep FNDOPP
3.如果有,使用系統命令kill -9殺併發管理器的程式。
ps -ef |grep FNDLIBR |grep -v grep|awk '{print $2}'|xargs kill -9
ps -ef |grep FNDSM |grep -v grep|awk '{print $2}'|xargs kill -9
ps -ef |grep FNDOPP |grep -v grep|awk '{print $2}'|xargs kill -9
4.執行指令碼cmclean.sql去清理併發管理器的表,執行完畢,需要輸入commit生效。
cmclean.sqll指令碼

點選(此處)摺疊或開啟

  1. REM
  2. REM FILENAME
  3. REM cmclean.sql
  4. REM DESCRIPTION
  5. REM Clean out the concurrent manager tables
  6. REM NOTES
  7. REM Usage: sqlplus @cmclean
  8. REM
  9. REM
  10. REM $Id: cmclean.sql,v 1.4 2001/04/07 15:55:07 pferguso Exp $
  11. REM
  12. REM
  13. REM +======================================================================+


  14. set verify off;
  15. set head off;
  16. set timing off
  17. set pagesize 1000

  18. column manager format a20 heading \'Manager short name\'
  19. column pid heading \'Process id\'
  20. column pscode format a12 heading \'Status code\'
  21. column ccode format a12 heading \'Control code\'
  22. column request heading \'Request ID\'
  23. column pcode format a6 heading \'Phase\'
  24. column scode format a6 heading \'Status\'


  25. WHENEVER SQLERROR EXIT ROLLBACK;

  26. DOCUMENT

  27. WARNING : Do not run this script without explicit instructions
  28. from Oracle Support


  29. *** Make sure that the managers are shut down ***
  30. *** before running this script ***

  31. *** If the concurrent managers are NOT shut down, ***
  32. *** exit this script now !! ***

  33. #

  34. accept answer prompt \'If you wish to continue type the word \'\'dual\'\': \'

  35. set feed off
  36. select null from &answer;
  37. set feed on


  38. REM Update process status codes to TERMINATED

  39. prompt
  40. prompt ------------------------------------------------------------------------

  41. prompt -- Updating invalid process status codes in FND_CONCURRENT_PROCESSES
  42. set feedback off
  43. set head on
  44. break on manager

  45. SELECT concurrent_queue_name manager,
  46. concurrent_process_id pid,
  47. process_status_code pscode
  48. FROM fnd_concurrent_queues fcq, fnd_concurrent_processes fcp
  49. WHERE process_status_code not in (\'K\', \'S\')
  50. AND fcq.concurrent_queue_id = fcp.concurrent_queue_id
  51. AND fcq.application_id = fcp.queue_application_id;

  52. set head off
  53. set feedback on
  54. UPDATE fnd_concurrent_processes
  55. SET process_status_code = \'K\'
  56. WHERE process_status_code not in (\'K\', \'S\');



  57. REM Set all managers to 0 processes

  58. prompt
  59. prompt ------------------------------------------------------------------------

  60. prompt -- Updating running processes in FND_CONCURRENT_QUEUES
  61. prompt -- Setting running_processes = 0 and max_processes = 0 for all managers

  62. UPDATE fnd_concurrent_queues
  63. SET running_processes = 0, max_processes = 0;




  64. REM Reset control codes

  65. prompt
  66. prompt ------------------------------------------------------------------------

  67. prompt -- Updating invalid control_codes in FND_CONCURRENT_QUEUES
  68. set feedback off
  69. set head on
  70. SELECT concurrent_queue_name manager,
  71. control_code ccode
  72. FROM fnd_concurrent_queues
  73. WHERE control_code not in (\'E\', \'R\', \'X\')
  74. AND control_code IS NOT NULL;

  75. set feedback on
  76. set head off
  77. UPDATE fnd_concurrent_queues
  78. SET control_code = NULL
  79. WHERE control_code not in (\'E\', \'R\', \'X\')
  80. AND control_code IS NOT NULL;

  81. REM Also null out target_node for all managers
  82. UPDATE fnd_concurrent_queues
  83. SET target_node = null;


  84. REM Set all \'Terminating\' requests to Completed/Error
  85. REM Also set Running requests to completed, since the managers are down

  86. prompt
  87. prompt ------------------------------------------------------------------------

  88. prompt -- Updating any Running or Terminating requests to Completed/Error canceled by CMCLEAN
  89. set feedback off
  90. set head on
  91. SELECT request_id request,
  92. phase_code pcode,
  93. status_code scode
  94. FROM fnd_concurrent_requests
  95. WHERE status_code = \'T\' OR phase_code = \'R\'
  96. ORDER BY request_id;

  97. set feedback on
  98. set head off
  99. UPDATE fnd_concurrent_requests
  100. SET phase_code = \'C\', status_code = \'E\'
  101. WHERE status_code =\'T\' OR phase_code = \'R\';





  102. REM Set all Runalone flags to \'N\'
  103. REM This has to be done differently for Release 10

  104. prompt
  105. prompt ------------------------------------------------------------------------

  106. prompt -- Updating any Runalone flags to \'N\'
  107. prompt
  108. set serveroutput on
  109. set feedback off
  110. declare
  111. c pls_integer := dbms_sql.open_cursor;
  112. upd_rows pls_integer;
  113. vers varchar2(50);
  114. tbl varchar2(50);
  115. col varchar2(50);
  116. statement varchar2(255);
  117. begin

  118. select substr(release_name, 1, 2)
  119. into vers
  120. from fnd_product_groups;

  121. if vers >= 11 then
  122. tbl := \'fnd_conflicts_domain\';
  123. col := \'runalone_flag\';
  124. else
  125. tbl := \'fnd_concurrent_conflict_sets\';
  126. col := \'run_alone_flag\';
  127. end if;


  128. statement := \'update \' || tbl || \' set \' || col || \'=\'\'N\'\' where \' || col || \' = \'\'Y\'\'\';
  129. dbms_sql.parse(c, statement, dbms_sql.native);
  130. upd_rows := dbms_sql.execute(c);
  131. dbms_sql.close_cursor(c);
  132. dbms_output.put_line(\'Updated \' || upd_rows || \' rows of \' || col || \' in \' || tbl || \' to \'\'N\'\'\');
  133. end;
  134. /



  135. prompt

  136. prompt ------------------------------------------------------------------------

  137. prompt Updates complete.
  138. prompt Type commit now to commit these updates, or rollback to cancel.
  139. prompt ------------------------------------------------------------------------

  140. prompt

  141. set feedback on

  142. REM <= Last REM statment


5.啟動併發管理器。 ./adcmctl.sh start apps/apps
6.測試這個issue。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23757700/viewspace-1064458/,如需轉載,請註明出處,否則將追究法律責任。

相關文章