题目:

320.You are using RMAN to backup your ARCHIVELOG mode database. You have enabled control-file
autobackups. Which files are not backed up during the RMAN backup?
A. Database Datafiles
B. Database Control Files
C. Online redo logs
D. Archived redo logs
E. The database SPFILE
F. None of the above, all these files are backed up.

参考答案 C
解析
题目问,rman备份开启了控制文件自动备份。问,对数据库备份的时候,哪一类文件不会备份。
rman不会备份online redo。选择C  。

end

321.True or false: RMAN offers the equivalent of the SQL command alter database backup controlfile to trace.
A. True
B. False
参考答案  B  
解析
RMAN提供相等的 SQL命令 ,alter database backup controlfile to trace .
在11g下不可以,在12c下可以。

-- 12c下的测试

RMAN> alter database backup controlfile to trace;Statement processedRMAN>
RMAN> select * from v$version where rownum=1;BANNER
--------------------------------------------------------------------------------CON_ID
----------
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production0RMAN>

-- 11g下的测试

RMAN> alter database backup controlfile to trace;RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "backup": expecting one of: "mount, open"
RMAN-01007: at line 1 column 16 file: standard inputRMAN> SQL 'alter database backup controlfile to trace';sql statement: alter database backup controlfile to traceRMAN> 

END

-- 2019-09-02 add

题目:

322.You need to restore your database back to 9/30/2008 at 18:00. In what order would you run the following commands to compete this task?
A. restore controlfile until time `09/30/2008:18:00:00';
B. restore database until time `09/30/2008:18:00:00';
C. restore spfile until time `09/30/2008:18:00:00';;
D. recover database until time `09/30/2008:18:00:00';
E. alter database open resetlogs;
F. alter database open;
A. b, d, e
B. b, d, f
C. c, a, b, d, e
D. c, a, b, d, f
E. a, b, d, e
参考答案 A  
解析
问要还原数据库到9月30日的18:00,问操作。
还原spfile,还原控制文件,restore database untill,recover database until。open resetlogs。
题目中的restore spfile 和controlfile有until参数,这两个是不能加until参数的。
所以正确的顺序是bde .选择A。

end

323.What is the correct order of the following commands if you wanted to restore datafile 4, which was accidentally removed from the file system?
A. sql 'alter database datafile 4 online';
B. restore datafile 4;
C. recover datafile 4;
D. sql 'alter database datafile 4 offline';
E. startup
F. shutdown
A. a, c, b, d
B. d, b, c, a
C. f, d, b, c, a, e
D. c, a, b, d, f
E. a, b, d, e
 
参考答案 B
解析
4号文件被从系统中移除了,问怎么恢复。
先将4号文件离线,再restore,recover,再online。 选择B 。

end

324.Your database is up and running and one of your three control files is accidentally erased. You start RMAN and run the following command:
RESTORE CONTROLFILE FROM AUTOBACKUP;
Which of the following statements is true? (Choose all that apply.)
A. The command restores only the missing control file.
B. The command restores all the control files.
C. The command fails because the database is running.
D. This is the correct way to address this problem.
E. This is not the correct way to address this problem.
 
参考答案CE
解析
题目意思,数据库正在运行。三个控制文件突然被删除掉了 。执行了rman恢复控制文件。问那个说法是正确的。
在还原控制文件的数据,数据库要处于mount状态,此时数据库还在运行。所以还原的时候会出错。选择CE 。

END

题目:

326.Which of the following does the recover command not do?
A. Restore archived redo logs.
B. Apply archived redo logs.
C. Restore incremental backups.
D. Apply incremental backups.
E. Restore datafile images.

参考答案 A
解析
题目意思问recover命令不会执行那些命令?选择A。 restore  archived redo logs 只是将归档日志从备份中恢复出来。

参考文档:

https://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsynta2001.htm#RCMRF140

RECOVER

Purpose

Use the RECOVER command to perform one of the following distinct tasks:

  • Perform complete recovery of the whole database or one or more restored data files

  • Perform point-in-time recovery of a database (DBPITR) or tablespace (TSPITR)

  • Apply incremental backups to a data file image copy (not a restored data file) to roll it forward in time

  • Recover a corrupt data block or set of data blocks within a data file

END

题目:

