Click here to download cmclean.sql
REM
REM FILENAME
REM cmclean.sql
REM DESCRIPTION
REM Clean out the concurrent manager tables
REM NOTES
REM Usage: sqlplus <apps_user/apps_passwd> @cmclean
REM
REM
REM $Id: cmclean.sql,v 1.4 2001/04/07 15:55:07 pferguso Exp $
REM
REM
REM +==============================+
set verify off;
set head off;
set timing off
set pagesize 1000
column manager format a20 heading ‘Manager short name’
column pid heading ‘Process id’
column pscode format a12 heading ‘Status code’
column ccode format a12 heading ‘Control code’
column request heading ‘Request ID’
column pcode format a6 heading ‘Phase’
column scode format a6 heading ‘Status’
WHENEVER SQLERROR EXIT ROLLBACK; Read more…
We can submit concurrent programs from OS command / shell prompt using CONCSUB utility. Following is the syntax of the same:
CONCSUB <APPS username>/<APPS password>
<responsibility application short name>
<responsibility name>
<username>
[WAIT=N|Y|<n seconds>]
CONCURRENT
<program application short name>
<program name>
[PROGRAM_NAME="<description>"]
[REPEAT_TIME=<resubmission time>]
[REPEAT_INTERVAL= <number>]
[REPEAT_INTERVAL_UNIT=< resubmission unit>]
[REPEAT_INTERVAL_TYPE=< resubmission type>]
[REPEAT_END=<resubmission end date and time>]
[NLS_LANGUAGE=<language of the request>]
[NLS_TERRITORY=<territory of the request>]
[START=<date>]
[IMPLICIT=< type of concurrent request>
[<parameter 1> ... <parameter n>]
Examples:
Active Users
CONCSUB apps/[apps_pwd] SYSADMIN “System Administrator” SYSADMIN WAIT=N CONCURRENT FND FNDSCURS
Prints Environment Variables
CONCSUB apps/[apps_pwd] SYSADMIN “System Administrator” SYSADMIN WAIT=N CONCURRENT FND FNDPRNEV APPL_TOP
Table Name: FND_CONCURRENT_REQUESTS
Column Name: PHASE_CODE
| Value |
Meaning |
| C |
Completed |
| I |
Inactive |
| P |
Pending |
| R |
Running |
Table Name: FND_CONCURRENT_REQUESTS
Column Name: STATUS_CODE
| Value |
Meaning |
| D |
Cancelled |
| U |
Disabled |
| E |
Error |
| M |
No Manager |
| R |
Normal |
| I |
Normal |
| C |
Normal |
| H |
On Hold |
| W |
Paused |
| B |
Resuming |
| P |
Scheduled |
| Q |
Standby |
| S |
Suspended |
| X |
Terminated |
| T |
Terminating |
| A |
Waiting |
| Z |
Waiting |
| G |
Warning |