免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 9361 | 回复: 20
打印 上一主题 下一主题

[备份软件] legato 备份oracle的问题,请教大家 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-15 12:45 |只看该作者 |倒序浏览
legato 备份oracle时出错,错误信息如下:

oracle:RMAN:e:\back.bat:在媒体数据库中没有找到此存储集的完全备份;正在进行完全备份
C:\>ECHO OFF
EMC NetWorker Module for Oracle v4.5
Tue Jul 15 20:27:37 2008
NULL no output found in C:\Program Files\Legato\nsr\tmp\nsrnmostart.1216124857.1360.000001
Exiting with error:
Could not find RMAN at specified location.
见附件图:


client设置如下:
储存集:RMAN:e:\back.bat
备份命令:nsrnmo.bat

截图00.jpg (53.56 KB, 下载次数: 59)

截图00.jpg

论坛徽章:
0
2 [报告]
发表于 2008-07-15 14:41 |只看该作者
path加进去了吗

论坛徽章:
0
3 [报告]
发表于 2008-07-15 15:38 |只看该作者
加进去了
SET PATH=C:\Program Files\Legato\nsr\bin

论坛徽章:
0
4 [报告]
发表于 2008-07-15 16:05 |只看该作者
原帖由 sqlinux218 于 2008-7-15 15:38 发表
加进去了
SET PATH=C:\Program Files\Legato\nsr\bin



加oracle 命令rman.exe的path

论坛徽章:
0
5 [报告]
发表于 2008-07-15 16:47 |只看该作者
SET PATH=C:\oracle\product\10.2.0\db_1\BIN\
还提示错误,而且出现消方块的错误提示
已重试 1 次。
oracle:RMAN:e:\rman_back.txt:在媒体数据库中没有找到此存储集的完全备份;正在进行完全备份

C:\>ECHO OFF
'nsrnmostart' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������


脚本文件如下,在客户端使用RMAN,SEND 方式可以成功
connect target sys/oracle@orcl;
run {
set command id to 'xxx';
allocate channel t1 type 'sbt_tape';
allocate channel t2 type 'sbt_tape';
send 'NSR_ENV=(NSE_SERVER=backupserver,NSRNSR_DATA_VOLUME_POOL=Default)';
backup full filesperset 4
format '/FULL_%d_%U/'
(database);
release channel t1;
release channel t2;
}

论坛徽章:
0
6 [报告]
发表于 2008-07-15 16:56 |只看该作者
加到nsrnmo.bat中,把你的nsrnmo.bat贴出来

论坛徽章:
0
7 [报告]
发表于 2008-07-15 17:06 |只看该作者
networker的日志如下,请大家帮忙分析分析,谢谢

EMC NetWorker Module for Oracle v4.5
Wed Jul 16 00:57:55 2008
nwora_agent_get_parameters: Entering.
nwora_agent_get_parameters_from_getopt: Entering.
nwora_agent_get_parameters_from_getopt: Exiting.
nwora_agent_get_parameters_from_env: Entering.
nwora_agent_get_parameters_from_env: Exiting.
nwora_agent_set_fields_using_lnm_parms: Entering.
nwora_agent_parse_msglog_name: Exiting.
nwora_agent_read_res_file: Entering.
nwora_find_nt_nwres: Using the path C:\Program Files\Legato\nsr\res.
nwora_find_nt_nwtmp: Using the path C:\Program Files\Legato\nsr\tmp.
nwora_get_resource_from_res_file: Entering.
nwora_read_res_file_image: Entering.
nwora_read_res_file_image: Opening the NWORA resource file for reading.
nwora_get_res_file_lock: Entering.
nwora_get_res_file_lock: Checking to see if the lock file 'C:\Program Files\Legato\nsr\tmp\nwora.res.lck' exists.
nwora_get_res_file_lock: Locking file 'C:\Program Files\Legato\nsr\tmp\nwora.res.lck'.
nwora_get_res_file_lock: Exiting.
nwora_open_res_file: Entering.
nwora_open_res_file: Opening the NWORA resource file for reading.
nwora_open_res_file: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA header resource.
nwora_set_resource: Exiting.
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 1
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Adding the NWORA resource to the front of the list.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_NWPATH=C:\Program Files\Legato\nsr\bin
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_NWPATH=C:\Program Files\Legato\nsr\bin
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_NWPATH=C:\Program Files\Legato\nsr\bin
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLECAT_MODE=enabled
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLECAT_MODE=enabled
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLECAT_MODE=enabled
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_REMOVE_ON_FAILURE=FALSE
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_REMOVE_ON_FAILURE=FALSE
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_REMOVE_ON_FAILURE=FALSE
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLE_NLS_LANG=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLE_NLS_LANG=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLE_NLS_LANG=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLECAT_LOG_FILE=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLECAT_LOG_FILE=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLECAT_LOG_FILE=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLECAT_DEBUG_FILE=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLECAT_DEBUG_FILE=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLECAT_DEBUG_FILE=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_TMPDIR=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_TMPDIR=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_TMPDIR=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_BUNDLING=disabled
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_BUNDLING=disabled
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_BUNDLING=disabled
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_INCR_EXPIRATION=disabled
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_INCR_EXPIRATION=disabled
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_INCR_EXPIRATION=disabled
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA SID resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 3
        NSR_ORACLE_CONNECT_FILE=C:\oracle\product\10.2.0\connect.file
        NSR_ORACLE_HOME=C:\oracle\product\10.2.0
        NSR_ORACLE_LIB_PATH=Null
        NSR_ORACLE_SID=orcl
        NSR_ORACLE_TNS_ADMIN=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 3
        NSR_ORACLE_CONNECT_FILE=C:\oracle\product\10.2.0\connect.file
        NSR_ORACLE_HOME=C:\oracle\product\10.2.0
        NSR_ORACLE_LIB_PATH=Null
        NSR_ORACLE_SID=orcl
        NSR_ORACLE_TNS_ADMIN=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 3
        NSR_ORACLE_CONNECT_FILE=C:\oracle\product\10.2.0\connect.file
        NSR_ORACLE_HOME=C:\oracle\product\10.2.0
        NSR_ORACLE_LIB_PATH=Null
        NSR_ORACLE_SID=orcl
        NSR_ORACLE_TNS_ADMIN=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_close_res_file: Entering.