327.You have a database with the following tablespaces: SYSTEM, SYSAUX, UNDO, USERS, TEMP.
You want to"roll back" the data in the USERS tablespace to the way it looked yesterday. Which
tablespaces do you need to perform a point-in-time restore operation on in order to complete this task?
(Choose all that apply.)
A. SYSTEM
B. SYSAUX
C. UNDO
D. USERS
E. TEMP
F. This restore is not possible.
 
参考答案 ABCDE
解析
数据库中拥有system,sysaux,undo,users,temp表空间。想将表空间users中的数据rollback到昨天。
那些表空间需要执行基于时间点的恢复,才能将users表中的数据rollback到昨天?

参考文档:

https://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmtspit.htm#BRADV89825

Performing TSPITR with Your Own Auxiliary Instance: Scenario

This scenario shows the execution of a RECOVER TABLESPACE... UNTIL operation. This scenario illustrates the following features of RMAN TSPITR:

  • Managing your own auxiliary instance

  • Configuring channels for restore of backups from disk and SBT devices

  • Using recoverable image copies for some auxiliary set data files using SET NEWNAME

  • Specifying new names for recovery set data files using SET NEWNAME

To use TSPITR with your own auxiliary instance:

  1. Prepare the auxiliary instance as described in "Preparing Your Own Auxiliary Instance for RMAN TSPITR". Specify a password for the auxiliary instance in the password file, and set up the auxiliary instance parameter file /bigtmp/init_tspitr_prod.ora with the following settings:

    DB_NAME=PROD
    DB_UNIQUE_NAME=tspitr_PROD
    CONTROL_FILES=/bigtmp/tspitr_cntrl.dbf
    DB_CREATE_FILE_DEST=/bigtmp
    COMPATIBLE=11.0.0
    BLOCK_SIZE=8192
    REMOTE_LOGIN_PASSWORD=exclusive
    
  2. Create service name pitprod for the auxiliary instance, and check for connectivity.

  3. Using SQL*Plus, connect to the auxiliary instance with SYSOPER privileges. Start the instance in NOMOUNT mode:

    SQL> STARTUP NOMOUNT PFILE=/bigtmp/init_tspitr_prod.ora
    
  4. Start RMAN and connect to the target and auxiliary database instances.

    rman target / auxiliary sys/syspwd@pitprod
    
  5. Enter the following commands in a RUN block to set up and execute TSPITR:

    RUN
    {
    # Specify NEWNAME for recovery set data filesSET NEWNAME FOR TABLESPACE clientsTO '?/oradata/prod/rec/%b';# Specify NEWNAMES for some auxiliary set
    # data files that have a valid image copy to avoid restores:SET NEWNAME FOR DATAFILE '?/oradata/prod/system01.dbf'TO '/backups/prod/system01_monday_noon.dbf';SET NEWNAME FOR DATAFILE '?/oradata/prod/system02.dbf'TO '/backups/prod/system02_monday_noon.dbf';SET NEWNAME FOR DATAFILE '?/oradata/prod/sysaux01.dbf'TO '/backups/prod/sysaux01_monday_noon.dbf';SET NEWNAME FOR DATAFILE '?/oradata/prod/undo01.dbf'TO '/backups/prod/undo01_monday_noon.dbf';# Specify the types of channels to useALLOCATE AUXILIARY CHANNEL c1 DEVICE TYPE DISK;ALLOCATE AUXILIARY CHANNEL t1 DEVICE TYPE sbt;# Recover the clients tablespace to 24 hours ago:RECOVER TABLESPACE clients UNTIL TIME 'sysdate-1';
    }
    

Consider storing this command sequence in a command file and executing the command file.

If the TSPITR operation is successful, then the results are:

  • The recovery set data files are registered in the target database control file under the names specified with SET NEWNAME, with their contents as of the time specified time for TSPITR.

  • The auxiliary files are removed by RMAN, including the control files, online logs, and auxiliary set data files of the auxiliary instance.

  • The auxiliary instance is shut down.

If the TSPITR operation fails, the auxiliary set files are removed and the auxiliary instance is shut down. The recovery set files are left in the specified location and in an unresolved state from the failed TSPITR run.

END

