如何用rman进行自动备份呢?急、急、急

dnmyg2003 2004-12-14 04:13:43
如何用rman进行自动备份呢?
...全文
163 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2005-07-06
  • 打赏
  • 举报
回复
学习
dnmyg2003 2004-12-17
  • 打赏
  • 举报
回复
那如何进行自动备份?
tolixiaohui 2004-12-15
  • 打赏
  • 举报
回复
rman入门实践!
环境:win2k server; oracle 817, legato networker

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

这是我做备份的纪录

3,490

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