Application startup and shutdown scripts
[sreenidba@sreenidba scripts]$ cd $ADMIN_SCRIPTS_HOME
1.adalnctl.sh
2.adautocfg.sh
3.adformsctl.sh
4.adoacorectl.sh
5.adopmnctl.sh
6.adstpall.sh
7.adapcctl.sh
8.adcmctl.sh
9.adformsrvctl.sh
10.adoafmctl.sh
11.adpreclone.pl
12.adstrtal.sh
1.adalnctl.sh : script used to start the application listener services.
logfile located in LOG_HOME or INST_TOP/admin/log
adalnctl.txt
To know the status of apps listner
[sreenidba@sreenidba log]$ adalnctl.sh status
adalnctl.sh version 120.3
Checking status for listener process APPS_UAT.
LSNRCTL for Linux: Version 10.1.0.5.0 - Production on 30-AUG-2017 12:47:58
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=sreenidba)(Port=1600))
STATUS of the LISTENER
------------------------
Alias APPS_UAT
Version TNSLSNR for Linux: Version 10.1.0.5.0 - Production
Start Date 21-AUG-2017 15:02:36
Uptime 8 days 21 hr. 45 min. 23 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /d03/UATAPPL/inst/apps/UAT_sreenidba/ora/10.1.2/network/admin/listener.ora
Listener Log File /d03/UATAPPL/inst/apps/UAT_sreenidba/logs/ora/10.1.2/network/apps_uat.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sreenidba.bw.ltindia.com)(PORT=1639)))
Services Summary...
Service "FNDFS" has 1 instance(s).
Instance "FNDFS", status UNKNOWN, has 1 handler(s) for this service...
Service "FNDSM" has 1 instance(s).
Instance "FNDSM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
adalnctl.sh: exiting with status 0
adalnctl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_sreenidba/logs/appl/admin/log/adalnctl.txt for more information ...
[sreenidba@sreenidba log]$
FNDFS:
- FNDFS or the Report Review Agent (RRA) is the default text viewer within Oracle Applications, which allows users to view report output and log files.
- Report Review Agent is also referred to by the executable FNDFS.
FNDSM
- FND Service Manager is a concurrent manager in GSM( Generic Service Management Framework ), and serves requests like CM’s
[sreenidba@sreenidba ~]$ ps -ef | grep APPS_
sreenidba 5242 5161 0 13:05 pts/1 00:00:00 grep APPS_
sreenidba 22028 1 0 Aug21 ? 00:00:00 /d03/UATAPPL/apps/tech_st/10.1.2/bin/tnslsnr APPS_UAT -inherit
appldev 22274 1 0 Aug29 ? 00:00:00 /d04/DEVAPPL/apps/tech_st/10.1.2/bin/tnslsnr APPS_DEV -inherit
[sreenidba@sreenidba ~]$
adautocfg.sh
- script used to run the autoconfig, if any changes has been done in context file that time we need to run autoconfig.
- when you run auto config it wiil update all template files and driver files in oracle applications.
- logfile located in INST_TOP/admin/log
[sreenidba@sreenidba scripts]$ sh adautocfg.sh
Enter the APPS user password:
The log file for this session is located at: /d03/UATAPPL/inst/apps/UAT_sreenidba/admin/log/08301310/adconfig.log
AutoConfig is configuring the Applications environment...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /d03/UATAPPL/inst/apps/UAT_sreenidba
a Classpath : /d03/UATAPPL/apps/apps_st/comn/java/lib/appsborg2.zip:/d03/UATAPPL/apps/apps_st/comn/java/classes
pps
Using Context file : /d03/UATAPPL/inst/apps/UAT_sreenidba/appl/admin/UAT_sreenidba.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
AutoConfig completed successfully.
adformsctl.sh
- this script is used to start formservices in servletmode.
- Log file located at INST_TOP/admin/log
[sreenidba@sreenidba scripts]$ adformsctl.sh status
You are running adformsctl.sh version 120.16.12010000.3
Checking status of OPMN managed FORMS OC4J instance ...
Processes in Instance: UAT_sreenidba.sreenidba.bw.ltindia.com
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 22463 | Alive
OC4JGroup:default_group | OC4J:forms | 22385 | Alive
OC4JGroup:default_group | OC4J:oacore | 22131 | Alive
OC4JGroup:default_group | OC4J:oacore | 22130 | Alive
HTTP_Server | HTTP_Server | 22070 | Alive
adformsctl.sh: exiting with status 0
adformsctl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_sreenidba/logs/appl/admin/log/adformsctl.txt for more information ...
[sreenidba@sreenidba scripts]$
adopmnctl.sh
- this script is used to start and stop all forms and apache services OC4J, oafm, oacore HTTP_Server.
- to start/stop all services forms and apache services using below cmd.
- logfile located at INST_TOP/admin/log
[sreenidba@sreenidba scripts]$ adopmnctl.sh stop all
- [sreenidba@sreenidba scripts]$ adopmnctl.sh status all
You are running adopmnctl.sh version 120.6.12010000.5
Checking status of OPMN managed processes...
Processes in Instance: UAT_ltk1.ltk1.bw.ltindia.com
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 22463 | Alive
OC4JGroup:default_group | OC4J:forms | 22385 | Alive
OC4JGroup:default_group | OC4J:oacore | 22131 | Alive
OC4JGroup:default_group | OC4J:oacore | 22130 | Alive
HTTP_Server | HTTP_Server | 22070 | Alive
adopmnctl.sh: exiting with status 0
adstrtall.sh
- this script is used to start all services listner, forms,oc4j,oacore,oafm, concurrent managers and apache services.
- logfile located at INST_TOP/admin/log
- to start the all services issue the folloing command.
[sreenidba@sreenidba scripts]$ adstrtal.sh
You are running adstrtal.sh version 120.15.12010000.3
Enter the APPS username: apps
Enter the APPS password:
The logfile for this session is located at /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adstrtal.log
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adopmnctl.sh start
.end std out.
.end err out.
****************************************************
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adalnctl.sh start
script returned:
****************************************************
adalnctl.sh version 120.3
Checking for FNDFS executable.
Starting listener process APPS_UAT.
adalnctl.sh: exiting with status 0
adalnctl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adalnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adapcctl.sh start
script returned:
****************************************************
You are running adapcctl.sh version 120.7.12010000.2
Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl: opmn is already running.
opmnctl: starting opmn managed processes...
adapcctl.sh: exiting with status 0
adapcctl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adapcctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adoacorectl.sh start
script returned:
****************************************************
You are running adoacorectl.sh version 120.13
Starting OPMN managed OACORE OC4J instance ...
adoacorectl.sh: exiting with status 0
adoacorectl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adoacorectl.txt for more information ...
.end std out.
.end err out.
All enabled services for this node are started.
adstrtal.sh: Exiting with status 0
adstrtal.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adstrtal.log for more information ...
You are running adstrtal.sh version 120.15.12010000.3
Enter the APPS username: apps
Enter the APPS password:
The logfile for this session is located at /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adstrtal.log
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adopmnctl.sh start
.end std out.
.end err out.
****************************************************
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adalnctl.sh start
script returned:
****************************************************
adalnctl.sh version 120.3
Checking for FNDFS executable.
Starting listener process APPS_UAT.
adalnctl.sh: exiting with status 0
adalnctl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adalnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adapcctl.sh start
script returned:
****************************************************
You are running adapcctl.sh version 120.7.12010000.2
Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl: opmn is already running.
opmnctl: starting opmn managed processes...
adapcctl.sh: exiting with status 0
adapcctl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adapcctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_ltk1/admin/scripts/adoacorectl.sh start
script returned:
****************************************************
You are running adoacorectl.sh version 120.13
Starting OPMN managed OACORE OC4J instance ...
adoacorectl.sh: exiting with status 0
adoacorectl.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adoacorectl.txt for more information ...
.end std out.
.end err out.
All enabled services for this node are started.
adstrtal.sh: Exiting with status 0
adstrtal.sh: check the logfile /d03/UATAPPL/inst/apps/UAT_ltk1/logs/appl/admin/log/adstrtal.log for more information ...
Note: status existing with "0" then all services well and started, if the status existing '1" then we need to crosscheck all services.
to stop all services using followning command
[sreenidba@sreenidba scripts]$ adstpall.sh
You are running adstpall.sh version 120.10.12010000.4
Enter the APPS username: apps
Enter the APPS password:
The logfile for this session is located at /d03/UATAPPL/inst/apps/UAT_sreenidba/logs/appl/admin/log/adstpall.log
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_sreenidba/admin/scripts/jtffmctl.sh stop
script returned:
****************************************************
You are running jtffmctl.sh version 120.3
Shutting down Fulfillment Server for UAT on port 9313 ...
jtffmctl.sh: exiting with status 0
.end std out.
.end err out.
****************************************************
Executing service control script:
/d03/UATAPPL/inst/apps/UAT_sreenidba/admin/scripts/adcmctl.sh stop
script returned:
****************************************************
You are running adcmctl.sh version 120.17.12010000.5
Shutting down concurrent managers for UAT ...
ORACLE Password:
Submitted request 59028128 for CONCURRENT FND SHUTDOWN
adcmctl.sh: exiting with status 0