330.What will be the end result of this set of RMAN commands?
shutdown abort
startup mount
restore datafile 4 until time ,,09/30/2008:15:00:00;
recover datafile 4 until time ,,09/29/2008:15:00:00;
alter database open resetlogs;
A. Datafile 4 will be recovered until 9/30/2008 at 15:00 and the database will open.
B. The restore command will fail.
C. The recover command will fail.
D. The alter database open resetlogs command will fail.
E. All these commands will fail because they must be in the confines of a run block.
 
参考答案 D
解析
题目意思问,下面的rman命令集的结果是。
restore到了9月30号,recover到了9月29号。再次打开数据库的时候,会出错。选择D 。

END

332.David managed to accidentally delete the datafiles for database called DSL. He called Heber and
Heber tried to help but he managed to delete the control files of the database. Heber called Bill and Bill
saved the day. They are using a recovery catalog for this database. What steps did Bill perform to recover
the database and in what order?
A. Restored the control file with the RMAN restore controlfile command.
B. Mounted the DSL instance with the alter database mount command.
C. Restored the datafiles for the DSL database with the RMAN restore command.
D. Opened the DSL database with the alter database open resetlogs command.
E. Recovered the datafiles for the DSL database with the RMAN recover command.
F. Started the DSL instance.
G. Connected to the recovery catalog with RMAN.
A. a, b, c, d, e, f, g
B. b, c, d, g, f, e, a
C. g, f, a, b, c, e, d
D. c, a, d, b, f, e, g
E. g, f, a, b, e, c, d
 
参考答案 C
解析
数据库DSL中删除了数据文件。又删除了控制文件。数据库使用了catalog。问恢复的步骤。
连接到catalog,启动数据库实例,还原控制文件,启动到mount状态。还原数据文件,recover,open resetlog。 选择C 。

end

-- 2019-09-09 add

题目:

544.Your database is in NOARCHIVELOG mode. You start to do a backup, but your users complain that
they dont want you to shut down the database to perform the backup. What options are available to you?
A. Put the database in hot backup mode and perform an online backup, including backing up the archived redo logs.
B. Just back up the database datafiles without shutting down the database.
C. You will have to wait until you can shut down the database to perform the backup.
D. Mark each datafile as backup in progress, back them up individually, and then mark them as backup not in progress. No archived redo logs will need to be backed up.
E. Only back up the datafiles that the user will not be touching. Once the user has finished what they were doing, you can shut down the database and back up the datafiles the user changed during the course of the remaining backup
 
参考答案 C
解析
数据库运行在非归档模式下。想对数据库进行备份,但是用户不希望关闭数据库。
在非归档模式下,不允许使用热备份模式,A错误。
非归档模式下,仅仅备份了数据文件是没有用的。RMAN下也不允许这样做。B错误。
DE错误。只能在允许关机的时候进行备份。选择C 。
  参考文档:

https://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmquick.htm#BRADV90058

Backing Up a Database in ARCHIVELOG Mode

If a database runs in ARCHIVELOG mode, then you can back up the database while it is open. The backup is called an inconsistent backup because redo is required during recovery to bring the database to a consistent state. If you have the archived redo logs needed to recover the backup, open database backups are as effective for data protection as consistent backups.

To back up the database and archived redo logs while the database is open:

  1. Start RMAN and connect to a target database.

  2. Run the BACKUP DATABASE command.

    For example, enter the following command at the RMAN prompt to back up the database and all archived redo log files to the default backup device:

    RMAN> BACKUP DATABASE PLUS ARCHIVELOG;
    

Backing Up a Database in NOARCHIVELOG Mode

If a database runs in NOARCHIVELOG mode, then the only valid database backup is a consistent backup. For the backup to be consistent, the database must be mounted after a consistent shutdown. No recovery is required after restoring the backup.

To make a consistent database backup:

  1. Start RMAN and connect to a target database.

  2. Shut down the database consistently and then mount it.

    For example, enter the following commands to guarantee that the database is in a consistent state for a backup:

    RMAN> SHUTDOWN IMMEDIATE;
    RMAN> STARTUP FORCE DBA;
    RMAN> SHUTDOWN IMMEDIATE;
    RMAN> STARTUP MOUNT;
    
  3. Run the BACKUP DATABASE command.

    For example, enter the following command at the RMAN prompt to back up the database to the default backup device:

    RMAN> BACKUP DATABASE;
    

    The following variation of the command creates image copy backups of all data files in the database:

    RMAN> BACKUP AS COPY DATABASE;
    
  4. Open the database and resume normal operations.

    The following command opens the database:

    RMAN> ALTER DATABASE OPEN;
    