nwora_close_res_file: Closing the NWORA resource file.
nwora_close_res_file: Exiting.
nwora_release_res_file_lock: Entering.
nwora_release_res_file_lock: Releases the lock on 'C:\Program Files\Legato\nsr\tmp\nwora.res.lck'.
nwora_release_res_file_lock: Exiting.
nwora_read_res_file_image: Exiting.
nwora_get_resource_from_res_file: Getting the resource 'NSR_BUNDLING' of type '2' from the list.
nwora_get_resource_from_res_file: Exiting.
nwora_get_resource_from_res_file: Entering.
nwora_get_resource_from_res_file: Getting the resource 'NSR_INCR_EXPIRATION' of type '2' from the list.
nwora_get_resource_from_res_file: Exiting.
nwora_get_resource_from_res_file: Entering.
nwora_get_resource_from_res_file: Getting the resource 'NSR_TMPDIR' of type '2' from the list.
nwora_get_resource_from_res_file: Exiting.
The 'NSR_BUNDLING' and 'NSR_INCR_EXPIRATION' NWORA resource are both disabled.
nwora_agent_set_fields_using_lnm_parms: Exiting.
nwora_agent_check_parameters: Entering.
nwora_agent_check_parameters: Exiting.
nwora_agent_get_parameters: Exiting.
nwora_agent_setup_fds: Entering.
nwora_agent_setup_fds: Exiting.
The ID of the parent job is: 300
nwora_agent_setup_staging: Entering.
nwora_agent_setup_staging: Exiting.
nwora_agent_ss_start: Entering.
nwora_agent_start_rman: Entering.
nwora_set_RMAN_location: Entering.
nwora_set_RMAN_location: Setting the location of RMAN to 'C:\oracle\product\10.2.0\db_1\\bin'.
nwora_set_RMAN_location: Exiting with an error.
nwora_set_RMAN_location: Exiting.
nwora_agent_start_rman: Exiting with an error.
nwora_agent_start_rman: Exiting.
nwora_agent_ss_start: Exiting with an error.
nwora_agent_ss_start: Exiting.
nwora_agent_teardown_fds: Entering.
nwora_agent_load_message: Entering.
NULL no output found in C:\Program Files\Legato\nsr\tmp\nsrnmostart.1216141075.2600.000001
nwora_agent_load_message: Exiting.
nwora_agent_teardown_fds: Exiting.
nwora_agent_teardown_jobs: Entering.
Exiting with error:
Could not find RMAN at specified location.
nwora_agent_teardown_jobs: Exiting.
nwora_agent_teardown_staging: Entering.
nwora_agent_teardown_staging: Exiting.
Exiting with error:
Could not find RMAN at specified location.
Exiting with return code: -1
EMC NetWorker Module for Oracle v4.5
Wed Jul 16 00:57:55 2008
nwora_agent_get_parameters: Entering.
nwora_agent_get_parameters_from_getopt: Entering.
nwora_agent_get_parameters_from_getopt: Exiting.
nwora_agent_get_parameters_from_env: Entering.
nwora_agent_get_parameters_from_env: Exiting.
nwora_agent_set_fields_using_lnm_parms: Entering.
nwora_agent_parse_msglog_name: Exiting.
nwora_agent_read_res_file: Entering.
nwora_find_nt_nwres: Using the path C:\Program Files\Legato\nsr\res.
nwora_find_nt_nwtmp: Using the path C:\Program Files\Legato\nsr\tmp.
nwora_get_resource_from_res_file: Entering.
nwora_read_res_file_image: Entering.
nwora_read_res_file_image: Opening the NWORA resource file for reading.
nwora_get_res_file_lock: Entering.
nwora_get_res_file_lock: Checking to see if the lock file 'C:\Program Files\Legato\nsr\tmp\nwora.res.lck' exists.
nwora_get_res_file_lock: Locking file 'C:\Program Files\Legato\nsr\tmp\nwora.res.lck'.
nwora_get_res_file_lock: Exiting.
nwora_open_res_file: Entering.
nwora_open_res_file: Opening the NWORA resource file for reading.
nwora_open_res_file: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA header resource.
nwora_set_resource: Exiting.
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 1
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Adding the NWORA resource to the front of the list.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_NWPATH=C:\Program Files\Legato\nsr\bin
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_NWPATH=C:\Program Files\Legato\nsr\bin
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_NWPATH=C:\Program Files\Legato\nsr\bin
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLECAT_MODE=enabled
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLECAT_MODE=enabled
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLECAT_MODE=enabled
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_REMOVE_ON_FAILURE=FALSE
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_REMOVE_ON_FAILURE=FALSE
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_REMOVE_ON_FAILURE=FALSE
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLE_NLS_LANG=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLE_NLS_LANG=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLE_NLS_LANG=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLECAT_LOG_FILE=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLECAT_LOG_FILE=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLECAT_LOG_FILE=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_ORACLECAT_DEBUG_FILE=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_ORACLECAT_DEBUG_FILE=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_ORACLECAT_DEBUG_FILE=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_TMPDIR=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_TMPDIR=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_TMPDIR=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_BUNDLING=disabled
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_BUNDLING=disabled
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_BUNDLING=disabled
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA parameter resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 2
        NSR_INCR_EXPIRATION=disabled
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 2
        NSR_INCR_EXPIRATION=disabled
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 2
        NSR_INCR_EXPIRATION=disabled
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_set_resource: Entering.
nwora_set_resource: Setting a NWORA SID resource.
nwora_set_resource: The NWORA resource has been set to:
        type: 3
        NSR_ORACLE_CONNECT_FILE=C:\oracle\product\10.2.0\connect.file
        NSR_ORACLE_HOME=C:\oracle\product\10.2.0
        NSR_ORACLE_LIB_PATH=Null
        NSR_ORACLE_SID=orcl
        NSR_ORACLE_TNS_ADMIN=Null
