To do the process, basic steps are
Set Applications environment and stop instance processes
From the Applications instance $APPL_TOP, set the environment by running the APPS[CONTEXT_NAME].env script, then stop all application tier processes for the instance by running the script $ADMIN_SCRIPTS_HOME/adstpall.sh.
Run deployment script
txkCfgOC4JApp.pl is a perl script that installs the .ear file in the proper location and configures the Forms J2EE group correctly.
Note: For successful completion of the script, ensure that no Java processes for the instance are still running.
The script is executed by running the txkrun.pl script, as shown in the example below.
Enter Application name for re-deployment ? forms
Enter Oc4j Instance password for re-deployment ? (current password)
Run Autoconfig [Yes/No] ? No
Run AutoConfig on the instance by running the command:
Start the appropriate services on the instance by running the command:
$ADMIN_SCRIPTS_HOME/adstrtal.sh [apps user/apps password]