END

题目:

553.Every Sunday the Unix system administrator has a job that executes a full backup of the entire Unix
system your database is on. Is this backup usable for backup and recovery of your database?
A. Yes, if the database is in ARCHIVELOG mode.
B. Yes, if the database is in NOARCHIVELOG mode.
C. No, the backup is not usable in any way.
D. Only if the ENABLE_ONLINE_BACKUP parameter is set to TRUE.
 
参考答案  C
解析
每个周日unix管理员都会用job来对整个unix系统进行备份。这种方法是否适合于对数据库进行备份。
不可以,从题目意思上看,应该是使用tar命令来进行备份。
当停止了库,再使用tar进行备份,是可以的。但是题目没有说是否停库。
可以使用crontab对数据库进行备份(在归档模式下),其实还是调用rman脚本。
但是题目的意思是,备份数据库使用备份unix的方法。所以是不可以的。 选择C 。

end

-- 2019-09-10 add

题目:

585.What type of backup is stored in a proprietary RMAN format?
A. Backup set
B. Image copy
C. Backup section
D. Backup group

参考答案 A
解析
备份以RMAN的格式存储。 backupset。
image copy 和datafile文件名称是一样的。

参考文档:

https://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsubcl010.htm#RCMRF195

The following table lists RMAN substitution variables that are valid in format strings.

Syntax Element Description
%a Specifies the activation ID of the database.
%b Specifies the file name stripped of directory paths. It is only valid for SET NEWNAME and backup when producing image copies It yields errors if used as a format specification for a backup that produces backup pieces.
%c Specifies the copy number of the backup piece within a set of duplexed backup pieces. If you did not duplex a backup, then this variable is 1 for backup sets and 0 for proxy copies. If a command is enabled, then the variable shows the copy number. The maximum value for %c is 256.
%d Specifies the name of the database (see Example 4-22).
%D Specifies the current day of the month from the Gregorian calendar in format DD.
%e Specifies the archived log sequence number.
%f Specifies the absolute file number (see Example 4-22).
%F Combines the DBID, day, month, year, and sequence into a unique and repeatable generated name. This variable translates into c-IIIIIIIIII-YYYYMMDD-QQ, where:

  • IIIIIIIIII stands for the DBID. The DBID is printed in decimal so that it can be easily associated with the target database.

  • YYYYMMDD is a time stamp in the Gregorian calendar of the day the backup is generated

  • QQ is the sequence in hexadecimal number that starts with 00 and has a maximum of 'FF' (256)

%h Specifies the archived redo log thread number.
%I Specifies the DBID.
%M Specifies the month in the Gregorian calendar in format MM.
%N Specifies the tablespace name. This substitution variable is only valid when backing up data files as image copies.
%n Specifies the name of the database, padded on the right with x characters to a total length of eight characters. For example, if prod1 is the database name, then the padded name is prod1xxx.
%p Specifies the piece number within the backup set. This value starts at 1 for each backup set and is incremented by 1 as each backup piece is created.

Note: If you specify PROXY, then the %p variable must be included in the FORMAT string either explicitly or implicitly within %U.

%s Specifies the backup set number. This number is a counter in the control file that is incremented for each backup set. The counter value starts at 1 and is unique for the lifetime of the control file. If you restore a backup control file, then duplicate values can result. Also, CREATE CONTROLFILE initializes the counter back to 1.
%t Specifies the backup set time stamp, which is a 4-byte value derived as the number of seconds elapsed since a fixed reference time. You can use a combination of %s and %t to form a unique name for the backup set.
%T Specifies the year, month, and day in the Gregorian calendar in this format: YYYYMMDD.
%u Specifies an 8-character name constituted by compressed representations of the backup set or image copy number and the time the backup set or image copy was created.
%U Specifies a system-generated unique file name (default).

The meaning of %U is different for image copies and backup pieces. For a backup piece, %U specifies a convenient shorthand for %u_%p_%c that guarantees uniqueness in generated backup file names. For an image copy of a data file, %U means the following:

data-D-%d_id-%I_TS-%N_FNO-%f_%u

For an image copy of an archived redo log, %U means the following:

arch-D_%d-id-%I_S-%e_T-%h_A-%a_%u

For an image copy of a control file, %U means the following:

