Monday, August 31, 2009

How To Quick Solve This Post Clone Error : RC-50004, AC-00005: No write permissions for creating the Context file - /tmp/temp.xml ?


On R12 (or 11i) , while executing 'perl adcfgclone.pl', we are facing the error as following:

Target System Display [testerp:0.0] : RC-50004: Error occurred in CloneContext: AC-00005: No write permissions for creating the Context file - /tmp/temp.xml Raised by oracle.apps.ad.context.AppsContext Check Clone Context logfile /oracle/Test/Application/apps/apps_st/comn/clone/bin /CloneContext_06151127.log for details.

ERROR: Context creation not completed successfully. For additional details review the file /tmp/adcfgclone_4796.err if present.

Apps user does not have write permissions on /tmp directory.
1- Give write permission to apps user on "/tmp" directory.
Example :
As root:
# chmod 777 /tmp
# ls -al grep tmp
drwxrwxrwx 11 root root 4096 Jun 15 04:02 tmp
2- Re-run the Postclone.
perl adcfgclone.pl

Nb:
We could hit this Error too:
Following stacktrace produced when running adcfgclone.pl StackTrace: java.lang.Exception: AC-00005: No write permissions for creating the Context file - /u01/PROD/oracle/920/appsutil/temp.xml Raised by oracle.apps.ad.context.AppsContext at oracle.apps.ad.context.AppsContext. getOaEnabledValues(AppsContext.java:733) at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java: 657) at oracle.apps.ad.context.CloneContext.main(CloneContext.java:6033) RC-50004: Error occurred in CloneContext: AC-00005: No write permissions for creating the Context file - /u01/PROD/oracle/920/appsutil/temp.xml Raised by oracle.apps.ad.context.AppsContext Context file creation not succesful


Analysis:

The error above is a bit misleading. adcfgclone.pl should not be creating a "temp.xml" file under appsutil, The context file created under "/u01/PROD/oracle/920/appsutil" should be _.xml.
Normally adcfgclone.pl is trying to do is, create files under /usr/tmp and/or /tmp.
Check if you have a temp.xml file or other RapidClone files under either of those directories owned by a different user? If so please delete them and retry adcfgclone.pl.

1 comment:

Unknown said...

BTW, I often use various data recovery solutions to restore my documents. Please take a closer look at the damaged pdf recovery program, it fixes corrupted files regardless of the root cause of issue