|
|
So, this is an interesting topic, and NOT a short story.
Given a complete and consistent set of files copy (including data files, log files, control info, etc.), an experienced DBA could recover database to a point-in-time (PIT, which related to the timepoint when the copy taken) or even current.
However, this process is NOT regular and can NOT be standardized and processed fixedly. Generally, this process needs kinds of manual determinations and operations which is not a simple command.
And, there are two important points need to be kept in mind. The first, are locks, which protect your online transactions. Locks cannot be represented by files in database, nor the transactions. So, a set of files copy can NOT represent transactions that are crossing thru the database (or, which are being processed in database). In other words, a FLASHCOPY or SNAPSHOT represents a static database image but nothing about transactions. Of course, log does make it. And you need to rebuild locks and current status to recover the transactions (detemine to commit or abort or backout) from logs, unfortunate, manually. And the second, is that the files copy made by OS is NOT known to database. This is relatively simple but still a challenge. Things like versioning of copy, coupling of data files and log files are complex.
Finally, a lot of efforts have been made by database vendors, based on development of new DISK technology. For example, BACKUP/RESTORE SYSTEM utilities introduced since DB2 for z/OS V8, and improved in DB2 9.
But, anyway, it is not yet an easy promise that recovery from files copy, which is too difficult for database vendors.
Keep Things Stupidly Simple, a golden rule of marketing and also technology.
[ 本帖最后由 Pythagoras 于 2008-11-13 12:41 编辑 ] |
|