oracle 9i数据库记录之备份(1)

环境:一台生产服务器;一台备份服务器;一台磁带机

操作系统:win2003ser

软件:VERITAS BE11

操作步骤:

一、在备份服务器上安装Symantec Backup Exec 11d for Windows Servers

添加用户,在“修改列表”中添加服务器用户:7633405_200812012031051.jpg

二、在备份服务器上面通过远程安装方式往生产服务上安装Remote Agent7633405_200812012033381.jpg

三、在生产服务上面配置Remote Agent(在开始——程序菜单里面找agent程序),生产服务上面配置Remote Agent

7633405_200812012034381.jpg

7633405_200812012034541.jpg

上图的用户名和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的注册信息

 

五、安装好VERITASORACLE,配置好RMANAGENT后。把磁带放进磁带机,执行备份脚本:

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;

}

 

 

fj.png1.JPG

fj.png2.JPG

fj.png3.JPG

fj.png4.JPG

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7633405/viewspace-504274/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7633405/viewspace-504274/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值