Wednesday 19 February 2014

Clear Cache bounce in EBS R12

There are two ways to clear cache in R12.

1. Functional level (individual product/all product cache)
Functional Administrator -> Core Services -> Caching Framework -> Global Configuration -> "Go to specific cache or Clear All Cache"

2. Server level

In R12 apache bounce (which is actually opmn services here) takes a little more time then 11i, and we too have to take care of few things.

Basic steps for a clear cache bounce is as below:-
Set you application environment and go to $ADMIN_SCRIPTS_HOME

./adopmnctl.sh stopall

wait for command to complete

./adopmnctl.sh status -l

cd $COMMON_TOP/_pages
ls -l|wc -l (note it down)
rm -rf * (to remove all files)

Note:- For step 4 to 6, better to take backup of _pages by renaming it, and create a new directory as _pages at the same place.

ls -l|wc -l (it should be 0 now)

cd $FND_TOP/patch/115/bin

which perl                  (should come from $IAS_ORACLE_HOME/perl/bin)
ojspCompile.pl --compile --flush -p 10 
 (to compile all JSPs,-p is for parallel and value (i.e. 10 here) can be varied accourding to your server)
wait for successful completion

cd $COMMON_TOP/_pages
ls -l| wc -l
(check whether count is same or more than before (pre-remove) - sometimes a little difference may be there)

Go to $ADMIN_SCRIPTS_HOME again

./adopmnctl.sh startall
wait for proper services startup

./adopmnctl.sh status -l

check front-end and JSPs and FORMs should open up fine


You can avoid the step of regenrating the jsps like 11i but for that we need to make below changes in R12 context file (XML file):

parameter s_jsp_main_mode - you will find it justrun by default.

change it to - recompile

and run autoconfig to make the changes take place.

This will generate the jsps at run time saving bounce time, but obviously affect the performance.

No comments:

Post a Comment