Monday, September 24, 2018

cache Clearing steps

Clear Cache bounce in 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
1. ./adopmnctl.sh stopall
2. wait for command to complete
3. ./adopmnctl.sh status -l
4. cd $COMMON_TOP/_pages
5. ls -l|wc -l (note it down) --6044
6. 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.
7. Mv _pages _pages_21may18
Mkdir –p _pages
Chmod –R 775 _pages
8. ls -l|wc -l (it should be 0 now)
9. cd $FND_TOP/patch/115/bin
10. which perl (should come from $IAS_ORACLE_HOME/perl/bin)
[applascp@TJPSB008 bin]$ which perl
/uatapp/app/applascp/tech_st/10.1.3/perl/bin/perl
11. 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)
12. wait for successful completion
[applascp@TJPSB008 bin]$ ojspCompile.pl --compile --flush -p 10
logfile set: /uatapp/app/applascp/inst/apps/ASR_tjpsb008/logs/appl/rgf/ojsp/ojspc_error.log
starting...(compiling all)
using 10i internal ojsp ver: 10
synchronizing dependency file:
  enumerating jsps...8118
  parsing jsp...8118
  writing deplist...8118
initializing compilation:
  eliminating children...6048 (-2070)
translating and compiling:
  translating jsps...6048/6048 in 44s
  compiling jsps...6048/6048 [failed: 2] in 1m45s
Finished!
13. cd $COMMON_TOP/_pages
14. ls -l| wc -l (check whether count is same or more than before (pre-remove) - sometimes a little difference may be there)
15. Go to $ADMIN_SCRIPTS_HOME again
16. ./adopmnctl.sh startall
17. wait for proper services startup
18. ./adopmnctl.sh status -l
19. 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

[ERROR]: The value of s_patch_service_name is not set correctly in atleast one of the context files.

[ERROR]: The value of s_patch_service_name is not set correctly in atleast one of the context files. I got the issue below wh...