The Axxon PSIM database can go into Suspect mode because of a sudden server reboot or file system damage.
Image Modified
To restore the database from this mode, do the following:
- Check system disk for errors:
- run command line as administrator;
- enter the command <chkdsk c:> to search for errors;
- if there are errors, use the </f> parameter to fix them;
- perform step b again to recheck the system disk.
- If no errors were found at step 1, start the recovery:
- Launch Microsoft SQL Server Management Studio Express (SSMSE).
- Connect to the required MS SQL instance.
Image Modified - Click the New Query button:
Image Modified
- In the window that opens, enter the following commands one by one:
EXEC sp_resetstatus '
...
- PSIM'
ALTER DATABASE
...
- PSIM SET EMERGENCY
Image Modified
- After you enter the commands, click the
...
-
Image Modified button. - Click the New Query button.
- In the window that opens, enter the following commands:
DBCC CHECKDB('
...
- PSIM')
ALTER DATABASE
...
- PSIM SET SINGLE_USER_WITH_ROLLBACK IMMEDIATE
DBCC CheckDB('
...
- PSIM', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE
...
- PSIM SET MULTI_USER
Image Modified After you enter the commands, click the
Image Modified button.
The recovery process will start.
Info |
---|
|
To check the recovery status, you need to create a request. You can do it by clicking the New Query button in a new window and entering the following command: SELECT [command] ,[start_time] ,[percent_complete] ,[estimated_completion_time]/60000. AS [estimated_completion_time_min] FROM sys.dm_exec_requests WHERE [command] LIKE '%DBCC%'
Image Modified After you enter the commands, click the Image Modified button. After that, a line containing the percentage of completion and the remaining time will appear in the window below. To refresh the line, click the Image Modifiedbutton. |
As a result, the Axxon PSIM database will be restored.