Share all details related to your problem, including any error messages you may have received.
We are upgrading IIQ from version 8.1 to 8.4. We have successfully completed the process up until IIQ 8.3. When we started upgrading to IIQ 8.4, we encountered the following error when we are trying to run the upgrade command “iiq upgrade”
Invalid object name ‘spt_database_version’. com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name ‘spt_database_version’.
Are you sure you followed all DB related steps before upgrade to 8.4? There were quite significant changes to the DB including creation of completly new database for access history.
The error message is not related to the new database. We have followed all the DB related steps and the new Access History database has been successfully created with no issues. iiq.properties has been properly updated as well.
I was receiving the same error. Nightmare for me because I had completed all of the processes. How I solved it was by properly adjusting the iiq.properties file.
Check identityiq_ah database’s url is correct and the user identityiq_ah(default name) is configured to access the database identityiq_ah.
Database URL for AH is the same as identityiq. This is DEV so we are using the same server for both. We are also using the same user “identityiq” to connect to both databases. We added the required permissions to access both DBs. We also double checked the iiq.properties, and it all looked good.
Using the same SQL Server Login for both schemas could be an issue. I am pretty when the logins are created, they are set with a default schema and if that is not set I believe it causes issues.
Is it an issue to use the same user? or we can use the same user as long as we set the default schema and grant the required permissions? because we did.
I am not 100% sure if this is actually an issue. Looking at SQL Server Management Studio now, I can see a Login can have multiple databases set in their User Mappings where the default schema can be set.
Have you been upgrading SQL Server as you are going through IIQ versions as well? It seems like you are possibly using Java 17 along with SQL Server JDBC v4 (sqljdbc4.jar) based on the logs. That is a really old version of the SQL Server JDBC driver. I definitely recommend using a later version if possible. You could be running into some compatibility issues as you are going up in versions.
Thank you Patrick. The issue was with using 2 different users. We also had some other configuration issues, but the main issue was trying to use 2 different users.