cf-D_%d-id-%I_%u

%Y Specifies the year in this format: YYYY.
%% Specifies the percent (%) character. For example, %%Y translates to the string %Y.

Example

Example 4-21 Specifying an ASM Disk Group

This example copies the database to ASM disk group DISK1:

BACKUP AS COPY DATABASE FORMAT '+DATAFILE';

Example 4-22 Specifying a Format for Data File Copies

This example copies two data files with tag LATESTCOPY to directory /disk2:

BACKUP AS COPYCOPY OF DATAFILE 27, 28FROM TAG 'LATESTCOPY' FORMAT '/disk2/Datafile%f_Database%d';

END

题目:

586.Consider the following command:
Backup database plus archivelog delete input;
How many backup sets would be created by this command if the following were true:
Control-file auto backups were enabled.
NN The size of backup sets was not restricted.
NN One channel was allocated.
A. 1
B. 2
C. 3
D. 4
E. 5
 
参考答案 D (个人感觉应该选择C 3个。)
解析
控制文件备份是启用的。
backup database plus archivelog delete input,会产生多少个backup set。
datafile是一个,归档一个,spfile和controlfile一个。所以是3个。

END

题目:

587.Compressed backups work with which of the following commands?
A. copy as backup
B. backup as copy
C. backup
D. copy
 
参考答案 C
解析
compressed backups 应用于backup命令 。copy命令不能压缩。

end

题目:

588.Which is the correct command to back up the database, back up the archived redo logs, and then
remove the backed-up archived redo logs?
A. backup database
B. backup database and archivelogs
C. backup database plus archivelogs
D. backup database plus archivelog delete input
E. backup database and archivelog delete input
 
参考答案 D
解析
备份数据库,备份归档,并且移除备份的归档。backup database plus archivelog delete input. 选择D 。

end

题目:

589.Which of the following best describes a full backup?
A. All datafiles of a database
B. All datafiles, archive logs, and control files
C. All datafiles and control files
D. All the used blocks in a datafile
 
参考答案 D
解析
full backup,那个描述的最好。所有使用的块。选择D 。

参考文档:

https://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmcncpt.htm#BRADV109

Incremental Backups

By default, RMAN makes full backups. A full backup of a data file includes every allocated block in the file being backed up. A full backup of a data file can be an image copy, in which case every data block is backed up. It can also be stored in a backup set, in which case data file blocks not in use may be skipped.

A full backup is the default type of RMAN backup. A full backup has no effect on subsequent incremental backups and is not considered a part of an incremental backup strategy. Image copies are always full backups because they include every data block in a data file. A backup set is by default a full backup because it can potentially include every data block in a data file, although unused block compression means that blocks never used are excluded and, in some cases, currently unused blocks are excluded (see "Block Compression for Backup Sets").

In contrast to a full backup, an incremental backup copies only those data blocks that have changed since a previous backup. You can use RMAN to create incremental backups of datafiles, tablespaces, or the whole database. A full backup cannot be part of an incremental backup strategy; that is, it cannot be the parent for a subsequent incremental backup.

END

题目:

592.Which backup option defines a user-defined name for a backup?
A. FORMAT
B. NAME
C. TAG
D. FORMAT U%
 
参考答案 C
解析
用户定义的备份名称,使用tag。

参考文档:

https://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmbckba.htm#BRADV89513

About Backup Tags

User-specified tags are a useful way to indicate the purpose or usage of different classes of backups or copies. You can tag backup sets, proxy copies, data file copies, or control file copies. For example, you can tag data file copies that you intend to use in a SWITCH command as for_switch_only and file copies that should be used only for a RESTORE command as for_restore_only.

Tags do not need to be unique, so multiple backup sets or image copies can have the same tag, for example, weekly_backup. Assume that you specify that a data file should be restored from backups that have a specific tag. If multiple backups of the requested file has the desired tag, then RMAN restores the most recent backup that has the desired tag, within any constraints on the RESTORE command.

In practice, tags are often used to distinguish a series of backups created as part of a single strategy, such as an incremental backup strategy. For example, you might create a weekly incremental backups with a tag like BACKUP TAG weekly_incremental. Many forms of the BACKUP command let you associate a tag with a backup, and many RESTORE and RECOVER commands let you specify a tag to restrict which backups to use in the RESTORE or RECOVER operation.

