[applprod@erp custom]$ $AD_TOP/bin/adchkcfg.sh contextfile=$CONTEXT_FILE
Enter the APPS password:
The log file for this session is located at: /u1/PROD/inst/apps/PROD_erp/admin/log/04232315/adconfig.log
AutoConfig is running in test mode and building diffs...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u1/PROD/inst/apps/PROD_erp
Classpath : /u1/PROD/apps/apps_st/comn/java/lib/appsborg2.zip:/u1/PROD/apps/apps_st/comn/java/classes
Using Context file : /u1/PROD/inst/apps/PROD_erp/admin/out/04232315/PROD_erp.xml
Context Value Management will now update the test Context file
Updating test Context file...COMPLETED
[ Test mode ]
No uploading of Context File and its templates to database.
Testing templates from all of the product tops...
Testing AD_TOP........COMPLETED
Testing FND_TOP.......COMPLETED
Testing ICX_TOP.......COMPLETED
Testing MSC_TOP.......COMPLETED
Testing IEO_TOP.......COMPLETED
Testing BIS_TOP.......COMPLETED
Testing AMS_TOP.......COMPLETED
Testing CCT_TOP.......COMPLETED
Testing WSH_TOP.......COMPLETED
Testing CLN_TOP.......COMPLETED
Testing OKE_TOP.......COMPLETED
Testing OKL_TOP.......COMPLETED
Testing OKS_TOP.......COMPLETED
Testing CSF_TOP.......COMPLETED
Testing IGS_TOP.......COMPLETED
Testing IBY_TOP.......COMPLETED
Testing JTF_TOP.......COMPLETED
Testing MWA_TOP.......COMPLETED
Testing CN_TOP........COMPLETED
Testing CSI_TOP.......COMPLETED
Testing WIP_TOP.......COMPLETED
Testing CSE_TOP.......COMPLETED
Testing EAM_TOP.......COMPLETED
Testing FTE_TOP.......COMPLETED
Testing ONT_TOP.......COMPLETED
Testing AR_TOP........COMPLETED
Testing AHL_TOP.......COMPLETED
Testing OZF_TOP.......COMPLETED
Testing IES_TOP.......COMPLETED
Testing CSD_TOP.......COMPLETED
Testing IGC_TOP.......COMPLETED
Differences text report is located at: /u1/PROD/inst/apps/PROD_erp/admin/out/04232315/cfgcheck.txt
Generating Profile Option differences report...COMPLETED
Differences text report for the Database is located at: /u1/PROD/inst/apps/PROD_erp/admin/out/04232315/ProfileReport.txt
Generating File System differences report......COMPLETED
Differences html report is located at: /u1/PROD/inst/apps/PROD_erp/admin/out/04232315/cfgcheck.html
Differences Zip report is located at: /u1/PROD/inst/apps/PROD_erp/admin/out/04232315/ADXcfgcheck.zip
AutoConfig completed successfully.
[applprod@erp custom]$
$AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE target=$ORACLE_HOME/network/admin/listener.ora
1 JSP自动编译 确保APEX画面能打开
vi $INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml
?修改下列参数
<param-name>developer_mode</param-name>
<param-value>true</param-value>
<param-name>main_mode</param-name>
<param-value>recompile</param-value>
2 克隆后配置文件修改
vi $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
注释
#http.proxyHost=
#http.proxyPort=
vi $INST_TOP/ora/10.1.2/forms/server/appsweb.cfg
在archive=....最后添加 /OA_JAVA/oracle/apps/fnd/jar/bn.jar
3 修改网络重试次数formsweb.cfg
vi $INST_TOP/ora/10.1.2/forms/server/appsweb.cfg
networkRetries=8
--------------------------------------------------------解决办法:定位模版文件
cp -pr $INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml $INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml.$(date +%F).wanxin.xu
cp -pr $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties.$(date +%F).wanxin.xu
cp -pr $INST_TOP/ora/10.1.2/forms/server/appsweb.cfg $INST_TOP/ora/10.1.2/forms/server/appsweb.cfg.$(date +%F).wanxin.xu
cp -pr $CONTEXT_FILE $CONTEXT_FILE.$(date +%F).wanxin.xu
[applprod@erp ~]$ ls -l $INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml*
-rw------- 1 applprod dba 37701 Apr 9 00:22 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml
-rw------- 1 applprod dba 37700 Sep 8 2014 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml-20140908
-rw------- 1 applprod dba 37700 Sep 13 2014 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml-20140913
-rw------- 1 applprod dba 37701 Apr 9 00:22 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml.2018-04-23.wanxin.xu
-rw------- 1 applprod dba 37744 Apr 9 00:16 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml.bak20180409
[applprod@erp ~]$ ls -l $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties*
-rw------- 1 applprod dba 2719 Apr 9 00:22 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oafm/config/oc4j.properties
-rw------- 1 applprod dba 2719 Sep 8 2014 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oafm/config/oc4j.properties-20140908
-rw------- 1 applprod dba 2719 Sep 13 2014 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oafm/config/oc4j.properties-20140913
-rw------- 1 applprod dba 2719 Apr 9 00:22 /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oafm/config/oc4j.properties.2018-04-23.wanxin.xu
[applprod@erp ~]$ ls -l $INST_TOP/ora/10.1.2/forms/server/appsweb.cfg*
-rw-r--r-- 1 applprod dba 31288 Apr 9 00:23 /u1/PROD/inst/apps/PROD_erp/ora/10.1.2/forms/server/appsweb.cfg
-rw-r--r-- 1 applprod dba 31288 Sep 8 2014 /u1/PROD/inst/apps/PROD_erp/ora/10.1.2/forms/server/appsweb.cfg-20140908
-rw-r--r-- 1 applprod dba 31288 Sep 13 2014 /u1/PROD/inst/apps/PROD_erp/ora/10.1.2/forms/server/appsweb.cfg-20140913
-rw-r--r-- 1 applprod dba 31288 Apr 11 2015 /u1/PROD/inst/apps/PROD_erp/ora/10.1.2/forms/server/appsweb.cfg-20150411
-rw-r--r-- 1 applprod dba 31288 Feb 3 2016 /u1/PROD/inst/apps/PROD_erp/ora/10.1.2/forms/server/appsweb.cfg-20160203
-rw-r--r-- 1 applprod dba 31288 Apr 9 00:23 /u1/PROD/inst/apps/PROD_erp/ora/10.1.2/forms/server/appsweb.cfg.2018-04-23.wanxin.xu
[applprod@erp ~]$ cp -pr $CONTEXT_FILE $CONTEXT_FILE.$(date +%F).wanxin.xu
[applprod@erp ~]$ ls -l $CONTEXT_FILE*
-rw-r--r-- 1 applprod dba 91175 Apr 9 00:21 /u1/PROD/inst/apps/PROD_erp/appl/admin/PROD_erp.xml
-rw-r--r-- 1 applprod dba 91175 Apr 9 00:21 /u1/PROD/inst/apps/PROD_erp/appl/admin/PROD_erp.xml.2018-04-23.wanxin.xu
-rw-r--r-- 1 applprod dba 91128 May 1 2017 /u1/PROD/inst/apps/PROD_erp/appl/admin/PROD_erp.xml.bak
[applprod@erp ~]$
vim $CONTEXT_FILE
1、定位模版文件
$AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE target=$INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml
TEMPLATE FILE : /u1/PROD/apps/apps_st/appl/fnd/12.0.0/admin/template/orion_web_xml_1013.tmp
TARGET FILE : /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml
[applprod@erp appl]$ grep justrun $CONTEXT_FILE
<jsp_debug_parameters oa_var="s_jsp_main_mode">justrun</jsp_debug_parameters>
<param-name>developer_mode</param-name>
<param-value>true</param-value>
<param-name>main_mode</param-name>
<param-value>recompile</param-value>
$AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE target=$ORA_CONFIG_HOME/10.1.3/j2ee/oafm/config/oc4j.properties
TEMPLATE FILE : /u1/PROD/apps/apps_st/appl/fnd/12.0.0/admin/template/oafm_oc4j_properties_1013.tmp
TARGET FILE : /u1/PROD/inst/apps/PROD_erp/ora/10.1.3/j2ee/oafm/config/oc4j.properties
[applprod@erp appl]$ grep -i http /u1/PROD/apps/apps_st/appl/fnd/12.0.0/admin/template/oafm_oc4j_properties_1013.tmp
#http.proxyHost=%s_proxyhost%
#http.proxyPort=%s_proxyport%
http.nonProxyHosts=%s_nonproxyhosts%
[applprod@erp appl]$
$AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE target=$FORMS_WEB_CONFIG_FILE
TEMPLATE FILE : /u1/PROD/apps/apps_st/appl/fnd/12.0.0/admin/template/forms_web_1012_cfg.tmp
TARGET FILE : /u1/PROD/inst/apps/PROD_erp/ora/10.1.2/forms/server/appsweb.cfg
[applprod@erp appl]$ grep ^archive= $INST_TOP/ora/10.1.2/forms/server/appsweb.cfg
archive=/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar,/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar,/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar,/OA_JAVA/oracle/apps/fnd/jar/fndswing.jar,/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar,/OA_JAVA/oracle/apps/fnd/jar/fndaol.jar,/OA_JAVA/oracle/apps/fnd/jar/fndctx.jar,/OA_JAVA/oracle/apps/fnd/jar/bn.jar
archive=f60all.jar, oracle_ice-4_03_1.jar
[applprod@erp appl]$ grep ^archive= /u1/PROD/apps/apps_st/appl/fnd/12.0.0/admin/template/forms_web_1012_cfg.tmp
archive=/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar,/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar,/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar,/OA_JAVA/oracle/apps/fnd/jar/fndswing.jar,/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar,/OA_JAVA/oracle/apps/fnd/jar/fndaol.jar,/OA_JAVA/oracle/apps/fnd/jar/fndctx.jar
archive=f60all.jar, oracle_ice-4_03_1.jar
[applprod@erp appl]$
以上命令,通过查看报表日志
[FND_TOP]
TEMPLATE FILE : /rptebs/test/apps/apps_st/appl/fnd/12.0.0/admin/template/forms_web_1012_cfg.tmp
TARGET FILE : /rptebs/test/inst/apps/TEST_erptest/ora/10.1.2/forms/server/appsweb.cfg (好了,到这里之后直接去这个目录改这个文件就好了。)
,可分别得到如下模版结果:
$FND_TOP/admin/template/forms_web_1012_cfg.tmp
2、创建custom目录
mkdir $FND_TOP/admin/template/custom
3、把上述文件拷贝到custom目录
mkdir -p $FND_TOP/admin/template/custom
cd $FND_TOP/admin/template/custom/
cp -i $FND_TOP/admin/template/orion_web_xml_1013.tmp $FND_TOP/admin/template/custom/orion_web_xml_1013.tmp
cd $FND_TOP/admin/template/custom/
vim orion_web_xml_1013.tmp
<param-name>developer_mode</param-name>
<param-value>true</param-value>
cp -i $FND_TOP/admin/template/oafm_oc4j_properties_1013.tmp $FND_TOP/admin/template/custom/oafm_oc4j_properties_1013.tmp
vim oafm_oc4j_properties_1013.tmp
#http.proxyHost=
#http.proxyPort=
cp -i $FND_TOP/admin/template/forms_web_1012_cfg.tmp $FND_TOP/admin/template/custom/forms_web_1012_cfg.tmp
vim forms_web_1012_cfg.tmp
archive=,/OA_JAVA/oracle/apps/fnd/jar/bn.jar
networkRetries=%s_frmNetworkRetries%
4、编辑custom目录下的模版文件
forms_web_1012_cfg.tmp文件中的archive2=修改为下面的行:
; 添加bn的jar包
archive=,/OA_JAVA/oracle/apps/fnd/jar/bn.jar
networkRetries=%s_frmNetworkRetries%
vim $CONTEXT_FILE
s_frmNetworkRetries
5、在测试模式运行autoconfig
$AD_TOP/bin/adchkcfg.sh contextfile=$CONTEXT_FILE
6、正式运行autoconfig
$AD_TOP/bin/adconfig.sh contextfile=$CONTEXT_FILE
metalink参考:270519.1
最新评论
这个牛
放下欲望,男人从来不醉,充分且必要
勇气、责任、自信、创新,为天下先!
软件即数据,软件即服务,软件即管理,软件就是对人类各种社会活动的仿真和记录。软件很重要,但软件不可能凌驾于业务之上,尤其不可能高人一等。