Quote:
Originally Posted by koli1980
File aaaaaaaa.cnf is corrupted allso in the backup server. The backup of imadb is never done before so we cannot replace that file. Is thet any other way to solve this problem?
|
Koli,
You have one, perhap two options. The first option is to recreate imadb. Assuming you have not added any new tables this is quite simple to do, although it will require you bring down the Ingres installation for part of it. The second option depends on whether you make use of VisualDBA, the GUI DBA tool. If you do then there is no second option. If you don't you can kill the "rmcmd.exe" process and prevent it from starting up. Start up is controlled in (V)CBF under "Remote Command", set it to 0 so the next time Ingres starts the "rmcmd.exe" process does not start. Admittedly option 2 is only a temporary measure. But it will stop rmcmd from being a problem process.
Rebuilding imadb requires you bring down Ingres. It also requires you have a current backup of your installation as we might need to manually delete some files from the data area. If something goes wrong you will need to make use of that backup to get to the last known good point before you tried to delete/recreate imadb.
- Try to execute the following command, with the rmcmd process stopped:
Code:
destroydb -u$ingres imadb
- If that works then go to step 8
- If it failed or hangs you will need to shut down Ingres
- With Ingres shutdown issue the following command:
Code:
del /s PATH_TO_INGRES\ingres\data\default\imadb
where PATH_TO_INGRES is the Installation directory for ingres, also referred to as II_SYSTEM.
- In CBF make sure the start-up count for "Remote Command" is 0
- Start Ingres
- Execute:
Code:
destroydb -u$ingres imadb
- Recreate the database::
Code:
createdb -u$ingres imadb -fnofeclients
- Put the IMA tables back:
Code:
sql imadb -u$ingres < %II_SYSTEM%\ingres\vdba\makiman.sql
- Backup the ima database using
- In CBF set the startup count for "Remote Command" to 1
- Manually start rmcmd using:
That list above should recreate and backup the imadb database. However I must stress that you should have a good system backup (with Ingres shut-down) before you attempt the above.
regards
grant