本文为摘抄,目的为方便日后阅读:
.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;
本文发布于:2024-02-03 23:32:43,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170697600451611.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |