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

2 comments:

Unknown said...

Aravind,

Have you seen performance issues in running Forms in servlet mode in R12? We need to decide whether we need to go for Forms in servlet mode or Socket mode when we move to R12. Any personal opinion?

Regards,
Rohit

Aravind Kamath said...

Hey Rohit,

I came across this blog http://spicyoracle.blogspot.com/2009/12/frm-performance-issue-on-r12.html regarding forms performance issue. You can refer the metalink note id they have quoted as reference in that post. I think the choice of forms mode should be on performance and security considerations and knowing your environment, i think socket mode may work well.