Monday, June 13, 2011

Issue on Deploying a New Forms formsapp.ear File in Oracle Applications Release 12

Symptoms



You will get following error which starting MT services


--------------------------------------------------------------------------------------------------------------
=================================================
*** Latest formsapp.ear has NOT been deployed ***
Deploying the latest EAR file...
=================================================


Program : /d01/applmgr/1200/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl completed @ Tue Jun 7 05:35:22 2011

*****************************************
* W A R N I N G *
*****************************************
Error while executing the perl script txkChkFormsDeployment.pl

We have determined that you need to redeploy Forms (using txkChkFormsDeployment.pl).
But could not do it automatically for you, due to some issues.
For details refer the log files.
Follow Note: 397174.1 to redeploy Forms manually.
*****************************************

adforms-c4wsctl.sh: exiting with status 0

adforms-c4wsctl.sh: check the logfile /d01/mtlog//logs/appl/admin/log/adforms-c4wsctl.txt for more information ...


.end std out.
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /d01/mtlog//logs/appl/rgf/TXK/txkChkFormsDeployment_Tue_Jun_7_05_35_12_2011/txkChkFormsDeployment_Tue_Jun_7_05_35_12_2011.log

.end err out.
---------------------------------------------------------------------------------------------------------------


Solution:


-----------------------------------------------------------------------------------------------------------------
Step 1. Set Applications environment and stop instance processes

cd /d01/apps/apps_st/appl
. ./APPStxkr12d2.env
cd $ADMIN_SCRIPTS_HOME
. ./adstpall.sh

Step 2. Change oc4jadmin password (conditional)

Note: This step is only required if the oc4jadmin account password is not known


2.1. Back up the original system-jazn-data.xml file.

cp $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

2.2. Change oc4jadmin password

vi $INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml

========= file snippet original =================

oc4jadmin
OC4J Administrator
oc4jadmin
OC4J Administrator
OC4J Administrator
{903}9VrhYTuhd7DyBJf7J/4KwbSEIlETQJOO

==================================================

========= with change ============================

oc4jadmin
OC4J Administrator
oc4jadmin
OC4J Administrator
OC4J Administrator
!welcome

===================================================

:wq!

Step 3. Run deployment script.

$FND_TOP/bin/txkrun.pl -script=CfgOC4JApp
Enter Application name for re-deployment ? forms
Enter Oc4j Instance password for re-deployment ? welcome (or current password)
Run Autoconfig ? No


Step 4. Carry out post-deployment tasks

1. If (conditional) Step 2 was needed, restore the original system-jazn-data.xml file that you backed up.

2. Run AutoConfig on the instance by running the command:
$ADMIN_SCRIPTS_HOME/adautocfg.sh

3. Start the appropriate services on the instance by running the command:
$ADMIN_SCRIPTS_HOME/adstrtal.sh

----------------------------------------------------------------------------------------------



When using Note 397174.1 Step 3 requires the following script to be run:


You will get following error Step 3


Symptoms


--------------------------------------------------------------------------------------------------------
[AMD64] > $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /d01/mtlog//logs/appl/rgf/TXK/txkCfgOC4JApp_Tue_Jun_7_06_02_22_2011.log
Program : /d01/applmgr/1200/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl started @ Tue Jun 7 06:02:22 2011

*** Log File = /d01/mtlog//logs/appl/rgf/TXK/txkCfgOC4JApp_Tue_Jun_7_06_02_22_2011.log

Enter Application name for re-deployment ? forms
Enter Oc4j Instance password for re-deployment ?
Run Autoconfig ? No


*****************************************************
Required values for starting OC4J instance "forms":
====================================================
s_formsstatus = enabled
s_forms_nprocs = 1 (value should be greater than 0)


Existing values from the context file:
======================================
s_formsstatus = disabled
s_forms_nprocs = 1
------------------------------------------------

*** Values for context variables are INVALID ***

------------------------------------------------

Follow the below steps:
=======================
- Take backup of context file
Location of Context File: /d01/inst/apps//appl/admin/.xml
- Set the context variable s_formsstatus to "enabled"
- Run AutoConfig
- Run the re-deployment script txkCfgOC4JApp.pl
Usage:
txkrun.pl -script=CfgOC4JApp -applicationname=
-oc4jpass= -runautoconfig=
- Set the context variable s_formsstatus back to "disabled"
- Run AutoConfig
*****************************************************


Errors encountered running /d01/applmgr/1200/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl

*******FATAL ERROR*******
PROGRAM : /d01/applmgr/1200/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl(/d01/applmgr/1200/fnd/12.0.0/bin/txkrun.pl)
TIME : Tue Jun 7 06:02:50 2011
FUNCTION: TXK::RunScript::validateContextVar [ Level 1 ]
ERRORMSG: Validation of CONTEXT VARIABLES failed:
[AMD64] >

---------------------------------------------------------------------------------------------------------------



Solution
=========



1.Back up the original system-jazn-data.xml file

cp $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

2. Change oc4jadmin password

vi $INST_TOP/ora/10.1.3/j2ee/forms/config/system-jazn-data.xml

========= file snippet original =================

oc4jadmin
OC4J Administrator
oc4jadmin
OC4J Administrator
OC4J Administrator
{903}9VrhYTuhd7DyBJf7J/4KwbSEIlETQJOO

==================================================

========= with change ============================

oc4jadmin
OC4J Administrator
oc4jadmin
OC4J Administrator
OC4J Administrator
!welcome

===================================================

:wq!

3. Take backup of context file
Location of Context File: /d01/inst/apps//appl/admin/.xml

4. Set the context variable s_formsstatus to "enabled"

5. Run AutoConfig

6. Run the re-deployment script

$FND_TOP/bin/txkrun.pl -script=CfgOC4JApp
Enter Application name for re-deployment ? forms
Enter Oc4j Instance password for re-deployment ? welcome (or current password)
Run Autoconfig ? No

7. Set the context variable s_formsstatus back to "disabled"
8. Run AutoConfig

3 comments:

Anonymous said...

Hello sir ,i'm new to oracle r12.what is function of formsapp.ear

Anonymous said...

Thanks this was an excellent post!!

icobodwaggle said...

Why casino slots cost so many people money - Casino Sites
What casino slot games cost so 램 슬롯 many people money? · How do you choose one? · Are there slots that pay for 토토분석사이트 real money? · 넷마블 토토 사이트 How to find 프로즌 먹튀 and pay for games for real money online? 슬롯 가입 머니