WCC DB errors while upgrading to R12.1.01
Oracle based WebUI/WCC upgrade fails with below error.
2024-06-19 22:40:54,102 [main] ERROR com.ca.wcc.db.DBChangesForUpgrade(251) -
There was a problem with database while running the upgrade:
ORA-02298: cannot validate (AO_SCHAGENT_PLUGIN_FK) - parent keys not foundjava.sql.SQLIntegrityConstraintViolationException: ORA-02298: cannot validate (DBNAME.AO_SCHAGENT_PLUGIN_FK) - parent keys not found
Autosys 12.1.01
WCC 12.1.01
New version introduced foreign key in table AO_SCHAGENT_PLUGIN
select count(*) from AO_SCHAGENT_PLUGIN WHERE SCHEDULERAGENTID NOT IN (SELECT ID FROM AO_SCHAGENT);
-- If it returns zero rows they proceed to upgrade.