You must periodically verify your backups to ensure that they are usable for recovery.
(一)Testing the Restoration of Data File Backups
The best way to test the usability of data file backups is to restore them to a separate host and attempt to open the database, performing media recovery if necessary. This option requires that you have a separate host available for the restore procedure.
(二)Running the DBVERIFY Utility
The name and location of DBVERIFY is dependent on your operating system. For example, to perform an integrity check on data file users01.dbf on Linux or UNIX, run the dbv command as follows:
% dbv file=users01.dbf
Sample dbv output follows:
DBVERIFY - Verification starting : FILE = users01.dbf
DBVERIFY - Verification complete
Total Pages Examined : 250
Total Pages Processed (Data) : 1
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 0
Total Pages Failing (Index): 0
Total Pages Processed (Other): 2
Total Pages Processed (Seg) : 0
Total Pages Failing (Seg) : 0
Total Pages Empty : 247
Total Pages Marked Corrupt : 0
Total Pages Influx : 0
本文介绍了两种确保数据库备份可用性的方法:一是通过在独立主机上恢复数据文件并尝试打开数据库来测试;二是利用DBVERIFY实用程序检查数据文件的完整性。
634

被折叠的 条评论
为什么被折叠?



