TDM 4.11 Upgrade caused schema migration failure with ORA-00955: name is already used by an existing object
search cancel

TDM 4.11 Upgrade caused schema migration failure with ORA-00955: name is already used by an existing object

book

Article ID: 396869

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Installed TDM portal, successfully installed. upon launching the portal, TDM web service did not start. Earlier portal version was 4.11.159, dropped all the tables in the <GTREP> schema and un-installed the TDM portal 4.11.159 and installed version 4.11.1007. 

In the TDMSchemaManagementStartup.log we noticed:
Migration V4.12.0.01__save_publish_results.sql failed
-----------------------------------------------------
SQL State  : 42000
Error Code : 955
Message    : ORA-00955: name is already used by an existing object
Location   : db/migration/gtrep/oracle/V4.12.0.01__save_publish_results.sql (\CA Test Data Manager Portal\schema-management\lib\TDMGtrepSchema-4.11.1007.0.jar!\db\migration\gtrep\oracle\V4.12.0.01__save_publish_results.sql)
Line       : 14
Statement  : CREATE SEQUENCE SEQ_PUB_DETAIL_ID
        MINVALUE 1
        MAXVALUE 9999999999999999999999999999
        INCREMENT BY 1
        START WITH 1
        NOCACHE
        NOORDER
        NOCYCLE 
 
 at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:345)

Environment

TDM 4.11.1007. 

Cause

When previous version of GTREP tables was dropped, some of the SEQUENCES  still remained

Resolution

When you DROP the entire GTREP schema,  make sure that it DROPS  the SEQUENCES,  TRIGGERS, VIEWS , INDEXES etc .. with it.

 

Note** :  Work with your DBA when DROPPING GTREP schema.