Friday 10 May 2013

Servlet to socket mode conversion


How to check servlet mode is enable or not?

[applmgr@apps US]$ grep -i s_frmConnectMode $CONTEXT_FILE
         <forms_connect oa_var="s_frmConnectMode">servlet</forms_connect>
[applmgr@apps US]$

OR
[applmgr@apps US]$ grep connectMode $FORMS_WEB_CONFIG_FILE
connectMode=servlet
[applmgr@apps US]$

[applmgr@apps US]$ cat $FORMS_WEB_CONFIG_FILE|grep serverURL=
serverURL=/forms/lservlet
[applmgr@apps US]$

Note Oracle Application Release 12 is, by default, configured to run in servlet mode.
Port number used to run Forms in socket mode. The default port number is 9095.

Syntax:

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






1) Source the Env file

2) Stop all the application services.
3) Run the following command to enable Forms Socket Mode:
$FND_TOP/bin/txkrun.pl -script=ChangeFormsMode 
-contextfile=/u02/inst/apps/PROD_apps/appl/admin/PROD_apps.xml -mode=socket -port=9095 -runautoconfig=No
4)On UNIX:
$INST_TOP/admin/scripts/adautocfg.sh

5)Start all the application tier services:On UNIX:

$INST_TOP/admin/scripts/adstrtal.sh

6)Check whether Forms Server is running:On UNIX:


$INST_TOP/admin/scripts/adformsrvctl.sh status


7)Log in to Oracle Applications and launch a Forms-based application.

Open the Sun Java Console (from Tools Menu in Internet Explorer).
Check whether the "mode" directive displayed in Sun Java Console when launching forms-based applications is set to socket.
The direct launch URL for Forms Socket Mode is:
http://webhost.domain:webport/OA_HTML/frmservlet

[applmgr@apps appl]$ ls -lrh APPS*.env
-rw-r--r--  1 applmgr dba 999 Apr 28 12:40 APPSPROD_apps.env
[applmgr@apps appl]$ . ./APPSPROD_apps.env
[applmgr@apps appl]$



[applmgr@apps ~]$ ps -fu applmgr
UID        PID  PPID  C STIME TTY          TIME CMD
applmgr   5477  5476  0 20:18 pts/4    00:00:00 -bash
applmgr   5594  5477  0 20:23 pts/4    00:00:00 ps -fu applmgr
applmgr  26968 26967  0 18:31 pts/2    00:00:00 -bash
[applmgr@apps ~]$

[applmgr@apps ~]$ $FND_TOP/bin/txkrun.pl -script=ChangeFormsMode -contextfile=/u02/inst/apps/PROD_apps/appl/admin/PROD_apps.xml -mode=socket -port=9095 -runautoconfig=No


*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u02/inst/apps/PROD_apps/logs/appl/rgf/TXK/txkChangeFormsMode_Fri_May_10_20_27_35_2013.log
Program : /u02/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeFormsMode.pl started @ Fri May 10 20:27:35 2013

*** Log File = /u02/inst/apps/PROD_apps/logs/appl/rgf/TXK/txkChangeFormsMode_Fri_May_10_20_27_35_2013.log

Arguments passed: -contextfile=/u02/inst/apps/PROD_apps/appl/admin/PROD_apps.xml -mode=socket -port=9095 -runautoconfig=No


-----------
Values used
-----------
Context File   : /u02/inst/apps/PROD_apps/appl/admin/PROD_apps.xml
Mode           : socket
Port           : 9095
Run AutoConfig : No


Execute SYSTEM command : netstat -a


********************************
Backing up context file....
********************************
Context file backed up at: /u02/inst/apps/PROD_apps/logs/appl/rgf/TXK/Fri_May_10_20_27_35_2013/PROD_apps.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 9095
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 :
 /u02/inst/apps/PROD_apps/logs/appl/rgf/TXK/txkChangeFormsMode_Fri_May_10_20_27_35_2013.log


Program : /u02/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeFormsMode.pl completed @ Fri May 10 20:27:59 2013

End of /u02/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeFormsMode.pl : No Errors encountered
[applmgr@apps ~]$


Run autoconfig to reflect the changes.
============================

[applmgr@apps ~]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@apps scripts]$ ls
adalnctl.sh  adautocfg.sh  adexecsql.pl   adformsrvctl.sh  adoafmctl.sh  adpreclone.pl  adstrtal.sh  ieo      jtffmctl.sh  msc        mwactlwrpr.sh
adapcctl.sh  adcmctl.sh    adformsctl.sh  adoacorectl.sh   adopmnctl.sh  adstpall.sh    gsmstart.sh  java.sh  majid.sh     mwactl.sh  sqlnet.log
[applmgr@apps scripts]$ adautocfg.sh
Enter the APPS user password:

The log file for this session is located at: /u02/inst/apps/PROD_apps/admin/log/05102029/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
        Using CONFIG_HOME location     : /u02/inst/apps/PROD_apps
        Classpath                   : /u02/apps/apps_st/comn/java/lib/appsborg2.zip:/u02/apps/apps_st/comn/java/classes

        Using Context file          : /u02/inst/apps/PROD_apps/appl/admin/PROD_apps.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.
[applmgr@apps scripts]$



[applmgr@apps scripts]$ grep -i ConnectMode $CONTEXT_FILE
         <forms_connect oa_var="s_frmConnectMode">socket</forms_connect>
[applmgr@apps scripts]$


[applmgr@apps scripts]$ adopmnctl.sh status

You are running adopmnctl.sh version 120.6

Checking status of OPMN managed processes...

Processes in Instance: PROD_apps.apps.user.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |   11579 | Alive
OC4JGroup:default_group          | OC4J:oacore        |   11578 | Alive
HTTP_Server                      | HTTP_Server        |   11577 | Alive


adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u02/inst/apps/PROD_apps/logs/appl/admin/log/adopmnctl.txt for more information ...

[applmgr@apps scripts]$


[applmgr@apps scripts]$ $INST_TOP/admin/scripts/adformsrvctl.sh status

You are running adformsrvctl.sh  version 120.15.12010000.2

Checking status of FORMS Server (Socket Mode) ...

 Forms Server (Socket) is running as PID  12014


adformsrvctl.sh: exiting with status 0

adformsrvctl.sh: check the logfile /u02/inst/apps/PROD_apps/logs/ora/10.1.2/forms/socket.log for more information ...

[applmgr@apps scripts]$



No comments:

Post a Comment