Running post cloning steps for Database Tier with R12.1.3 and Oracle 11g R2 you get the error:
$perl adcfgclone.pl dbTier
Checking the port pool 50
done: Port Pool 50 is free
Report file located at /appsutil/out/portpool.lst
RC-00203: Unable to create/write to file /appsutil/out/portpool.lst.
Complete port information available at /appsutil/out/portpool.lst
RC-50004: Error occurred in CloneContext:
AC-00005: No write permissions for creating the Context file - /appsutil/temp.xml
Raised by oracle.apps.ad.context.AppsContext
Check Clone Context logfile /u01/clone/db/11.2.0/appsutil/clone/bin/CloneContext_12345678.log for details.
Oracle Support refers to the note:
How To Quick Solve This Post Clone Error : RC-50004, AC-00005: No Write Permissions For Creating The Context file - /tmp/temp.xml ? [ID 842948.1]
If you have set the right permissions at /tmp and the problem remains then check if at the post cloning steps at the dbTier, the scripts asks for the "Oracle Database Home"
Target System RDBMS ORACLE_HOME Directory [/u01/clone/db/11.2.0/] :
If not, then the Oracle Database Home that is missing, is the reason it's pointing to /appsutil/
You have to run successful again Autoconfig at the Source Database node