How to set up a test environment for RTC 3.0.1 with ORACLE? (error when upgrading to 4.0)
![]()
Hi people,
We have RTC 3.0.1 (with data warehouse configured) in production. We needed to replicate it in a sandbox environment in order to test the upgrade to 4.0. We are using Oracle 11g as database. We tried to perform the upgrade in the sandbox but it failed in the step repotools-jts -upgradeWarehouse with the following error message:
We configured the data warehouse when we upgraded to 3.0.1. As you know, to configure the data warehouse you need to provide a RPTUSER with DBA privilegies, and the installation setup uses it to create some other users, tablespaces and other objects.
Because of that, I assume that the upgrade to 4.0 fails because we haven't set up the test environment properly
These are the steps that I followed to replicate the DB:
- I created a backup of production db (expdp)
- I followed the steps here to create a new db and all tablespaces and accounts needed
- I executed the following command to import the db backup in the test db:
impdp system/********@SANDBOX
directory=backups
dumpfile=backup_rtc.dmp
logfile=log
schemas=RPTUSER, RICALM, RISCHK, RIASSET, RIDW, RIODS, CONFIG, TEAMCONCERT, JTS, TEAMCONCERT_RID, QM
The import finished without errors, however we're not being able to upgrade to 4.0.
Could you please tell me if the process that we're following to import the backup is correct? If it is correct, why the upgrade script may be failing?
I'll really appreciate any help you may give us.
Regards,
|
Accepted answer
4 other answers
![]()
Thanks for your answer Rafik. I tried to drop the constraint manually but I get the following error: "Cannot drop contraint - non existent contraint".
However, if I execute the following query:
select * from all_indexes where index_name = 'EXECRGREQ_PK'
I get this row:
1 RIODS EXECRGREQ_PK NORMAL RIODS EXECRES_REQUEST_LOOKUP TABLE UNIQUE DISABLED VNF_IDX 2 255 10 YES 0 0 0 0 0 0 VALID 0 0 6/30/2012 6:05:39 PM 1 1 NO N N N DEFAULT DEFAULT DEFAULT NO YES NO NO NO VISIBLE NO
That's strange
|
![]()
I think the DROP script should be like this:
ALTER TABLE RIODS.EXECRES_REQUEST_LOOKUP DROP CONSTRAINT EXECRGREQ_PK DROP INDEX ;
The index of the primary key is not being drop, because of that the add constraint shows the error "name is already used by an existing object. "
|