nwora_set_resource: Exiting.
nwora_read_res_file_image: Obtained resource:
        type: 3
        NSR_ORACLE_CONNECT_FILE=C:\oracle\product\10.2.0\connect.file
        NSR_ORACLE_HOME=C:\oracle\product\10.2.0
        NSR_ORACLE_LIB_PATH=Null
        NSR_ORACLE_SID=orcl
        NSR_ORACLE_TNS_ADMIN=Null
nwora_update_resource_list: Entering.
nwora_update_resource_list: Adding NWORA resource:
        type: 3
        NSR_ORACLE_CONNECT_FILE=C:\oracle\product\10.2.0\connect.file
        NSR_ORACLE_HOME=C:\oracle\product\10.2.0
        NSR_ORACLE_LIB_PATH=Null
        NSR_ORACLE_SID=orcl
        NSR_ORACLE_TNS_ADMIN=Null
nwora_update_resource_list: Dup'ing the NWORA resource.
nwora_update_resource_list: Exiting.
nwora_close_res_file: Entering.
nwora_close_res_file: Closing the NWORA resource file.
nwora_close_res_file: Exiting.
nwora_release_res_file_lock: Entering.
nwora_release_res_file_lock: Releases the lock on 'C:\Program Files\Legato\nsr\tmp\nwora.res.lck'.
nwora_release_res_file_lock: Exiting.
nwora_read_res_file_image: Exiting.
nwora_get_resource_from_res_file: Getting the resource 'NSR_BUNDLING' of type '2' from the list.
nwora_get_resource_from_res_file: Exiting.
nwora_get_resource_from_res_file: Entering.
nwora_get_resource_from_res_file: Getting the resource 'NSR_INCR_EXPIRATION' of type '2' from the list.
nwora_get_resource_from_res_file: Exiting.
nwora_get_resource_from_res_file: Entering.
nwora_get_resource_from_res_file: Getting the resource 'NSR_TMPDIR' of type '2' from the list.
nwora_get_resource_from_res_file: Exiting.
The 'NSR_BUNDLING' and 'NSR_INCR_EXPIRATION' NWORA resource are both disabled.
nwora_agent_set_fields_using_lnm_parms: Exiting.
nwora_agent_check_parameters: Entering.
nwora_agent_check_parameters: Exiting.
nwora_agent_get_parameters: Exiting.
nwora_agent_setup_fds: Entering.
nwora_agent_setup_fds: Exiting.
The ID of the parent job is: 300
nwora_agent_setup_staging: Entering.
nwora_agent_setup_staging: Exiting.
nwora_agent_ss_start: Entering.
nwora_agent_start_rman: Entering.
nwora_set_RMAN_location: Entering.
nwora_set_RMAN_location: Setting the location of RMAN to 'C:\oracle\product\10.2.0\db_1\\bin'.
nwora_set_RMAN_location: Exiting with an error.
nwora_set_RMAN_location: Exiting.
nwora_agent_start_rman: Exiting with an error.
nwora_agent_start_rman: Exiting.
nwora_agent_ss_start: Exiting with an error.
nwora_agent_ss_start: Exiting.
nwora_agent_teardown_fds: Entering.
nwora_agent_load_message: Entering.
NULL no output found in C:\Program Files\Legato\nsr\tmp\nsrnmostart.1216141075.2216.000001
nwora_agent_load_message: Exiting.
nwora_agent_teardown_fds: Exiting.
nwora_agent_teardown_jobs: Entering.
Exiting with error:
Could not find RMAN at specified location.
nwora_agent_teardown_jobs: Exiting.
nwora_agent_teardown_staging: Entering.
nwora_agent_teardown_staging: Exiting.
Exiting with error:
Could not find RMAN at specified location.
Exiting with return code: -1