If you do not explicitly specify a tag with the TAG parameter of the BACKUP command, then RMAN implicitly creates a default tag for backups (except for control file autobackups). The format of the tag is TAGYYYYMMDDTHHMMSS, where YYYY is the year, MM is the month, DD is the day, HH is the hour (in 24-hour format), MM is the minutes, and SS is the seconds. For example, a backup of data file 1 may get the tag TAG20070208T133437. The date and time refer to when RMAN started the backup in the time zone of the instance performing the backup. If multiple backup sets are created by one BACKUP command, then each backup piece has the same default tag.

Tags are stored in uppercase, regardless of the case used when entering them. The maximum length of a backup tag is 30 bytes. Tags cannot use operating system environment variables or use special formats such as %T or %D.

https://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsynta007.htm#RCMRF107

TAG tag_name Specifies a user-specified tag name for a backup set, proxy copy, data file copy, or control file copy. The tag is applied to the output files generated by the BACKUP command.

The tag name is not case-sensitive. The name must be 30 characters or less. The characters are limited to the characters that are valid in file names on the target file system. For example, ASM does not support the use of the hyphen (-) character in the file names it uses internally, so weekly-incremental is not a valid tag name for backups in ASM disk groups. Environment variables are not valid in the TAG parameter.

Typically, a tag name is a meaningful name such as MON_PM_BKUP or WEEKLY_FULL_BKUP. Tags are reusable, so that backup set 100 can have the tag MON_PM_BKUP one week while backup set 105 has the same tag the next week.

If you do not specify a tag name, then by default RMAN creates a tag for backups (except for control file autobackups). The default tag uses the format TAGYYYYMMDDTHHMMSS, where YYYY is the year, MM is the month, DD is the day, HH is the hour (in 24-hour format), MM is the minutes, and SS is the seconds. For example, a backup of data file 1 might receive the tag TAG20070208T133437. The date and time refer to when RMAN started the backup. If multiple backup sets are created by one BACKUP AS BACKUPSET command, then each backup piece is assigned the same default tag.

You can also specify the tag at the backupSpec level. If you specify the tag at:

  • The command level, then all backup sets created by the command have the tag.

  • The backupSpec level, then backup sets created with different backup specifications can have different tags.

  • Both levels, then the tag in the backupSpec takes precedence.

Note: A tag is an attribute of each backup piece in a given copy of a backup set (for AS BACKUPSET) or each image copy (for AS COPY). For example, if you run BACKUP AS BACKUPSET COPIES 1 DATABASE TAG TUE_PM, then only one copy of the backup set exists and each backup piece has tag TUE_PM. Assume that this backup set has primary key 1234. If you then run BACKUP BACKUPSET 1234 TAG WED_PM, then the first copy of the backup set has tag TUE_PM and the second copy of the backup set has tag WED_PM.

END

题目:

596.What feature comes into play to help ensure the completion of the backup should one of three backup devices fail during a backup that is using three different channels?
A. Channel failover
B. Restartable backups
C. Rescheduable backups
D. Automatic backup recovery
E. Channel recovery
 
参考答案 A  
解析
在使用三个不同通道的备份期间,如果三个备份设备中的一个发生故障,将使用什么功能来帮助确保备份的完成。
通道的failover。 选择A 。

end

题目:

597.What command would you use to set a persistent setting in RMAN so that backups are all written to a tape device?
A. CONFIGURE DEFAULT DEVICE TYPE TO TAPE MEDIA
B. CONFIGURE DEFAULT DEVICE TYPE TO TAPE
C. CONFIGURE DEFAULT DEVICE TYPE TO SBT
D. CONFIGURE DEFAULT DEVICE TYPE TO SBT_TAPE
 
参考答案 C
解析
通过配置,让rman永久备份到磁带。
configure default device type disk to sbt. 选择C 。

参考文档

https://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV89399

Configuring the Default Device for Backups: Disk or SBT

Backups for which no destination device type is specified are directed to the configured default device. RMAN is preconfigured to use disk as the default device type. No additional configuration is necessary.

You may need to change the default device type from disk to tape, or change it back from tape to disk. Table 5-1 shows the commands that configure the default device.

Table 5-1 Commands to Configure the Default Device Type

Command Explanation

CONFIGURE DEFAULT DEVICE TYPE TO DISK

Specifies that backups should go to disk by default.

