Here is ‘steps to recover Applications context file if it is corrupted or deleted’. If the Oracle Applications Context file is corrupted or deleted, then we need to follow the below steps to recover the Context file as well.
To retrieve/recover Applications context file.
Run the adclonectx.pl as shown below.
perl /clone/bin/adclonectx.pl retrieve
On being prompted for the context file to be retrieved, select the option of retrieving the Applications tier context file that has been lost and retrieve it to the default location specified by the script.
The above command (adclonectx.pl can be used only when INST_TOP the is still intact. In case that has also been lost accidentally, the Applications tier context file may be retrieved as follows:
Execute the following command on the DB tier:
perl /appsutil/clone/bin/adclonectx.pl retrieve
On being prompted for the context file to be retrieved, select the option of retrieving the Applications tier context file that has been lost.
While confirming the location for the context file, set it to any existing directory with write permission. Once the context file has been generated in the specified location, move it to the location specified for the context file in the context variable ‘s_contextfile’.
To retrieve the DB tier context file:
Execute the following command on the DB tier:
perl /appsutil/clone/bin/adclonectx.pl retrieve
On being prompted for the context file to be retrieved, select the Database tier context file and retrieve it to the default location specified by the script.