You are on page 1of 13

Shutdown Oracle apps R12

1----- Shutdown Application
[root@vision ~]# su – oracle --may change depend on apps installations
[oracle@vision ~]$ cd /u01/oracle/vision/apps/apps_st/appl/
. APPSvision_vision.env
cd $ADMIN_SCRIPTS_HOME
. adstpall.sh
Enter the APPS username: apps
Enter the APPS password: apps
2------ Shutdown Database
[root@vision ~]# su – oracle --may change depend on apps installations
[oracle@vision ~]$ cd /u01/oracle/vision/db/tech_st/11.1.0/
[oracle@vision 11.1.0]$ . vision_vision.env
[oracle@vision 11.1.0]$ sqlplus / as sysdba
SQL> shutdown immediate;

Startup Oracle apps R12
1------ Startup Database
[root@vision ~]# su - oracle
[oracle@vision ~]$ cd /u01/oracle/vision/db/tech_st/11.1.0/
[oracle@vision 11.1.0]$ . vision_vision.env
[oracle@vision 11.1.0]$ sqlplus / as sysdba
SQL> startup;
2----- Startup Application
[root@vision ~]# su – oracle --may change depend on apps installations
[oracle@vision ~]$ cd /u01/oracle/vision/apps/apps_st/appl/
. APPSvision_vision.env
cd $ADMIN_SCRIPTS_HOME
. adstrtal.sh
Enter the APPS username: apps
Enter the APPS password: apps

ora file as follows LISTENER= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = HOSTNAME )(PORT = 1532)) ) SID_LIST_LISTENER= (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = ICCOMSCO) (ORACLE_HOME = /ICCOMSoracle/oracle/ora92) (SID_NAME = ICCOMSCO) (SERVER = SHARED) ) ) 3..dispatchers='(protocol=TCP)(disp=5)' *.max_dispatchers=10 *.CONVERTING DATABASE MODE TO SHARED FROM DEDICATED & VICE VERSA 1. Start the listener 6. To revert back follow the same process but instead of SHARED write DEDICATED & remove those 4 parameters from init file. Shutdown the database 4. 7.shared_servers=60 *. status READY. has 6 handler(s) for this service.. Change the listener. Start the database After starting the database if you check the status of listener you will find Instance "ICCOMSCO".max_shared_servers=150 The values disp=5 and shared_server=60 depends on client’s need 5. Stop the listener 2. Add or edit following parameters in init file *. .

sh Order for shutdown in Oracle Apps R12 is A) Stop Application/Middle Tier Services – adstpall.sh or alternatively you can use lsnrctl startstop listener_name (For Database Listener) sqlplus “/as sysdba” SQL> startup shutdown immediate Middle/Application Tier Scripts in R12 ————————————————Scripts for Application Tier services in R12 are located in “Install_base/inst/apps/ $CONTEXT_NAME/admin/scripts“ where CONTEXT_NAME is of format SID_HOSTNAME .0/appsutil/scripts/$CONTEXT_NAME. Scripts are located in Database_Install_Dir/db/tech_st/10.For Database Use script addbctl.sh Then B) Stop Database Tier Services –Stop Database –Stop Database Listener Database Tier Scripts in R12 ————————————– For Database tier you need to start database and database listener.For Database Listener Use script addlnctl.Startup/Shutdown scripts in Oracle Apps 11i Order of Startup Shutdown ————————————– As in Oracle Apps 11i order for startup is A) Start Database Tier Services –Start Database Listener –Start Database Then B) Start Application/Middle Tier Services – adstrtal.2.sh .