If a recovery area is enabled, then the backup location defaults to the fast recovery area. Otherwise, the backup location defaults to an operating system-specific directory on disk.

When backing up to disk, the logical block size of the database file must be an even multiple of the physical block size of the destination device. For example, a device of type DISK with a block size of 2 kilobytes can only be used as a destination for backups of database files with logical block sizes of 2 KB, 4 KB, 6 KB, and so on. Most disk drives have physical block sizes of 512 bytes, so this limitation rarely affects backup to disk drives. Nevertheless, you can encounter this limitation when backing up to a writable DVD or a device that has a larger physical block size.

CONFIGURE DEFAULT DEVICE TYPE TO sbt

Specifies that backups should go to tape by default.

"Configuring RMAN to Make Backups to a Media Manager" explains how to set up RMAN for use with a media manager. After RMAN can communicate with the media manager, you can configure RMAN to make backups to tape and specify SBT as the default device type.

You can always override the default device by using the DEVICE TYPE clause of the BACKUP command, as shown in the following examples:

BACKUP DEVICE TYPE sbt DATABASE;
BACKUP DEVICE TYPE DISK DATABASE;

To change the configured default device type:

  1. Start RMAN and connect to a target database and a recovery catalog (if used).

  2. Run the SHOW ALL command to show the currently configured default device.

  3. Run the CONFIGURE DEFAULT DEVICE TYPE command, specifying either TO DISK or TO sbt.

See Also:

Oracle Database Backup and Recovery Reference for more details on using the BACKUP command with the DEVICE TYPE clause

END

题目:

598.The CONTROL_FILE_RECORD_KEEP_TIME initialization parameter should be set to what value? (Choose all that apply.)
A. The initialization parameter should be set to 0 when the RMAN repository is being used.
B. The initialization parameter should be set to greater than 0 with the RMAN repository utilizing the recovery catalog only.
C. The initialization parameter should be set to greater than 0 with the RMAN repository utilizing the control file or the recovery catalog.
D. The initialization parameter should be set to 0 with the RMAN repository utilizing the control file or the recovery catalog.
E. The initialization parameter should never be set to 0 if you are using RMAN.
 
参考答案 CE
解析
当使用控制文件保存rman备份记录的时候,该值设置为大于0.该值不能设置为0 。选择CE 。

参考文档:

https://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV8206

Preventing the Loss of Control File Records

The best way to prevent the loss of RMAN metadata because of overwritten control file records is to use a recovery catalog. If you cannot use a recovery catalog, then you can take the following measures:

  • Set the CONTROL_FILE_RECORD_KEEP_TIME value to slightly longer than the oldest file that you must keep. For example, if you back up the whole database once a week, then you must keep every backup for at least 7 days. Set CONTROL_FILE_RECORD_KEEP_TIME to a value such as 10 or 14. The default value of CONTROL_FILE_RECORD_KEEP_TIME is 7 days.

    Caution:

    Regardless of whether you use a recovery catalog, never use RMAN when CONTROL_FILE_RECORD_KEEP_TIME is set to 0. If you do, then you may lose backup records.

  • Store the control file in a file system rather than on a raw device so that it can expand.

  • Monitor the alert log to ensure that Oracle Database is not overwriting control file records. The alert log is located in the Automatic Diagnostic Repository (ADR).

If you use a fast recovery area, then follow these guidelines to avoid a situation in which the control file cannot hold a record of all fast recovery area files needed to satisfy the backup retention policy:

  • If the block size of the control file is not at its maximum, then use a larger block size, preferably 32 kilobytes.

    To achieve this aim, you must set the SYSTEM tablespace block size to be greater than or equal to the control file block size, and re-create the control file after changing DB_BLOCK_SIZE. The files in the fast recovery area are recataloged, but the records for files on tape are lost.

  • Make the files in the fast recovery area eligible for deletion by backing them up to tertiary storage such as tape.

    For example, you can use BACKUP RECOVERY AREA to specifically back up files in the fast recovery area to a media manager.

  • If the backup retention policy is keeping backups and archived logs longer than your business requirements, then you can make more files in the fast recovery area eligible for deletion by changing the retention policy to a shorter recovery window or lower degree of redundancy.

END

题目:

