QUESTION NO:595
Examine the followingscenario:
- Database is running inARCHIVELOG mode.
- Complete consistentbackup is taken every Sunday.
- On Tuesday theinstance terminates abnormally because the disk on which control files are locatedgets corrupted
- The disk having activeonline redo log files is also corrupted.
- The hardware isrepaired and the paths for online redo log files and control files are stillvalid.
Which option would youuse to perform the recovery of database till the point of failure?
检查下列场景:
-数据库运行在archivelog模式
-完全一致性的备份每周日发生
-周2实例异常中断(因为控制文件位于的磁盘已经损坏)
-有活动online 重做日志的磁盘也损坏
-硬件被修复和在线重做日志文件路径和控制文件仍然有效。
你使用哪个选项去执行数据库的恢复直到失败点:
A. Restore the latest whole backup, perform complete recovery,and open the database normally
B. Restore the latest whole backup, perform incompleterecovery, and open the database with the RESETLOGS option.
C. Restore the latest backups control file, perform completerecovery, and open the database with the RESETLOGS option.
D. Restore the latest backup controlfile, perform incomplete recovery using backup control file,and open thedatabase with the RESETLOG option.
Explanation:
QUESTION NO:596
You are managing a 24*7database. The backup strategy for the database is to perform user managed backups.Identify two prerequisites to perform the backups. (Choose two.)
你正在管理一个24*7数据库。数据库的备份策略是去执行用户管理的备份。识别执行备份的2个先决条件。
A. The database must be opened in restricted mode.
B. The database must be configured torun in ARCHIVELOG mode.
C. The tablespaces are required to bein backup mode before taking the backup.
D. The tablespaces are required to be in read-only modebefore taking the backup
Explanation:
QUESTION NO:597
Examine the following commands and their output:
SQL> SELECTename, sal FROM emp WHERE ename='JAMES';
ENAME SAL JAMES 1050
SQL> UPDATE empSET sal=sal+sal*1.2 WHERE ename='JAMES';
1 row updated.
SQL> SELECTename, sal FROM emp WHERE ename='JAMES'; ENAME SAL JAMES 2310
View the exhibit andexamine the Flashback Version Query that was executed after the preceding commands.
What could be thepossible cause for the query not displaying any row?
Exhibit:
A. Flashback logging is not enabled for the database.
B. The changes made to the table arenot committed.
C. Supplemental logging is not enabled for the database.
D. The database is not configured in ARCHIVELOG mode.
Explanation:
QUESTION NO:598
Using the LIST commandin Recovery Manager (RMAN), which two pieces of information from the RMANrepository can be listed? (Choose two.)
使用list命令(在RMAN),列举RMAN仓储中的信息?
A. Stored scripts in the recoverycatalog
B. Backups that can be deleted from disk
C. Backup sets and images copies that are obsolete
D. Backups that do not have theAVAILABLE status in the RMAN repository
Explanation:
Section: Backup, Recovery & Recovery Manager (RMAN)
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28273/rcmsynta027.htm#i82460
Prerequisites
Execute LIST only at theRMAN prompt. Either of the following conditions must be met:
- RMAN must be connectedto a target database. If RMAN is not connected to a recovery catalog,
and if
you are not executingthe LIST FAILURE command, then the target database must be mounted or
open. If RMAN isconnected to a recovery catalog, then the target database instance must be
started.
- RMAN must be connectedto a recovery catalog and SET DBID must have been run.
Usage Notes
With the exception ofLIST FAILURE, the LIST command displays the backups and copies against
which you can runCROSSCHECK and DELETE commands. The LIST FAILURE command
displays failuresagainst which you can run the ADVISE FAILURE and REPAIR FAILURE
commands.
"RMAN Backups in aData Guard Environment" explains how RMAN handles backups in a Data
Guard environment. Ingeneral, RMAN considers tape backups created on one database in the
environment asaccessible to all databases in the environment, whereas disk backups are
accessible only to thedatabase that created them. In a Data Guard environment, LIST displays
those files that areaccessible to the connected target database. RMAN prints the LIST output to
either standard outputor the message log, but not to both at the same time.
Oracle Press1Z0-053 Exam Guide, Chapter 4:Creating RMAN Backups
The LIST commanddisplays information about backupsets and image copies in the repository and
can also store thecontents of scripts stored in the repository catalog.
Another variation on theLIST command is LIST FAILURE, which displays database failures; LIST
FAILURE, ADVISE FAILURE,and REPAIR FAILURE
QUESTION NO:599
To accomplishuser-managed backup for the USERS tablespace, you issued the following commandto put the database in backup mode:
SQL> ALTER TABLESPACE users BEGIN BACKUP;
While copying the fileto the backup destination a power outage caused the instance to te minate abnormally.
Which statement is trueabout the next database startup and the USERS tablespace?
A. The database will open, and the tablespace automaticallycomes out of the backup mode.
B. The database will be mounted, and recovery must beperformed on the USERS tablespace.
C. The database will be mounted, anddata files in the USERS tablespace must be taken out of the backup mode.
D. The database will not be mounted, and you must restoreall the data files for the USERS tablespace from the backup, and performrecovery.
Explanation:
http://www.informit.com/articles/article.aspx?p=30348
DatabaseCrashes During Hot Backup
There can be manyreasons for the database to crash during a hot backup-a power outage or
rebooting of the server,for example. If these were to happen during a hot backup, chances are
that tablespace would beleft in backup mode. In that case you must manually recover the files
involved, and therecovery operation would end the backup of tablespace. It's important to check
the status of the filesas soon as you restart the instance and end the backup for the tablespace if
it's in backup mode.
select a.name,b.statusfrom v$datafile a, v$backup b
where a.file#=b.file#and b.status='ACTIVE';
or
selecta.tablespace_name,a.file_name,b.status from dba_data_files a,
v$backup b
where a.file_id=b.file#and b.status='ACTIVE';
This statement listsfiles with ACTIVE status. If the file is in ACTIVE state, the corresponding
tablespace is in backupmode. The second statement gives the tablespace name also, but this
can't be used unless thedatabase is open. You need to end the backup mode of the tablespace
with the followingcommand:
alter tablespacetablespace_name end backup;
QUESTION NO:600
Examine the followingcommand used to perform incremental level 0 backup:
RMAN> BACKUP INCREMENTAL LEVEL 0 DATABASE;
To enable the blockchange tracking, after the incremental level 0 backup you issued the following command:
SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USINGFILE '/mydir/rman_change_track.f';
To perform incrementallevel 1 cumulativebackup, you issued the following command:
RMAN> BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;
Which two statements aretrue in the above situation? (Choose two.)
A. The block change tracking data willbe used only from the next incremental 0 backup. 块改变跟踪数据竟被使用,从下次增量0备份开始
B. The incremental backup will use change tracking data foraccomplishing the backup.
C. The incremental backup will not usechange tracking data for accomplishing the backup.这次增量备份将不使用改变跟踪数据
D. The block track file will scan all the blocks and createbitmap for all the blocks backed up in the level 0 backup.
Explanation:
Section: Backup, Recovery & Recovery Manager (RMAN)
http://www.pythian.com/documents/Pythian-oracle-block-change.pdf
After enabling changetracking, the first level 0 incremental backup still has to scan the entire
datafile, as the changetracking file does not yet reflect the status of the blocks. Subsequent
incremental backup that usethis level 0 as parent will take advantage of the change tracking file.
When some a chunk needsto be marked dirty for the first time after incremental backup, version
information in bitmapextent headers (X$KRCFBH) is initialized - XFLAGS is set to 2,
CURR_VERCNT andCURR_VERTIME
filled from datafiledescriptor. If file had no changes since last incremental backup - nothing is
written to the bitmap.There is no difference in handling different backup levels. Version is created
in the same way whetherits level 0, level 1 or level 4 backup. By the way, it seems that Oracle
10g documentationofficially mentions only support for levels 0 and 1. However, I checked
incremental backuplevels up to 4 and they do work (10.2.0.2).
Oracle Press1Z0-053 Exam Guide, Chapter 4:Creating RMAN Backups
The first incrementallevel 0 backup reads every block in the datafile, and subsequent incremental
level 1 backups use theblock change tracking file. No reference to create bitmap found.
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm#i1032148
RMAN's change trackingfeature for incremental backups improves incremental backup
performance by recordingchanged blocks in each datafile in a change tracking file. If change
tracking is enabled,RMAN uses the change tracking file to identify changed blocks for incremental
backup, thus avoidingthe need to scan every block in the datafile. Using change tracking in no
way changes the commandsused to pe form incremental backups, and the change tracking files
themselves generallyrequire little maintenance after initial configuration.
QUESTION NO:601
You want to use theautomatic management of backup and recovery operations features foryourdatabase.
Which configuration mustyou set?
你想使用备份和恢复操作功能的自动管理功能。你必须设置哪个配置?
A. Enable the flash recovery area andspecify it as the archived redo log destination.
B. Disable the flash recovery area and start the databaseinstance in ARCHIVELOG mode.
C. Enable the flash recovery area but do not specify it asthe archived redo log destination.
D. Disable the flash recovery area and start the databaseinstance in NOARCHIVELOG mode.
Explanation:
QUESTION NO:602
Which three types of files can be automatically placed inthe flash recovery area (fast recovery area in 11g Release 2)? (Choose three.)有哪3种类型的文件可以自动放置在flash recovery area
A. Alert log file
B. Archived redo log files
C. Control file autobackups
D. Server Parameter file (SPFILE)
E. Recovery Manager (RMAN) backup piece
Explanation:
http://www.pafumi.net/Flash_Recovery_Area.html
The Flash Recovery Area(FRA) is a unified storage location for all recovery related files and
activities in an Oracledatabase.
By defining one init.oraparameter, all RMAN backups, archive logs, control file autobackups, and
datafile copies are automaticallywritten to a specified files system or ASM Disk Group.
Oracle Press1Z0-053 Exam Guide, Chapter 4:Creating RMAN Backups
The following permanentitems are stored in the flash recovery area:
- Control file:Oracle stores one copy of the control file in the flash recovery area during aninstallation, which specifies the flash recovery area.
- Online redo logfiles You can store one mirrored copy from each redo log file group in theflash recovery area.
The following transientitems are stored in the flash recovery area:
- Archived redo logfiles When you configure the flash recovery area, one set of archived redo
log files is stored inthe flash recovery area.
- Flashback logs Flashbacklogs are stored in the flash recovery area when Flashback Database
is enabled.
- Control fileautomatic backups RMAN stores control file automatic backups in the flash
recovery area.
When RMAN backs up thefirst datafile, which is part of the SYSTEM tablespace, the control file is
automatically includedin the RMAN backup.
- Datafile copies Whenyou use the RMAN command BACKUP AS COPY, the datafile copies are
stored in the flashrecovery area by default.
- RMAN backupsets Filescreated with the BACKUP AS BACKUPSET command are stored in
the flash recovery area.
- RMAN files Bydefault, RMAN uses the flash recovery area as a staging area for backup and
recovery of the archivelog files from disk or tape.
QUESTION NO:603
Before a Flashback Tableoperation, you execute the following command:
ALTER TABLE employeesENABLE ROW MOVEMENT;
Why would you need thisto be executed?快速闪回表操作之前,你执行下列命令:
Alter table employees enable row movement;为什么你需要执行这个命令?
A. Because row IDs may change during the flashbackoperation
B. Because the object number changes after the flashbackoperation
C. Because the rows are retrieved from the recycle binduring the flashback operation
D. Because the table is moved forward and back to atemporary during the flashback opertion
Explanation:
QUESTION NO:604
The EMP table has somediscrepancy矛盾 in data entry with a particular employee ID.You execute the query as shown in the Exhibit to retrieve all versions of therow that exist between two SCNs.
View the Exhibit.
Which two statementsabout the results of the query shown in the Exhibit are correct? (Choose two.)
Exhibit:
A. The LAST_SCN value in the first row is NULL, whichmeans that the versions of the row still exist at SCN 6636300.
Lat_scn值首行是null,意味着行的版本仍然存在 在SCN6636300
B. The LAST_SCN value in the second row in NULL, which meansthat the version of the row still exists at SCN 6636300.
C. The LAST_SCN value in the third row is 6636280, whichmeans that the version of row exists above SCN 6636280.
D. The LAST_SCN value in the second rowis NULL, which means that the version of the row no longer exists because itwas deleted.
Explanation:
Dunno -
ExhibitReference: Exhibit Located in1Z0-045 Exam - Exact Question/Answer
http://www.oracle-developer.net/display.php?id=320
If we look at the VERSIONS_OPERATION column,we can see that the second record is actually the delete operation against thelast row
(specified by 'D').
B is Wrong because the record has been deleted.
D is Wrong because the NULL Value does NOT mean the rowno longer exists.
http://www.rampant-books.com/art_otn_flashback_tips.htm
The metadata also givesus an indication that the delete operation was the final version of this data.The end timestamp of the version is NULL which tells us that there is nosuperceding record.
Note that all thechanges to the row are shown here, even when the row was deleted and reinserted.The VERSION_OPERATION column shows what operation (Insert/Update/Delete) was performedon the row. This was done without any need of a history table or additionalcolumns.
QUESTION NO:605
A database instance isusing an Automatic Storage Management (ASM) instance, which has a disk group,DGROUP1, created as follows:
数据库实例使用一个ASM实例,有一个磁盘组DGROUP1
SQL> CREATEDISKGROUP dgroup1 NORMAL REDUNDANCY
FAILGROUP controller1DISK '/devices/diska1', '/devices/diska2'
FAILGROUPcontroller2 DISK '/devices/diskb1', '/devices/diskb2' ;
What happens when thewhole CONTROLLER1 Failure group is damaged?
A. The transactions that use the disk group will halt.
B. The mirroring of allocation units occurs within theCONTROLLER2 failure group.
C. The data in the CONTROLLER1 failuregroup is shifted to the CONTROLLER2 failure group and implicit明确的 rebalancing istriggered.
D. The ASM does not mirror any data and newly allocatedprimary allocation units (AU) are stored in the CONTROLLER2 failure group.
Explanation:
Section: Database Architecture & Resource Management, RAC, ASM
Oracle Press1Z0-053 Exam Guide, Chapter 1:Database Architecture and ASM
Whenever you change theconfiguration of a disk group-whether you are adding or removing a failuregroup or a disk within a failure group-dynamic rebalancing occurs automaticallyto proportionally reallocate data fromother members of the disk group to the new member of the disk
group. This rebalanceoccurs while the database is online and available to users. Any impact to
ongoing database I/O canbe controlled by adjusting the value of the initialization parameter
ASM_POWER_LIMIT to alower value.
QUESTION NO:606
You want to set thefollowing initialization parameters for your database instance:
LOG_ARCHIVE_DEST_1 = 'LOCATION=/disk1/arch'
LOG_ARCHIVE_DEST_2 = 'LOCATION=/disk2/arch'
LOG_ARCHIVE_DEST_3 = 'LOACTION=/disk3/arch'
LOG_ARCHIVE_DEST_4 = 'LOCATION=/disk4/arch MANDATORY'
Identify the statementthat correctly describes this setting.
A. The MANDATORY location must be a flash recovery area.
B. The optional destinations may not use the flash recoveryarea.
C. This setting is not allowed because the first destinationis not set as MANDATORY.
D. The online redo log file is notallowed to be overwritten if the archived log cannot be created in the fourth destination.
Explanation:
QUESTION NO:607
View the Exhibit andnote the contents of V$DIAG_INFO.Which statement is true about the ADR?
Exhibit:
A. The text alert log file will beavailable in Diag Trace
B. A copy alert log file will be kept in Diag Incident forevery incident.
C. The XML version of the alert log file will be availablein Diag Trace.
D. An Automatic Database Diagnostic Management (ADDM) reportis generated and stored in the
Health Monitor wheneveran incident occurs.
Explanation:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/diag001.htm
The V$DIAG_INFO viewlists all important ADR locations for the current Oracle Database
instance.
The following tabledescribes some of the information displayed by this view.
Oracle 1z0-053 Exam
"Pass Any Exam.Any Time." - www.actualtests.com 309
The alert log is an XMLfile that is a chronological log of database messages and errors. It is
stored in the ADR andincludes messages about the following:
- Critical errors(incidents)
- Administrativeoperations, such as starting up or shutting down the database, recovering
the database, creatingor dropping a tablespace, and others.
- Errors duringautomatic refresh of a materialized view
- Other database events
You can view the alertlog in text format (with the XML tags stripped) with Enterprise Manager and
with the ADRCI utility.There is also a text-formatted version of the alert log stored in the ADR for
backward compatibility.However, Oracle recommends that any parsing of the alert log contents be
done with theXML-formatted version, because the text format is unstructured and may change
from release to release.In 11g the default alert log is now in xml format, text is provided for
backward compatibility.
QUESTION NO:608
You are using thecontrol file to maintain information about the database backups that are being performedby Recovery Manager (RMAN). Identify two scenarios is which you must have a recoverycatalog. (Choose two.)
你正在使用控制文件去维护数据库备份的信息(通过RMAN执行)。识别2个场景,你必须有一个recovery catalog。
A. To store the backup information ofmultiple database
B. To restrict the amount of space that is used by thebackups
C. To maintain a backup for a certain time is set by theCONTROL_FILE_RECORD_KEEP_TIME
parameter.
D. To list the data files that were ina target database at a given time by using the AT option of REPORT SCHEMAcommand. 通过使用report schema命令的at选项来列举给定时间的目标库的数据文件。
Explanation:
SYBEX1Z0-053 Study Guide, Chapter 5:Using the RMAN Recovery Catalog
Identifysituations that will require the RMAN recovery catalog. Understand that the recovery
catalog is largelyoptional. A recovery catalog will be needed for storing scripts, and it willbe
required ifyou want to store backup records longer than one year or beyond the setting of
CONTROL_FILE_RECORD_KEEP_TIME.Oracle Press 1Z0-053 Exam Guide, Chapter 3:
Creating and Maintainingan RMAN Catalog Finally, using a recovery catalog permits you to use
the following RMANcommands: - BACKUP...KEEP UNTIL TIME Keep a backup for a period of
time that differs fromthe configured retention policy.
- BACKUP...KEEP FOREVER Keep a backup indefinitely or untilyou manually remove it.
- REPORT SCHEMA...AT Show the structure of the database ata specific time in the past.
QUESTION NO:609
You have enabled backupoptimization for the RMAN environment. Identify two criteria on which RMAN willskip the file, if it has already been backed up. (Choose two.)你已经启用了RMAN环境下的备份优化。识别两个准则,RMAN跳过此文件(如果他已经备份过)
A. The data file backup is done with multiple channels
B. The data files is in the read-write mode after beingbacked up in the read only mode
C. The backup was taken after the datafiles was taken offline-normal or is in the read only mode 在数据文件offline-normal或者处于readonly时,备份发生
D. The data file backup complies with遵从服从 the backretention policy and the backup duplexing feture 数据文件备份遵从备份保留策略和备份转接特征
Explanation:
QUESTION NO:610
You need to maintain arecord of all transactions on some tables for at least three years. Automaticundo management is enabled for the database.
What must you doaccomplish this task?
A. Enable supplemental logging for the database.
B. Specify undo retention guarantee for the database
C. Create Flashback Data Archive in the tablespace where thetables are stored.
D. Create Flashback Data Archive andenable Flashback Data Archive for specific tables
Explanation:
QUESTION NO:611???理解
You issued the followingcommands to configure setting in RMAN;
RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 1;
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO sbt;
RMAN> CONFIGURE DATAFILE BACKUP COPIES FORDEVICE TYPE sbt TO 2;
RMAN> CONFIGURE ARCHIVELOG BACKUP COPIES FORDEVICE TYPE sbt TO 2;
RMAN> CONFIGURE DATAFILE BACKUP COPIES FORDEVICE TYPE DISK TO 2;
Then you issued thefollowing command to take the backup:
RMAN> BACKUP DATABASE PLUS ARCHIVELOG;理解
Which statement is trueabout the execution of the above command?
A. The backup will terminate because the FORMAT clause wasnot configured for the channel
B. It backs up two copies of data files to tape and disk,and two copies of archived log file on tape
C. It backs up the data files and archived log files todisk, making two copies of each data file and archived log file
D. It backs up the data files andarchived log files to tape, making two copies of each data file and archivedlog file
Explanation:
QUESTION NO:612
You work with a newlycreated database. Presently, there is no application load on the database instance.You want to create a baseline for tuning the application, so you decide tocollect
recommendations that canbe implemented to improve application performance.
What action must youtake to achieve this?
A. Run Segment Advisor
B. Run the SQL Tuning Advisor (STA)
C. Run the Automatic Workload Repository (AWR) report
D. Run the SQL Access Advisor with ahypothetical假想的 workload
Explanation:
QUESTION NO:613???为啥不是ADF??
Your database is runningin ARCHIVELOG mode. One of the data files, USERDATA01.dbf, in the USERStablespace is damaged and you need to recover the file until the point offailure. The
backup for the datafileis available. Which three files would be used in the user-managed recovery
process performed by thedatabase administrator (DBA)? (Choose Three)
A. Redo logs
B. Control file
C. The latest backup of only thedamaged data file
D. The latest backup of all the data file in the USERStablespace
E. Temporary files of temporary tablespace
F. Archive Logs since the latest backupto point of failure
Explanation:
QUESTION NO:614
Which options must youconfigure while performing an automated Tablespace Point-in-Time Recovery (TSPITR) by using Recovery Manager(RMAN)?
A. New channels for restore and recovery tasks
B. New name for the data files of the tablespace
C. Auxiliary name for the data files of the tablespace
D. Auxiliary destinations for anauxiliary set of data files
Explanation:
Use the AUXILIARYDESTINATION parameter to set a location for RMAN to use for the auxiliary
set datafiles. Theauxiliary destination must be a location on disk with enough space to hold
auxiliary set datafiles.Even if you use other techniques to rename some or all of the auxiliary set
datafiles, specifying anAUXILIARY DESTINATION parameter provides a default location for
auxiliary set datafilesfor which names are not specified. TSPITR will not fail if you inadvertently do
not provide names forall auxiliary set datafiles.
Oracle Press1Z0-053 Exam Guide,
Chapter7: Miscellaneous RMAN Features
Auxiliarydestination A temporary location tostore the auxiliary set of files, including online and
archived redo log files,and a copy of the control file during created the recovery process.
QUESTION NO:615
In Recovery Manager(RMAN), you are taking image copies of the data files of your production databaseand rolling them forward at regular intervals. You attempt to restart yourdatabase. After a regular maintenance task, you realize that one of the datafiles that belongs to the USERS tablespace is damaged and you need to recoverthe data file by using the image copy. Because a
media failure caused thedata file to be damaged, you want to place the data file in a different locationwhile resto ing the file.
Which option must youconsider for this task?
在RMAN,你可以进行image copy(你生产库的数据文件,前滚tameness岛一个定期间隔)。你尝试重启你的数据库。一个定期的维护任务之后,你认识到users表空间中的某个数据文件损坏,你需要使用imagecopy来进行数据文件的恢复。因为一个介质管理失败引起数据文件损坏,你想放置数据文件到不同的位置(当还原文件时)。
哪个选项你必须考虑为这个任务?
A. using only the RMAN SWITCH command to set the newlocation for the data file
B. placing the database in the MOUNT state for the restoreand recovery operations.
C. using an RMAN RUN block with the SETNEWNAME and then the SWITCH command.
D. configuring two channels: one for the restore operationand the other for the recovery operation
Explanation:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmconc2.htm
RMAN automates theprocedure for restoring files. You do not need to go into the operating
system, locate thebackup or copy that you want to use, and manually copy files into the
appropriate directories.When you issue a RESTORE command, RMAN directs a server session
to restore the correctbackups and copies to either: The default location, overwriting the files with
the same name currentlythere A new location, which you can specify with the SET NEWNAME
command To restore adatafile, either mount the database or keep it open and take the datafile to
be restored offline.When RMAN performs a restore, the RESTORE command creates the
restored files asdatafile copies and records them in the repository. The following tabledescribes
the behavior of theRESTORE, SET NEWNAME, and SWITCH commands.
For example, if yourestore datafile ?/oradata/trgt/tools01.dbf to its default location, then RMAN
restores the file?/oradata/trgt/tools01.dbf and overwrites any file that it finds with the same
filename. If you run aSET NEWNAME command before you restore a file, then RMAN creates a
datafile copy with thename that you specify. For example, assume that you run the following
commands:
SET NEWNAME FOR DATAFILE'?/oradata/trgt/tools01.dbf' TO '/tmp/tools01.dbf';
RESTORE DATAFILE'?/oradata/trgt/tools01.dbf';
In this case, RMANcreates a datafile copy of ?/oradata/trgt/tools01.dbf named /tmp/tools01.dbf
and records it in therepository.
To change the name fordatafile ?/oradata/trgt/tools01.dbf to /tmp/tools01.dbf in the control file,run
a SWITCH command so thatRMAN considers the restored file as the current database file. For
example:
SWITCH DATAFILE'/tmp/tools01.dbf' TO DATAFILECOPY '?/oradata/trgt/tools01.dbf';
The SWITCH command isequivalent to the SQL statement ALTER DATABASE RENAME FILE.
QUESTION NO:616
The database is runningin the ARCHIVELOGmode. It has three redolog groups with one member each. One of the redo log groups has becomecorrupted. You have issued the following
command during therecovery of a damaged redo log file:
ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 3;
Which action should youperform immediately after using this command?
A. You should perform a log switch
B. You should make a backup of thedatabase
C. You should switch the database to the NONARCHIVELOG mode
D. You should shut down the database instance and perform acomplete database recovery
Explanation:
SQL> ALTER DATABASECLEAR LOGFILE UNARCHIVED GROUP 3;
Immediately back up alldatafiles in the database with an operating system utility, so that you have
a backup you can use forcomplete recovery without relying on the cleared log group. For
example, enter:
% cp/disk1/oracle/dbs/*.dbf /disk2/backup
http://www.oracle-dba-online.com/managing_redo_logfiles.htm
This statement clearsthe corrupted redo logs and avoids archiving them. The cleared redo logs
are available for useeven though they were not archived. If you clear a log file that is needed for
recovery of a backup,then you can no longer recover from that backup. The database writes a
message in the alert logdescribing the backups from which you cannot recover.
QUESTION NO:617
Which option is bestpractice for creating a recovery catalog owner in the catalog database?哪个选项是创建一个recovery catalog属主(在catalog数据库中)的最佳实践?
A. Granting UNLIMITED QUOTA on the SYSTEM tablespace to theowner
B. Allocating the SYSTEM tablespace as the defaulttablespace and granting the SYSDBA privilegeto the user
C. Creating a new tablespace,allocating this as the default, and granting UNLIMITED QUOTA on this tablespace to the user
D. Allocating the SYSAUX tablespace as the defaulttablespace and granting UNLIMITED QUOTA on this tablespace to the user
Explanation:
Section: Backup, Recovery & Recovery Manager (RMAN)
SQL> CREATE USER vpc1IDENTIFIED BY password
2 DEFAULT TABLESPACEvpcusers
3 QUOTA UNLIMITED ONvpcusers;
http://www.dba-oracle.com/real_application_clusters_rac_grid/recovery_catalog.html
The RMAN schema owner iscreated in the RMAN database using the following steps:
1. Start SQL*Plus andconnect as a user with administrator privileges to the database containing
the recovery catalog:
CONNECT SYS/oracle@catdbAS SYSDBA
2. Create a user andschema for the recovery catalog. For example, enter:
CREATE USER rmanIDENTIFIED BY cat
TEMPORARY TABLESPACEtemp
DEFAULT TABLESPACE tools
QUOTA UNLIMITED ONtools;
3. Grant therecovery_catalog_owner role to the user.
This role provides allof the privileges required to maintain and query the recovery catalog:
SQL> GRANTRECOVERY_CATALOG_OWNER TO rman; Once the owner user is created, the
RMAN recovery catalogschema can be added:
1. Connect to thedatabase that contains the catalog owner. For example, using the RMAN user
from the above example,enter the following from the operating system command line. The use of
the
CATALOG keyword tellsOracle this database contains the repository: % rman CATALOG
rman/cat@catdb
2. It is also possibleto connect from the RMAN utility prompt: % rman RMAN> CONNECT
CATALOG rman/cat@catdb
3. Now, the CREATECATALOG command can be run to create the catalog. The creation of the
catalog may take severalminutes. If the catalog tablespace is this user's default tablespace, the
command would look likethe following: CREATE CATALOG;
Each database that thecatalog will track must be registered.
1. Make sure therecovery catalog database is open.
2. Connect RMAN to boththe target database and recovery catalog database. For example, with a
catalog database ofRMANDB and user RMAN, owner of the catalog schema, and the target
database, AULT1, whichis the database to be backed up, database user SYS would issue: %
rman TARGETsys/oracle@ault1 CATALOG rman/cat@rmandb
3. Once connected, ifthe target database is not mounted, it should be opened or mounted:
RMAN> STARTUP; --or--RMAN> STARTUP MOUNT;
4. If this targetdatabase has not been registered, it should be registered in the connected
recovery catalog:RMAN> REGISTER DATABASE;
QUESTION NO:618
Which two statements aretrue about encrypting RMAN backup? (Choose two.)关于加密RMAN备份描述正确的是:
A. The transparent encryption ofbackups uses the encryption wallet备份的透明加密使用加密钱包
B. The database uses the same encryption key for everyencrypted backup
C. The password encryption of backupsonly uses the password while creating and restoring backup 备份的密码加密只用于当创建和还原备份时使用密码
D. If transparent encryption is configured, you cannot usethe SET ENCRYPTION BY PASSWORD command to make password-protected backups.
Explanation:
http://www.di.unipi.it/~ghelli/didattica/bdldoc/B19306_01/backup.102/b14191/rcmbackp006.htm
A)Transparent Encryption of Backups
This is the default modeand uses the Oracle wallet. A wallet is a password-protected container
used to storeauthentication and signing credentials, including private keys, certificates,and
trusted certificatesneeded by SSL.
C) PasswordEncryption of Backups
This mode uses onlypassword protection. You must provide a password when creating and
restoring encryptedbackups.
Dual ModeEncryption of Backups
Dual-mode encryptedbackups can be restored either transparently or by specifying a password.
When restoring adual-mode encrypted backup, you can use either the Oracle Encryption Wallet
or a password fordecryption.
QUESTION NO:619
View the Exhibit andexamine the output of the query in different times when the following commandruns in an
RMAN sessions: RMAN> BACKUP DATABASE FILESPERSET 2;
The database has sevendata files. Why is the %_COMPLETE refreshed to 13.59 in the third output afterreaching 88.77?
Exhibit:
A. Because the progress is reported for each data file
B. Because the progress is reported foreach backup set
C. Because other RMAN sessions have issued the same BACKUPcommand
D. Because new data files have been added to the databasewhile the RMAN backup is in
progress
Explanation:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/advmaint.htm#i1008347
While the RMAN job isrunning, start SQL*Plus and connect to the target database, and execute
the longops script tocheck the progress of the RMAN job.
If you repeat the querywhile the RMAN job progresses, then you see output such as the following:
If you run the longopsscript at intervals of two minutes or more and the %_COMPLETE column
does not increase, thenRMAN is encountering a problem. Refer to "Monitoring RMAN Interaction
with the MediaManager" on page 23-8 to obtain more information. If you frequentlymonitor the
execution oflong-running tasks, then you could create a shell script or batch file underyour host
operating system thatruns SQL*Plus to execute this query repeatedly.
QUESTION NO:620
Note the followingparameter settings:
Which setting is NOTallowed?
A. ALTER SYSTEM SET DB_CACHE_SIZE=50M;
B. ALTER SYSTEM SET DB_8K_CACHE_SIZE=10M;
C. ALTER SYSTEM SET DB_4K_CACHE_SIZE=10M;
D. ALTER SYSTEM SET DB_16K_CACHE_SIZE=10M;
Explanation:
Section: Initialization, Parameters, File Location & ServerConfiguration
http://www.akadia.com/services/ora_asm_multiple_block_sizes.html
db_block_size integer8192 - is the db default so you can't have 8K subcache.
QUESTION NO:621
Which three statementsmust be true before transporting a tablespace from a database on one platform to a database on another platform?(Choose three.)
A. Both source and target database mustbe the same character set
B. Both source and target database musthave the same endian format
C. The COMPATIBLE parameter must be the same in the sourceand target databases.
D. The minimum compatibility level forboth the source and target database must be 10.0.0.
E. All read-only and offline data files that belong to thetablespace to be transported must be platform aware.
Explanation:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/tspaces013.htm#ADMIN01101
Limitationson Transportable Tablespace Use
The source and targetdatabase must use the same character set and national character set.
You cannot transport atablespace to a target database in which a tablespace with the same name
already exists. However,you can rename either the tablespace to be transported or the
destination tablespacebefore
the transport operation.Objects with underlying objects (such as materialized views) or contained
objects (such aspartitioned tables) are not transportable unless all of the underlying orcontained
objects are in thetablespace set. Encrypted tablespaces have the following the limitations:Before
transporting anencrypted tablespace, you must copy the Oracle wallet manually to thedestination
database, unless themaster encryption key is stored in a Hardware Security Module (HSM)
device instead of anOracle wallet. When copying the wallet, the wallet password remains the
same in the destinationdatabase. However, it is recommended that you change the password on
the destination databaseso that each database has its own wallet password. See Oracle
Database AdvancedSecurity Administrator's Guide for information about HSM devices, about
determining the locationof the Oracle wallet, and about changing the wallet password with Oracle
Wallet Manager. Youcannot transport an encrypted tablespace to a database that already has an
Oracle wallet fortransparent data encryption. In this case, you must use Oracle Data Pump to
export the tablespace'sschema objects and then import them to the destination database. You
can optionally takeadvantage of Oracle Data Pump features that enable you to maintain
encryption for the datawhile it is being exported and imported. See Oracle Database Utilities for
more information. Youcannot transport an encrypted tablespace to a platform with different
endianness. Tablespacesthat do not use block encryption but that contain tables with encrypted
columns cannot betransported. You must use Oracle Data Pump to export and import the
tablespace's schemaobjects. You can take advantage of Oracle Data Pump features that enable
you to maintainencryption for the data while it is
being exported andimported. See Oracle Database Utilities for more information.
Beginning with OracleDatabase 10g Release 2, you can transport tablespaces that contain
XMLTypes. Beginning withOracle Database 11g Release 1, you must use only Data Pump to
export and import thetablespace metadata for tablespaces that contain XMLTypes.
The following tableshows the minimum compatibility requirements of the source and target
tablespace in variousscenarios. The source and target database need not have the same
compatibility setting.
QUESTION NO:622
Your database instanceis running. You are not able to access Oracle Enterprise Manager DatabaseControl because the listener is not started.
Which tool or utilitywould you use to start the listener?
A. Oracle Net Manager
B. Listener Control utility
C. Database Configuration Assistant
D. Oracle Net Configuration Assistant
Explanation:
http://download.oracle.com/docs/cd/A97630_01/network.920/a96581/lsnrctl.htm
ListenerControl Utility:
The Listener Controlutility enables you to configure listeners to receive client connections. You
can access the utilitythrough Enterprise Manager or as a standalone command-line application.
QUESTION NO:623
While Monitoring thespace usage in your database that is in ARCHIVELOG mode you observed that theflash recovery area does not have enough free space to accommodate any morefiles and you do not have necessary permissions to add more space to it.
Identify the two eventsthat can occur in the event of a log switch? (Choose two.)
当监视你数据库中的空间使用情况时,处于归档模式,你观察看到fra没有足够的空间去存放更多地文件,你也米有足够的权限去添加更多的空间给它。识别在日志切换时发生的两个事件?
A. An entry is created in the alert log file and thedatabase instance continues to function no mally
B. The log switch hangs occur fortransactions until free space is available in the flash recovery area
C. The Oracle database server deletes afile that is on the obsolete file list to make free space in the flash recovery area
D. The database instance status is implicitly changed toRESTRICTED mode and file creations to theflash recovery area are prevented
Explanation:
https://netfiles.uiuc.edu/jstrode/www/oraelmt/redo_log_files.html
Log Switch:
A log switch occurs whenthe database stops writing to one online redo log file and begins writing
to another. Normally, aswitch occurs when the current online redo log file is full and writing must
continue. However, youcan configure log switches to occur at regular intervals, regardless of
whether the currentonline redo log file is filled, and force log switches manually.
Incrementalcheckpoints:
An incrementalcheckpoint is a type of thread checkpoint partly intended to avoid writinglarge
numbers of blocks atonline redo log switches. DBWn checks at least every three seconds to
determine whether it haswork to do. When DBWn writes dirty buffers, it advances the checkpoint
position, causing CKPTto write the checkpoint position to the control file, but not to the data file
headers.
QUESTION NO:624
Identify the persistentconfiguration setting for the target database that can be set for the backup by using RMAN. (Choose all that apply.)
A. Backup retention policy
B. Default backup device type
C. Default destinations for backups
D. Multiple backup device types for single backup
E. Default section size for backups
Explanation:
QUESTION NO:625
Which three statementsare true about windows? (Choose three.)
A. Only one window can be open at anygiven time
B. Consumer groups are associated with windows
C. Windows work with job classes tocontrol resource allocation
D. The database service name must be provided during windowscreation
E. Windows can automatically start jobor change resource allocation among jobs for various time
periods.
Explanation:
QUESTION NO:626
Which three statementsare true about persistent configuration? (Choose three.)
A. A user cannot set privileges on thepersistent lightweight jobs
B. Persistent lightweight jobs generate a large amount ofmetadata
C. It is possible to create fully self-contained persistentlightweight jobs
D. The use of a template is mandatoryto create persistent lightweight jobs
E. Persistent lightweight jobs areuseful when users need to create a large number of jobs in a
short time
Explanation:
QUESTION NO:627
You want to enableautomatic PGA memory management in your database. Which setting is required toachieve this?
A. Set MEMORY_TARGET to zero
B. Set the STATISTICS_LEVEL parameter to BASIC
C. Set the WORKAREA_SIZE_POLICY parameter to MANUAL
D. Set the PGA_AGGREGATE_TARGETparameter to nonzero value
Explanation:
Automatic PGA MemoryManagement:
When automatic memorymanagement is disabled and PGA_AGGREGATE_TARGET is set to a
nonzero value, the databaseuses automatic PGA memory management.
In this mode, thePGA_AGGREGATE_TARGET specifies a target size for the instance PGA. The
database then tunes thesize of the instance PGA to this target and dynamically tunes the sizes of
individual PGAs. If youdo not explicitly set a target size, then the database automatically
configures a reasonabledefault.
QUESTION NO:628
Examine the parametersetting in your database:
Which statement iscorrect about the database?
A. Automatic memory management is disabled becausePGA_AGGREGATE_TARGET and
SGA_TARGET are not set
B. The instance is started but the database will not beopened until PGA_AGGREGATE_TARGET
and SGA_TARGET are set
C. The database is opened but users cannot performtransactions until
PGA_AGGREGATE_TARGET andSGA_TARGET are set
D. Automatic memory management isenabled and, as per policy, 60% of the memory for System
Global Area (SGA) and 40% of the memory for ProgramGlobal Area (PGA) will be distributed at
startup
Explanation:
Not sure about thepolicy stuff, but it's the default behavior when memory_target and
memory_max_target are
set, sga_max_target isalways set automatically to the same value as memory_max_target
http://download.oracle.com/docs/cd/B14117_01/server.101/b10752/memory.htm#47750
ConfiguringAutomatic PGA Memory
When configuring a brandnew instance, it is hard to know precisely the appropriate setting for
PGA_AGGREGATE_TARGET.You can determine this setting in three stages: Make a first
estimate forPGA_AGGREGATE_TARGET, based on a rule of thumb. By default, Oracle uses
20% of the SGA size.However, this initial setting may be too low for a large DSS system.
Run a representativeworkload on the instance and monitor performance, using PGA statistics
collected by Oracle, tosee whether the maximum PGA size is under-configured or overconfigured.
TunePGA_AGGREGATE_TARGET, using Oracle PGA advice statistics.
QUESTION NO:629
Which three functionsare performed by the SQL Tuning Advisor? (Choose three.)通过SQL调优建议器可以执行的3个功能:
A. Building the SQL profile
B. Recommending optimization of materialized views
C. Checking query objects for missingand stale statistics
D. Recommending bitmap, function-based, and B-tree indexes
E. Recommending restructuring SQLqueries that are using bad plans
Explanation:
SQL Tuning AdvisorAutomatic SQL tuning is exposed through SQL Tuning Advisor.
SQL Tuning Advisor runsautomatically during system maintenance windows as a maintenance
task. During eachautomatic run, the advisor selects high-load SQL queries in the database and
generatesrecommendations for tuning these queries.
SQL Tuning Advisorrecommendations fall into the following categories:
- Statistics analysis
- SQL profiling
- Access path analysis
- SQL structure analysis
A SQL Profile containsadditional statistics specific to a SQL statement and enables the optimizer
to generate a betterexecution plan. Essentially, a SQL profile is a method for analyzing a query.
Both access path and SQLstructure analysis are useful for tuning an application under
development or ahomegrown production application.
A principal benefit ofSQL Tuning Advisor is that solutions come from the optimizer rather than
external tools (see"Overview of the Optimizer" on page 7-10). Thus, tuning is performedby the
database component thatis responsible for the execution plans and SQL performance. The tuning
process can considerpast execution statistics of a SQL statement and customizes the optimizer
settings for thisstatement.
http://www.remote-dba.net/oracle_10g_new_features/tuning_advisor.htm
How the SQLTuning Advisor Works:
The optimizer will workin the new tuning mode wherein it conducts an in-depth analysis to come
up with a set ofrecommendations, the rationale for them and the expected benefit if you followthe
recommendations. Whenworking in tuning mode, the optimizer is referred to as the Automatic
Tuning Optimizer (ATO).
QUESTION NO:630
In your productiondatabase, users report that they are unable to generate reports on an important
table because it doesnot contain any data. While investigating the reason, you realize that
another user executedthe TRUNCATE TABLE command, which accidentally caused the data to
be lost. Now you want torecover the lost data of the table without affecting objects in other
schemas.
Which method must youuse to recover the lost data?
A. Complete Recovery with online redo log
B. Complete Recovery with archived redo log
C. Tablespace Point-in-Time Recovery(TSPITR)
D. Incomplete Recovery with system change number (SCN)
Explanation:
RMAN TSPITR is mostuseful for the following situations:
- You want to recoverdata lost after DDL operations that change the structure of tables.
You cannot use FlashbackTable to rewind a table to before the point of a structural change
such as a truncate tableoperation.
QUESTION NO:631
View the Exhibit.
You are creating adatabase by using Database Configuration Assistant (DBCA). You have chosen the File System option as the storagemechanism. What would be the result of choosingthis option?
Exhibit:
A. Disk mirroring and striping would be done automatically
B. The database files would be managedby the operating system's file system
C. DBCA would not save the database files by using OptimalFile Architecture (OFA)
D. The data files are automatically spread across allavailable storage devices to optimize performance and resource utilization
Explanation:
QUESTION NO:632
View the Exhibit andexamine the disk groups created at the time of migrating the database storage to Automatic Storage Management (ASM)
.
Why does the FRA diskgroup initially最初 have more free space even though both DATAand FRA disk groups are provided with the same size?
A. Because the FRA disk group will not support dynamicrebalancing
B. Because the FRA disk group is notconfigured to support mirroring
C. Because disks in the FRA disk group are not formatted atthis stage
D. Because the FRA disk group will support only a singlesize of allocation unit
Explanation:
QUESTION NO:633
Which two statements aretrue about a job chain? (Choose two.)
A. A job chain can contain a nestedchain of jobs.
B. The jobs in a job chain cannot have more than onedependency.
C. A job of the CHAIN type can be runusing event-based or time-based schedules.
D. The jobs in a job chain can be executed only by using theevents generated by the Scheduler
Explanation:
QUESTION NO:634
View the exhibit andexamine the TRANS table's storage information.
After a massive deleteoperation, you executed the following statement to shrink the TRANS table:
SQL> ALTER TABLEtrans SHRINK SPACE CASCADE;
Which statementdescribes the outcome of the command?
Exhibit:
A. An error is produced.
B. The table and all related objectsare compacted and the position of the high-water mark (HWM) for the table isadjusted
C. The table and related indexes are compacted but theposition of the high-water mark (HWM) for the table remains unchanged
D. The unused space in the table is reclaimed and returnedto the tablespace and the data manipulation language (DML) triggers on the tableare fired during the shrinking process
Explanation:Exhibit Reference:
CASCADE:
If you specify CASCADE,then Oracle Database performs the same operations on all dependent
objects of table,including secondary indexes on index-organized tables. The CASCADE clause
extends the segmentshrink operation to all dependent segments of the object. For example, if you
specify CASCADE whenshrinking a table segment, all indexes of the table will also be shrunk.
(You need not specifyCASCADE to shrink the partitions of a partitioned table.) To see a list of
dependent segments of agiven object, you can run the OBJECT_DEPENDENT_SEGMENTS
procedure of theDBMS_SPACE package.
QUESTION NO:635
You executed thefollowing commands in a database session:
What could have causedthe recycle bin to clean up?
A. There is demand for space from thenew table
B. The undo tablespace does not have sufficient free space
C. The new table name is the same as the table name in therecycle bin
D. The temporary tablespace that is assigned to you does nothave sufficient free space
Explanation:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/flashptr004.htm#i1019426
Recycle BinCapacity and Space Pressure
There is no fixed amountof space preallocated for the recycle bin. Therefore, there is no
guaranteed minimumamount of time during which a dropped object will remain in the recycle bin.
The rules that governhow long an object is retained in the recycle bin and how and when space is
reclaimed are explainedin this section.
QUESTION NO:636
Note the followingstatements that use flashback technology:
1. FLASHBACK TABLE