Vous êtes sur la page 1sur 17

How to Start / Stop services in Oracle Applications R12 ( Application / Database Tier) How to Start/Stop services in Oracle Applications

R12. These steps are from Online Oracle Apps DBA (11i /R12) traininghere (This is interactive online co rse over wee!en" with hands on exercises on installation# patching# cloning " ring wee!"a$s) Assumptions Application Tier O.S. ser % avisr12 ( s all$ applmgr) Data!ase Tier O.S. ser % ovisr12 ( s all$ oracle) R12 install !ase % /oracle/apps/r12/visr12 Data!ase S"D % visr12 Data!ase #ersion % 11&1&' Hostname % foc sthrea"r12 Operatin$ S%stem % (ni)/*in ) Apps Schema &assword % apps (apps is "efa lt passwor") & Start' p/Shutdown order +f $o are startin$ services then (irst start Data!ase Tier services an" then Application Tier Services& +f $o are shuttin$ down services then (irst stop Application Tier services an"then Data!ase Tier Services& 1. Startup 1.1 Start Data!ase Tier 1.1.1 *ogin as "atabase tier ser (ovisr12) 1.1.2 Set environment variable b$

r nning )S"D*hostname.envfrom ,+-STA**./AS0/"b/tech.st/11&1&' 12 cd /oracle/apps/r12/visr12/d!/tech*st/11.1.+ 12 . visr12*(ocusthreadr12.com (note% "ot in front) 1.1., Start "atabase 12 s-lplus ./as s%sd!a 12 S3*4 startup 1.1./ Start Database *istener (lsnrctl start ,S+D) 12 lsnrctl start visr12 & & 1.2 Start Application Tier 1.2.1 *ogin as application tier ser (avisr12)

1.2.2 Set environment variable b$ r nning )S"D*hostname.envfrom ,+-STA**./AS0/apps/apps.st/appl 12 cd /oracle/apps/r12/visr12/apps/apps*st/appl 12 . visr12*(ocusthreadr12.com (note% "ot in front) 1.2., Start Application Tier (a"strtal&sh apps/,apps.passwor") 12 cd )AD0"1*S2R"&TS*HO03 12 ./adstrtal.sh apps/apps & & 2. Shutdown Services 2.1 Shutdown Application Tier 2.1.1 *ogin as application tier ser (avisr12) 2.1.2 Set environment variable b$ r nning )S"D*hostname.env from ,+-STA**./AS0/apps/apps.st/appl 12 cd /oracle/apps/r12/visr12/apps/apps*st/appl 12 . visr12*(ocusthreadr12.com (note% "ot in front) 2.1., Stop Application Tier (a"stpall&sh apps/,apps.passwor")

