Oracle下如何用rman备份到特定的sequence
2013-10-21 16:50
459 查看
本文为摘抄,目的为方便日后阅读:
http://docs.oracle.com/cd/B12037_01/server.101/b10734/rcmbackp.htm
To determine the archived logs needed for recovery of an online backup:
Start SQL*Plus and archive all unarchived logs, including the current log:
SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
Query V$LOG to determine the log sequence number of the current redo log, as in the following example (which includes output):
SQL> SELECT SEQUENCE# FROM V$LOG WHERE STATUS = 'CURRENT';
SEQUENCE#
----------
9100
Start RMAN and make an online backup of the database. For example, enter:
RMAN> BACKUP DATABASE;
Archive all unarchived logs, including the current log:
RMAN> SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
In SQL*Plus, query V$LOG to determine the log sequence number of the current redo log:
SQL> SELECT SEQUENCE# FROM V$LOG WHERE STATUS = 'CURRENT';
SEQUENCE#
----------
9112
Back up the logs beginning with the first sequence number that you queried, and ending with the last sequence number minus 1. The log before the current log is the most recent archived log. For example, if the first query returned 9100, then start at 9100. If the second query returned 9112, then end at 9111.
For example, issue the following to back up the necessary archived logs:
RMAN> BACKUP ARCHIVELOG FROM SEQUENCE 9100 UNTIL SEQUENCE 9111;
http://docs.oracle.com/cd/B12037_01/server.101/b10734/rcmbackp.htm
To determine the archived logs needed for recovery of an online backup:
Start SQL*Plus and archive all unarchived logs, including the current log:
SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
Query V$LOG to determine the log sequence number of the current redo log, as in the following example (which includes output):
SQL> SELECT SEQUENCE# FROM V$LOG WHERE STATUS = 'CURRENT';
SEQUENCE#
----------
9100
Start RMAN and make an online backup of the database. For example, enter:
RMAN> BACKUP DATABASE;
Archive all unarchived logs, including the current log:
RMAN> SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
In SQL*Plus, query V$LOG to determine the log sequence number of the current redo log:
SQL> SELECT SEQUENCE# FROM V$LOG WHERE STATUS = 'CURRENT';
SEQUENCE#
----------
9112
Back up the logs beginning with the first sequence number that you queried, and ending with the last sequence number minus 1. The log before the current log is the most recent archived log. For example, if the first query returned 9100, then start at 9100. If the second query returned 9112, then end at 9111.
For example, issue the following to back up the necessary archived logs:
RMAN> BACKUP ARCHIVELOG FROM SEQUENCE 9100 UNTIL SEQUENCE 9111;
相关文章推荐
- Oracle的RMAN备份与恢复脚本
- oracle技术之一次RMAN备份报错的诊断过程(二)
- Oracle生产环境RMAN备份脚本
- 使用rman nocatalog方式备份Oracle - NetBackup配置方法
- oracle RMAN 备份文件
- ORACLE 使用rman备份通过restore、recover恢复standby库ORA-10877实战
- Oracle10g数据库备份与恢复总结5--Oracle备份与恢复之物理备份--Rman备份
- Oracle 学习之RMAN(三)全量备份
- ORACLE 导出,备份,exp sequence
- oracle备份恢复之rman恢复到异机
- 基于Linux下 Oracle 备份策略(RMAN)
- [MySQL FAQ]系列 -- 如何从SQL备份文件中提取出特定库
- Oracle:只有rman备份(数据,参数,日志,控制文件全丢失)的恢复
- 备份、文件-oracle rman nocatalog和catalog-by小雨
- 如何实现数据库完整备份 ——Oracle容灾技术及与远程磁盘镜像技术的比较
- oracle备份之rman_恢复控制文件
- Oracle Rman 备份命令超详解释
- Oracle技术之调整RMAN备份与恢复操作的性能(二)
- Oracle OCP笔记(29)RMAN备份 - Config
- [MySQL FAQ]系列 -- 如何从SQL备份文件中提取出特定库