
(一)Windows 平台Client 操作步骤
1,检查oracle 数据库状态
sqlplus ”/as sysdba“
sqlplus>archive log list; (确定数据库归档模式已经打开)
sqlplus>select INSTANCE_NAME from v$instance (获得SID)
sqlplus>exit
cd $ORACLE_HOME
pwd (获得ORACLE_HOME)
2,拷贝脚本
(1)样本脚本目录:install_path\\NetBackup\\db_ext\\Oracle\\sample s
(2)将文件hot_database_backup.cmd,拷贝到 install_path\\scripts\\hot_database_backup.sh
(3)编辑脚本文件:如:c:\\program files\\veritas\\scripts\\hot_database_backup.sh
只需修改如下参数:
ORACLE_HOME=改为您的Oracle安装主目录
ORACLE_SID= 您的Oracle 实例名称
TARGET_CONNECT_STR=Oracle sysdba 用户名称 / 密码(对应修改成您的,也可先不修改,使用默认值)最后} 后覆盖修改为:
echo }
) > c:\\rman_cmd.txt
%RMAN% target %TARGET_CONNECT_STR% nocatalog msglog '%RMAN_LOG_FILE%' append (二)Master server 操作步骤 1,修改参数: Maximum jobs per client The following procedure shows how to set the Maximumjobsperclient attribute. 打开master server console: 1 In the left pane of the NetBackup Administration Console, expand NetBackup Management > Host Properties. 2 Select Master Server. 3 In the right pane, double-click the server icon. 4 Click Global Attributes. 5 Change the Maximum jobs per client value to 99. The Maximumjobs per client specifies the maximum number of concurrent backups that are allowed per client. The default is 1. 2,创建oracle 备份策略 3 If ■ Windows: In the left pane, right-click Policies and choose New Policy. ■ Java interface: In the left pane, click Policies. In the All Policies pane, right-click the master server, and click New Policy. 5 In the Add a New Policy dialog box, in the Policy name box, type a unique name for the new policy. 6 Click OK. 7 In the Add New Policy dialog box, in the Policy type list, select Oracle. 8 Complete the entries on the Attributes tab. 9 Add other policy information as follows: ■ Add schedules. See “About adding schedules to a NetBackup for Oracle policy” on page 47. ■ Add clients.,输入您的客户端名字 ■ Add templates or scripts to the backup selections list.:输入您的客户端的备份脚本路径及名称 10 When you have added all the schedules, clients, and backup selections you need, click OK.