12 cd )AD0"1*S2R"&TS*HO03 12 ./adstpall.sh apps/apps . 2.2 Shutdown Data!ase Tier 2.2.1 *ogin as "atabase tier ser (ovisr12) 2.2.2 Set environment variable b$ r nning )S"D*hostname.env from ,+-STA**./AS0/"b/tech.st/11&1&' 12 cd /oracle/apps/r12/visr12/d!/tech*st/11.1.+ 12 . visr12*(ocusthreadr12.com (note% "ot in front) 2.2., Stop "atabase 12 s-lplus ./as s%sd!a 12 S3*4 shutdown immediate 2.2./ Stop Database *istener (lsnrctl start ,S+D) 12 lsnrctl stop visr12 Start2 p Sh t"own Scripts in Oracle Apps R12 Order o( Startup Shutdown 4444444444445 As in Oracle Apps 11i or"er for startup is A6 Start Data!ase Tier Services 5Start Database *istener 5Start Database Then B6 Start Application/0iddle Tier Services 5 a"strtal&sh Or"er for shutdown in Oracle Apps R12 is A6 Stop Application/0iddle Tier Services 5 a"stpall&sh Then

B6 Stop Data!ase Tier Services 5Stop Database 5Stop Database *istener Data!ase Tier Scripts in R12 4444444444445 6or Database tier $o nee" to start "atabase an" "atabase listener& Scripts are locate" inDatabase_Install_Dir/db/tech_st/10.2.0/appsutil/scripts/ $CONTEXT_NAME !"#r!Database!$se!script!addbctl.sh! !"#r! Database!%istener!(se script a""lnctl&sh or alternativel$ $o can se lsnrctl startstop listener*name (6or Database *istener) s7lpl s 8/as s$s"ba S3*4 start p sh t"own immediate 0iddle/Application Tier Scripts in R12 4444444444444444' Scripts for Application Tier services in R12 are locate" in 8"nstall*!ase/inst/apps/ )2O1T37T*1A03/admin/scripts where 9O-T0:T.-A;0 is of format S+D.HOST-A;0 i6 a"strtal.sh ;aster script to start all components/services of mi""le tier or application tier& This script will se Service 9ontrol A<+ to start all services which are enable" after chec!ing them in conte)t file (S+D.HOST-A;0&)ml or 9O-T0:T.-A;0&)ml)

ii6 a"stpall.sh ;aster script to stop all components/services of mi""le tier or application tier& iii6 a"alnctl.sh Script to start / stop apps listener (6-D6S an" 6-D6S)& This listener will file will be in 1'&1&2 ORA9*0.HO;0 (i&e& 6orms = Reports Home) listener&ora file will be in ,+-ST.TO</apps/ ,9O-T0:T.-A;0/ora/1'&1&2/networ!/a"min "irector$ (M#stl&! si'ilar!t#!#ne!in!11i!(ith!#nl&!chan)e!in!O*AC%E_+OME!i.e.! ,r#'!-.0..!t#!10.1.2) iv6 a"apcctl.sh Script to start/stop >eb Server or Oracle HTT< Server& This script ses opmn (Oracle <rocess ;anager an" -otification Server) with s$nta) similar to opmnctl8startstop9proc ohs li!eopmnctl stopproc ohs. :"n 11i this script directl% used to call apachectl executa!le !ut now calls opmnctl which in t rn calls apachectl. "n 11i we! server oracle home was 1.+.2.2.2 !ut in R12 its 1+.1.,6 v6 a"cmctl.sh Script to start / stop concurrent mana$er; Similar to one in 11i& (This script in t rn calls startmgr&sh ) vi6 a"formsctl.sh Script to start / stop <orms O9/= from 1'&1&? Oracle.Home& This script will also seopmnctl to start/stop 6orms O9@A li!e opmnctl stopproc t%pe>oc/? instancename>(orms vii6 a"formsrvctl.sh This script is se" onl$ if $o wish to start forms in soc!et mo"e&

Defa lt forms connect metho" in R12 is servlet& If started this will start frmsrv executable from 10.1.2 Oracle_Home in Apps R12 viii6 a"oacorectl.sh This script will start/stop oacore O9/= in 1'&1&? Oracle.Home& This scripts will also seopmnctl (similar to a"apcctl = a"formsctl) to start oacore instance of O9@A li!e opmnctl startproc t&pe/oc01!instancename/oacore ix6 a"oafmctl.sh This script will start/stop oafm O9/= in 1'&1&? Oracle.Home& This scripts will also seopmnctl (similar to above) to start oacore instance of O9@A li!e opmnctl startproc t&pe/oc01! instancename/oafm x6 a"opmnctl.sh This script will start/stop opmn service in 1'&1&? Oracle.Home& opmn will control all services in 1'&1&? Oracle.Home li!e web server or vario s oc@B instances& +f an$ services are stoppe" abnormall$ opmn will/sho l" start them a tomaticall$& xi6 Btffmctl.sh This script will be se" to start/stop one to one f lfilment server& xii6 mwactl.sh To start / stop mwa telnet server where mwa is mobile application& @o$ <ile @ocation (or Start p Shutdown Services in R12 44444444444444444444444' *og files for start p/sh t"own scripts for application/mi" tier in R12 are in)"1ST*TO&/apps/)2O1T37T*1A03/lo$s/appl/admin/l

o$ (a"alnctl&t)t# a"apcctl&t)t# a"cmctl&t)t# a"formsctl&t)t# a"oacorectl&t)t# a"oafmctl&t)t#a"opmnctl&t)t# a"strtal&log# Btffmctl&t)t ) here AD is for Application D/A DB is for "atabase D@1 is "atabase listener 2T@ is control +snCt this eas$ to Oracle R12/12i log file (<atch# 9lone# Start p/Sh t"own) *og files are sef l in tro bleshooting iss es in Oracle Applications& Here is the list of *og file location in Oracle Applications for Start p/Sh t"own# 9loning# <atching# D/ = Apps *istener an" vario s components in Apps R12/12i% A. Startup/Shutdown @o$ (iles (or Application Tier in R12 +nstance Top is new TO& a""e" in R12 :to read more clicA here6 5Startup/Shutdown error messa$e text (iles liAe adapcctl.txt; adcmctl.txtB ,+-ST.TO</apps/ ,9O-T0:T.-A;0/logs/appl/a"min/log

5Startup/Shutdown error messa$e related to tech stacA :1+.1.2; 1+.1., (orms/reports/we!6 ,+-ST.TO</apps/ ,9O-T0:T.-A;0/logs/ora/ (1'&1&2 = 1'&1&?) ,+-ST.TO</apps/ ,9O-T0:T.-A;0/logs/ora/1'&1&?/Apache/error.logDtimestampE ,+-ST.TO</apps/,9O-T0:T.-A;0/logs/ora/1'&1&?/opmn/ (O9@AFG# oaH# opmn&log),+-ST.TO</apps/ ,9O-T0:T.-A;0/logs/ora/1'&1&2/networ!/ (listener log) ,+-ST.TO</apps/,9O-T0:T.-A;0/logs/appl/conc/log (9; log files) B. @o$ (iles related to clonin$ in R12 <reclone log files in source instance i) Database Tier 5 / ,ORA9*0.HO;0/apps til/log/,9O-T0:T.-A;0/ (StageD/Tier.;;DDHH;;&log) ii) Application Tier 5 ,+-ST.TO</apps/,9O-T0:T.-A;0/a"min/log/ (StageAppsTier.;;DDHH;;&log) 9lone log files in tar$et instance Database Tier 2 ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/Appl$D/Tier.Itime4&log Apps Tier 5

,+-ST.TO</apps/ ,9O-T0:T.-A;0/a"min/log/Appl$AppsTier.Itime4&log 15 +f $o r clone on D/ Tier fails while r nning t)!9onfigD/Ocm&pl (9hec! metalin! note 5 @1J'2'&1) D ring clone step on D/ Tier it prompts for 8Target S$stem base "irector$ for so rce homes an" " ring this $o have to give li!e /base.install."ir li!e &&/&&/r12 an" not oracle home li!e &&/&&/r12/"b/tech.st.1'&2&' 15 2. &atchin$ related lo$ (iles in R12 i) Application Tier adpatch log 2 ,A<<*.TO</a"min/,S+D/log/ ii) Developer (Developer/6orms = Reports 1'&1&2) <atch 2 ,ORA9*0.HO;0/&patch.storage iii) >eb Server (Apache) patch 2 ,+AS.ORA9*0.HO;0/&patch.storage iv) Database Tier opatch log 5 ,ORA9*0.HO;0/&patch.storage D. Autocon(i$ related lo$ (iles in R12 i) Database Tier A toconfig log % ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/;;DDHH;;/a"config&log ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/;;DDHH;;/-etServiceHan"ler&log

ii) Application Tier A toconfig log 2 ,+-ST.TO</apps/ ,9O-T0:T.-A;0/a"min/log/,;;DDHH;;/a"config&log Autocon(i$ context (ile location in R12 2 ,+-ST.TO</apps/ ,9O-T0:T.-A;0/appl/a"min/,9O-T0:T.-A;0&)ml 3. R12 "nstallation @o$s Data!ase Tier "nstallation RD/;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/I;;DDHH;;4&logRD/;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/Appl$D/TechStac!.I;;DDHH;;4&logRD /;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/ohclone&logRD/;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/ma!e.I;;DDHH;;4&logRD/;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/install"bf&logRD/;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/a"cr"b.IS+D4&log RD/;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/Appl$Database.I;;DDHH;;4&logRD/;S ,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/I;;DDHH;;4/a"config&log RD/;S

,ORA9*0.HO;0/apps til/log/ ,9O-T0:T.-A;0/I;;DDHH;;4/-etServiceHan"ler&log Application Tier "nstallation ,+-ST.TO</logs/I;;DDHH;;4&log ,A<<*.TO</a"min/ ,9O-T0:T.-A;0/log/Appl$AppsTechStac!&log ,+-ST.TO</logs/ora/1'&1&2/install/ma!e.I;;DDHH;;4&log ,+-ST.TO</logs/ora/1'&1&?/install/ma!e.I;;DDHH;;4&log ,+-ST.TO</a"min/log/Appl$AppsTechStac!&log ,+-ST.TO</a"min/log/ohclone&log ,A<<*.TO</a"min/ ,9O-T0:T.-A;0/log/installAppl&log ,A<<*.TO</a"min/ ,9O-T0:T.-A;0/log/Appl$Appltop.I;;DDHH;;4&log ,A<<*.TO</a"min/ ,9O-T0:T.-A;0/log/I;;DDHH;;4/a"config&log ,A<<*.TO</a"min/ ,9O-T0:T.-A;0/log/I;;DDHH;;4/-etServiceHan"ler&log "nventor% Re$istrationC ,Klobal +nventor$/logs/cloneActionsItimestamp4&log ,Klobal +nventor$/logs/ora+nstallItimestamp4&log ,Klobal +nventor$/logs/silent+nstallItimestamp4&log <. Other lo$ (iles in R12 1) Data!ase Tier 1&1) Relin! *og files %

,ORA9*0.HO;0/apps til/log/,9O-T0:T.-A;0 /;;DDHH;;/ ma!e.,;;DDHH;;&log 1&2) Alert *og 6iles % ,ORA9*0.HO;0/a"min/ ,9O-T0:T.-A;0/b" mp/alert.,S+D&log 1&?) -etwor! *ogs % ,ORA9*0.HO;0/networ!/a"min/,S+D&log 1&@) O(+ *ogs % O(+ +nventor$ *ogs % ,ORA9*0.HO;0/a"min/o i/ ,9O-T0:T.-A;0/ora+nventor$/logs 2) Application Tier ,ORA9*0.HO;0/B2ee/DevS ite/log ,ORA9*0.HO;0/opmn/logs ,ORA9*0.HO;0/networ!/logs Tech Stac! <atch 1'&1&? (>eb/HTT< Server) ,+AS.ORA9*0.HO;0/B2ee/forms/logs ,+AS.ORA9*0.HO;0/B2ee/oafm/logs ,+AS.ORA9*0.HO;0/B2ee/oacore/logs ,+AS.ORA9*0.HO;0/opmn/logs ,+AS.ORA9*0.HO;0/networ!/log ,+-ST.TO</logs/ora/1'&1&2 ,+-ST.TO</logs/ora/1'&1&? ,+-ST.TO</logs/appl/conc/log ,+-ST.TO</logs/appl/a"min/log

Advanta$es o( new "1STA123 HO03 L The additional Instance Home makes the middle tier more easy to manage and organised since the data is kept separate from the config files. The Instance Home also has the ability to share the Applications and Technology stack code across multiple instances. Another advantage of the Instance Home is that the Autoconfig no longer writes anything to the APPL_T P and !A"L#_H $# directories% everything is now written in the I&'T_T P as a result APPL_T P and !A"L#_H $# can also (e made read only file system if re)uired . #arlier say the adpatch used to write the log file in APPL_T P*admin directory (ut with the new model the APPL_" &+I,_H $#*admin is used. To create a new instance that shares an e-isting middle.tier% /ust create a new instance_top with proper config files and &+' $ount the middle tier in the server.The basic structure of the Instance Home is0 1APP'_2A'#*inst*apps*1" &T#3T_&A$# or also defined (y environment varia(le 1I&'T_T P% where APP'_2A'# 4which does not have or need a corresponding environment varia(le5 is the top level of the Applications installation and 1" &T#3T_&A$# is the highest level at which the Applications conte-t e-ists 4format 1'I6_1hostname5. Changes to existing environment Variables in R1

Advanta$es o( new "1STA123 HO03 L The additional Instance Home makes the middle tier more easy to manage and organised since the data is kept separate from the config files. The Instance Home also has the ability to share the Applications and Technology stack code across multiple instances. Another advantage of the Instance Home is that the Autoconfig no longer writes anything to the APPL_T P and !A"L#_H $# directories% everything is now written in the I&'T_T P as a result APPL_T P and !A"L#_H $# can also (e made read only file system if re)uired . #arlier say the adpatch used to write the log file in APPL_T P*admin directory (ut with the new model the APPL_" &+I,_H $#*admin is used.

To create a new instance that shares an e-isting middle.tier% /ust create a new instance_top with proper config files and &+' $ount the middle tier in the server.The basic structure of the Instance Home is0 1APP'_2A'#*inst*apps*1" &T#3T_&A$# or also defined (y environment varia(le 1I&'T_T P% where APP'_2A'# 4which does not have or need a corresponding environment varia(le5 is the top level of the Applications installation and 1" &T#3T_&A$# is the highest level at which the Applications conte-t e-ists 4format 1'I6_1hostname5. 7hat are the key configuration files of racle #2' and 7here are the key configuration files located4for 88i and !el 895 0:<*A-AT+O- O6 SO;0 +;<ORTA-T 9O-6+K(RAT+O6+*0S in 11i%2 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM M httpd.con( 24This is main Apache config ration file& 6rom this config ration file it i"entif$ port "efinitions# memor$ settings# loggin levels# log file locations an" other config ration options an" files& <ortMweb.cache.port% Specifies the Oracle Application Server >eb 9ache listening ports *istenMOracle.HTT<.Server.port% Specifies the HTT< an" HTT<S ports obtaine" b$ Oracle HTT< Server& ?serv.con( 24 Oracle HTT< Server incl "es a Aava Nirt al ;achine (AN;)# which is calle" AServ& Bserv&conf an" Bserv&properties are the !e$ config ration files for Aserv

All o r Self Service servlets re7 ests are via mo".Bserv li!e "iscoverer view# )ml services or OA; login (So $o !now now where to loo! if iss e happens in these services) +f $o r 6orm Server is in servlet ;o"e then 9ore Applications are also accesse" via >eb Server (Aserv 9omponent) This file calls few properties files li!e Bserv&properties# Oone properties# viewer@i&properties# forms&properties# )mlsvcs&properties& This file calls other config ration files li!e pls7l&conf# immeting&conf# apps&conf& oprocm$r.con( 24(in Apache/conf) This Oracle mo" le provi"es process management an" loa" balancing services to AServ processes This mo" le starts# stops# an" "etects "eath of processes (starting new processes to replace them)# an" provi"es loa" balancing services to the processes oracle*apache.con( 24 This config ration file is se" to config re Oracle b ilt mo" les s pplie" with "efa lt Apache li!e mo".pls# mo".ossl# oem# imeeting& These files are se" for mo".pls config ration& &ls-l.con( 24This file is se" to config re pls (<ls7l)& This file "efines to forwar" all re7 ests li!e /pls/ to "e"icate" apache listener& mo".pls7l is an Oracle HTT< Server pl g2in that comm nicates with the "atabase& +t maps browser re7 ests into "atabase store" proce" re calls over a S3*H-et connection& +t is often in"icate" b$ a /pls/ virt al path& w"bsvr&app 24>hich in m$ views is name" so after >eb Database Server for Applications& This file contains $o r "a" ("atabase Access Descriptor) information li!e "atabase connection "escription = apps ser name = passwor"& +f $o are changing apps passwor" $o se tilit$ 6-D9<ASS an" after changing passwor" $o have to man all$ change apps passwor" in this file& Startup Shutdown Scripts Oracle Apps R12

Vous aimerez peut-être aussi