RMAN系列(三),介质管理问题(四)

2014-11-24 15:53:27 · 作者: · 浏览: 6
ock_size specifies the size in bytes of each block written to the
backup file. The default is 16384.
-block_count specifies how many blocks will be written to the
backup file. The default is 100.
-proxy_file specifies the os file name, backup file name, os reserved size,
platform reserved size, block size, and block count for each
proxy file. For each proxy_file, the os_file_name and
bk_file_name parameters are mandatory, the other four
parameters are optional. If none of the four is specified,
either the default or the value specified with -os_res_size,
pl_res_size, block_size, block_count will be used. It some of
the four are the same as the values set with -os_res_size,
pl_res_size, block_size, and block_count, a letter 'g' or 'G'
can be used.
For example,
stksbt2 -os_res_size 10 -pl_res_size 20 -block_count 30
-proxy_file file1.osf file1.bkf g g g 100
then, for file1.osf, the backup file name is file1.bkf, the
os reserved size is 10 bytes, and the platform reserved size
is 20, block size is 16384 byte, and the block count is 100.
But in this case,
stksbt2 -proxy_file file1.osf file1.bkf g g g 100
-os_res_size 10 -pl_res_size 20 -block_count 30
for file1.osf, the os_res_size and pl_res_size will be the
default value, 0 (instead of 10 and 20), and the block_count
will be 100 (instead of 30) and the block_size will also be
the default, 16384.
-libname specifies the SBT library to test. sbttest loads library
using dlopen() call. If this option is not used, sbttest
tries to test against libobk.so. Otherwise uses statically
linked library.
Specify oracle.disksbt for oracle's disk SBT library.
Sbttest 实用程序已经相当完善。 现在,我们可以传递许多参数来测试MM系统的所有过程,包括命名要测试的数据库,修改sbttest 写入的数据块数目,以及处理sbttest 写入磁带的文件。 从命令提示符简单的输入sbttest 会给出所有可以使用的参数开关和简单的文本说明。
Sbttest 使用程序只适用于Unix 平台;在 windows 平台上,我们可以想Oracle Support 请求loadsbt.exe 实用程序。 遗憾的是,Loadsbt.exe 实用程序不具有与sbttest相同的性能,它只是简单的在搜索路劲中查找orasbt.dll 文件。 如果找到该文件,loadsbt.exe 实用程序会试图加载该文件,其加载方法与Oracle 在磁带备份操作期间加载的方法相同。 如果可以加载orasbt.dll 文件,loadsbt.exe 实用程序会通知用户,但它不会在磁带上写入数据块。 所以我们无法查看整个MM 配置工作。 因此,loadsbt.exe 的作用不如sbttest.