Steps to recover Applications context file if it is corrupted ordeleted Accidentally:Oracle Applications Context file is corrupted or deleted accidentally, then need to follow the below steps to recover the Context file.
To retrieve the Applications tier 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 Database 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'.