1. 停止应用:
[ebsapp@ebs1 ~]$ cd $ADMIN_SCRIPTS_HOME/
[ebsapp@ebs1 scripts]$ ./adstpall.sh apps/apps
检查APP是否已停完毕.
[ebsapp@ebs1 scripts]$ ps -elf | grep ebsapp
4 S root 16243 7808 0 77 0 - 25276 wait 12:13 pts/1 00:00:00 su - ebsapp
4 S ebsapp 16244 16243 0 75 0 - 16587 wait 12:13 pts/1 00:00:00 -bash
0 R ebsapp 16932 16244 0 77 0 - 16415 - 12:14 pts/1 00:00:00 ps -elf
0 S ebsapp 16933 16244 0 78 0 - 15309 pipe_w 12:14 pts/1 00:00:00 grep ebsapp
0 S ebsapp 31750 1 0 85 0 - 16009 wait Aug28 ? 00:00:00 sh
0 S ebsapp 31755 31750 0 75 0 - 5455 - Aug28 ? 00:03:16 FNDLIBR
0 S ebsapp 31962 1 0 75 0 - 4766 - Aug28 ? 00:00:03 FNDSM
0 Z ebsapp 32020 31962 0 76 0 - 0 exit Aug28 ? 00:00:01 [FFTM] <defunct>
0 S ebsapp 32021 31962 0 75 0 - 5375 - Aug28 ? 00:00:02 INCTM APPS/ZGD93E438B69D7D03E5AAAD85BB91D598600036C2603F46E74374945EEA24B05FB9404E25FA3A1E70944D5C1C6791DF9B1 INV INVTMRPM N 60 t LOCK Y EBS1 11869
0 Z ebsapp 32024 31962 0 76 0 - 0 exit Aug28 ? 00:00:02 [RCVOLTM] <defunct>
0 Z ebsapp 32025 31962 0 76 0 - 0 exit Aug28 ? 00:00:01 [POXCON] <defunct>
0 S ebsapp 32044 31962 0 75 0 - 173950 futex_ Aug28 ? 00:00:22 /ebsr12/prod/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=32044 -server -Xmx384m -XX:NewRatio=2 -XX:+UseSerialGC -Doracle.apps.fnd.common.Pool.leak.mode=stderr:off -verbose:gc -mx512m -Ddbcfile=/ebsr12/prod/inst/apps/PROD_ebs1/appl/fnd/12.0.0/secure/PROD.dbc -Dcpid=11872 -Dconc_queue_id=6269 -Dqueue_appl_id=0 -Dlogfile=/ebsr12/prod/inst/apps/PROD_ebs1/logs/appl/conc/log/FNDOPP11872.txt -DLONG_RUNNING_JVM=true -DOVERRIDE_DBC=true -DFND_JDBC_BUFFER_MIN=1 -DFND_JDBC_BUFFER_MAX=2 oracle.apps.fnd.cp.gsf.GSMServiceController
0 S ebsapp 32045 31962 0 75 0 - 4977 - Aug28 ? 00:00:25 FNDCRM APPS/ZGCBC496907407D59E084B87A19D5F11E7B4589D3E62BE9107A44660CCFCA29303627A5DCA13D6DE209365723A1C97A5EC FND FNDCRM N 10 c LOCK Y EBS1 11873
0 S ebsapp 32047 31962 0 75 0 - 5069 - Aug28 ? 00:00:15 FNDSCH FND FNDSCH N 10 s LOCK Y EBS1 11874
0 S ebsapp 32050 31962 0 75 0 - 4843 - Aug28 ? 00:00:00 FNDLIBR
0 S ebsapp 32051 31962 0 75 0 - 4843 - Aug28 ? 00:00:00 FNDLIBR
0 Z ebsapp 32056 31962 0 75 0 - 0 exit Aug28 ? 00:00:04 [FNDLIBR] <defunct>
0 Z ebsapp 32060 31962 0 75 0 - 0 exit Aug28 ? 00:00:05 [FNDLIBR] <defunct>
0 Z ebsapp 32069 31962 0 75 0 - 0 exit Aug28 ? 00:00:05 [FNDLIBR] <defunct>
0 S ebsapp 32072 31962 0 75 0 - 4845 - Aug28 ? 00:00:00 FNDLIBR
0 Z ebsapp 32075 31962 0 75 0 - 0 exit Aug28 ? 00:00:02 [FNDLIBR] <defunct>
0 S ebsapp 32076 31962 0 75 0 - 4844 - Aug28 ? 00:00:00 FNDLIBR
0 S ebsapp 32079 31962 0 75 0 - 5311 - Aug28 ? 00:00:01 INVLIBR
0 Z ebsapp 32080 31962 0 76 0 - 0 exit Aug28 ? 00:00:00 [PALIBR] <defunct>
0 S ebsapp 32081 31962 0 75 0 - 4844 - Aug28 ? 00:00:00 FNDLIBR
可以看到还有进程在走,一定要等到没有进程了才可以进行下一步操作.
[ebsapp@ebs1 scripts]$ ps -elf | grep ebsapp
4 S root 16243 7808 0 77 0 - 25276 wait 12:13 pts/1 00:00:00 su - ebsapp
4 S ebsapp 16244 16243 0 75 0 - 16587 wait 12:13 pts/1 00:00:00 -bash
0 R ebsapp 16994 16244 0 77 0 - 16415 - 12:15 pts/1 00:00:00 ps -elf
0 S ebsapp 16995 16244 0 78 0 - 15309 pipe_w 12:15 pts/1 00:00:00 grep ebsapp
2. 执行转换命令:
$FND_TOP/bin/txkrun.pl -script=ChangeFormsMode \
-contextfile=$CONTEXT_FILE \
-mode=socket \
-port=9000 \
-runautoconfig=No
$FND_TOP/bin/txkrun.pl -script=ChangeFormsMode \
-contextfile=$CONTEXT_FILE \
-mode=servlet \
-port=9000 \
-runautoconfig=No
[ebsapp@ebs1 scripts]$ $FND_TOP/bin/txkrun.pl -script=ChangeFormsMode \
> -contextfile=$CONTEXT_FILE \
> -mode=socket \
> -port=9000 \
> -runautoconfig=No
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /ebsr12/prod/inst/apps/PROD_ebs1/logs/appl/rgf/TXK/txkChangeFormsMode_Thu_Sep_5_12_21_01_2013.log
Program : /ebsr12/prod/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeFormsMode.pl started @ Thu Sep 5 12:21:01 2013
*** Log File = /ebsr12/prod/inst/apps/PROD_ebs1/logs/appl/rgf/TXK/txkChangeFormsMode_Thu_Sep_5_12_21_01_2013.log
Arguments passed: -contextfile=/ebsr12/prod/inst/apps/PROD_ebs1/appl/admin/PROD_ebs1.xml -mode=socket -port=9000 -runautoconfig=No
-----------
Values used
-----------
Context File : /ebsr12/prod/inst/apps/PROD_ebs1/appl/admin/PROD_ebs1.xml
Mode : socket
Port : 9000
Run AutoConfig : No
Execute SYSTEM command : netstat -a
********************************
Backing up context file....
********************************
Context file backed up at: /ebsr12/prod/inst/apps/PROD_ebs1/logs/appl/rgf/TXK/Thu_Sep_5_12_21_01_2013/PROD_ebs1.xml
********************************
Changing to Socket Mode.......
********************************
Updating context Variable s_forms_servlet_serverurl....
Updated context Variable s_forms_servlet_serverurl to
Updating context Variable s_frmConnectMode....
Updated context Variable s_frmConnectMode to socket
Updating context Variable s_formsstatus....
Updated context Variable s_formsstatus to disabled
Updating context Variable s_formsserver_status....
Updated context Variable s_formsserver_status to enabled
Updating context Variable s_other_service_group_status....
Updated context Variable s_other_service_group_status to enabled
Updating context Variable s_formsport....
Updated context Variable s_formsport to 9000
Updating context Variable s_formslauncher_path....
Updated context Variable s_formslauncher_path to OA_HTML/frmservlet
*********************************************************************************
You should run Autoconfig to update the runtime configurations to new Forms Mode.
*********************************************************************************
Log file to change the Forms Mode :
/ebsr12/prod/inst/apps/PROD_ebs1/logs/appl/rgf/TXK/txkChangeFormsMode_Thu_Sep_5_12_21_01_2013.log
Program : /ebsr12/prod/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeFormsMode.pl completed @ Thu Sep 5 12:21:28 2013
End of /ebsr12/prod/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeFormsMode.pl : No Errors encountered
3. 执行AUTOCONFIG:
[ebsapp@ebs1 scripts]$ ./adautocfg.sh
Enter the APPS user password:
The log file for this session is located at: /ebsr12/prod/inst/apps/PROD_ebs1/admin/log/09051222/adconfig.log
AutoConfig is configuring the Applications environment...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /ebsr12/prod/inst/apps/PROD_ebs1
Classpath : /ebsr12/prod/apps/apps_st/comn/java/lib/appsborg2.zip:/ebsr12/prod/apps/apps_st/comn/java/classes
Using Context file : /ebsr12/prod/inst/apps/PROD_ebs1/appl/admin/PROD_ebs1.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IGS_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED
AutoConfig completed successfully.
4. 启动应用:
./adstrtal.sh apps/apps
5. 查看FORM的模式:
[ebsapp@ebs1 scripts]$ ./adformsrvctl.sh status
You are running adformsrvctl.sh version 120.15.12010000.3
Checking status of FORMS Server (Socket Mode) ...
Forms Server (Socket) is running as PID 24898
adformsrvctl.sh: exiting with status 0
adformsrvctl.sh: check the logfile /ebsr12/prod/inst/apps/PROD_ebs1/logs/ora/10.1.2/forms/socket.log for more information ...