论坛徽章:
0
8 [报告]
发表于 2008-07-15 17:09 |只看该作者
nsrnmo.bat如下:
ECHO OFF

REM

REM $Id: nsrnmo.bat,v 1.2.32.3.4.2 2007/04/19 18:45:14 lecoue Exp $  Copyright (c) 2004-2007 EMC Corporation.

REM

REM All rights reserved.

REM

REM nsrnmo.bat

REM

REM This script is part of the EMC NetWorker Module for Oracle.

REM Modification of this script should be done with care and only after reading

REM the administration manual included with this product.

REM

REM Users should be aware that no system environment variables will be

REM inherited from a parent process. Any environment variables to be used

REM in this file have to be set in this file.

REM

REM This script should only be run as part of a scheduled savegroup.

REM

REM Returns 0 on success; 1 on failure.

REM



REM

REM Make environment variable changes local

REM

SETLOCAL



REM

REM Configuration variables, modifiable by users.

REM



REM

REM REQUIRED Variable: ORACLE_HOME

REM

REM Default value: none (site specific)

REM

REM Description: Specifies where the Oracle Server installation is located.

REM                 It is a requirement that rman or rman80 be located in

REM                 %ORACLE_HOME%\bin.

REM

REM Samples:

REM                 SET ORACLE_HOME=e:\orant

REM

SET ORACLE_HOME=C:\oracle\product\10.2.0\db_1\



REM

REM REQUIRED Variable: PATH

REM

REM Default value: none (site and platform specific)

REM

REM Description: Set up the PATH environment variable. This must be

REM                 configured to include the path to "nsrnmostart" and "save".

REM

REM Samples:

REM                 SET PATH=e:\orant\bin;c:\win32app\nsr\bin

REM                 SET PATH=e:\orant\bin;c:\Program Files\nsr\bin

REM                 SET PATH=e:\orant\bin;c:\Program Files\Legato\nsr\bin

REM

SET PATH=C:\Program Files\Legato\nsr\bin;C:\Program Files\Legato\nsr\bin



REM

REM Optional Variable: ORACLE_SID

REM

REM Default value: NONE (site specific)

REM

REM Description: Specifies the SID of the Oracle database being backed up.

REM It is a requirement that rman be located in ORACLE_HOME/bin.  It is

REM required by proxy copy backups when catalog synchronization is enabled.

REM

REM Samples:

REM       ORACLE_SID=orcl901

