rman入门实践!

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 tolixiaohui 的 blog

环境:win2k server; oracle 817

1 将target数据库置于归档模式

更改init.ora

2 建catalog库

3 在target,catalog上分别建表空间,用户,分配权限

sql> create tablespace rman_ts datafile d:\oracle\oradata\rman\rman_ts.dbf" size 20m;

sql> create user rman identified by rman default tablespace rman_ts temporary tablespace temp quota unlimited on rman_ts;

sql> grant recovery_catalog_owner to rman;

sql> grant connect, resource to rman;


4 在catalog端创建恢复目录

c:\>rman catalog rman/rman

rman>create catalog tablespace rman_ts;


5 在恢复目录中注册

c:\>rman target internal/oracle@his catalog rman/rman@rman

rman> register database;


6 全备脚本

rman> run {
   2> # backup the complete database to disk
   3> allocate channel dev1 type disk;
   4> backup
   5> full
   6> tag full_db_backup
   7> format "/oracle/backups/db_t%t_s%s_p%p"
   8> (database);
   9> release channel dev1;
  10> }

 

引用:http://oraasp.vicp.net/article/article.aspx?id=107

本文关键:rman入门实践!
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top