Showing posts with label Startup/Shutdown. Show all posts
Showing posts with label Startup/Shutdown. Show all posts

Thursday, 17 June 2010

How to bounce Apache, clear HTML cache and have updated Java code class active in R12


In this post, sharing the difficulties of boucing Apache, clearing HTML comparing with 11i.

To clear HTML cache and bounce Apache at R12 level, firstly goto the scripts directory of R12
cd $INST_TOP/admin/scripts

To clear HTML cache :

The _pages directory under $COMMON_TOP should not be cleared for E-Biz R12, which we used to do in 11i applications. For clearing middle tier cache in R12,
Navigate to Functional Administrator responsibility > Core Services >  
Caching Framework > Global Configuration > Clear cache

Instead of clearing the _pages in R12 creates blank login page issue, as in R12 the jsp files does not get compiled automatically.

cd $INST_TOP/admin/scripts
adapcctl.sh start
adapcctl.sh start

At R12 level bouncing apache command  is different of the one to bounce oacore oc4j engine andothers.
An example of situation is : how  to make a modification to a JSPand have that modification recognized by the OC4J - JSP engine.

In 11i the apache start and stop command, also bounce the JVM running on JSERV and clear caches by doings as below :
To clear the jsp & modplsql caches run this command
rm -Rf $OA_HTML/_pages/*
rm -Rf $COMMON_TOP/_pages/*
rm -Rf $IAS_ORACLE_HOME/Apache/modplsql/cache/*

But in R12 the command to stop and start apache only takes action on Apache web server  and not on the OC4J container that executes the JVM.
To bounce the OC4J container there is an specific script:

$INST_TOP/admin/scripts/adoacorectl.sh

Therefore when making  a modification to a JAVA class in R12 for the web application,  in order to have  that change recognized,  it is needed to bounce
OC4J using adoacorectl.sh script.

Bouncing oacore OC4J engine may also be needed  if you make modifications to system properties.
Example for JTT based applications:  jtt system properties.

Saturday, 15 May 2010

Start and stop applications - R12

Database Tier Scripts in R12

For Database tier you need to start database and database listener. Scripts are located in
$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME

Startup
1. Database Listener
$addlnctl.sh start

2. Database
$ addbctl.sh start

or alternatively you can use

lsnrctl start listener_name
$sqlplus “/as sysdba”
SQL> startup

Shutdown
1. Database Listener
$addlnctl.sh stop

2. Database
$ addbctl.sh stop immeidate|normal|abort

or alternatively you can use

lsnrctl stop listener_name

$sqlplus “/as sysdba”
SQL> shutdown immedidate|normal|abort

Application Tier Scripts in R12

Scripts for Application Tier services in R12 are located in
$ADMIN_SCRIPT_HOME

(Apps_base/inst/apps/$CONTEXT_NAME/admin/scripts)
where CONTEXT_NAME is of format SID_HOSTNAME

1) adstrtal.sh  [appsusername/appspassword]
Script to start all components/services of middle tier or application tier. This script will use Service Control API to start all services which are enabled after checking them in context file (SID_HOSTNAME.xml or CONTEXT_NAME.xml)

2) adstpall.sh [appsusername/appspassword]
Stop all components/services of middle tier or application tier.

3) adalnctl.sh {start | stop | status}
Script to start / stop apps listener (FNDFS and FNDFS). This listener will file will be in 10.1.2 ORACLE_HOME (i.e. Forms & Reports Home)
listener.ora file will be in $INST_TOP/apps/$CONTEXT_NAME/ora/10.1.2/network/admin directory
(compared to 11i, only change in ORACLE_HOME i.e. from 8.0.6 to 10.1.2)

In simple terms, it is

Start Database listener process  => addlnctl.sh start VIS
Start Database process  => addbctl.sh start
Start Applications processes  => adstrtal.sh apps/password

Stop Database listener process => addlnctl.sh stop VIS
Stop Database process => addbctl.sh stop
Stop Applications processes => adstpall.sh apps/password

4) adapcctl.sh {start|stop|status}
Script to start/stop Web Server or Oracle HTTP Server.
This script uses opmn (OPMN and Notification Server) with syntax similar to opmnctl start/stopproc ohs
like opmnctl stopproc ohs

(In 11i this script directly used to call apachectl executable but now calls opmnctl which in turn calls apachectl.
In 11i web server oracle home was 1.0.2.2.2 but in R12 its 10.1.3)

5) adcmctl.sh {start | stop | abort | status } [apps username/ apps password]
Script to start / stop concurrent manager, Similar to one in 11i. (This script in turn calls startmgr.sh )

6) adformsctl.sh {start | stop | status}
Script to start / stop Forms OC4J from 10.1.3 Oracle_Home. This script will also use opmnctl to start/stop Forms OC4J like opmnctl stopproc type=oc4j instancename=forms

7) adformsrvctl.sh
This script is used only if you wish to start forms in socket mode. Default forms connect method in R12 is servlet.

If started this will start frmsrv executable from 10.1.2 Oracle_Home in Apps R12

8) adoacorectl.sh {start | stop | status}
This script will start/stop oacore OC4J in 10.1.3 Oracle_Home. This scripts will also use opmnctl (similar to adapcctl & adformsctl) to start oacore instance of OC4J like

opmnctl startproc type=oc4j instancename=oacore

9) adoafmctl.sh {start | stop | status }
This script will start/stop oafm OC4J in 10.1.3 Oracle_Home. This scripts will also use opmnctl (similar to above) to start oacore instance of OC4J like

opmnctl startproc type=oc4j instancename=oafm

10) adopmnctl.sh {start | stop | status}
This script will start/stop opmn service in 10.1.3 Oracle_Home. opmn will control all services in 10.1.3 Oracle_Home like web server or various oc4j instances. If any services are stopped abnormally opmn will/should start them automatically.

11) jtffmctl.sh {start | stop}
This script will be used to start/stop one to one fulfilment server.

12) mwactl.sh {start | stop }
To start / stop mwa telnet server where mwa is mobile application.

Log files for startup/shutdown scripts for application/mid tier in R12 are in $INST_TOP/apps/$CONTEXT_NAME/logs/appl/admin/log

Monday, 26 April 2010

Startup/Shutdown - 11i



This post covers startup & shutdown of Oracle Application DBA

As you are aware by now there is Database Tier ( Database & DB Listener ) and Application Tier ( WebServer, Forms, Reports, Concurrent Manager, Discoverer, Apps Listener, OnetoOne Fullfillment Server )

Order of StartUp of Services Should be
First DB Listener, Database & then Application Tier Services

Order of ShutDown of Services Should be
First Application Tier Services then Database & DB Listener

Database Startup/Shutdown Scripts
Depending on your AD Version these will be in ORACLE_HOME / appsutil/scripts /SID_hostname
addbctl.sh database startup shutdown script
addlnctl.sh database listener Script

Where

AD is for Application DBA
DB is for database
DLN is database listener
CTL is control

Application Tier Startup/Shutdown Scripts
Depending on your AD Version these will be in

$OAD_TOP/admin/scripts/SID_hostname

adalnctl.sh Apps Listener Control Script
adapcctl.sh Apache/Web Server Control Script
adcmctl.sh Concurrent Manager Control Script
addisctl.sh Discoverer Control Script
adfrmctl.sh Forms server Control Script
adrepctl.sh Report Server Control Script
adstpall.sh Stop All Middle/Application Tier
adstrtall.sh Start All Middle/Application Tier

Where AD & CTL you already know now :) isn't it

adl stand for Apps Listener
apc stand for Apache
cm Concurrent Manager
dis Discoverer
frm forms
rep report