599.Given the following steps, which would be the correct order to create a backup of an Oracle database
in ARCHIVELOG mode with control-file autobackups enabled?
A. backup archivelog all;
B. backup database all;
C. backup controlfile;
D. backup archivelog, database, controlfile delete input;
E. backup database plus archivelog delete input
A. e
B. a, b, a, c
C. d
D. b, a, c
E. b, a, c, d, e
参考答案 A
解析
在归档模式下,创建数据库的备份(控制文件自动备份已开启)。backup database plus archivelog. 选择A 。

end

053试题 - 320/321/322/323/324/326/330/332/544/553/585/586/587/588/589/592/596/597/598/599 rman backup相关推荐

  1. [剑指offer][JAVA]面试题第[32-1]题[从上到下打印二叉树][BFS]

    [问题描述][中等] 从上到下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印. 例如: 给定二叉树: [3,9,20,null,null,15,7],3/ \9 20/ \15 7 返回: ...

  2. 053试题 334/682 - crosscheck

    题目: 334.What command would you use to ensure that backup records in the control file are pointing to ...

  3. 053试题 331/507/564/574/625/673 - restore datafile

    题目: 331.Which of the following represents the correct way to perform an online recovery of datafile ...

  4. 053试题 158/449/637 - Scheduler Window

    题目: 158.You create two resource plans, one for data warehouse loading jobs at night and the other fo ...

  5. 053试题 21 / 198 /200 / 289/355/363/650/700 - duplicate database

    题目: 21.You are managing an Oracle Database 11g instance. You want to create a duplicate database for ...

  6. 053试题 193 - recover 命令

    题目: 193.What is the purpose of the recover command? (Choose all that apply.) A. Recover database dat ...

  7. 053试题 329 - recover corruption list

    题目: 329.If you find errors in the view V$DATABASE_BLOCK_CORRUPTION with a status of MEDIA_CORRUPT, w ...

  8. 053试题 48 / 254 / 266 - dbms_resource_manager.calibrate_io

    题目: 48.View the Exhibit to examine the error obtained during the I/O calibration process. There are ...

  9. 053试题 181/182/183/558/600/608/631/636/657/661/664/668/670/696 - RMAN backup

    题目: 181.Your database has a backup that was taken yesterday (Tuesday) between 13:00 and 15:00 hours. ...

  10. 053试题 229 / 239- securefile lobs

    题目: 229.Which statements are true regarding SecureFile LOBs? (Choose all that apply.) A. The amount ...

最新文章

  1. 循环神经网络 递归神经网络_递归神经网络-第2部分
  2. Ajax02 什么是json、json语法、json的使用、利用jQuery实现ajax
  3. 数学分析学习(一):映射与不等式
  4. 微信小程序的bindtap和catchtap实际场景 对话框中按钮点击和对话框背景点击处理笔记...
  5. 算法:用Java实现一个mini布隆过滤器(BloomFilter)
  6. 读书百客:《陋室铭》赏析
  7. JavaEE 微信境外支付
  8. 识别三极管和场效应管引脚
  9. win 10 亮度调节不能使用了
  10. HiveHive的两种访问方式
  11. 人在做,天在看:天道有轮回,苍天饶过谁
  12. java如何判断回文数
  13. layui 搜索 重置 自动刷新
  14. 用VMware搭建云桌面
  15. linux教程 课件,《Linux实用教程》PPT课件
  16. 怎样解除锁定计算机,怎样解除电脑屏幕锁定 教你解除电脑屏幕锁定的方法
  17. 12星座的出生年月日性格_十二个星座的出生年月日
  18. 百度竞价效果不好的原因
  19. 基于ERP系统的仓储管理系统?
  20. android上播放按键声音方法

热门文章

  1. ROS解决'[rosrun] Couldn't find executable named ...'
  2. 【OpenGL】绘制四边形
  3. 怎么判断日出时间早晚_怎样知道当地每天几点日出?
  4. 中南大学计算机学院复试2021,中南大学2021年硕士研究生拟录取名单汇总
  5. “打工女皇帝”吴士宏-永远先走一步
  6. DateTime.ToString()的用法
  7. 四人小组:vip会员管理系统
  8. Linux 之十三 嵌入式系统搭建工具 Yocto、OpenEmbedded、BitBake 详解
  9. windows7系统,ping本机ip地址请求超时的解决方案
  10. matlab图像嵌入提取压缩水印,matlab中如何对数字图像进行嵌入和提取水印