正德厚生,臻于至善

Java Object Cache (Distributed Java Caching) in Oracle E-Business Suite 11i/R12

sed -i 's#>.*</jms_cache>#>false</jms_cache>#g' $CONTEXT_FILE
grep -i s_long_running_jvm $CONTEXT_FILE
sed -i 's#LONG_RUNNING_JVM=true#LONG_RUNNING_JVM=false#g' $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
sed -i 's#LONG_RUNNING_JVM=true#LONG_RUNNING_JVM=false#g' $ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/oc4j.properties
sed -i 's#LONG_RUNNING_JVM=true#LONG_RUNNING_JVM=false#g' $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties

ps -ef|grep oafmstd.err |awk '{print $2}' |xargs kill -9
ps -ef|grep formsstd.err |awk '{print $2}' |xargs kill -9
ps -ef|grep forms-c4wsstd.err |awk '{print $2}' |xargs kill -9
ps -ef|grep oacorestd.err |awk '{print $2}' |xargs kill -9
Precaching Of CZ Taking >12 Minutes Per Oacore. (Doc ID 1561224.1)
How To Prevent Inactive JDBC Connections In Oracle Applications 11i and R12 (Doc ID 427759.1)
Random Ports Used for Distributed Java Object Caching, Even When Setting s_fnd_cache_port_range in the Autoconfig Context File (Doc ID 471276.1)
Diagnosing database invalidation issues with Java Cache for eBusiness Suite (Doc ID 455194.1)
SRDC - Data Collection Request for E-Business Suite: Java Object Cache (Doc ID 2081227.1)

FND_CACHE_PORT_RANGE s_fnd_cache_port_range

启动oafm:
sed -i 's#LONG_RUNNING_JVM=true#LONG_RUNNING_JVM=false#g' $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
ps -ef|grep oafmstd|awk '{print $2}' |xargs kill -9

sed -i 's#LONG_RUNNING_JVM=false#LONG_RUNNING_JVM=true#g' $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
ps -ef|grep oafmstd|awk '{print $2}' |xargs kill -9

启动forms:
sed -i 's#LONG_RUNNING_JVM=true#LONG_RUNNING_JVM=false#g' $ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/oc4j.properties
ps -ef|grep formsstd|awk '{print $2}' |xargs kill -9

sed -i 's#LONG_RUNNING_JVM=false#LONG_RUNNING_JVM=true#g' $ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/oc4j.properties
ps -ef|grep formsstd|awk '{print $2}' |xargs kill -9

启动oacore:
sed -i 's#LONG_RUNNING_JVM=true#LONG_RUNNING_JVM=false#g' $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties
ps -ef|grep oacorestd|awk '{print $2}' |xargs kill -9

sed -i 's#LONG_RUNNING_JVM=false#LONG_RUNNING_JVM=true#g' $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties
ps -ef|grep oacorestd|awk '{print $2}' |xargs kill -9

grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/oc4j.properties
grep -i long_running $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties

ps -fu $USER | grep httpd | awk '{print $2}' | xargs kill -9
adopmnctl.sh restartproc process-type=HTTP_Server
adapcctl.sh start
adopmnctl.sh status -l

set lines 200 pages 50000
select 'ALTER SYSTEM DISCONNECT SESSION '''||g.SID||','||g.serial#||','||'@'||g.INST_ID||''' IMMEDIATE;'
from gv$SESSION g where program = 'JDBC Thin Client'
and g.LAST_CALL_ET/60 >60
g.status='INACTIVE';

tail -f $APPLCSF/log/javacache.log

原文链接 https://onlineappsdba.com/index.php/2009/05/11/java-object-cache-distributed-java-caching-in-oracle-e-business-suite-11ir12/

赞(0) 打赏
未经允许不得转载:徐万新之路 » Java Object Cache (Distributed Java Caching) in Oracle E-Business Suite 11i/R12

评论 抢沙发

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫

登录

找回密码

注册