Monday, January 3, 2011

Start/Stop a single Application tier server process

When Rapid Install sets up and configures the server processes, it stores a control script for each process in the $INST_TOP/admin/scripts directory.

Certain maintenance procedures require that you stop one or more services or servers manually, and restart them after you complete the procedure. By running the appropriate script on the command line, along with a stop or start argument, you can stop (or start) a single server process, several processes, or all processes.
Concurrent Managers
C:\oracle\PROD\inst\apps\PROD_p-hq-sv-or-01\admin\scripts>adcmctl status apps/apps
ECHO is off.
ECHO is off.
Tue 01/04/2011 09:18 AM
ECHO is off.
ECHO is off.
Tue 01/04/2011 09:18 AM
ECHO is off.
ECHO is off.
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
APPSORA.cmd exiting with status 0
The service "OracleConcMgrPROD_p-hq-sv-or-01" hasn't been started
adcmctl.cmd exiting with status 0


HTTP (Web) Server
C:\oracle\PROD\inst\apps\PROD_p-hq-sv-or-01\admin\scripts>adapcctl status apps/apps
Tue 01/04/2011 09:20 AM
Checking status of OPMN managed processes...
Processes in Instance: PROD_.or-01
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    2408 | Alive
OC4JGroup:default_group          | OC4J:forms         |     220  | Alive
OC4JGroup:default_group          | OC4J:oacore       |    3896 | Alive
HTTP_Server                             | HTTP_Server      |     984  | Alive
ASG                                           | ASG                    |     N/A | Down
 exiting with status 0
ERRORCODE = 0 ERRORCODE_END

Forms (OC4J)  - Forms OC4J instance
C:\oracle\PROD\inst\apps\PROD_p-hq-sv-or-01\admin\scripts>adformsctl status
Tue 01/04/2011 09:24 AM
Checking status of OPMN managed processes...
Processes in Instance: PROD_or-01
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    2408 | Alive
OC4JGroup:default_group          | OC4J:forms         |     220 | Alive
OC4JGroup:default_group          | OC4J:oacore        |    3896 | Alive
HTTP_Server                      | HTTP_Server        |     984 | Alive
ASG                              | ASG                |     N/A | Down
 exiting with status 0
ERRORCODE = 0 ERRORCODE_END

oacore - oacore OC4J instance.
C:\oracle\PROD\inst\apps\PROD_p-hq-sv-or-01\admin\scripts>adoacorectl status
Tue 01/04/2011 09:27 AM
Checking status of OPMN managed processes...
Processes in Instance: PROD_or-01
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    2408 | Alive
OC4JGroup:default_group          | OC4J:forms         |     220 | Alive
OC4JGroup:default_group          | OC4J:oacore        |    3896 | Alive
HTTP_Server                      | HTTP_Server        |     984 | Alive
ASG                              | ASG                |     N/A | Down
 exiting with status 0
ERRORCODE = 0 ERRORCODE_END

Oracle Process Manager (opmn)
C:\oracle\PROD\inst\apps\PROD_p-hq-sv-or-01\admin\scripts>adopmnctl status
Tue 01/04/2011 09:30 AM
Checking status of OPMN managed processes...
Processes in Instance: PROD_or-01
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    2408 | Alive
OC4JGroup:default_group          | OC4J:forms         |     220 | Alive
OC4JGroup:default_group          | OC4J:oacore        |    3896 | Alive
HTTP_Server                      | HTTP_Server        |     984 | Alive
ASG                              | ASG                |     N/A | Down
 exiting with status 0
ERRORCODE = 0 ERRORCODE_END


Note: You can user start/stop instead of status





No comments:

Post a Comment