Thursday, December 16, 2010

Enabling Forms Socket Mode

Enabling Forms Socket Mode

Changing forms servlet mode to forms socket mode is very easy. This needs running of just 1 script and bouncing the services.
Follow the below steps for changing from forms servlet mode to forms socket mode. Also note that both these modes cannot co-exits.

1) Stop all services using present in $ADMIN_SCRIPTS_HOME location.
 Note that while stopping this will call script for stopping forms services. This is because the current mode is servlet mode.

2) Run the following command to enable Forms Socket Mode:
$FND_TOP/bin/ -script=ChangeFormsMode \
[-contextfile=] \
-mode=socket \
[-port=] \
-runautoconfig= \
Example :
$FND_TOP/bin/ -script=ChangeFormsMode \
-contextfile=$INST_TOP/appl/admin/mycontext.xml \
-mode=socket \
-port=9095 \

In this case you can get the forms port number from context file.
 Make sure that autoconfig has run successfully and that it has updated the forms launcher in database.

3) start the services using present in $ADMIN_SCRIPTS_HOME
Note that this time it will use script to start the forms. This is the script for starting forms in socket mode.

Executing service control script:
/slot02/appmgr/inst/apps/SCM3R3X3/admin/scripts/ start
script returned:
You are running version 120.9.12000000.6
Starting FORMS Server in Socket Mode… exiting with status 0 check the logfile /slot02/appmgr/inst/apps/SCM3R3X3/logs/ora/10.1.2/forms/socket.log for more information …
You have new mail in /var/spool/mail/appmgr02
.end std out.
.end err out.
After converting to forms socket mode the ICX_FORMS_LAUNCHER will take below form.
Also will not list the forms process now.

-bash-3.00$ ./ status
You are running version 120.4.12000000.3
Checking status of OPMN managed processes…
Processes in Instance:
ias-component | process-type | pid | status
OC4JGroup:OC4J | OC4J:oafm | 14533 | Alive
OC4JGroup:OC4J | OC4J:oacore | 13722 | Alive
OC4JGroup:OC4J | OC4J:oacore | 13723 | Alive
HTTP_Server | HTTP_Server | 13405 | Alive exiting with status 0

Sukhwinder Singh

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.