28 March 2012

AC-00005: No write permissions for creating the Context file - /appsutil/temp.xml


Recently i Upgraded 11.5.10.2 to R12.1.1 That time i faced below issue .
[oracle@dev147 bin]$ perl ./adcfgclone.pl dbTier

Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adcfgclone Version 120.31.12010000.1

Enter the APPS password :

Running:
/oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/jlib/java:/oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:/oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_9850.lst -stage /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone 2> /tmp/adcfgclone_9850.err; echo $? > /tmp/adcfgclone_9850.res

Log file located at /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0322113458.log

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [dev147] :

Target Instance is RAC (y/n) [n] :

Target System Database SID : PROD

Target System Base Directory : /oracle/PROD11

Target System utl_file_dir Directory List : /usr/tmp

Number of DATA_TOP's on the Target System [1] :

Target System DATA_TOP Directory 1 [/oracle/PROD11/proddata] :

Do you want to preserve the Display [dev147:0.0] (y/n) ? : y

Target System Port Pool [0-99] : 3

Checking the port pool 3
done: Port Pool 3 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 /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0322113458.log for details.

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

[oracle@dev147 bin]$

Issue :

 Target System RDBMS ORACLE_HOME Directory [/oracle/PROD/db/tech_st/11.1.0] :   below variable not found . 

Solution:-
I applied Latest ATG patch 8919491the My issue resolved .
 
Result :-

[oracle@dev147 bin]$ ./adcfgclone.pl dbTier

                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.31.12010000.8

Enter the APPS password :

Running:
/oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/jlib/java:/oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:/oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_14154.lst -stage /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone  2> /tmp/adcfgclone_14154.err; echo $? > /tmp/adcfgclone_14154.res

Log file located at /oracle/PROD11/proddb/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0326094922.log

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [dev147] :

Target Instance is RAC (y/n) [n] :

Target System Database SID : PROD

Target System Base Directory : /oracle/PROD

Target System utl_file_dir Directory List : /usr/tmp

Number of DATA_TOP's on the Target System [1] :

Target System DATA_TOP Directory 1 [/oracle/PROD11/proddata] :

Target System RDBMS ORACLE_HOME Directory [/oracle/PROD/db/tech_st/11.1.0] : ^C
ERROR: Context creation not completed successfully.

Now my issue Resolved  .

2 comments:

inam said...

ERROR: Context creation not completed successfully.

How come then u get this message ?

Muthu said...

Thanks for the Comments,

My Problem is not the context file creation.

When i am executing adcfgclone.pl it will ask ORACLE_HOME value. For my cause it is not asking that is the problem . so I did above steps then my problem was resolved.