After manually refreshing the clone database of oracle EBS R12.1.3 we executed autoconfig to complete the process of clone refresh, but it failed with following error: [oratest@ERPTEST[/oratest/R12_db/db/11.2.0/appsutil/bin]#adconfig.sh Enter the full path to the Context file: /oratest/R12_db/db/11.2.0/appsutil/test_ERPTEST.xml Enter the APPS user password: The log file for this session is located at: /oratest/R12_db/db/11.2.0/appsutil/log/test_ERPTEST/03061418/adconfig.log AutoConfig is configuring the Database environment... AutoConfig will consider the custom templates if present. Using ORACLE_HOME location : /oratest/R12_db/db/11.2.0 Classpath : :/oratest/R12_db/db/11.2.0/jdbc/lib/ojdbc5.jar:/oratest/R12_db/db/11.2.0/appsutil/java/xmlparserv2.jar:/oratest/R12_db/db/11.2.0/appsutil/java:/oratest/R12_db/db/11.2.0/jlib/netcfg.jar:/oratest/R12_db/db/11.2.0/jlib/ldapjclnt11.jar Using Context file : /oratest/R12_db/db/11.2.0/appsutil/test_ERPTEST.xml Context Value Management will now update the Context file Updating Context file...COMPLETED Attempting upload of Context file and templates to database...ERROR: InDbCtxFile.uploadCtx() : Exception : Error executng BEGIN fnd_gsm_util.append_ctx_fragment(:1,:2,:3); END;: 1; Oracle error -25153: ORA-25153: Temporary Tablespace is Empty has been detected in FND_GSM_UTIL.APPEND_CTX_FRAGMENT. oracle.apps.ad.autoconfig.oam.InDbCtxFileException: Error executng BEGIN fnd_gsm_util.append_ctx_fragment(:1,:2,:3); END;: 1; Oracle error -25153: ORA-25153: Temporary Tablespace is Empty has been detected in FND_GSM_UTIL.APPEND_CTX_FRAGMENT. at oracle.apps.ad.autoconfig.oam.InDbCtxFile.uploadCtx(InDbCtxFile.java:249) at oracle.apps.ad.autoconfig.oam.CtxSynchronizer.uploadToDb(CtxSynchronizer.java:328) at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateDBCtx(FileSysDBCtxMerge.java:721) at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateDBFiles(FileSysDBCtxMerge.java:226) at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1690) at oracle.apps.ad.context.CtxValueMgt.main(CtxValueMgt.java:763) FAILED COMPLETED Updating rdbms version in Context file to db112 Updating rdbms type in Context file to 64 bits Configuring templates from ORACLE_HOME ... AutoConfig completed successfully. There is no issue with the completion of autoconfig, its completing with status “successfully” . But in the log we can see its not able to locate the TEMP tablespace. So I thought that there is a problem with the tenporary tablespace and we didn’t add temp tablespace after manually cloning the database. Check the status of temp table space: [oratest@ERPTEST[/oratest/R12_db/db/11.2.0/appsutil/bin]#sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Sun Mar 6 14:18:55 2016 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select * from v$tempfile; FILE# CREATION_CHANGE# CREATION_ TS# RFILE# STATUS ENABLED ---------- ---------------- --------- ---------- ---------- ------- ---------- BYTES BLOCKS CREATE_BYTES BLOCK_SIZE ---------- ---------- ------------ ---------- NAME -------------------------------------------------------------------------------- 1 3.9564E+10 06-MAR-16 25 1 ONLINE READ WRITE 4294967296 524288 4294967296 8192 /oratest/testdata/proddata/temp001.dbf SQL> SQL> select file_name, tablespace_name from dba_temp_files; FILE_NAME -------------------------------------------------------------------------------- TABLESPACE_NAME ------------------------------ /oratest/testdata/proddata/temp001.dbf TEMP01 SQL> There is a TEMP tablespace in place so whats on wrong here ? We restarted database and executed autoconfig one more time but is reported same issue Cause: The TEMP tablespace we created was with name “TEMP01” and autoconfig is expecting the TEMP tablespace with name “TEMP1”. Solution: create TEMP tablespace with name TEMP1 and drop the old one with different name. SQL> create temporary tablespace temp1 2 tempfile '/oratest/testdata/proddata/temp_01.dbf' size 4G; Tablespace created. SQL> alter database default temporary tablespace temp1; Database altered. SQL> drop tablespace temp01 including contents and datafiles; Tablespace dropped. SQL> select file_name, tablespace_name from dba_temp_files; FILE_NAME -------------------------------------------------------------------------------- TABLESPACE_NAME ------------------------------ /oratest/testdata/proddata/temp_01.dbf TEMP1 SQL> Execute Autoconfig: [oratest@ERPTEST[/oratest/R12_db/db/11.2.0/appsutil/scripts/test_ERPTEST]#adautocfg.sh Enter the APPS user password: The log file for this session is located at: /oratest/R12_db/db/11.2.0/appsutil/log/test_ERPTEST/03061432/adconfig.log AutoConfig is configuring the Database environment... AutoConfig will consider the custom templates if present. Using ORACLE_HOME location : /oratest/R12_db/db/11.2.0 Classpath : :/oratest/R12_db/db/11.2.0/jdbc/lib/ojdbc5.jar:/oratest/R12_db/db/11.2.0/appsutil/java/xmlparserv2.jar:/oratest/R12_db/db/11.2.0/appsutil/java:/oratest/R12_db/db/11.2.0/jlib/netcfg.jar:/oratest/R12_db/db/11.2.0/jlib/ldapjclnt11.jar Using Context file : /oratest/R12_db/db/11.2.0/appsutil/test_ERPTEST.xml Context Value Management will now update the Context file Updating Context file...COMPLETED Attempting upload of Context file and templates to database...COMPLETED Updating rdbms version in Context file to db112 Updating rdbms type in Context file to 64 bits Configuring templates from ORACLE_HOME ... AutoConfig completed successfully. [oratest@ERPTEST[/oratest/R12_db/db/11.2.0/appsutil/scripts/test_ERPTEST]# Conclusion: This issue can occur if there is no temp tablespace is defined. But still i am not sure why autoconfig is looking TS with name TEMP1 only. I will investigate this information and update this post. Thanks for reading regards, X A H E E R
↧