i) adstrtal.e.sh ) vi) adformsctl.1.1. Forms & Reports Home) listener. from 8.sh Script to start / stop concurrent manager. This script will use Service Control API to start all services which are enabled after checking them in context file (SID_HOSTNAME. (This script in turn calls startmgr.sh This script is used only if you wish to start forms in socket mode.1. If started this will start frmsrv executable from 10.2.2 Oracle_Home in Apps R12 .xml or CONTEXT_NAME. This listener will file will be in 10.3) v) adcmctl.0.2 but in R12 its 10.sh Script to start/stop Web Server or Oracle HTTP Server.xml) ii) adstpall.ora file will be in $INST_TOP/apps/ $CONTEXT_NAME/ora/10.sh Master script to start all components/services of middle tier or application tier. iii) adalnctl.2. This script will also use opmnctl to start/stop Forms OC4J like opmnctl stopproc type=oc4j instancename=forms vii) adformsrvctl.3 Oracle_Home.0.1. Similar to one in 11i.sh Script to start / stop Forms OC4J from 10.sh Script to start / stop apps listener (FNDFS and FNDFS).2 ) iv) adapcctl. In 11i web server oracle home was 1. This script uses opmn (Oracle Process Manager and Notification Server) with syntax similar to opmnctl [startstop]proc ohs like opmnctl stopproc ohs .2 ORACLE_HOME (i.1.2/network/admin directory (Mostly similar to one in 11i with only change in ORACLE_HOME i.e.sh Master script to stop all components/services of middle tier or application tier. (In 11i this script directly used to call apachectl executable but now calls opmnctl which in turn calls apachectl.6 to 10. Default forms connect method in R12 is servlet.1.

sh This script will start/stop oafm OC4J in 10.3 Oracle_Home like web server or various oc4j instances. opmn will control all services in 10.txt. If any services are stopped abnormally opmn will/should start them automatically.1.sh This script will be used to start/stop one to one fulfilment server. adoafmctl.txt. adapcctl. xi) jtffmctl.txt.3 Oracle_Home.txt.txt. This scripts will also use opmnctl (similar to adapcctl & adformsctl) to start oacore instance of OC4J like opmnctl startproc type=oc4j instancename=oacore ix) adoafmctl. adstrtal.sh To start / stop mwa telnet server where mwa is mobile application.3 Oracle_Home.sh This script will start/stop oacore OC4J in 10. jtffmctl.viii) adoacorectl.txt.1. adformsctl. Log File Location for Startup Shutdown Services in R12 ———————————————————————Log files for startup/shutdown scripts for application/mid tier in R12 are in $INST_TOP/apps/$CONTEXT_NAME/logs/appl/admin/log (adalnctl.log. adcmctl. adoacorectl.3 Oracle_Home.1.txt ) .txt. adopmnctl. This scripts will also use opmnctl (similar to above) to start oacore instance of OC4J like opmnctl startproc type=oc4j instancename=oafm x) adopmnctl.1. xii) mwactl.sh This script will start/stop opmn service in 10.

0_2012-13 Revision Date Authors Revision Notes 21-10-2012 Prakash.Solaris Document Information& Revision History: Document Version No 1. Gottam Document Created .VNC server – EBS.

.VNC server Checkups (Multiple applications installed under same server):  To Check VNC services on applications Node.

$ ps -ef |grep -i Xvnc  Check the Date of display under the location (/tmp/.X11-unix) which has created after VNC server start-up. . If you find any display having date before bounce of applications then remove that display and start vnc services again from the $COMMON/admin/scripts. no need to start-up seperatly.Only thing we have to make sure that these checkups must be proper after the every bounce of applications. Vnc start-up script included in start all scripts.

Check the output after the VNC start-up that should not fire any errors. VNC start-up script: .

Always keep the Display rather than ZERO as this ZERO display is using by OS (by default.) . IMP Note: Remember the above note while performing Cloning.The DISPLAY setting in the above script should be same as the DISPLAY in $CONTEXT_FILE of applications.

we would face below issue in Concurrent request post processing (mostly XML/post processing programmes) REP-3000: Internal error oracle tool kit .If Display is not properly set while cloning.

env 4) Stop the DB Listner $ cd $ORACLE_HOME/appsutil/scripts/PROD_prod $ sh addlnctl.2./PROD_prod.0 $ .g.env 4) Stop the application $ cd $INST_TOP/admin/scripts $ sh adstrtal.sh apps/apps 5) verify the TNS listner. oramgr Login as : oramgr password : oramgr 3) Set the production enviornment $ cd /u03/db/tech_st/10.g. applmgr Login as : applmgr password : applmgr 3) Set the production enviornment $ cd /u01/apps/apps_st/appl $ . Concurrent Manager & Oracle HTTP Server is down sucessfully.sh stop PROD 5) $ sqlplus "/as sysdba" SQL> shutdown immediate 6) verify the TNS listner.sh status 6) exit Stop Database ============ 1) Open putty 2) Login to server using application user e. DB is down sucessfully../PROD_prod. To check : a) TNS listner $ ps -ef|grep tns b) Concurrent Manager $ ps -ef|grep FNDLIBR c) Oracle HTTP Server $ sh adapcctl..How stop oracle apps and take cold backup Stop Application ============ 1) Open putty 2) Login to server using application user e. To check : a) TNS listner $ ps -ef|grep tns b) Database $ ps -ef|grep ora_ 5) exit .

Cold Backup (tape drive) ================ tar cvf /dev/rmt/0m /u01/apps /u02/inst /u03/db .