Verifying User-Managed Data File Backups

本文介绍了两种确保数据库备份可用性的方法:一是通过在独立主机上恢复数据文件并尝试打开数据库来测试;二是利用DBVERIFY实用程序检查数据文件的完整性。

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

Error unpacking rpm package pesign-115-6.el9.x86_64 Installing : strace-6.12-1.el9.x86_64 17/23 error: unpacking of archive failed on file /usr/bin/authvar;6873e1d2: cpio: open failed - No such file or directory error: pesign-115-6.el9.x86_64: install failed Error unpacking rpm package strace-6.12-1.el9.x86_64 Installing : rpm-sign-4.16.1.3-38.el9.x86_64 18/23 error: unpacking of archive failed on file /usr/bin/strace;6873e1d2: cpio: open failed - No such file or directory error: strace-6.12-1.el9.x86_64: install failed Error unpacking rpm package rpm-sign-4.16.1.3-38.el9.x86_64 Installing : patchutils-0.4.2-7.el9.x86_64 19/23 error: unpacking of archive failed on file /usr/bin/rpmsign;6873e1d2: cpio: open failed - No such file or directory error: rpm-sign-4.16.1.3-38.el9.x86_64: install failed Error unpacking rpm package patchutils-0.4.2-7.el9.x86_64 Installing : ltrace-0.7.91-43.el9.x86_64 20/23 error: unpacking of archive failed on file /usr/bin/combinediff;6873e1d2: cpio: symlink failed - No such file or directory error: patchutils-0.4.2-7.el9.x86_64: install failed Error unpacking rpm package ltrace-0.7.91-43.el9.x86_64 Installing : intltool-0.51.0-20.el9.noarch 21/23 error: unpacking of archive failed on file /usr/bin/ltrace;6873e1d2: cpio: open failed - No such file or directory error: ltrace-0.7.91-43.el9.x86_64: install failed Error unpacking rpm package intltool-0.51.0-20.el9.noarch Installing : diffstat-1.64-6.el9.x86_64 22/23 error: unpacking of archive failed on file /usr/bin/intltool-extract;6873e1d2: cpio: open failed - No such file or directory error: intltool-0.51.0-20.el9.noarch: install failed Error unpacking rpm package diffstat-1.64-6.el9.x86_64 Installing : byacc-2.0.20210109-4.el9.x86_64 23/23 error: unpacking of archive failed on file /usr/bin/diffstat;6873e1d2: cpio: open failed - No such file or directory error: diffstat-1.64-6.el9.x86_64: install failed Error unpacking rpm package byacc-2.0.20210109-4.el9.x86_64 Verifying : asciidoc-9.1.0-3.el9.noarch 1/23 Verifying : byacc-2.0.20210109-4.el9.x86_64 2/23 Verifying : diffstat-1.64-6.el9.x86_64 3/23 Verifying : fribidi-1.0.10-6.el9.2.x86_64 4/23 Verifying : gdb-16.3-2.el9.x86_64 5/23 Verifying : gdb-headless-16.3-2.el9.x86_64 6/23 Verifying : gdk-pixbuf2-2.42.6-4.el9.x86_64 7/23 Verifying : graphviz-2.44.0-26.el9.x86_64 8/23 Verifying : gtk-update-icon-cache-3.24.31-8.el9.x86_64 9/23 Verifying : gtk2-2.24.33-8.el9.x86_64 10/23 Verifying : intltool-0.51.0-20.el9.noarch 11/23 Verifying : ltrace-0.7.91-43.el9.x86_64 12/23 Verifying : nss-tools-3.101.0-10.el9.x86_64 13/23 Verifying : pango-1.48.7-3.el9.x86_64 14/23 Verifying : patchutils-0.4.2-7.el9.x86_64 15/23 Verifying : pesign-115-6.el9.x86_64 16/23 Verifying : source-highlight-3.1.9-12.el9.x86_64 17/23 Verifying : valgrind-1:3.25.1-1.el9.x86_64 18/23 Verifying : valgrind-gdb-1:3.25.1-1.el9.x86_64 19/23 Verifying : valgrind-scripts-1:3.25.1-1.el9.x86_64 20/23 Verifying : rpm-sign-4.16.1.3-38.el9.x86_64 21/23 Verifying : shared-mime-info-2.1-5.el9.x86_64 22/23 Verifying : strace-6.12-1.el9.x86_64 23/23 Failed: asciidoc-9.1.0-3.el9.noarch byacc-2.0.20210109-4.el9.x86_64 diffstat-1.64-6.el9.x86_64 fribidi-1.0.10-6.el9.2.x86_64 gdb-16.3-2.el9.x86_64 gdb-headless-16.3-2.el9.x86_64 gdk-pixbuf2-2.42.6-4.el9.x86_64 graphviz-2.44.0-26.el9.x86_64 gtk-update-icon-cache-3.24.31-8.el9.x86_64 gtk2-2.24.33-8.el9.x86_64 intltool-0.51.0-20.el9.noarch ltrace-0.7.91-43.el9.x86_64 nss-tools-3.101.0-10.el9.x86_64 pango-1.48.7-3.el9.x86_64 patchutils-0.4.2-7.el9.x86_64 pesign-115-6.el9.x86_64 rpm-sign-4.16.1.3-38.el9.x86_64 shared-mime-info-2.1-5.el9.x86_64 source-highlight-3.1.9-12.el9.x86_64 strace-6.12-1.el9.x86_64 valgrind-1:3.25.1-1.el9.x86_64 valgrind-gdb-1:3.25.1-1.el9.x86_64 valgrind-scripts-1:3.25.1-1.el9.x86_64 Error: Transaction failed报错了
07-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值