REM

SET ORACLE_SID=orcl



REM

REM Optional Variable: NLS_LANG

REM

REM Default value: NONE (site specific)

REM

REM Description: This environment variable specifies the language,

REM territory, and character set used by the Oracle Database.  

REM See Oracle National Language Support for more information.

REM

REM Example:

REM               NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1

REM

REM SET NLS_LANG=



REM

REM Optional Variable: NSR_RMAN_ARGUMENTS

REM

REM Default value: none (site specific)

REM

REM Description: Provide extra rman parameters.

REM                 You must enclose the command in quotes or it will not be

REM                 passed correctly to rman.

REM

REM Samples:

REM                 SET NSR_RMAN_ARGUMENTS="nocatalog msglog 'c:\Program Files\Legato\nsr\applogs\msglog.log' append"

REM

REM                 SET NSR_RMAN_ARGUMENTS="nocatalog"

REM

SET NSR_RMAN_ARGUMENTS="nocatalog msglog 'c:\Program Files\Legato\nsr\applogs\msglog.log' append"



REM

REM Optional Variable: NSR_RMAN_OUTPUT

REM

REM Default value: NONE (site specific)

REM

REM Description: Provide option to capture the RMAN standard output

REM                  if RMAN "msglog" or "log" command line option is

REM                 not set. The connect strings will be hidden in this file.

REM

REM Samples:

REM               SET NSR_RMAN_OUTPUT="c:\Program Files\Legato\nsr\applogs\msglog.log append"

REM

REM               SET NSR_RMAN_OUTPUT="c:\Program Files\Legato\nsr\applogs\msglog.log"

REM

SET NSR_RMAN_OUTPUT="c:\Program Files\Legato\nsr\applogs\msglog.log"



REM

REM Optional Variable: NSR_SB_DEBUG_FILE

REM

REM Default value: none (site specific)

REM

REM Description: To enable debugging output for NMO scheduled backups set

REM                 the following to an appropriate path and file name.

REM                 Set this variable for debugging purposes only

REM Samples:

REM                 SET NSR_SB_DEBUG_FILE=c:\Program Files\Legato\nsr\applogs\nsrnmostart.log

REM

SET NSR_SB_DEBUG_FILE=c:\Program Files\Legato\nsr\applogs\nsrnmostart.log



REM

REM Optional Variable: PRECMD

REM Default value: NONE

REM Description: This variable can be used to run a command or command script

REM                 before nsrnmostart. It will be launched once for every saveset

REM                 entered in the client setup.

REM

SET PRECMD=



REM

REM Optional Variable: POSTCMD

REM Default value: NONE

REM Description: This variable can be used to run a command or command script

REM                 after nsrnmostart has completed. It will be launched once for

REM                 every saveset entered in the client setup.

REM

SET POSTCMD=



REM

REM Optional Variable: TNS_ADMIN

REM Default value: NONE

REM Description: This variable needs to be set if Oracle Net configuration

REM                         files are not located in default locations.

REM

SET TNS_ADMIN=



REM

REM Execute the backup command

REM

SET args=%*

nsrnmostart %args%



REM

REM Cleanup from the command

REM

ENDLOCAL

论坛徽章:
0
9 [报告]
发表于 2008-07-15 17:12 |只看该作者
ORACLE_HOME和PATH参数是按文档中的提示设置的啊

ORACLE_HOME
此参数是每个定时备份的强制参数。在 nsrnmo 脚本文件中,将 ORACLE_HOME 设
置为 Oracle Server 安装的主目录。 RMAN 可执行文件 rman 必须位于
$ORACLE_HOME 的子目录 bin 中。
例如,如果 Oracle Server 安装位于目录 /disk3/oracle/app/oracle/product/9.2 中,
则必须按如下所示在 nsrnmo 脚本中设置 ORACLE_HOME:
ORACLE_HOME=/disk3/oracle/app/oracle/product/9.2
PATH
此参数是每个定时备份的强制参数。在 nsrnmo 脚本文件中,将 PATH 设置为包含
Oracle Server 主机上 NMO nsrnmostart 程序和 NetWorker save 程序的目录的路径名。
例如,在 Solaris Oracle Server 上,如果 nsrnmostart 程序位于 /usr/sbin 目录中,而
save 程序位于 /usr/sbin/nsr 中,则在 nsrnmo 脚本中将 PATH 设置为以下类型的值:
PATH=/usr/sbin:/usr/sbin/nsr

论坛徽章:
0
10 [报告]
发表于 2008-07-15 17:48 |只看该作者
把ORACLE -HOME/BIN加进PATH去
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP