环境:一台生产服务器;一台备份服务器;一台磁带机
操作系统:win2003ser
软件:VERITAS BE11
操作步骤:
一、在备份服务器上安装Symantec Backup Exec 11d for Windows Servers
二、在备份服务器上面通过远程安装方式往生产服务上安装Remote Agent
三、在生产服务上面配置Remote Agent(在开始——程序菜单里面找agent程序),生产服务上面配置Remote Agent
上图的用户名和IP地址,要设置为生产服务器端的数据。不是备份服务器的数据。
四、在备份服务器上面操作:
1、安装Oracle9i,新建库tape(用来记录备份的信息)
2、配置RMAN
创建表空间:
Create tablespace cattbs datafile ‘D:\oracle\oradata\tape\cattbs01.dbf’
Size 20m extent management local autoallocate;
创建一个包含目录模式的用户:
Create user rman92 identified by rman
Temporary tablespace temp
Default tablespace cattbs
Quota unlimited on cattbs;
授权:
grant connect,recovery_catalog_owner to rman92;
在RMAN提示符下创建一个目录:
rman> connect catalog rman92/rman@tape
rman>create catalog tablespace cattbs;
注册生产数据库:
rman
rman>connect catalog rman92/rman@tape
rman>connect target sys/密码@yy(需要配置tns)
rman>register database;
List incarnation 查看已经注册的数据库
Report schema查看数据库yy的注册信息
五、安装好VERITAS、ORACLE,配置好RMAN、AGENT后。把磁带放进磁带机,执行备份脚本:
connect catalog rman92/rman@tape
connect target sys/密码@yy
RUN {
allocate channel c1 type sbt;
backup
incremental level 0 cumulative
database
format 'db0_%d_%s_%p_%T'
tag = 'WHOLE_INC0';
backup archivelog
from time 'SYSDATE-1'
like 'D:\ARCHIVE\%'
tag = 'ARCHIVELOG1DAYS'
format 'ar_%d_%s_%p_%T';
backup archivelog
from time 'SYSDATE-3' until time 'SYSDATE-1'
like 'D:\ARCHIVE\%'
format 'ar_%d_%s_%p_%T'
tag = 'ARCHIVELOG-DELETE2'
delete input;
release channel c1;
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7633405/viewspace-504274/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7633405/viewspace-504274/