- 论坛徽章:
- 0
|
我现在是用legato7.3备份一个oracle数据库,backup server是windows,oracle server是linux,
现在已经在windows上建立了对应的Group,并且添加了对应的client,在Save set里加入了备份脚本的路径:/nsr/scripts/database。并且command中也写上了nsrnmotest(参数已修改,放在了/etc下)。
现在是备份linux上的文件没有问题,但是备份oracle不能成功。
database备份脚本:
#connect target /;
#connect rcvcat nocatalog;
run{
allocate channel ch00 type 'SBT_TAPE';
send channel ch00 'NSR_ENV=(NSR_SERVER=hcxf1,NSR_GROUP=Oracle)';
backup full filesperset 4
format '/full_%d_%U/'
(database);
sql 'alter system archive log current';
release channel ch00;
allocate channel ch00 type 'SBT_TAPE';
backup archivelog all;
release channel ch00;
}
nsrnmostart.log的报错输出:
NetWorker Module for Oracle v4.2
Tue Nov 28 20:31:51 2006
Entering Function nwora_process_calling_args
argc = 18
Calling Summary
argv[ 0] = nsrnmostart
argv[ 1] = -s
argv[ 2] = hcxf1
argv[ 3] = -g
argv[ 4] = Oracle
argv[ 5] = -LL
argv[ 6] = -m
argv[ 7] = dataserver
argv[ 8] = -t
argv[ 9] = 1164715656
argv[10] = -l
argv[11] = incr
argv[12] = -q
argv[13] = -W
argv[14] = 78
argv[15] = -N
argv[16] = /nsr/scripts/database
argv[17] = /nsr/scripts/database
Environment Read by nsrnmostart
ORACLE_SID = test
ORACLE_HOME = /opt/app/oracle/product/9.2.0
PRECMD =
POSTCMD =
PATH = /usr/sbin:/bin:/usr/bin
NSR_RMAN_ARGUMENTS =
NSR_RMAN_OUTPUT =
nwora_parse_msglog_name: is not in a valid format.
Leaving Function nwora_process_calling_args
Entering Function nwora_scan_rman_script
The RMAN script is: /nsr/scripts/database
Checking rman script /nsr/scripts/database for validity.
found connect target string.
found connect catalog string.
found allocate channel: allocate channel ch00 type 'SBT_TAPE';
found allocate channel: allocate channel ch00 type 'SBT_TAPE';
Completed checking of rman script.
Leaving Function nwora_scan_rman_script
Pre-processing command succeeded.
Pre-processing command succeeded.
Entering Function nwora_nsrnmostart_rman
nwora_set_RMAN_location: Setting the location of RMAN to '/opt/app/oracle/product/9.2.0/bin'.
nwora_set_RMAN_location: The location of RMAN is: /opt/app/oracle/product/9.2.0/bin
nwora_set_RMAN_location: The name of the RMAN binary is: rman
nwora_set_RMAN_args: Setting the RMAN args:
send 'NSR_ENV=(NSR_SERVER=hcxf1,
NSR_GROUP=Oracle,
NSR_SAVESET_NAME=/nsr/scripts/database)'
nwora_set_RMAN_args: 1 arguments set.
cmd_args = send 'NSR_ENV=(NSR_SERVER=hcxf1,
NSR_GROUP=Oracle,
NSR_SAVESET_NAME=/nsr/scripts/database)'
rman_script = /nsr/scripts/database
saveset_name = /nsr/scripts/database
Launching backup process
nwora_run_RMAN: Writing out the RMAN script.
nwora_run_RMAN: The argv[] is:
/opt/app/oracle/product/9.2.0/bin/rman
send 'NSR_ENV=(NSR_SERVER=hcxf1,
NSR_GROUP=Oracle,
NSR_SAVESET_NAME=/nsr/scripts/database)'
cmdfile
'/nsr/scripts/database'
nwora_run_RMAN: The envp is:
nwora_run_RMAN: Spawning the RMAN session.
nwora_spawn_RMAN: Creating the communication pipe.
nwora_spawn_RMAN: Making the pipe non-blocking.
nwora_spawn_RMAN: Spawning the RMAN process.
nwora_spawn_RMAN: Spawned the RMAN process 8723.
Backup process failed: RMAN exited with return code '1'.
nwora_nsrnmostart_rman: RMAN script execution is not successful. RMAN exited with return code '1'.
Leaving Function nwora_nsrnmostart_rman
Post-processing command succeeded.
Exiting with return code: -2
熟悉legato的大侠帮忙看看吧。谢谢了! |
|