Monday, April 29, 2013

HOWTO: Change Forms Servlet Mode to Socket Mode

HOWTO: Change Forms Servlet Mode to Socket Mode

1. Shutdown the middle tiers.
2. Change to servlet mode as follows:
i. Change to servlet mode
Login to the concurrent manager middle tier as ap<sid> user and do the following:
Replace the below command with the "Apps password"
$FND_TOP/bin/txkrun.pl -script=ChangeFormsMode \
-contextfile=$CONTEXT_FILE \
-mode=servlet \
-runautoconfig=No \
-appspass=<APPS password>
ii. Run autoconfig for servlet mode to take effect
Login to the concurrent manager middle tier as ap<sid> user and do the following:
$ cd $AD_TOP/bin
$ ./adconfig.sh contextfile=$CONTEXT_FILE appspass=<apps pwd>
Make sure the log file has no errors.
3. Change oc4jadmin password
Login to the concurrent manager middle tier as ap<sid> user and do the following:
a. Back up the original system-jazn-data.xml file
$ cp -pr $INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml
$INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml.ori
b. Change oc4jadmin password
$ vi $INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml
Change the below line alone as follows in the file so that it looks like below after change:
<credentials>!welcome</credentials>
========= with change ============================
                        <user>
                                <name>oc4jadmin</name>
                                <display-name>OC4J Administrator</display-name>
                                <description>OC4J Administrator</description>
                                <credentials>!welcome</credentials>
                        </user>
                       <user>
===================================================
4. Startup the opmnctl servers alone
Login to the concurrent manager middle tier as ap<sid> user and do the following:
$ cd $SCRIPT_TOP
$ ./adopmnctl startall
5. Deploying a New Forms EAR File
a. Run the following command to make sure your password is correct :
$AF_JRE_TOP/bin/java -jar $ORACLE_HOME/../1013/j2ee/home/admin_client.jar deployer:oc4j:opmn://iehibu08.iehibdom.com:6510/forms oc4jadmin welcome -validateURI
b. If the above script in Step 5.a. succeeded then Run deployment script as follows:
$ $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp
Enter the following when prompted:
Enter Application name for re-deployment ? forms
Enter Oc4j Instance password for re-deployment ? welcome
Run Autoconfig <Yes/No> ? No
Check the logfile for any errors
c. Shutdown the opmnctl servers
Login to the concurrent manager middle tier as ap<sid> user and do the following:
$ cd $SCRIPT_TOP
$ ./adopmnctl stopall
Make sure all the processes running as ap<sid> are down.
d. Carry out post-deployment tasks (Carry this out if Step 5.b. above had no errors)
i. Restore backed up file
$ cp -pr $INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml
$INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml.passwdchg
$ mv $INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml.ori
$INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml
6. Startup middle tiers services.
 

No comments:

Post a Comment