rman使用

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

猜你喜欢

转载自www.cnblogs.com/rongren/p/8966792.html