MWA
修改设置
Device List
MWA_GUI/Oracle Mobile客户端的Device List列表可以通过$INST_TOP/admin/install/deviceIP.ini文件设置.
Mobile Web Applications (MWA) Troubleshooting Tips for Release 12 Mobile Web Applications Server (Doc ID 782162.1)
Reference
- MWA Service Management – Brief
http://avdeo.com/2007/05/17/mwa-service-management-brief/ - MWA Server
http://docs.oracle.com/cd/E18727_01/doc.121/e13467/T258138T411019.htm#T411039 - Oracle Applications MWA Configuration
http://oraebsdbaorbit.blogspot.com/2009/08/oracle-applications-mwa-configuration_7879.html - Mobile Web Applications (MWA) Troubleshooting Tips for Release 12 Mobile Web Applications Server [ID 782162.1]
- Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12 [ID 387859.1]
- Mobile Web Applications Server - MWA Troubleshooting Tips for E-Business Suite 11i and R12 Oracle Mobile Application Server [ID 269991.1]
命令集
查看设置
[applprod@dlerpapp ~]$ grep -in mwa $CONTEXT_FILE
170: <oa_mwa_server>
171: <mwaLogLevel oa_var="s_mwaLogLevel">error</mwaLogLevel>
172: <mwaLogRotate oa_var="s_mwaLogRotate">Yes</mwaLogRotate>
173: <mwaLogFileSize oa_var="s_mwaLogFileSize">10000000</mwaLogFileSize>
174: <mwaDropConnectionTimeout oa_var="s_mwaDropConnectionTimeout">5</mwaDropConnectionTimeout>
175: <mwaStaleSessionTimeout oa_var="s_mwaStaleSessionTimeout">60</mwaStaleSessionTimeout>
176: <mwaDispatcherThreadCount oa_var="s_mwaDispatcherThreadCount">15</mwaDispatcherThreadCount>
177: <mwaDispatcherClientsPerWorker oa_var="s_mwaDispatcherClientsPerWorker">10</mwaDispatcherClientsPerWorker>
178: <mwaJVMb oa_var="s_mwaJVMb">FALSE</mwaJVMb>
179: <mwaActivateLOVByEnter oa_var="s_mwaActivateLOVByEnter">FALSE</mwaActivateLOVByEnter>
180: <mwaSubmenuChangeOrgResp oa_var="s_mwaSubmenuChangeOrgResp">FALSE</mwaSubmenuChangeOrgResp>
181: </oa_mwa_server>
708: <MWA_TOP oa_var="s_mwatop" oa_type="PROD_TOP" oa_enabled="TRUE">/u01/prod/app/fs1/EBSapps/appl/mwa/12.0.0</MWA_TOP>
806: <mwaPortNo oa_var="s_mwaPortNo" oa_type="PORT" base="10200" step="6" range="6" label="MSCA Server Port">10200-10205</mwaPortNo>
807: <mwaTelnetPortNo oa_var="s_mwaTelnetPortNo" oa_type="DUP_PORT" base="10200" step="6" range="6" increment="2" separator="," showall="true" label="MCSA Telnet Server Port">10200,10202,10204</mwaTelnetPortNo>
808: <mwaDispatcherPort oa_var="s_mwaDispatcherPort" oa_type="PORT" base="10800" step="3" range="-1" label="MSCA Dispatcher Port">10800</mwaDispatcherPort>
984: <oa_service type="mwa_srv">
985: <oa_service_name oa_var="s_mwaname">Oracle MWA Service PROD_dlerpapp</oa_service_name>
986: <oa_service_status oa_var="s_mwastatus">disabled</oa_service_status>
987: <oa_service_log oa_var="s_mwalog">/u01/prod/app/fs1/inst/apps/PROD_dlerpapp/logs/appl/admin/log/mwactl.txt</oa_service_log>
994: <timeout oa_var="s_mwatimeout">100</timeout>
995: <ctrl_script oa_var="s_mwactrl" osd="unix">/u01/prod/app/fs1/inst/apps/PROD_dlerpapp/admin/scripts/mwactlwrpr.sh</ctrl_script>
1018: <oa_service_group type="other" title="Other Services" services="forms_server, met_cl, met_srv, mwa_srv">
查看相关进程
[applprod@dlerpapp ~]$ ps -ef | grep mwa
applprod 7604 1 0 Feb04 ? 00:05:58 /u01/prod/app/fs1/EBSapps/comn/util/jdk64/bin/java -DCLIENT_PROCESSID=7604 -Doracle.apps.mwa=/u01/prod/app/fs1/EBSapps/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/prod/app/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/jrad -Doracle.apps.inst=/u01/prod/app/fs1/inst/apps/PROD_dlerpapp -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10200
applprod 7626 1 0 Feb04 ? 00:05:40 /u01/prod/app/fs1/EBSapps/comn/util/jdk64/bin/java -DCLIENT_PROCESSID=7626 -Doracle.apps.mwa=/u01/prod/app/fs1/EBSapps/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/prod/app/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/jrad -Doracle.apps.inst=/u01/prod/app/fs1/inst/apps/PROD_dlerpapp -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10202
applprod 7659 1 0 Feb04 ? 00:05:41 /u01/prod/app/fs1/EBSapps/comn/util/jdk64/bin/java -DCLIENT_PROCESSID=7659 -Doracle.apps.mwa=/u01/prod/app/fs1/EBSapps/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/prod/app/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/jrad -Doracle.apps.inst=/u01/prod/app/fs1/inst/apps/PROD_dlerpapp -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10204
applprod 7678 1 0 Feb04 ? 00:00:00 /bin/sh -f /u01/prod/app/fs1/inst/apps/PROD_dlerpapp/admin/scripts/mwactl.sh start_dispatcher
applprod 7680 7678 0 Feb04 ? 00:00:05 /u01/prod/app/fs1/EBSapps/appl/mwa/12.0.0/bin/MWADIS
applprod 13839 12767 0 12:25 pts/0 00:00:00 grep --color=auto mwa
[applprod@dlerpapp ~]$ netstat -natulp | grep :10800
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:10800 0.0.0.0:* LISTEN 7680/MWADIS
tcp 0 0 10.0.2.69:14622 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14621 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14621 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14620 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14613 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14615 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14613 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14612 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14616 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14619 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14611 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14614 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14617 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14624 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14622 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14623 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14623 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14620 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14619 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14616 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14624 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14612 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14618 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14615 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14617 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14611 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14610 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14618 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:14610 10.0.2.69:10800 ESTABLISHED 7680/MWADIS
tcp 0 0 10.0.2.69:10800 10.0.2.69:14614 ESTABLISHED 7680/MWADIS
启停MWA服务
[applprod@dlerpapp ~]$ cd $ADMIN_SCRIPTS_HOME
[applprod@dlerpapp scripts]$ mwactlwrpr.sh start/stop apps/apps
Starting MWA Wrapper script. Checking if all ports are free to start the servers and dispatcher...
Starting MWA Server on Port number: 10200
Starting MWA Server on Port number: 10202
Starting MWA Server on Port number: 10204
Starting MWA Dispatcher on Port number: 10800
启停指定端口:
$ mwactl.sh -login apps/apps stop_force <port>
$ mwactl.sh -login apps/apps start <port>
问题集锦
端口占用
有时我们会发现telnet.Listener的端口被占用,导致使用命令mwactlwrpr.sh stop/start apps/apps重启mwa服务时,dispatcher进程起来了,但是telnet.Listener进程确没有起来,
这时可以通过修改$INST_TOP/admin/install/mwa.cfg 文件里的mwa.TelnetPortNumber(逗号隔开)配置来临时更改telnet.Listener端口(mwa.cfg的dispatcher端口由mwa.Dispatcher指定),然后再重启mwa服务即可。
如果要永久修改telnet.Listener端口,需修改\(CONTEXT_FILE的mwaTelnetPortNo(\)CONTEXT_FILE的dispatcher端口由mwaDispatcherPort指定),再执行adautocfg.sh更新配置信息,比较麻烦。
- 11i的配置方法略有不同,请参照[ID 269991.1].