networker DEBUG使用
本帖最后由 ioriakyo 于 2014-8-19 11:19 编辑
nsr_debug_level=0\1\2(默认等级为0)
NSR_DEBUG_FILE(DEBUG文件产生参数)
例:
connect catalog mailto:rman/rman@rman]rman/rman@rman;
connect target oraback/orasys;
run
{
allocate channel t1 type 'sbt_tape'
parms 'ENV=(NSR_DATA_VOLUME_POOL=OraFull,NSR_SERVER=BACKUPSERVER,NSR_CLIENT=TEST,NSR_DEBUG_LEVEL=2,NSR_DEBUG_FILE=/nsr/applogs/debugfile.log)';
# set limit channel t1 kbytes 512000;
allocate channel t2 type 'sbt_tape'
parms 'ENV=(NSR_DATA_VOLUME_POOL=OraFull,NSR_SERVER=BACKUPSERVER,NSR_CLIENT=TEST,NSR_DEBUG_LEVEL=2,NSR_DEBUG_FILE=/nsr/applogs/debugfile.log)';
backup full database
filesperset 1
format 'dbf_%t_%s_%p';
sql 'alter system archive log current';
release channel t1;
release channel t2;
}
主要用于备份异常时的跟踪,生成相关日志文件便于查看!