Symptoms :
- 840 error on recovery
- Database marked as not recovered (status bit 64) and "suspect" (bit 256)
- Recovery for that database fails
- Adaptive server cannot activate a device during startup recovery of a database
- Possible cause :
- Device offline , busy , damaged , removed
- Network problems
- file permission problem
- check ASE error log & OS error log to find type of device problem
- login to ASE server and check databse affected & its status "not recovered" or "suspect".
- If the suspect device is still usable and data remain on device :-
- Dignose and fix the device problem if necessary.
- reset sysdatabases.status by manually turning off bit 256 , use below command
- sp_configure "allow update to system tables",1
- go
- begin tran
- update sysdatabases set status = status &~ 256
- where dbid =db_id('sales')
- -----check sysdbabases
- commit tran
- sp_configure "allow update to system tables",0
- go
- sysdatabases.status bit 64(offline) will be reset automatically during recovery.
- If data device or log device are unusable , it is necessary to go to backups.