OCP 1Z0 053 241

来源:互联网 发布:巨人网络财务报表 编辑:程序博客网 时间:2024/05/19 06:36
241.You issued the following RMAN command to back up the database: 
RMAN> RUN{ 
ALLOCATE CHANNEL c1 DEVICE TYPE sbt 
BACKUP DATABASE 
TAG quarterly 
KEEP FOREVER 
RESTORE POINT FY06Q4;} 
Which two statements are true regarding the backup performed? (Choose two.) 
A. Archived redo log files are backed up along with data files. 
B. Only data files are backed up and a restore point named FY06Q4 is created. 
C. Archived log files are backed up along with data files, and the archived log files are deleted. 
D. The command creates a restore point named FY06Q4 to match the SCN at which this backup is 
consistent. 

Answer: AD 

需要注意: you must be connected to a recovery catalog when you specify KEEP FOREVER.

http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmbckba.htm#BRADV251

To make a long-term archival backup:

  1. Start RMAN and connect to a target database and recovery catalog.

    The target database can be open or mounted. A recovery catalog is required for KEEP FOREVER, but is not required for any other KEEP option.

  2. Run BACKUP ... KEEP to make the backup.

    The following example generates a data file and archived log backup and creates a normal restore point. The specified restore point must not already exist.

    The log backup contains just those archived logs needed to restore this backup to a consistent state. The database performs a online redo log switch to archive the redo that is in the current online logs and is necessary to make this new backup consistent. The control file autobackup has a copy of the restore point, so it can be referenced as soon as the control file is restored.

    RUN{  ALLOCATE CHANNEL c1     DEVICE TYPE sbt    PARMS 'ENV=(OB_MEDIA_FAMILY=archival_backup)';  BACKUP DATABASE    TAG quarterly    KEEP FOREVER    RESTORE POINT FY06Q4;}

    The following variation keeps the backup for 365 days instead of keeping it forever. After a year has passed, the backup becomes obsolete regardless of the backup retention policy settings.

    RUN{  ALLOCATE CHANNEL c1 DEVICE TYPE sbt    PARMS 'ENV=(OB_MEDIA_FAMILY=archival_backup)';  BACKUP DATABASE    TAG quarterly    KEEP UNTIL TIME 'SYSDATE+365'    RESTORE POINT FY06Q4;}


http://docs.oracle.com/cd/E11882_01/backup.112/e10642/glossary.htm#BRADV90213

normal restore point

A label for an SCN or time. For commands that support an SCN or time, you can often specify a restore point. Normal restore points exist in the circular list and can be overwritten in the control file. However, if the restore point pertains to an archival backup, then it is preserved in the recovery catalog.


0 0
原创粉丝点击