|
|
原帖由 Pythagoras 于 2008-11-18 11:32 发表 ![]()
I know nothing about ORACLE, and few about DB2 LUW.
But I know FlashCopy without stopping database, this could be RECOVERed, with a little bit of transaction data loss while data consistency is guaranteed (on DB2 z/OS). And you just need to use DR plan to restart DB2, not normal restart, it plays well.
And a tip, you should use FlashCopy COPY option. The example shown above sounds like FC NO COPY.
Global Mirroring, aka, DR implementation in many organization, is able to restart and recover the database up to the latest transaction. Although Global Mirroring is also a continuous synchronization of the primary database at the storage level, the implementation is much more complicated, and not just a simple snapclone or flashcopy of the primary database, and it requires more layer than storage synchronization.
A flashcopy without stopping database but with a write suspend to the database is a valid option for DB2 backup, but will a flashcopy without a write suspend to the databasebe recoverable? I doubt so. Flashcopy is just a fast way of cloning the image at the storage level, and it by itself has no mechamism to ensure database consistency.
In a test DB2 database, I did a write suspend to the database, and manually copied all the database files using OS command, and I was able to recover this database using my slow-copied image. However, I will not be able to use an image created with copy-without-write-suspend to recover the database.
Maybe we can also think in another way, the db2 backup command is a db2 "copy" command to copy all the relavent files that DB2 itself can understand and intepret to re-create the database.
The key point is, DB2 or Oracle has no way to understand what created at the storage (without DB intervention). The mechamism of a storage level copy/synchronization has no meaning for database. |
|