码迷,mamicode.com
首页 > 其他好文 > 详细

rman使用

时间:2018-04-28 14:09:04      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:file   ash   /tmp   rman   check   sbt   show all   redo   logs   

1、  查看数据库备份列表:list backup of database

2、  检查备份数据信息

RUN

{

  ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt;

  CROSSCHECK BACKUP;

  CROSSCHECK COPY;

}

3、  查看是否有备份失败的:list failure;

4、  建议修改命令:advise failure;

5、  修改命令:repair failure;

6、  利用flashback database来返回数据库

7、  恢复整个数据库【有备份的前提】

8、  把rman日志记录到文件rman LOG /tmp/rman.log

9、  几种备份方式:

# Command file name: mybackup.rman

# The following command backs up the database

BACKUP DATABASE;

# The following command backs up the archived redo logs

BACKUP ARCHIVELOG ALL;

 

The following example shows that you can break a single RMAN command across multiple lines:

 RMAN> BACKUP # this is a comment

2> SPFILE;

配置rman,参考 file://D:\oracle\oracleapi\E11882_01\backup.112\e10642\rcmconfb.htm

  1. 查看ramn参数:show all

rman使用

标签:file   ash   /tmp   rman   check   sbt   show all   redo   logs   

原文地址:https://www.cnblogs.com/rongren/p/8966792.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!