SEVERE : Error encountered executing SQL statement FileName: 'C:\OBIEE\Oracle_BI1\biapps\admin\provisioning\update\11.1.
1.7.2\from11.1.1.7.0\schema\oracle\atg\upgrade.sql' LineNumber: '1985' Script log file: null
Jan 05 2015 01:18:45 SEVERE : Exception in runing sql script
oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: java.sql.SQLException: ORA-01418: specified index does not exist
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.onException(JDBCEngine.java:869)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:833)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:773)
at oracle.sysman.assistants.common.dbutil.jdbc.OracleDropStatement.execute(ANSISQLStatementType.java:749)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeNextSQLStatement(JDBCEngine.java:1468)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.parseNexecuteScript(JDBCEngine.java:1372)
at oracle.as.biapps.upgrade.util.DBUpgradeUtil.executeJDBCEngineScript(DBUpgradeUtil.java:117)
at oracle.as.biapps.upgrade.atg.ATGSchemaUpgradeTask.execute(ATGSchemaUpgradeTask.java:46)
at oracle.as.biapps.upgrade.atg.ATGSchemaUpgradeTask.execute(ATGSchemaUpgradeTask.java:15)
at oracle.as.biapps.upgrade.AbstractUpgradeCommand.executeTask(AbstractUpgradeCommand.java:78)
at oracle.as.biapps.upgrade.AbstractUpgradeCommand.executeUpgradeTasks(AbstractUpgradeCommand.java:68)
at oracle.as.biapps.upgrade.AbstractUpgradeCommand.upgrade(AbstractUpgradeCommand.java:28)
at oracle.as.biapps.upgrade.AbstractUpgradeCommand.execute(AbstractUpgradeCommand.java:21)
at oracle.as.biapps.upgrade.BIAppsRepositoryUtil.main(BIAppsRepositoryUtil.java:47)
Caused by: java.sql.SQLException:
ORA-01418: specified index does not exist
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1009)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3677)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.runSqlStatement(JDBCEngine.java:1090)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.callRunSqlStatement(JDBCEngine.java:779)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:794)
... 12 more
Solution:
------------
edit update.sql file, available in
C:\OBIEE11G\Oracle_BI1\biapps\admin\provisioning\update\11.1.1.7.2\from11.1.1.7.0\schema\oracle\atg
issue with duplicate values in below table. due to this it is not allowing unique index.
CREATE UNIQUE INDEX "
FND_ISO_LANGUAGES_TL_U2" ON "FND_ISO_LANGUAGES_TL" ("NAME", "LANGUAGE","ENTERPRISE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
cannot CREATE UNIQUE INDEX; duplicate keys found
comment below lines before upgrading ATG and run those indexex manually in DEV_BIACOMP scema
line no 1985 to 2068
find the below code.
DROP INDEX FND_APPL_TAXONOMY_U1 ;
DROP INDEX FND_APPL_TAXONOMY_U2 ;
DROP INDEX FND_APPL_TAXONOMY_U3 ;
DROP INDEX FND_APPL_TAXONOMY_U4 ;
DROP INDEX FND_APPL_TAXONOMY_U5 ;
DROP INDEX FND_APPL_TAXONOMY_U6 ;
DROP INDEX FND_APPL_TAXONOMY_U8 ;
DROP INDEX FND_ISO_LANGUAGES_TL_U2 ;
DROP INDEX FND_SESSION_USERS_U1 ;
DROP INDEX FND_SESSION_USERS_U2 ;
--- ('INDEX','FND_APPL_TAXONOMY_U1' ) ---
CREATE UNIQUE INDEX "FND_APPL_TAXONOMY_U1" ON "FND_APPL_TAXONOMY" (DECODE("MODULE_TYPE",'PRODUCT_LINE',TO_CHAR("PRODUCT_LINE")||'#'||TO_CHAR("ALTERNATIVE_ID")||'#'||TO_CHAR("ENTERPRISE_ID"),NULL),"ENTERPRISE_ID","MODULE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_APPL_TAXONOMY_U2' ) ---
CREATE UNIQUE INDEX "FND_APPL_TAXONOMY_U2" ON "FND_APPL_TAXONOMY" (DECODE("MODULE_TYPE",'FAMILY',TO_CHAR("PRODUCT_LINE")||'#'||TO_CHAR("ALTERNATIVE_ID")||'#'||TO_CHAR("ENTERPRISE_ID"),NULL),"ENTERPRISE_ID","MODULE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_APPL_TAXONOMY_U3' ) ---
CREATE UNIQUE INDEX "FND_APPL_TAXONOMY_U3" ON "FND_APPL_TAXONOMY" (DECODE("MODULE_TYPE",'APPLICATION',TO_CHAR("PRODUCT_LINE")||'#'||TO_CHAR("ALTERNATIVE_ID")||'#'||TO_CHAR("ENTERPRISE_ID"),NULL),"ENTERPRISE_ID","MODULE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_APPL_TAXONOMY_U4' ) ---
CREATE UNIQUE INDEX "FND_APPL_TAXONOMY_U4" ON "FND_APPL_TAXONOMY" (DECODE("MODULE_TYPE",'PRODUCT_LINE',TO_CHAR("PRODUCT_LINE")||'#'||"MODULE_KEY"||'#'||TO_CHAR("ENTERPRISE_ID"),NULL),"ENTERPRISE_ID","MODULE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_APPL_TAXONOMY_U5' ) ---
CREATE UNIQUE INDEX "FND_APPL_TAXONOMY_U5" ON "FND_APPL_TAXONOMY" (DECODE("MODULE_TYPE",'FAMILY',TO_CHAR("PRODUCT_LINE")||'#'||"MODULE_KEY"||'#'||TO_CHAR("ENTERPRISE_ID"),NULL),"ENTERPRISE_ID","MODULE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_APPL_TAXONOMY_U6' ) ---
CREATE UNIQUE INDEX "FND_APPL_TAXONOMY_U6" ON "FND_APPL_TAXONOMY" (DECODE("MODULE_TYPE",'APPLICATION',TO_CHAR("PRODUCT_LINE")||'#'||"MODULE_KEY"||'#'||TO_CHAR("ENTERPRISE_ID"),NULL), "MODULE_ID","ENTERPRISE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_APPL_TAXONOMY_U8' ) ---
CREATE BITMAP INDEX "FND_APPL_TAXONOMY_U8" ON "FND_APPL_TAXONOMY" (DECODE("MODULE_TYPE",'APPLICATION',TO_CHAR("PRODUCT_LINE")||'#'||"MODULE_NAME"||'#'||TO_CHAR("ENTERPRISE_ID"),NULL), "MODULE_ID","ENTERPRISE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_NATURAL_LANGUAGES_TL_U2' ) ---
/*
CREATE UNIQUE INDEX "FND_ISO_LANGUAGES_TL_U2" ON "FND_ISO_LANGUAGES_TL" ("NAME", "LANGUAGE","ENTERPRISE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 8192 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;*/
--- ('INDEX','FND_SESSION_USERS_U2' ) ---
CREATE UNIQUE INDEX "FND_SESSION_USERS_U2" ON "FND_SESSION_USERS" ("USER_NAME", "ENTERPRISE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255
STORAGE(INITIAL 16384 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;
--- ('INDEX','FND_SESSION_USERS_U1' ) ---
CREATE UNIQUE INDEX "FND_SESSION_USERS_U1" ON "FND_SESSION_USERS" ("USER_GUID", "ENTERPRISE_ID")
PCTFREE 40 INITRANS 11 MAXTRANS 255
STORAGE(INITIAL 16384 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 32 BUFFER_POOL DEFAULT) ;