What problem are you observing?
IdentityIQ 8.5 upgrade script syntax errors: Three out of the four upgrade scripts (.sqlserver, .mysql, and .oracle
) have the same syntax issue; the .postgresql
script looks fine.
upgrade_identityiq_tables.sqlserver
upgrade_identityiq_tables.oracle
upgrade_identityiq_tables.mysql
Today, I performed the upgrade from IIQ 8.4
to IIQ 8.5
and found basic syntax errors, for example, in upgrade_identityiq_tables.sqlserver
Observed wrong syntax:
EXEC sp_rename N'table_name.new_index_name', N'old_index_name', N'INDEX';
GO
–– ACCESS HISTORY upgrade begin
USE identityiqah
GO
– DO NOT REMOVE OR MODIFY BLOCK
– CONTEXT-SWITCH: dataSourceAccessHistory
– DO NOT REMOVE OR MODIFY BLOCK
EXEC sp_rename N'identityiqah.spt_hist_certification.uk_kesw6k26csy7qxitgtloos7y2', N'UK_jnf8asso0unr7868bv24coqyn', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_mattr.UK_sgmfjmeagljgj36cgi3o0cltw', N'UK_rle9g3il01fvqdeklw5hc5l5h', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_role.spt_hist_role_displayname_ci', N'spt_hist_role_displayName_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_role.uk_kem9ulqu2gybfqdtq226k3htc', N'UK_i8w6vo76pdttiu6urwhbcaf9r', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_capability.spt_hist_cap_displayname_ci', N'spt_hist_cap_displayName_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_capability.uk_q19cl120ixe3opavvwxoi0ahu', N'UK_pid42ojf0r3fmg5jcr1e9mj09', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_policy_violation_remediation_entitlements.fkjie8pn4nfhcfi3t92br291fc1', N'FKjie8pn4nfhcfi3t92br291fc1', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_accounts.fk605klb45cwnh86urs1aw07cue', N'FK605klb45cwnh86urs1aw07cue', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup.spt_hist_wg_displayname_ci', N'spt_hist_wg_displayName_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_capture.spt_hwc_displayname_ci', N'spt_hwc_displayName_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_event.spt_hist_wg_evt_evt_dt', N'spt_hist_wg_event_evt_dt', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_event.spt_hist_wg_evt_evt_cat', N'spt_hist_wg_event_evt_cat', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_event.spt_hist_wg_evt_evt_type', N'spt_hist_wg_event_evt_type', N'INDEX';
GO
What is the correct behavior?
The correct syntax:
EXEC sp_rename N'table_name.old_index_name', N'new_index_name', N'INDEX';
GO
–– ACCESS HISTORY upgrade begin
USE identityiqah
GO
– DO NOT REMOVE OR MODIFY BLOCK
– CONTEXT-SWITCH: dataSourceAccessHistory
– DO NOT REMOVE OR MODIFY BLOCK
EXEC sp_rename N'identityiqah.spt_hist_certification.UK_jnf8asso0unr7868bv24coqyn', N'uk_kesw6k26csy7qxitgtloos7y2', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_mattr.UK_rle9g3il01fvqdeklw5hc5l5h', N'UK_sgmfjmeagljgj36cgi3o0cltw', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_role.spt_hist_role_displayName_ci', N'spt_hist_role_displayname_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_role.UK_i8w6vo76pdttiu6urwhbcaf9r', N'uk_kem9ulqu2gybfqdtq226k3htc', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_capability.spt_hist_cap_displayName_ci', N'spt_hist_cap_displayname_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_capability.UK_pid42ojf0r3fmg5jcr1e9mj09', N'uk_q19cl120ixe3opavvwxoi0ahu', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_policy_violation_remediation_entitlements.FKjie8pn4nfhcfi3t92br291fc1', N'fkjie8pn4nfhcfi3t92br291fc1', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_accounts.FK605klb45cwnh86urs1aw07cue', N'fk605klb45cwnh86urs1aw07cue', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup.spt_hist_wg_displayName_ci', N'spt_hist_wg_displayname_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_capture.spt_hwc_displayName_ci', N'spt_hwc_displayname_ci', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_event.spt_hist_wg_event_evt_dt', N'spt_hist_wg_evt_evt_dt', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_event.spt_hist_wg_event_evt_cat', N'spt_hist_wg_evt_evt_cat', N'INDEX';
GO
EXEC sp_rename N'identityiqah.spt_hist_workgroup_event.spt_hist_wg_event_evt_type', N'spt_hist_wg_evt_evt_type', N'INDEX';
GO
What product feature is this related to?
Access History upgrade script syntax failures.
What are the steps to reproduce the issue?
Just followed the SailPoint document steps to perform the migration.
during database upgrade step- we will encounter the syntax errors.
Do you have any other information about your environment that may help?
Tomcat 9.x.x, JDK11.x.x, SQL Server(.sqlserver
), this is the same case for .oracle
, .mysql
upgrade scripts.