|
| Home | Website Design | WordPress Blogs | eCommerce | Programming | Hosting | Portfolio | Resources | Site Map | Blog | Contact Us |
|
Home >> Library & Articles >> Dealing With Database Corruption
Library & ArticlesDealing With Database CorruptionDatabase corruption consists of errors or damage to a database. A corrupt database may lose data, fail to perform correctly or become inaccessible. Databases of all kinds can become corrupted. Some are more vulnerable to corruption than others. As an example, a Microsoft Access database, which is intended for smaller databases on smaller networks, is more vulnerable than Microsoft SQL Server, which is intended for larger databases on larger networks. Microsoft SQL Server has built-in functionality to provide greater protection against database corruption. A database can become corrupt due to various reasons such as:
Do not ignore database corruption. Take immediate steps to preserve and recover the data in the database and to repair the database. If the database is prone to corruption, consider investing in a more fault tolerant database application. Avoiding Corruption: There are many steps that can be taken to avoid database corruption.
Backing Up Databases: The first and best protection against database corruption is to routinely and frequently backup a database. Where data is vital, this should be done at least daily. Invest in a good tape backup system and set it up to perform backups every day. Rotate to a new tape each day - do not simply overwrite the same tape over and over again. As a precaution, backup the database to CD. Store the tape backups in a safe place, preferably off-site. Keep the CD copy on site. Test the backups to make sure that they are functional. Do not just assume that they are. If data is critical, consider investing in more sophisticated backup systems such as creating mirrors of the database in real-time. Repairing Database Corruption: The data recovery options available to you depend on what tools you have for your database application. Read the documentation thoroughly before you start using the recovery tools and follow the instructions carefully. The first thing you must do when you suspect you have a damaged database is to set aside any old backups of the database. Do not overwrite them. If possible, work from a copy of the backup in case the recovery process fails and further damage occurs. If you successfully recover a database, you should immediately back it up. Then run through the list of possible reasons for database corruption and see if you can find what might have caused the problem. Once a database has been corrupted, you must take extra precautions with your data. This is because even though recovery may seem to be successful and your database may appear to be functioning normally, the database may still be damaged. In extreme situations, you may have to extract and repair your data and then restore it to a fresh, undamaged copy of the database design. Conclusion: Your database is always vulnerable. This just goes with using electronic data systems. A database can become corrupted at any time for no discernible reason. Your first line of defense is always your backup strategy. Make sure it is adequate. Do not assume that your backups are functional. Test your backups to make sure that they are viable. Finally, keep in mind that database applications are not created equally. More sophisticated database applications have fault tolerance built into them and are less prone to corruption. If your data is important, you should be using a system that provides greater protection and capability. |
| ||||||||||||||||||||