The restorefrombackup took about 10 minutes to complete... that being said it all depends how many records are in the workorder table.
Original Message:
Sent: 03-30-2025 14:21
From: Hariprasad R
Subject: Database tables are empty after failed migration of database configuration changes
Hi Stephen, I recently faced this issue when I was adding an attribute with audit enabled in the WORKORDER table. DB config process got stuck, and all records in the WORKORDER table got deleted. I tried these steps, but when I executed restorefrombackup.bat, it ran for about 30-35 minutes with no visible updates or background activity. Maybe it just needed more time to restore the workorder data, but I stopped it and it was a test environment, I was able to restore the data using an online backup.
How long did restorefrombackup.bat take for you? Is there a way to check if the restorefrombackup.bat process is actually running? the terminal was blank and I wasn't sure if there was any updates.
Thanks for sharing, it will help me in a similar scenario in the future.
------------------------------
Hariprasad R
------------------------------
Original Message:
Sent: 03-29-2025 16:55
From: Stephen Hume
Subject: Database tables are empty after failed migration of database configuration changes
OK I learned something new about Maximo yesterday... when doing a database configuration, the table that is being updated is copied to a temporary table called XXtablename (in this case XXWORKORDER).
On the Maximo server there are a series of small command files that will help correct the situation when your DB Config goes awry. In the following folder on the server install_home\tools\maximo there are three tools that will help in the situation I found myself.
In all cases the Maximo Application Server needs to be stopped to run the commands
configdb.bat it can be used to run database configuration
restorefrombackup.bat is the command that will copy the XX table back into the main table (in my case XXWORKORDER copied into WORKORDER.
dropbackup.bat to get rid of the backup table once it has been restored.
I needed to learn how to do this, because to be honest I cannot remember the last time a database configuration went sideways.
Here is the link to the page that helped me correct things.
https://maximobymanoj.blogspot.com/2015/01/how-to-recover-failed-database.html
------------------------------
Stephen Hume
Sheffield Scientific LLC