n this article we shall discuss about verifying and testing your database backups. We will be explaining concepts such as what, why and how about Database backups and methods to test the backup.
We have categorized it into the following four sections
What is a backup? Why backup? How to backup? How to test/validate your database backup � Recovery Strategies? Also read => All about Database testing
What is a backup?
Before we begin to learn more about backups, we need to understand about an organization's most important asset � Data. Considering your organization runs on Oracle database. To understand the term "database" you could refer to the Database Testing series here.
Data of an organization is the most integral part of an organization. Consider a retailing, banking company. They all have enormous amounts of data � user, system, etc. As a database administrator, System administrator or any personnel who has been assigned the job to protect this data should be aware of how important data is to an organization. How to make sure the data is always available? Backup this data.
A backup is an exact copy of your database which can help you reconstruct your data in case of any data loss.
Why Backup?
Consider a simple case where your banking organization who has data regarding millions of customers in terms of account numbers, names, nominees, bank balance and the organization lost all of their data, how would their customers react to it? How would the organization deal with the pressure of losing so much data? How would they be answerable to so many customers dissatisfaction?
This is why we backup this data so that in case of any failure of a disk (storage), disk controller (storage controller) we can always rely on our backup from where we can restore it into the database i.e. storage filesystem and not have customers lose any of their data.
Hypothetically speaking, suppose there are millions of customer and each of them performing millions of transactions and the database accidentally crashes and lose their data, would we ask all these customers to re-enter their data again? How would be cope with losing so much of data? That would be highly unacceptable.
Similarly, consider a telecommunications company which supports millions of customers and have all of their data regarding phone numbers, addresses, credit availed, pending payments. What if we lose all of their data? The company is doomed and would have to bear huge costs potentially bringing the organization to a halt. It would certainly be a huge catastrophe.
How to backup?
To backup data in an Oracle Database, we have several methods. They can be broadly classified as physical and logical backups
Method #1) Physical Backups:
3rd party backups � such as Veritas NetBackup, SAP , IBM Tivoli Manager, EMC, HP User managed backups � Backup of database using OS utilities such as copy( windows) , cp (unix). Oracle Secure Backup My favorite and the most preferred, recommended Oracle utility � Recover Manager(RMAN). Method #2) Logical backups:
Conventional Export/import utilities and Datapump utilities. A logical backup is a backup of logical data � objects such as tables, indexes etc which are constituents of a database independent of the location of the above objects. To understand physical and logical storage structures of a database you could refer this and this oracle documentations.
Which is the best method for Database Backup?
Each of these backup strategies has their own pros and cons and we shall not deal too much about them in this article.
We need to understand that unless you have a physical backup in place, just having a logical backup isn't always safe against physical data corruption, hardware storage issues. Having a valid, good physical backup makes it a good backup and recovery strategy. Always make sure you have a physical backup in place.
In reality, we can use any of the above methods but we always need to make sure we have a good backup and recovery strategy in place to avoid any unnecessary hiccups during the course of the operation of a database. Testing your back and recovery strategies on a mirrored test system is always advised so that we can predict the amount of time it takes to get your database up and running in case of any unforeseen situations.
In this article, we shall mainly focus on RMAN backups. This brings us to a point of knowing how exactly we perform backup.
How to Backup Oracle Database?
We can backup data either with help of Enterprise Manager (GUI) mode or through OS command line prompt. |