Friday, January 22, 2010

How to change the forms mode in R12?

Hi,
This post is more of a procedural thing rather than a problem-troubleshoot-fix kind of a post. By default, when you configure an R12 instance, rapid install will configure forms in servlet mode. The following steps will come in handy if you are entrusted with the task of changing the forms mode to socket or vice-versa.
a. Currently your forms is running in servlet mode and you want to configure socket mode.
i. Stop all the running services.
ii. Clear orphans, if any.
iii. Take a backup of the existing xml file.
iv. Run the following command:

$FND_TOP/bin/txkrun.pl -script=ChangeFormsMode -contextfile=[context file name with full path] -mode=socket -port=[forms port value] -runautoconfig=No

v. Verify that your xml has been updated with "socket" value for a few variables as shown in the log of the above script.
vi. Run autoconfig.
vii. Verify that you can connect to forms using front end and that you should see a frmsrv process running on the forms host. Run adopmnctl.sh status to verify that forms is no longer running in servlet mode.

b. Currently your forms is running in socket mode and you want to configure servlet mode.
i. stop all the running services.
ii. Clear orphans, if any.
iii. Take a backup of the existing xml file.
iv. Run the following command:

$FND_TOP/bin/txkrun.pl -script=ChangeFormsMode -contextfile=[context file name with full path] -mode=servlet -port=[forms port value] -runautoconfig=No

v. Verify that your xml has been updated with "servlet" value for a few variables as shown in the log of the above script.
vi. Run autoconfig.
vii. Verify that you can connect to forms using front end and that you do not see a frmsrv process running on the forms host. Run adopmnctl.sh status to verify that forms is indeed running in servlet mode.

- Aravind Kamath Posral