oracle11g OCP 认证 1Z0-053考试笔记1

前端之家收集整理的这篇文章主要介绍了oracle11g OCP 认证 1Z0-053考试笔记1前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
1. While deploying a new application module,the software vendor ships the application software along with appropriate sql plan baselines for the new sqls being introduced. Which two statements describe the consequences? (Choose two.) A. The plan baselines can be evolved进化 over time to produce better performance. B. The newly generated plans are directly placed into the sql plan baseline without being verified. C. The new sql statements initially run with the plans that are known to produce good performance under standard test configuration. D. The optimizer does not generate new plans for the sql statements for which the sql plan baseline has been imported. Answer: AC 答案解析: 参考:http://blog.csdn.net/rlhua/article/details/16369811 当部署一个新的应用模块时,软件供应商与用于被引入的新sql的适当的sql计划基线一起运送应用软件。哪两个语句描述了后果? A,计划基线可以随着时间的推移演变,产生更好的性能。 C,新的sql语句最初与计划一起运行,该计划在标准测试配置下已知能产生良好的性能。 新应用程序部署:部署新的应用程序模块意味着在系统中引入新的 sql 语句。软件供应商可以将应用程序软件与新引入的sql 语句的相应sql 计划基线一起提供。由于存在计划基线,新的sql 语句最初将与已知在标准测试配置下具有良好性能的计划一起运行。但是,如果客户系统配置与测试配置有很大的差异,则计划基线可随时间演化以产生更好的性能。 2.You plan to have a larger moving window size for the default system-defined moving window baseline because you want to use the adaptive threshold. Which statement factors in this consideration while increasing the size of the moving window.? A. The collection level for the AWR should be set to BASIC. B. The moving window size must be less than Undo Retention. C. The moving window size should be greater than the Automatic Workload Repository (AWR) retention period. D. The moving window size should be equal to or less than the Automatic Workload Repository (AWR) retention period. Answer: D 答案解析: 参考:http://docs.oracle.com/cd/E11882_01/server.112/e41573/autostat.htm#PFGRF94178 Moving Window Baseline A moving window baseline corresponds to all AWR data that exists within the AWR retention period. This is useful when using adaptive thresholds because the database can use AWR data in the entire AWR retention period to compute metric threshold values. Oracle Database automatically maintains a system-defined moving window baseline. The default window size for the system-defined moving window baseline is the current AWR retention period,which by default is 8 days. If you are planning to use adaptive thresholds,consider using a larger moving window—such as 30 days—to accurately compute threshold values. You can resize the moving window baseline by changing the number of days in the moving window to a value that is equal to or less than the number of days in the AWR retention period. Therefore,to increase the size of a moving window,you must first increase the AWR retention period accordingly. 参考:http://blog.csdn.net/rlhua/article/details/16802303 移动窗口基线 Oracle Database 会自动维护一个系统定义的移动窗口基线。系统定义的移动窗口基线的默认窗口大小为当前的AWR 保留期(默认为八天)。如果计划使用自适应阈值,则可考虑使用较大的移动窗口(如30 天),以便精确地计算阈值。通过将移动窗口中的天数更改为等于或小于AWR 保留期中的天数的值,可以调整移动窗口基线的大小。因此,要增加移动窗口的大小,需要先相应地增加AWR 保留期。 这种系统定义的基线提供了一个现成的默认基线,EM 的性能屏幕可对照当前的数据库性能性能进行比较。 注:在Oracle Database 11g中,快照数据的默认保留期已经从七天更改为八天,以确保捕获整周的性能数据。 3. 联机重做日志丢失的恢复 one redo member. When you attempt to start the database,you receive the following errors: ORA-00313: open Failed for members of log group 1 of thread 1 ORA-00312: online log 1 thread 1: 'D:\REDO01.LOG' You discover that the online redo log file of the current redo group is corrupted. C. ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 1; 4.Which three components does the Scheduler调度器 use for managing tasks within the Oracle environment? (Choose three.) A. a job B. a program C. a schedule D. a PL/sql procedure Answer: ABC 在Oracle环境调度程序为管理任务使用哪三个组件? A. a job作业 B. a program程序 C. a schedule调度 核心组件和主要步骤 一个作业包含两个必需组件:需要执行的操作,操作的发生时间或调度。“操作”是由命令区域和作业属性中的job_type和job_action参数表示的。“时间”是在调度中表示的,调度可以基于时间或事件,或者从属于其它作业的结果。 调度程序使用以下基本组件: • “作业”指定要执行的操作。它可以是PL/sql 过程、纯二进制可执行文件、Java 应用程序或Shell 脚本。可以将程序(内容)和调度(时间)指定为作业定义的一部分, 也可以改用现有的程序或调度。可以使用作业的参数来定制其运行时行为。 • “调度”指定作业的执行时间和次数。调度可以基于时间或事件。可以为作业定义调度,方法是使用一系列日期、一个事件,或两者相结合,以及表示重复间隔的附加说 明。可以单独存储作业的调度,然后对多个作业使用同一个调度。 • “程序”是有关特定可执行文件、脚本或过程的元数据集合。自动作业将执行某个任务。使用程序,无需修改作业本身即可修改作业任务或者“内容”。可以定义程序的参数,使用户可以修改任务的运行时行为。 5. Which two statements are true regarding the Health Check report? (Choose two.) A. Health Check was performed manually. B. Health Check was performed to check the disk image block corruptions. 6. You are working on a CATDB database that contains an Oracle Database version 11.1 catalog schema owned by the user RCO11. The INST1 database contains an Oracle Database version 10.1 catalog schema owned by the user RCAT10. You want the RMAN to import Metadata for database IDs 1423241 and 1423242,registered in RCAT10,into the recovery catalog owned by RCO11. You also want to deregister them from the catalog after import. You executed the following commands to achieve this: RMAN> CONNECT CATALOG rco11/password@catdb RMAN> IMPORT CATALOG rcat10/oracle@inst1 DBID=1423241,1423242; What happens if the RCO11 catalog has scripts with the same name as that of the scripts in RCAT10 catalog? D. RMAN renames the global scripts that are imported from the RCAT10 catalog. global scripts:可以针对在恢复目录中注册的任何数据库执行. 在import时,如果 global scripts与目标方案的 global scripts名称相同,则RMAN会重新命名为COPY OF script_name。 A stored script is either global or local. It is possible for global scripts,but not local scripts,to have name conflicts during import because the destination schema contains the script name. In this case,RMAN renames the global script name to COPY OF script_name. For example,RMAN renames bp_cmd to COPY OF bp_cmd. If the renamed global script is still not unique,then RMAN renames it to COPY(2) OF script_name. If this script name also exists,then RMAN renames the script to COPY(3) OF script_name. RMAN continues the COPY(n) OF pattern until the script is uniquely named. 7.You need to configure fine-grained细粒度的 access control to external network resources from within your database. You create an access control list (ACL) using the DBMS_NETWORK_ACL_ADMIN package. Which statement is true regarding the ACL created B. It is a list of users and network privileges stored in the XML file according to which a group of users can connect to one or more hosts. xml 文件列表包括一组用户 8.Which statement is true regarding online redefinition重新定义 for the migration of BasicFile LOBs to SecureFile LOBs? 关于在线重定义(从basicfile lobs迁移到securefile lobs)正确的是 B. It can be done at the table level or partition level. 联机重定义是将BasicFiles LOBs移植为SecureFiles LOBs唯一建议的方法. 可以在表或分区层次执行. 联机重定义好处: 不需要使表或分区脱机 可以并行执行 9.Which statement describes the information returned by the DBMS_SPACE.SPACE_USAGE procedure for LOB space usage? 哪个语句描述信息(通过dbms_space.space_usage过程)的信息 B. It returns space usage of only SecureFile LOB chunks大块. SPACE_USAGE Procedures The first form of the procedure shows the space usage of data blocks under the segment High Water Mark. You can calculate usage for LOBs,LOB PARTITIONSand LOB SUBPARTITIONS. This procedure can only be used on tablespaces that are created with auto segment space management. The bitmap blocks,segment header,and extent map blocks are not accounted for by this procedure. Note that this overload cannot be used on SECUREFILE LOBs. The second form of the procedure returns information about SECUREFILE LOB space usage. It will return the amount of space in blocks being used by all theSECUREFILE LOBs in the LOB segment. The procedure displays the space actively used by the LOB column,freed space that has retention expired,and freed space that has retention unexpired. Note that this overload can be used only on SECUREFILE LOBs. 10.Consider the following scenario for your database: -Backup optimization is enabled in RMAN. The recovery window is set to 7 days in RMAN. The most recent backup to disk for the TOOLS tablespace was taken on November 3,2007. The TOOLS tablespace is read-only since November 4,2007. On November 23,2007,you issue the RMAN command to back up the database to disk. Which statement is true regarding the backup of the TOOLS tablespace? D. The RMAN makes the backup because no backup of the tablespace exists within the seven day window Answer: D For backups to tape,RMAN takes another backup of a file,even if a backup of an identical file exists,if the most recent backup is older than the configured recovery window. This is done to allow media to be recycled after the media expires. For backups to disk,RMAN skips taking the backup ifan identical完全相同的 file is available from a backup on disk,even if that backup is older than the beginning of the recovery window. The retention policy causes RMAN to retain the old backup for as long as it is needed. 11.View the Exhibit to examine the metrics度量 with a threshold入口门槛极限阈值. Which statement is true regarding the Number of Transactions (per second) metric? A. Oracle uses statistical统计学的 relevance to关联适当 determine when an adaptive threshold自适应阈值 has been breached违反 for the metric. 甲骨文使用统计相关性,以确定当一个自适应阈值已被 违反的度量 12.You performed the RMAN database backup having a backupset key number 231 with the KEEP FOREVER option. After some days,you want to change the status of the database backup and you issued the following command: RMAN>CHANGE BACKUPSET 231 NOKEEP; What is the implication of this command? D. the backup becomes eligible for合格够资格 deletion according to the existing retention policy Answer: D 你有一个备份集执行关键231号与保存RMAN备份数据库 永远保存。 几天后,你想改变数据库备份的状态,你下发了如下 命令: RMAN>CHANGE BACKUPSET 231 NOKEEP; 这个命令的含义是什么? D.根据现有的保留策略,该备份有资格删除 13.View the Exhibit that sets the threshold for the Current Open Cursors Count metric当前打开的游标数度量. Why is the Significancen. 意义;重要性;意思 Level threshold type not available in the threshold setting? B. because Current Open Cursors Count is not a basic metric 当前打开的游标计数 不是基本度量。 非基本度量不支持显著性水平阈值。 注: 非基本度量显示的是基于 AWR 快照的平均值,而不是每分钟的度量值。 14.Which two statements are true regarding hot patching热补丁程序? (Choose two.) B. It does not require database instance shutdown. C. It can detect conflicts between two online patches. 15.You are in the process of creating a virtual private catalog in your Oracle Database 11g database. The PROD1,PROD2,and PROD3 Oracle Database 10g databases are registered in the base recovery catalog. The database user who owns the base recovery catalog is CATOWNER. CATOWNER executes the following command to grant privileges to a new user VPC1 using Oracle Database 11g RMAN executables: RMAN> GRANT CATALOG FOR DATABASE prod1,prod2 TO vpc1; Then you issue the following commands: RMAN> CONNECT CATALOG vpc1/oracle@catdb; RMAN> sql "EXEC catowner.dbms_rcvcat.create_virtual_catalog;" What is the outcome of the above commands? A. They execute and create a virtual catalog for pre-Oracle 11g clients. 使用rman虚拟专用目录步骤: 以下是使用rman虚拟专用目录步骤: 16.Because of a logical corruption in your production database,you wanted to perform Tablespace Point in Time Recovery (TSPITR). But before you start the recovery,you queried the TS_PITR_OBJECTS_TO_BE_DROPPED view and realized that there are a large number of objects that would be dropped when you start the recovery by using this method. You want to preserve these objects. Which option must you use to perform TSPITR and preserve the object? A. Perform Export before TSPITR and Import after TSPITR TSPITR(Tablespace Point In Time Recover)数据表空间定点恢复是我们在实践中偶尔会使用的一种恢复场景 严格的说TSPITR是一种相对细粒度的不完全恢复技术。我们通常见到的还原操作,都是将所有的表空间和数据还原到相同的一个时间点上,无论是否是故障恢复点。而TSPITR则是以表空间为粒度单元,单独将某个表空间内容还原到一个特定可恢复时间点上。 When you perform RMAN TSPITR on a tablespace,objects created after the target recovery time are lost. You can preserve such objects after they are identified by exporting them before TSPITR with the Data Pump Export utility and reimporting them afterward with Data Pump Import. To determine which objects are lost in TSPITR,query the TS_PITR_OBJECTS_TO_BE_DROPPED view on the primary database. 17.The INV_HISTORY table is created using the command: sql>CREATE TABLE INV_HISTORY (inv_no NUMBER(3),inv_date DATE,inv_amt NUMBER(10,2)) partition by range (inv_date) interval (numtoyminterval(1,'month')) (partition p0 values less than (to_date('01-01-2005','dd-mm-yyyy')),partition p1 values less than (to_date('01-01-2006','dd-mm-yyyy'))); The following data has been inserted into the INV_HISTORY table : INV_NO INV_DATE INV_AMT 1 30-dec-2004 1000 2 30-dec-2005 2000 3 1-feb-2006 3000 4 1-mar-2006 4000 5 1-apr-2006 5000 You would like to store the data belonging to the year 2006 in a single partition and issue the command: sql> ALTER TABLE inv_history MERGE PARTITIONS FOR(TO_DATE('15-feb-2006','dd-mon-yyyy')),FOR(TO_DATE('15-apr-2006')) INTO PARTITION sys_py; What would be the outcome of this command? C. It produces an error because the partitions specified for merging are not adjacent相邻临近的. inv_history表是使用命令创建,结果是? C.它会产生一个错误,因为合并的分区不相邻 关键记住: not adjacent 18.You create a new Automatic Database Diagnostic Monitor (ADDM) task: instance_analysis_mode_task. To view the ADDM report,you use the following command: sql> SELECT dbms_addm.get_report('my_instance_analysis_mode_task') FROM dual; You want to suppress抑制 ADDM output relating to与..相关 Segment Advisor actions on user SCOTT's segments. What would you do to achieve this? B. Add a segment directive for the ADDM task. 自动数据库性能监视器(ADDM)自动检查和报告数据库性能问题。结果作为ADDM调查报告显示在Oracle企业管理器的数据库主页中,审查ADDM调查结果让你可以快速找出性能问题。 使用DBMS_ADDM.INSERT_SEGMENT_DIRECTIVE 使用这个过程创建一个指令阻止ADDM针对特定的段创建一个操作来"run Segment Advisor" 这个指令可以针对特定的任务来创建(只有当该任务处于INITIAL状态); 也可以针对所有后面创建的ADDM任务。 19.A PL/sql procedure queries only those columns of a redefined重新定义的 table that were unchanged by the online table redefinition重新定义. What happens to the PL/sql procedure after the online table redefinition? A. It remains valid. PL / sql过程只查询那些重新定义表的列,那些表是被在线表重定义没有改变。在线表重新定义之后, PL / sql过程会发生什么事?(表 结构的分区维护,不影响数据定义) A.它仍然有效。 acle9i在其DBMS_REDEFINITION软件包中引入了在线重定义功能。这个特性对24*7的数据库系统来说非常重要,使用这个技术DBA可以在保持表允许DML语句的情况下修改结构,比如添加列、移动表到其他表空间、处理表的碎片等,当然了对于表的碎片处理,在10g以后,可以考虑使用shrink操作来实现,关于shrink在这里不做讨论。 在线重定义具有以下功能: (1)修改表的存储参数; (2)可以将表转移到其他表空间; (3)在表上增加修改删除一列或是多列; (4)增加并行查询选项; (5)增加分区支持; (6)修改分区结构; (7)重建表以减少碎片; (8)将堆表改为索引组织表或相反的操作; 在线重定义的方法 1.基于主键 2.基于ROWID。ROWID的方式不能用于索引组织表,而且重定义后会存在隐藏列M_ROW$$。 默认采用主键的方式。 在线重定义的一些限制 1.要求原始表和中间表在同一个方案下; 2.要求有2倍甚至是多于2倍的表空间空间; 3.如果使用主键重定义的方式,原始表上要有主键 20.View the Exhibit and examine the resource consumption 资源消耗details for the current plan in use by the database instance. Which two statements are true based on the output? (Choose two.) B. A user belonging to DSS_QUERIES can log in to a new session but the session will be queued C. The cpu_WAIT_TIME column indicates the total time that sessions in the consumer group waited for the cpu due to resource management V$RSRC_CONSUMER_GROUP:包含所有活动组统计信息的视图 下面简要描述了此视图中的部分列: • name:使用者组的名称。 • active_sessions:此使用者组中的当前活动会话数。 • execution_waiters:等待时间片断的活动会话数。 • requests:此使用者组中累计执行的请求数。 QUEUE_LENGTH:Number of sessions waiting in the queue:在队列中等待的会话数。 cpu_WAIT_TIME:Cumulative amount of time that sessions waited for cpu because of resource management. This does not include waits due to latch or enqueue contention,I/O waits,and so on.:因为资源理,会话等待cpu累积大量时间。这不包括锁存或排队争用,I/ O等待等等。 会话等待cpu 的累计时间。 • consumed_cpu_time:所有会话累计消耗的cpu 时间 V$RSRC_CONSUMER_GROUP Use the V$RSRC_CONSUMER_GROUP view to monitor cpu usage and cpu waits. It provides the cumulative amount of cpu time consumed,cumulative amount of time waiting for cpu,and cumulative number of cpu waits by all sessions in each consumer group. It also provides a number of other measures helpful for tuning. 21.You are managing an Oracle Database 11g instance. You want to create a duplicate database for testing purpose. What are the prerequisites for performing the active database duplication? (Choose all that apply.) B. The source database must be run in ARCHIVELOG mode if the database is open. C. The source database must be shut down cleanly if the database is in mounted state. D. A net service name should be set up and a listener configured with the target as well as the source database. Answer: BCD 热复制库 22.An index called ORD_CUSTNAME_IX has been created on the CUSTNAME column in the ORDERS table using the following command: sql>CREATE INDEX ord_custname_ix ON orders(custname); The ORDERS table is frequently queried using the CUSTNAME column in the WHERE clause. You want to check the impact on the performance of the queries if the index is not available. You do not want the index to be dropped or rebuilt to perform this test. Which is the most efficient method of performing this task? B. making the index invisible 名为ord_custname_ix索引已在ORDER表custname列创建 使用下面的命令 sql>CREATE INDEX ord_custname_ix ON orders(custname); 订单表是经常使用的custname列在WHERE子句的查询。你想要 若不提供索引,则检查查询性能的影响。你不想要的 要删除或重建的索引以执行此测试。 这是最有 效的方法执行这项任务? B.设置为不可见 就可以 23.Which tasks can be accomplished using the DBMS_LOB. SETOPTIONS procedure? C. deduplication删除重复,encryption加密,and compression压缩 settings for all SecureFile LOBs SecureFiles LOBs相比于BasicFiles LOBs具有加密(encryption)、去重(deduplicaiton)、压缩(compression)等新功能,pctversion,chunksize等参数也仅仅为了向后兼容而保留,因此SecureFiles LOBs的自适应能力更强,在管理上更为简化,成为了clob、blob等大对象使用的首选,上面的这些功能描述可以参考官方文档来获得。 Securefile LOBs字段所在数据块的存储结构 --建立测试用表为dump作准备 create table lobt1 (id number,c1 clob) lob(c1) store as securefile lobt1_c1(disable storage in row); insert into lobt1 values(1,lpad('A',10,'A')); insert into lobt1 values(2,lpad('B','B')); commit; 24.Which of the following information will be gathered by the sql Test Case Builder生成sql测试用例 for the problems pertaining to sql-related problems? (Choose all that apply.) A. ADR diagnostic files B. all the optimizer statistics C. initialization parameter settings D. PL/sql functions,procedures,and packages E. the table and index definitions and actual data 此题答案有误,E错误,不包含actual data。 正确答案应该为BCD Building sql Test Cases For many sql-related problems,obtaining a reproducible test case makes it easier to resolve the problem. Starting with the 11g Release 2 (11.2),Oracle Database contains the sql Test Case Builder,which automates the somewhat difficult and time-consuming process of gathering and reproducing as much information as possible about a problem and the environment in which it occurred. sql Test Case Builder captures information pertaining to a sql-related problem,along with the exact environment under which the problem occurred,so that you can reproduce and test the problem on a separate database. After the test case is ready,you can upload the problem to Oracle Support to enable support personnel to reproduce and troubleshoot the problem. The information gathered by sql Test Case Builder includes the query being executed,table and index definitions (but not the actual data),PL/sql functions,and packages,optimizer statistics,and initialization parameter settings. 25.You enabled Flashback Data Archive on the INVENTORY table. Which DDL operation is supported on the table after enabling Flashback Data Archive? D. Add a column to the table. 启用闪回数据归档功能的表使用任何一个DDL语句()都会导致ORA-55610错误 出于安全性和合法兼容性方面的考虑,上述限制可确保闪回数据归档中的数据不会失效。对启用了闪回数据归档功能的表使用下述任一DDL 语句都会导致错误ORA-55610: • 执行以下任一操作的ALTER TABLE语句: – 删除重命名修改列 – 执行分区或子分区操作 – 将LONG列转换为LOB列 – 包括UPGRADE TABLE子句(不管有无INCLUDING DATA子句) • DROP TABLE语句 根据官方文档,此题可选CDE,可根据D50081CN11文档,只能选D,且没有提到C是否支持。 综合一下,如果考试时单选则选D,如果多选则选CDE 26.You are working on a CATDB database that contains an Oracle Database version 11.1 catalog schema owned by the user RCO11. The INST1 database contains an Oracle Database version 10.1 catalog schema owned by the user RCAT10. You want the RMAN to import Metadata for database IDs 1423241 and 1423242,into the recovery catalog owned by RCO11. You executed the following commands: RMAN> CONNECT CATALOG rco11/password@catdb RMAN> IMPORT CATALOG rcat10/oracle@inst1 NO UNREGISTER; Which two statements are true regarding the tasks accomplished with these commands? (Choose two.) A. They import all Metadata from the RCAT10 catalog. D. They register all databases registered in the RCAT10 catalog. (参考:http://blog.csdn.net/rlhua/article/details/13169205 使用IMPORT CATALOG命令可将元数据从一个恢复目录方案导入至其它目录方案中。如果创建了不同版本的目录方案来存储多个目标数据库的元数据,则使用此命令可以为所有数据库维护单个目录方案。 IMPORT CATALOG [DBID=[,…]] [DB_NAME=[,[NO UNREGISTER]; 是源恢复目录连接字符串。源恢复目录方案的版本必须等于RMAN可执行文件的当前版本。如果需要,将源目录升级到当前RMAN本版。 DBID:你可以指定数据库ID的列表,数据库ID的元数据应从源目录方案导入。未指定列表时,RMAN将所有数据库ID的元数据从源目录方案合并到目标目录方案中。如果已在恢复目录方案中注册了合并元数据的数据库,RMAN就会发出错误消息。 DB_NAME:可以指定应导入其元数据的数据库名称列表。如果数据库名称不明确,RMAN就会发出错误消息。 NO UNREGISTER:默认情况下,导入的数据库ID在成功导入后从源恢复目录方案中注销。使用NO UNREGISTER选项,可以强制RMAN将导入的数据库ID保留在源目录方案中。 RMAN>CONNECT CATALOG rco11/password@catdb RMAN>IMPORT CATALOG rcat10/oracle@inst1 NO UNREGISTER; RMAN将数据库inst1的元数据导入到catdb数据库中的rco11方案。而NO UNREGISTER说明,在rcat10方案中注册数据库将不会注销,继续注册在rcat10用户目录中。 27.You are using the flash recovery area (fast recovery area in 11g Release 2) to store backup related files in your database. After regular monitoring of space usage in the Mash recovery area. You realize that the flash recovery area is (jetting filled up very fast and it is running out of space. Your database flash recovery area is low on specie and you have no more room on disk. Proactively,which two options could you use to make more space available in the flash recovery [Choose two] 闪回空间增长很快,没有空余空间 B. Use the RMAN CROSSCHECK command to reclaim the archived log space 用rman命令收回归档日志空间 D. Use OS command to move files from the flash recovery area to some other location 使用操作系统命令移动数据文件到别的位置 28.You have a range-partitioned table in your database. Each partition in the table contains the sales data for a quarter四份之一. The partition related to the current quarter is modified frequently and other partitions undergo fewer data manipulations.一个区修改频繁,别的区操作很少 The preferences偏爱,倾向;优先权 for the table are set to their default values. You collect statistics for the table using the following command in regular intervals: sql> EXECUTE DBMS_STATS.GATHER_TABLE_STATS('SH','SALES',GRANULARITY=>'GLOBAL'); You need statistics to be collected more quickly. What can you do to achieve this? C. Set the INCREMENTAL value to TRUE for the partition table. Oracle will update the global table statistics by scanning only the partitions that have been changed instead of the entire table if the following conditions hold: INCREMENTAL value for the partitioned table is set to TRUE PUBLISH value for the partitioned table is set to TRUE; User specifies AUTO_SAMPLE_SIZE for ESTIMATE_PERCENT and AUTO for GRANULARITY when gathering statistics on the table If the INCREMENTAL value for the partitioned table was set to FALSE (default value),a full table scan is used to maintain the global statistics which is a much more resource intensive and time-consuming operation for large tables. 默认情况下INCREMENTAL 为false,如果将其设置为true,那么在搜集信息时,oracle只扫描改变的分区,这样搜集信息就会变得更快。故选C,正确 29.Which two statements are true regarding the Automatic Diagnostic Repository (ADR) in Oracle Database 11g? (Choose two.) A. A single ADR can support multiple ADR homes for different database instances C. If the environmental variable ORACLE_BASE is set,then DIAGNOSTIC_DEST is set to $ORACLE_BASE. 关于Oracle数据库11g中的自动诊断信息库(ADR)哪两个陈述是真实的? Automatic Diagnostic Repository. A a file-based hierarchical data store for managing diagnostic information,including network tracing and logging. A. A single ADR can support multiple ADR homes for different database instances. 单个的自动诊断信息库可以支持多个用于不同的数据库实例的自动诊断信息库家目录。 C. If the environmental variable ORACLE_BASE is set,then DIAGNOSTIC_DEST is set to $ORACLE_BASE. 如果ORACLE_BASE环境变量已设置,则DIAGNOSTIC_DEST被设置为$ORACLE_BASE 30.Which two statements are true with respect to the maintenance window? (Choose two.) A. A DBA can enable or disable an individual task in all maintenance windows. D. A DBA can control the percentage of the resource allocated to the Automated Maintenance Tasks in each window. 关于维护窗口的哪种说法是正确的?(选择两者。) A.DBA可以启用或禁用所有维护一个单独的任务。 D.DBA可以控制分配给自动维护任务的每一个窗口资源的百分比 Enabling and Disabling Maintenance Tasks for Specific Maintenance Windows By default,all maintenance tasks run in all predefined maintenance windows. You can disable a maintenance task for a specific window. The following example disables the Automatic sql Tuning Advisor from running in the windowMONDAY_WINDOW: BEGIN dbms_auto_task_admin.disable( client_name => 'sql tuning advisor',operation => NULL,window_name => 'MONDAY_WINDOW'); END; Changing Resource Allocations for Automated Maintenance Tasks To change the resource allocation for automated maintenance tasks within a maintenance window,you must change the percentage of resources allocated to the subplan ORA$AUTOTASK_SUB_PLAN in the resource plan for that window. (By default,the resource plan for each predefined maintenance window is DEFAULT_MAINTENANCE_PLAN.) You must also adjust the resource allocation for one or more other subplans or consumer groups in the window's resource plan such that the resource allocation at the top level of the plan adds up to 100%. For information on changing resource allocations,see Chapter 25,"Managing Resource Allocation with Oracle Database Resource Manager". 31.Which two statements are correct about database transportation? (Choose two.) 关于数据库传输正确的描述两句是: D. The COMPATIBLE parameter must be set to 10.0.0.0 or higher and the database must be opened in readonly mode before being transported COMPATIBLE参数必须设置为10.0.0.0或以上版本,数据库必须打开readonly模式在transported之前 E. Recovery Manager (RMAN) is used to convert the necessary data files of the database if the target platform is different and has different endian format RMAN用于去转换必须的数据文件(如果目标平台和原平台不同,且有不同的endian格式) Answer: DE 参考可传输表空间 32. In your production database,you: -Are using Recovery Manager (RMAN) with a recovery catalog to perform the backup operation at regular intervals -Set the control file autobackup to “on” -Are maintaining image copies of the database files You have lost the server parameter file (SPFILE) and the control file. Which option must you consider before restoring the SPFILE and the control f ile by using the control file autobackup? A.Setting DBID for the database B.Using the RMAN SWITCH command C.Using the RMAN SRT NEWNAME command D.Starting up the database instance in the NOMOUNT state Answer: D 答案解析: 须启动到nomount状态来restore spfile和control file -使用恢复管理器(RMAN)对恢复目录定期执行备份操作 设置控制文件自动备份为“开” -维持数据库映像文件的副本 你已经失去了服务器参数文件(SPFILE)和控制文件。恢复SPFILIE之前你认为哪个选项必须考虑:使用控制文件自动备份的控制文件? 是将数据恢复到一个新的路径下:利用rman更改数据文件存放路径并restore到新的路径 run { set newname for datafile 1 to '/test_ora/new/system01.dbf'; set newname for datafile 2 to '/test_ora/new/rbs01.dbf'; set newname for datafile 3 to '/test_ora/new/users01.dbf'; set newname for datafile 4 to '/test_ora/new/test01.dbf'; set newname for datafile 5 to '/test_ora/new/test201.dbf'; restore database; } 做这一步的目的是更改一下数据文件路径,并将数据restore到新路径下。问题就在于做了这一步之后,rman并不认为是将数据restore到新路径下,而是认为将数据文件备份到新路径下(相当于uman备份)。这在oracle的官方文档中可以查到(红色字体): 33.You want to perform the following operations for the DATA ASM disk group: -Verify the consistency of the disk.验证磁盘的一致性 -Cross-check all the file extent maps and allocationtables for consistency.交叉验证所有文件区间映射和分配表的一致性 -Check whether the alias Metadata directory and filedirectory are linked correctly.检查别名元数据目录和文件目录连接是否正确 -Check that ASM Metadata directories do not haveunreachable allocated blocks.检查ASM元数据目录没有不能到达可分配的块 Which command accomplishes these tasks? A. ALTER DISKGROUP data CHECK; ALTER DISKGROUP data CHECK [ REPAIR | NOREPAIR ] check_diskgroup_clause The check_diskgroup_clause lets you verify the internal consistency of Oracle ASM disk group Metadata. The disk group must be mounted. Oracle ASM displays summary errors and writes the details of the detected errors in the alert log. The CHECK keyword performs the following operations: Checks the consistency of the disk. Cross checks all the file extent maps and allocation tables for consistently. Checks that the alias Metadata directory and file directory are linked correctly. Checks that the alias directory tree is linked correctly. Checks that Oracle ASM Metadata directories do not have unreachable allocated blocks. 34.Examine the following RMAN command: BACKUP DATABASE TAG TESTDB KEEP UNTIL 'SYSDATE+1' RESTORE POINT TESTDB06; Which two statements are true regarding the backup taken by using the above RMAN command? (Choose two.) B. Archived redo logs are backed up only if the database is open during the backup. D. The backup becomes obsolete过时的 after one day,regardless of the default retention policy settings. 35.You want the Automatic sql Tuning process to stop accepting and implementing the recommended sql profiles automatically. Which action would you perform to achieve this? C. Use the DBMS_sqlTUNE.SET_TUNING_TASK_PARAMETERS procedure to set ACCEPT_sql_PROFILES to FALSE. if want to stop accepting and implementing the recommended sql profiles automatically set ACCEPT_sql_PROFILES to FALSE. ACCEPT_sql_PROFILE Specifies whether to accept sql profiles automatically. To configure automatic sql tuning: Start sql*Plus,and connect to the database with DBA privileges (or connect as SYS if you plan to run EXECUTE_AUTO_TUNING_TASK). Run the DBMS_AUTO_sqlTUNE.SET_AUTO_TUNING_TASK_PARAMETER procedure. The following example configures the automatic sql tuning task to automatically accept sql profiles recommended by sql Tuning Advisor: BEGIN DBMS_AUTO_sqlTUNE.SET_AUTO_TUNING_TASK_PARAMETER( parameter => 'ACCEPT_sql_PROFILES',value => 'TRUE'); END; / 36.Which two statements are true regarding the functionality of the remap command in ASMCMD? (Choose two.) A. It repairs blocks that have read disk I/O errors. D. It reads the blocks from a good copy of an ASM mirror and rewrites them to an alternate location on disk if the blocks on the original location cannot be read properly. Answer: AD 修理磁盘上遭到破坏或损坏的一系列物理 remap 重定位数据在磁盘上的物理块的范围内 remap 修理磁盘上遭到破坏或损坏的一系列物理块 37.During the installation of Oracle Database 11g,you do not set ORACLE_BASE explicitly. You selected the option to create a database as part of the installation. How would this environment variable setting affect the installation? 没有设置ORACLE_BASE 使用默认值产出警告 D. The installation proceeds with the default value but a message would be generated in the alert log file. Answer: D 38.The sql Tuning Advisor configuration has default settings in your database instance. Which recommendation is automatically implemented after the sql Tuning Advisor is run as part of the automatic maintenance task? sql调优顾问 自动运行 作为自动维护计划 B. sql Profile recommendations sql配置建议 During the tuning process,all recommendation typesare considered and reported,but only sql profiles can be implemented automatically. sql Profile Recommendations During sql tuning,you select a statement for automatic tuning and run sql Tuning Advisor. The database can profile the following types of statement: DML statements (SELECT,INSERT with a SELECT clause,UPDATE,and DELETE) CREATE TABLE statements (only with the AS SELECT clause) MERGE statements (the update or insert operations) sql Tuning Advisor invokes Automatic Tuning Optimizer to generate recommendations. Recommendations to accept sql profiles occur in a finding 39.View the Exhibit to examine the Automatic sql Tuning result details. Which action would you suggest for the selected sql statement in the Exhibit? C. Run the Access Advisor for the sql statement. 看图示,检查自动sql调整结果的细节。你建议采取哪些行动 为选定的sql语句 c.运行sql语句的访问顾问。(关于物化视图、索引等一般都是ACCESS ADVISOR) 40.Evaluate the following code: sql>VARIABLE task_name VARCHAR2(255); sql>VARIABLE sql_stmt VARCHAR2(4000); sql>BEGIN :sql_stmt := 'SELECT COUNT(*) FROM customers WHERE cust_state_province =''CA'''; :task_name := 'MY_QUICKTUNE_TASK'; DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.sqlACCESS_ADVISOR,:task_name,:sql_stmt); END; What is the outcome of this block of code? A. It creates a task and workload,and executes the task. Performing a Quick Tune To tune a single sql statement,the QUICK_TUNE procedure accepts as its input a task_name and a sql statement. The procedure creates a task and workload and executes this task. There is no difference in the results from using QUICK_TUNE. They are exactly the same as those from using EXECUTE_TASK,but this approach is easier to use when there is only a single sql statement to be tuned. The Syntax is as follows: DBMS_ADVISOR.QUICK_TUNE ( advisor_name IN VARCHAR2,task_name IN VARCHAR2,attr1 IN CLOB,attr2 IN VARCHAR2 := NULL,attr3 IN NUMBER := NULL,task_or_template IN VARCHAR2 := NULL); The following example shows how to quick tune a single sql statement: VARIABLE task_name VARCHAR2(255); VARIABLE sql_stmt VARCHAR2(4000); EXECUTE :sql_stmt := 'SELECT COUNT(*) FROM customers WHERE cust_state_province =''CA'''; EXECUTE :task_name := 'MY_QUICKTUNE_TASK'; EXECUTE DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.sqlACCESS_ADVISOR,:sql_stmt); 41.You have applications that have frequently executed queries,and produce small and static result sets. You configure the sqlnet.ora file in the client machine to set a nonzero value for the OCI_RESULT_CACHE_MAX_SIZE parameter. What is the purpose of this configuration? A. to avoid round trips to the server by enabling caching of query results in client memory 您有经常执行查询的应用程序,并产生小的和静态的结果集。 你的sqlnet.ora配置文件在客户机设置为非零值 oci_result_cache_max_size参数 配置的目的是: A.通过启用缓存在客户端内存中的查询结果,以避免到服务器的往返 《Call Interface Programmer's Guide》 10.4.4.1 客户端配置文件是可选的,会覆盖在init.ora初始化参数文件中的设置.这些参数是sqlnet.ora文件的一部分. 可以设置的参数有: OCI_RESULT_CACHE_MAX_SIZE--每个进程的query cache的最大字节数. 如果在sqlnet.ora文件中指定的大小 < 32768,则读取这个sqlnet.ora文件的客户端进程会禁用客户端结果缓存功能 OCI_RESULT_CACHE_MAX_RSET_SIZE--针对全局进行设置(单位为字节) OCI_RESULT_CACHE_MAX_RSET_ROWS--针对全局进行设置(单位为行) 42.You plan to use sql Performance Analyzer to analyze the sql workload. You created a sql Tuning Set as a part of the workload capturing. What information is captured as part of this process? (Choose all that apply.) A. the sql text C. the execution context D. the execution frequency The captured sql statements should include the following information: sql text Execution environment sql binds,which are bind values needed to execute a sql statement and generate accurate execution statistics Parsing schema under which a sql statement can be compiled Compilation environment,including initialization parameters under which a sql statement is executed Number of times a sql statement was executed 43.View the following sql statements: Transaction T1 INSERT INTO hr.regions VALUES (5,'Pole');COMMIT; Transaction T2 UPDATE hr.regions SET region_name='Poles' WHERE region_id = 5; COMMIT; Transaction T3 UPDATE hr.regions SET region_name='North and South Poles' WHERE region_id = 5; You want to back out transaction T2. Which option would you use? 你想退出事务T2。你会使用哪个选项? B.这是可能的nocascade_force选项。 闪回事务处理向导按以下方式运行: 如果带有NOCASCADE选项的DBMS_FLASHBACK.TRANSACTION_BACKOUT过程失败 (因为存在从属事务处理),则可以更改恢复选项。 • 使用“Nonconflict Only(仅限无冲突)”选项,可回退事务处理中的非冲突行,从而保持了数据库的一致性(虽然为了修复数据而破坏了事务处理的原子性)。 • 如果希望不考虑从属事务处理而强制回退给定的事务处理, 使用“Nocascade Force(强制无级联)”选项。服务器按照与提交时间相反的顺序仅对给定事务处理执行校 正DML 命令。如果没有违反约束条件,你可以继续提交更改,否则会回退。 • 要按投寄顺序完全删除给定事务处理及其所有从属事务处理,使用“Cascade(级联)”选项 44.You have a very large table that your users access frequently. Which of the following advisors will recommend any indexes to improve the performance of queries against this table? D. The sql Access Advisor tuning advisor 是对输入的sql set的执行计划进行优化 accsee advisor 是对sql set当前如果引入索引、分区的话,性能有多大的提升,给出建议 sql Access Advisor是伴随着10G出现的一个优化工具,提供对表分区,物化视图,索引,物化视图日志优化建议.下边通过对单个sql的执行,查看Oracle给出的建议. 在Oracle数据库出现性能问题时,使用Oracle本身的工具包,给出合理的调优建议是比较省力的做法。 下面两种包的介绍及具体做法。 sql Tuning Advisor 粒度最小的调整工具. 将一条或多条sql语句做为输入内容,分析所有访问路径,然后生成改进sql语句的建议,并提出索引,物化视图和分区方案来提高应用程序的总体性能。 另外,在维护窗口中,Oracle也会针对Automatic Workload Repository(AWR) 来确定和记录的高负载语句自动化运行sql Tuning Advisor sql Access Advisor 它涉及工作量中所有sql语句,并提出索引,特化视图和分区方案来提高应用程序的总体性能。 小区别: sql Tuning Advisor 分别调整每条sql语句 sql Access Advisor 同时调整所有sql语句 45.What is the advantage of setting the ASM-preferred优先 mirror read for the Stretch伸展 cluster configuration? D. It improves performance by reading from a copy of an extent closest to 离..最近the node. 设置ASM优先镜像阅读延伸集群配置的优点是什么? D.它提高了性能,通过阅读从一个副本的程度 最接近的节点 46.What happens when you run the sql Tuning Advisor with limited scope? B. sql structure analysis is not performed for sql statements. 当你运行sql调优顾问有限的范围 B.sql结构分析不执行sql语句 47.You issue the following command on the RMAN prompt. REPORT NEED BACKUP DAYS 5; Which statement is true about executing this command? D. It will display a list of files that have not been backed up in the last five days Answer: D 即所列的文件在备份时需要5天以前的归档日志,也即是说5天内没有备份过。选D。 RMAN> REPORT NEED BACKUP DAYS 5; using target database control file instead of recovery catalog Report of files whose recovery needs more than 5 days of archived logs File Days Name ---- ----- ----------------------------------------------------- Using RMAN REPORT NEED BACKUP with Different Retention Policies You can specify different criteria for REPORT NEED BACKUP,using one of the following forms of the command: REPORT NEED BACKUP RECOVERY WINDOW OF n DAYS Displays objects requiring backup to satisfy a recovery window-based retention policy REPORT NEED BACKUP REDUNDANCY n Displays objects requiring backup to satisfy a redundancy-based retention policy REPORT NEED BACKUP DAYS n Displays files that require more than n days' worth of archived redo log files for recovery REPORT NEED BACKUP INCREMENTAL n Displays files that require application of more than n incremental backups for recovery 48.View the Exhibit to examine the error obtained during the I/O calibration process. There are no data files on raw devices. What is the reason for this error? B. The FILESYSTEMIO_OPTIONS parameter is set to NONE. 查看图表检查在I/ O校准过程中得到的错误。在裸设备上没有数据文件。此错误的原因是什么? You can use the FILESYSTEMIO_OPTIONS initialization parameter to enable or disable asynchronous I/O or direct I/O on file system files. This parameter is platform-specific and has a default value that is best for a particular platform. FILESYTEMIO_OPTIONS can be set to one of the following values: ASYNCH: enable asynchronous I/O on file system files,which has no timing requirement for transmission. DIRECTIO: enable direct I/O on file system files,which bypasses the buffer cache. SETALL: enable both asynchronous and direct I/O on file system files. NONE: disable both asynchronous and direct I/O on file system files. • ASYNCH: 使Oracle支持文件的异步(Asynchronous)IO; • DIRECTIO:使Oracle支持文件的Direct IO; • SETALL:使Oracle同时支持文件的Asynchronous IO和Direct IO; NONE:使Oracle关闭对Asynchronous IO和Direct IO的支持。 49.Which statement about recovering from the loss of a redo log group is true? D. If the lost redo log group is CURRENT,you must restore,perform cancel-based incomplete recovery,and open the database using the RESETLOGS option. 基于Cancel的不完全恢复适用场景:Recover时,所需的某个归档日志损坏,或主机断电,current状态的联机日志损坏。 50.Examine the following command: ALTER DISKGROUP data MOUNT FORCE; In which scenario can you use the above command to mount the disk group? C. when some disks in a disk group are offline 《Automatic Storage Management Administrator's Guide》 4.10.1 Oracle ASM对于ALTER DISKGROUP命令提供了MOUNT FORCE选项,在正常或high redundancy模式下, 甚至在磁盘组的有些磁盘不可用的情况下,来mount ASM磁盘组. 没有MOUNT FORCE选项,如果磁盘组具有损坏或丢失的磁盘,mount磁盘组会失败 51.To control the execution of a server process when it is receiving bad packets from a potentially malicIoUs client,you set the SEC_PROTOCOL_ERROR_FURTHER_ACTION initialization parameter as follows: sql> ALTER SYSTEM SET SEC_PROTOCOL_ERROR_FURTHER_ACTION = Drop,10; What is the significance of this setting? B. It terminates the client connection after 10 bad packets but the client can still reconnect,and attempt the same operation again. 防止拒绝服务(DoS) 攻击 SEC_PROTOCOL_ERROR_FURTHER_ACTION参数:指定了要对客户机连接执行的操作:继续、断开连接或延迟接受请求。 SEC_PROTOCOL_ERROR_TRACE_ACTION参数:指定了监视操作:NONE、TRACE、LOG 或ALERT。 要控制一个服务器进程的执行,当它接收来自一个潜在的坏数据包时 恶意的客户端, 你sec_protocol_error_further_action初始化参数设置 如下 sql> ALTER SYSTEM SET SEC_PROTOCOL_ERROR_FURTHER_ACTION = Drop,10; 这个设置的意义是什么? B.它终止了客户端连接后,10个坏数据包,但客户端仍然可以重新连接,并尝试 同样的操作。 52.You have the following requirements in relation to the detection of block corruption for your database instance: Check for logical self-consistency of data blocks when modified in memory. Checksums are calculated before and after the block change. Checks are performed for the lost writes to the physical standby database. Which method would help you perform the above checks automatically? B. Set the DB_ULTRA_SAFE parameter to DATA_ONLY. 简单点,DB_ULTRA_SAFE参数整合了DB_BLOCK_CHECKING,DB_BLOCK_CHECKSUM,和 DB_LOST_WRITE_PROTECT三个参数。 DB_ULTRA_SAFE ={ OFF | DATA_ONLY | DATA_AND_INDEX },默认值为OFF。 当DB_ULTRA_SAFE 设置为: (1)OFF: When anyof DB_BLOCK_CHECKING,or DB_LOST_WRITE_PROTECT areexplicitly set,no changes are made. --不改变这三个参数的值。 (2)DATA_ONLY: 三个参数会按照如下方式进行修改: DB_BLOCK_CHECKING will be set to MEDIUM. DB_LOST_WRITE_PROTECT will be set to TYPICAL. DB_BLOCK_CHECKSUM will be set to FULL. (3)DATA_AND_INDEX: 三个参数会按照如下方式进行修改: DB_BLOCK_CHECKING will be set to FULL. DB_LOST_WRITE_PROTECT will be set to TYPICAL. DB_BLOCK_CHECKSUM will be set to FULL. 53.You want to use RMAN to create compressed backups. Which statement is true about the compression algorithms that RMAN can use? A. The BZIP2 compression algorithm consumes more cpu resources than the ZLIB compression algorithm. 可以使用以下级别或压缩比率: • LOW:此级别速度最快。与MEDIUM相比,它提供较少的压缩,但cpu 使用率最低。(与LZO压缩对应。) • MEDIUM:此级别很好兼顾了cpu 使用率和压缩比率。(与ZLIB压缩对应。) • HIGH:此级别提供最佳压缩比率,但cpu 消耗最大。(与GZIP 压缩对应。) • BASIC:与BZIP2(10g类型压缩)对应。 介于MEDIUM和HIGH之间 54.Evaluate the following function code: CREATE FUNCTION get_dept_avg(dept_id NUMBER) RETURN NUMBER RESULT_CACHE RELIES_ON (EMPLOYEES) IS avgsal NUMBER(6); BEGIN SELECT AVG(SALARY)INTO avgsal FROM EMPLOYEES WHERE DEPARTMENT_ID = dept_id; RETURN avgsal; END get_dept_avg; Which statement is true regarding the above function? A. The cached result becomes invalid when any structural change is done to the EMPLOYEES table. Enabling Result-Caching for a Function To make a function result-cached,include the RESULT_CACHE clause in the function definition. (If you declare the function before defining it,you must also include the RESULT_CACHE option in the function declaration.) 结构变化 结果缓存不可以用 55.Following is the list of locations in random order where oranfstab can be placed. 1./etc/mtab 2.$ORACLE_HOME/dbs/oranfstab 3./etc/oranfstab What is the sequence in which Direct NFS will search the locations? C. 2,3,1 在Oracle 11g中引入了Direct Network File System(Oracle Direct NFS)的新特性,通过一个打包在Oracle内核中的NFS客户机以改善实例使用NFS时的性能,同时进一步完善了通过NFS实现RAC的解决方案。常规的NFS客户端软件一般由操作系统供应商提供,这类NFS客户端不会专门为Oracle数据文件的IO做优化。而通过内建的Oracle Direct NFS,数据库将可以直接访问NFS服务器上的文件,避免由OS内核NFS造成的额外开销。Oracle宣称由以上优化所带来的性能提升,在DSS环境中超过40%,而在OLTP环境中超过10%(详见<Oracle Database 11g Direct NFS Client a white paper>)。 接下来我们将通过实例来演示如何构建Oracle Direct NFS客户机,实际上这并不困难;Direct NFS客户机会以如下顺序查找装载点的设置信息: $ORACLE_HOME/dbs/oranfstab 作用域为$ORACLE_HOME相关的数据库 /etc/oranfstab 作用域为主机上所有可用数据库 最后为/etc/mtab配置文件,以确定可用的NFS装载点 我们一般推荐使用$ORACLE_HOME/dbs/oranfstab来配置Direct NFS客户机;该oranfstab配置文件可以包括Server,path,export以及mount参数,各参数代表的属性如下: • Server:NFS服务器名 • Path:到达NFS服务器的最多4个网络路径,可以是IP或者主机名 • Export:从NFS服务器导出的路径 • Mount:NFS的本地装载点 56.You discover that your Recycle Bin contains two tables with the same name,MY_TABLE. You also have a table named MY_TABLE in your schema. You execute the following statement: FLASHBACK TABLE my_table TO BEFORE DROP RENAME TO my_table2; What will be the result of executing this statement? B. One of the tables is recovered from the Recycle Bin using a Last In First Out (LIFO) approach. 回收站里面有两个相同名字的表,闪回表的时候是按照后进先出的原则进行的 57.Which background process of a database instance,using Automatic Storage Management (ASM),connects as a foreground process into the ASM instance? A. ASMB Every database instance that uses ASM for file storage will also need two new processes. The Rebalancer background process (RBAL) handles global opens of all ASM disks in the ASM Disk Groups,while the ASM Bridge process (ASMB) connects as a foreground process into the ASM instance when the regular database instance starts. ASMB facilitates communication between the ASM instance and the regular database,including handling physical file changes like data file creation and deletion. ASMB exchanges messages between both servers for statistics update and instance health validation. These two processes are automatically started by the database instance when a new Oracle file type - for example,a tablespace's datafile -- is created on an ASM disk group. When an ASM instance mounts a disk group,it registers the disk group and connect string with Group Services. The database instance knows the name of the disk group,and can therefore use it to locate connect information for the correct ASM instance. Explanation/Reference: Section: Database Architecture & Resource Management,RAC,ASM The ASMB process of a database instance,using ASM,connects as a foreground process into the ASM instance. This ASMB process is responsible for the communication between the database and the ASM instance. The process monitor (PMON) process does not connect as a foreground process into the ASM instance. The PMON process cleans up Failed user processes and frees up all the resources used by the Failed processes. The RBAL process does not connect as a foreground process into the ASM instance. The RBAL process is new background process of an ASM instance,and this process coordinates rebalancing activity for disk groups. The system monitor (SMON) process does not connect as a foreground process into the ASM instance. The SMON process performs instance recovery at database start up by using the online redo log files. 58.Which statement is true when Automatic Workload Repository (AWR) baselines are created using baseline templates? 使用模板创建AWR基线 B. AWR baselines can be created on the basis of two time values. B. AWR基线可以在两个时间值的基础上创建的。 An AWR baseline is a collection of statistic rates usually taken over a period when the system is performing well at peak load. You can specify a pair or range of AWR snapshots as a baseline. By using an AWR report to compare statistics captured during a period of bad performance to a baseline,you can diagnose problems. 59.You have not configured Oracle Managed Files (OMF) in your database. You do not want to scan the entire datafile every time an incremental backup is performed. You decide to enable the block change tracking feature. Which statement should you use to enable the block change tracking feature? 没有配置OMF 不希望增量备份每次扫描整个数据文件。 使用块改变跟踪特性 。那一条语句能够。。。 C. ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE <path>; 块修改跟踪(Block Change Tracking),该特性主要服务于RMAN的增量备份。 默认情况下数据库是禁用块修改跟踪的(如果使用了OMF特性,ORACLE会自动创建块修改跟踪文件),因为这可能会带来一些额外的开销。不过该性特性对于增量备份毕竟相当有用,因此要看你的取舍,如果你的数据库极少有修改操作,同时你希望增量备份尽可能快,并且创建的增量备份集尽可能小,那启用块修改跟踪还是有意义的,并且这也不会太影响到数据库性能。 60.For which two situations would you use functionality provided by the Resource Manager? (Choose two.) A. setting idle timeout limits on resource plans A,资源计划设置空闲超时限制;正确。 空闲时间限制:可以指定会话的空闲时间,超过该时间后将终止会话(MAX_IDLE_TIME)。你可以进一步限制资源管理器,使其只终止阻止其它会话的会(MAX_IDLE_TIME_BLOCKER)。 D. assigning priorities优先顺序 to jobs to manage access to system resources D,分配优先级作业管理系统资源的访问,正确。 61.Which of the following advisors within the Oracle advisory framework will analyze a single sql statement and make recommendations for performance improvement? D. sql Tuning Advisor 分析单条语句 和给出性能甲乙 62.You want to convert your existing non-ASM files to ASM files for the database PROD. Which method or command would you use to accomplish this task? 非ASM到ASM D. the BACKUP AS COPY. command of RMAN 63.Which method would you use to undo the changes made by a particular transaction without affecting the changes made by other transactions? 不影响别的事务 D. determine all the necessary undo sql statements from FLASHBACK_TRANSACTION_QUERY and use them for recovery 从flashback_transaction_query决定所有必需的undo语句,使用他们去恢复 64.You performed an incomplete recovery and opened the database with the RESETLOGS option. The LOG_ARCHIVE_FORMAT parameter is set to 'ora_%t_%s_%r.log'. Which statement regarding the archived redo log files,created in an earlier incarnation化身 of the database,is true? 不完全恢复 RESTLOGS打开 D. The archived redo log files are still maintained because the file names are unique. Answer: D 归档redolog 仍然维持 65.An online tablespace,TEST_TBS,is full and you realize that no server-managed tablespace threshold alerts were generated for the TEST_TBS tablespace. What could be the reason,if the TEST_TBS tablespace does not include autoextensible data files? 表空间满, 没有产生警告 原因 D. TEST_TBS is a dictionary-managed tablespace. . New tablespaces are assigned alert thresholds as follows: Locally managed tablespace—When you create a new locally managed tablespace,it is assigned the default threshold values defined for the database. A newly created database has a default of 85% full for the warning threshold and 97% full for the critical threshold. Defaults for free space remaining thresholds for a new database are both zero (disabled). You can change these database defaults,as described later in this section. Dictionary managed tablespace—When you create a new dictionary managed tablespace,it is assigned the threshold values that Enterprise Manager lists for "All others" in the metrics categories "Tablespace Free Space (MB) (dictionary managed)" and "Tablespace Space Used (%) (dictionary managed)." You change these values on the Metric and Policy Settings page. 66.Which two initialization parameters would you set to enable Automatic Shared Memory Management? (Choose two.) ASMM自动共享内存管理 A. set SHARED_POOL_SIZE to zero C. set SGA_TARGET to a non-zero value 67.On which two database objects can the VERSIONS clause of the Flashback Versions Query be used? (Choose two.) B. heap tables 堆表 E. Index-Organized Tables (IOTs) 只有可以产生undo数据的表,才可能有不同的版本,才可以在它上面进行闪回版本查询 Type Description Ordinary(heap-organized) table Data is stored as an unordered collection (heap). Partitioned table Data is divided into smaller,more manageable pieces. Index-organized table (IOT) Data (including no-key values) is sorted an stored in a B-tree index structure. Clustered table Related data from more than one table are stored together. 68.You have three temporary tablespace groups named G1,G2,and G3 in your database. You are creating a new temporary tablespace as follows: CREATE TEMPORARY TABLESPACE TEMP1 TEMPFILE '/u1/data/temp1.dbf' SIZE 10M TABLESPACE GROUP ''; Which statement regarding the above command is correct? 有3个临时表空间。 创建表空间没有指定组 C. It will not add the tablespace TEMP1 to any group. 69.The EMP table exists in your schema. You want to execute the following query: SELECT ename,sal FROM emp AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '6' MINUTE) WHERE ename = 'ALLEN'; What are the minimum requirements for the statement to execute successfully? (Choose all that apply) D.The UNDO_MANAGEMENT parameter must be set to AUTO 管理参数AUTO E.The UNDO_RETENTION parameter must be set appropriately 保持有一个合理的值 初始化参数UNDO_MANAGEMENT用于指定系统要使用的UNDO管理模式,默认值为AUTO。当设置该参数为AUTO时,系统会使用UNDO表空间管理UNDO数据;当设置该参数为MANUAL时,系统会使用回滚段管理UNDO数据。 因为该初始化参数是静态参数,所以修改后必须重新启动例程。示例如下: sql>ALTER SYSTEM SET undo_management=AUTO SCOPE=SPFILE; sql>startup force 70.You executed the following sql statement to shrink the EMPLOYEES table segment stored in the EXAMPLE tablespace: ALTER TABLE employees SHRINK SPACE CASCADE; Which statement is correct in this scenario? C. The shrink behavior will be cascaded to all dependent segments of the table that support a shrink operation. 虽然alter table move和shrink space,都是通过物理调整rowid来整理碎片的,但shrink space整理的不彻底,他好像不是重组,而是尽可能的合并,随意会残留一些block无法整理 注意: 1.再用alter table table_name move时,表相关的索引会失效,所以之后还要执行 alter index index_name rebuild online; 最后重新编译数据库所有失效的对象 2. 在用alter table table_name shrink space cascade时,他相当于alter table table_name move和alter index index_name rebuild online. 所以只要编译数据库失效的对象就可 alter table <table_name> shrink space [ <null> | compact | cascade ]; compact:这个参数当系统的负载比较大时可以用,不降低HWM。如果系统负载较低时,直接用alter table table_name shrink space就一步到位了 cascade:这个参数是在shrink table的时候自动级联索引,相当于rebulid index。 普通表: shrink必须开启行迁移功能。 alter table table_name enable row movement ; 保持HWM,相当于把块中数据打结实了 alter table table_name shrink space compact; 回缩表与降低HWM alter table table_name shrink space; 回缩表与相关索引,降低HWM alter table table_name shrink space cascade; 回缩索引与降低HWM alter index index_name shrink space 71.The Automatic Database Diagnostic Monitor (ADDM) analysis runs every 60 minutes on your database. Your database is facing a series of interrelated problems over a period of two hours. You need to ensure that the ADDM analysis is run over a time span of two hours in future. What would you do ADDM能够有两个小时的时间跨度 B. Modify the AWR snapshot time interval to two hours 修改AWR快照时间间隔2个小时 72.You have 100 segments in the USERS tablespace. You realize that the USERS tablespace is running low on space. You can use Segment Advisor to _____. 你有100个段在users表空间中。你认识到users表空间运行low空间。你可以使用段建议器去: A. identify the segments that you should shrink 确定收缩段 73.You are using Recovery Manager (RMAN) to perform backups. In which three situations would you perform a compressed backup? (Choose three.) 压缩备份的三种状况 C. You are using disk-based backups and disk space in your Flash Recovery Area,or other disk-based backup destinations are limited. 节省磁盘空间 D. You are performing your backups to some device over a network where reduced network bandwidth is more important than cpu usage. 减少网络带宽 E. You are using some archival backup media,such as CD or DVD,where reducing backup sizes saves media costs and archival storage. 减少备份大小 Answer: CDE 74.Immediately after adding a new disk to or removing an existing disk from an ASM instance,you find that the performance of the database goes down initially until the time the addition or removal process is completed,and then gradually becomes normal. 添加和移除存在的硬盘从ASM实例,你发现数据库性能起初下降直到添加或移除过程结束,然后渐渐的恢复正常 Which two activities would you perform to maintain a consistent performance of the database while adding or removing disks? (Choose two.) A. Define the POWER option while adding or removing the disks. B. Increase the number of ARB processes by setting up a higher value for ASM_POWER_LIMIT. 《Automatic Storage Management Administrator's Guide》 4.3.7 如果在ALTER DISKGROUP语句中没有指定POWER子句,或在添加删除磁盘rebalance被隐式执行时,则rebalance power默认值为ASM_POWER_LIMIT参数的值. 这个参数的值越大,则rebalance操作就越快完成. 如果rebalance power的值越小,则花的时间越长,但却消耗更少的处理和I/O资源. ARBn进程为ASM rebalance进程 75.View the Exhibit. As shown in the diagram,in-memory statistics are transferred to the disk at regular intervals. Which background process performs this activity C. MMON MMON(Manageability Monitor)是数据库版本10g引入的进程,是数据库的很多自我监视和自我调整功能支持进程。 此数据库实例收集有关活动和性能的大量统计数据。这些统计数据收集到SGA中,通过发出SQL查询,可以询问它们的当前值。为了调整性能,也为了分析趋势和获得历史报告,有必要将这些统计数据保存到长期存储的地方。MMON从SGA定期捕获统计数据(默认是每小时一次),并将它们写入到数据字典中,在数据字典中,可以无限期地存储它们(不过,默认方式是只存储8天)。 每次MMON收集一组统计数据(称为快照)时,它还启动Automatic Database Diagnostic Monitor (ADDM)。ADDM工具使用由多名DBA历经多年开发的专家系统来分析数据库活动。它观察两个快照(默认是当前快照和先前的快照),并得出有关性能的观察结果和建议。第5章描述用于调整性能的ADDM及其他工具的用法。 考点: 默认方式下,MMON每小时收集一次快照并启动ADDM。 除了收集快照外,MMON还持续监视数据库和实例,来确定是否应该发出任何警报。使用警报系统属于第二场OCP考试的范畴,第24章将作讨论。某些警报条件(例如,到达存储空间限制时发出警告)会默认启动,而其他条件由DBA配置。 76.Identify three key features of ASM. (Choose three.) A. file striping 条带 B. allocation unit mirroring 镜像 C. automatic disk rebalancing 自动自平衡 77.You have three production databases,HRDB,FINDB,and ORGDB,that use the same ASM instance. At the end of the day,while all three production database instances are running,you execute the following command on the ASM instance : sql> shutdown immediate; What is the result of executing this command? B. It results in an error because other database instances are connected to it. 78.You enable block change tracking. You issue the following command: BACKUP INCREMENTAL LEVEL 0 DATABASE; The next day,you issue the following command: BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE; Which statement about the use of the change tracking file is true? C. RMAN reads the block change tracking file only when it performs the incremental level 1 backup. 您启用块更改跟踪。你发出以下命令: 备份增量0级数据库; 第二天,你发出以下命令: 备份增量1级数据库; 关于使用更改跟踪文件的语句是否正确? C. RMAN读取块更改跟踪文件只有当它执行1级备份的增量。 :Rman默认创建的增量备份是Differential(差量)方式,如果要建立Cumulative(累积)方式的增量备份,在执行BACKUP命令时显式指定即可,例如: RMAN> BACKUP INCREMENTAL LEVEL=2 CUMULATIVE DATABASE; 79.You executed the following command: RMAN> RECOVER COPY OF DATAFILE '/u01/app/oracle/oradata/orcl/users01.dbf'; Which statement regarding the above command is correct? C. Image copies of the '/u01/app/oracle/oradata/orcl/users01.dbf' data file are updated with all changes up to incremental backup SCN. RMAN 可使用增量备份来恢复映像副本: • 映像副本会使用截至增量备份SCN 的所有更改来进行更新。 • 增量备份减少了介质恢复所需的时间。 • 增量还原之后不需要执行映像副本。 可使用RMAN 将增量备份应用于数据文件映像副本。 在这种恢复方法中,你使用RMAN 恢复数据文件的副本,即通过将增量备份应用于映像副本将映像副本前滚(恢复)至指定的时间点。映像副本使用执行增量备份时的SCN 之前的所有更改来进行更新。 RMAN 使用在介质恢复中得到的更新数据文件,如同使用在该SCN 得到的完全映像副本一样,因此没有每天创建数据库完全映像副本所需的开销。 下面介绍了将增量备份应用于数据文件映像副本的优点: • 由于你只需要应用自上一次增量备份以来的归档日志,因此可以减少介质恢复(使用归档日志)所需的时间。 • 在增量还原之后不需要执行完全映像副本。 如果在应用增量备份文件期间恢复过程失败,只需要重新启动恢复过程。在创建映像数据文件副本之前到要停止恢复过程之前的这段时间内,RMAN 自动确定这期间所需应用的增量备份文件。如果RMAN 目录中记录了多个版本的映像副本,RMAN 自动使用最新版 本的映像副本。如果RMAN 不能将增量备份文件与映像副本合并,则它会报告错误。 80.Which two statements regarding a sql profile are true? (Choose two.) A. It is built by Automatic Tuning Optimizer. C. It can be used by the query optimizer automatically. sql Profile在性能优化中占有一个重要的位置。 MOS里这么描述sql Profile: sql Profile是10g中的新特性,作为自动sql调整过程的一部分,由Oracle企业管理器来管理。除了OEM,sql Profile可以通过DBMS_sqlTUNE包来进行管理。 查询优化器有时候会因为缺乏足够的信息,而对一条sql语句做出错误的估计,生成糟糕的执行计划。而自动sql调整通过sql概要分析来解决这个问题,自动调整优化器会生成这条sql语句的一个概要,称作sql Profile。它由针对这条语句的一些辅助统计信息组成,通过采样和局部执行技术来确认,必要的话,会调整执行计划中的估计值。在sql概要分析中,自动调整优化器还可以通过一条sql语句的执行历史信息来设置合适的优化器参数,比如将OPTIMIZER_MODE参数由ALL_ROWS改为FIRST_ROWS。 换句话说,sql概要是一个对象,它包含了可以帮助查询优化器为一个特定的sql语句找到高效执行计划的信息。这些信息包括执行环境、对象统计和对查询优化器所做评估的修正信息。它的最大优点之一就是在不修改sql语句和会话执行环境的情况下影响查询优化器的决定。(《Oracle性能诊断艺术》) sql Profile中包含的并非单个执行计划的信息,必须注意的是,sql Profile不会固定一个sql语句的执行计划。当表的数据增长或者索引创建、删除,使用同一个sql Profile的执行计划可能会改变,而储存在sql Profile中的信息会继续起作用。然而,经过一段很长的时间之后,它的信息有可能会过时,需要重新生成sql Profile的作用范围由CATEGORY属性来控制,这个属性决定了哪些用户会话可以应用这个概要。你可以从DBA_sql_PROFILES中的CATEGORY字段来查看这个属性。默认情况下,所有概要文件都创建为DEFAULT范畴,这意味着所有sqlTUNE_CATEGORY初始化参数为DEFAULT的用户会话都可以使用这个概要。你可以修改这个属性,比如将其改为DEV,则sqlTUNE_GATEGORY参数为DEV的用户会话才能使用它,利用这个功能,你可以在一个受限制的环境中来测试一个sql Profile。 sql Profile可以作用在如下表达式中:SELECT; UPDATE; INSERT(在包含SELECT子句的情况下); DELETE; CREATE TABLE(包含SELECT子句的情况下); MERGE(UPDATE或INSERT操作) 81.Evaluate the following command and its output: sql>SELECT * FROM dba_temp_free_space; TABLESPACE_NAME TABLESPACE_SIZE ALLOCATED_SPACE FREE_SPACE LMTEMP 250609664 101048576 149561088 Which two statements correctly interpret the output? (Choose two.) D. ALLOCATED_SPACE indicates both the space currently allocated and used,and the space that is available for reuse. E. FREE_SPACE indicates表明 both the space that is currently allocated and available for reuse,and the space that is currently unallocated. DBA_TEMP_FREE_SPACE,在表空间层次上显示临时空间的使用信息. ALLOCATED_SPACE,总的分配的空间(bytes),包括当前已经分配的且被使用的,当前已经分配的且可重用的. FREE_SPACE,总的可用的空闲空间,包括已经分配的且可被重用的,当前未分配的. 82.Identify the three predefined server-generated alerts. (Choose three.) B. Tablespace Space Usage 表空间占用率 C. Resumable Session Suspended 可恢复的会话挂起 D. Recovery Area Low On Free Space 回收区低 预警是当数据库处于不理想状态且需要引起注意时发出的通知。默认情况下,Oracle DB通过Enterprise Manager Database Control 提供预警。也可选择配置Enterprise Manager 以向管理员发送有关问题状况的电子邮件,还可在控制台上显示预警信息。 另外,还可为系统的多个相关度量设置阈值。如果数据库偏离正常读数太多而达到了这些阈值,Oracle Database 11g会预先发送通知。提前通知潜在的问题,可使用户迅速作出响应,并通常在用户注意到这些问题之前就解决这些问题。 默认情况下受监视的度量大约有60 个,其中包括: • 中断作业计数 • 等待所用的数据库时间百分比(%) • 转储区占用率(%) • 参照基线的sql 响应时间百分比(%) • 表空间占用率(%) • 一般意外事件 另外一些可提前提供问题通知的重要度量有: • 平均文件读取时间(厘秒) • 响应时间(每事务处理) • 等待时间(%) 83.Which three actions are required to configure the Flashback Database? (Choose three.) A. set Flash Recovery Area 设置闪回区 B. enable Flashback logging 启用闪回日志 D. start the database in the ARCHIVELOG mode 归档模式启动数据库 84.View the Exhibit and examine the Data Pump architecture. Identify the numbered components. (图) A. 1 - Oracle Loader,2 - Oracle Data Pump,3 - Direct Path API 85.You executed the following command to drop a user: DROP USER scott CASCADE; Which two statements regarding the above command are correct? (Choose two.) B. Any objects in the Recycle Bin belonging to scott are purged. C. All the objects owned by scott are permanently dropped from the database. oracle数据库删除用户有两种命令,一种是 drop user xxx;另外一个种是drop user xxx cascade; drop user xxx必须是这个用户下面没有任何对象;这样才可以使用这个命令,否则就会报错;如果用户下面有对象,就得用drop user xxx cascade来删除这个用户以及这个用户下的所有对象了; 86.Your production database is running in archivelog mode and you are using recovery manager (RMAN) with recovery catalog to perform the database backup at regular intervals. When you attempt to restart the database instance after a regular maintenance task on Sunday,the database fails to open displaying the message that the data file belonging to the users tablespace are corrupted. 通过catalog rman 备份数据库 ,恢复users表空间 The steps to recover the damaged data files are follows: 1. Mount the database 2. Open the database 3. Recover the data file 4. Restore the data file 5. Make the data file offline 6. Make the data file online Which option identifies the correct sequence that you must use to recover the data files? E. 1,5,4,6,2 Answer: E 87.You want to perform an RMAN backup of database as a copy. Which two factors will you consider while performing the backup operation? (Choose two). 副本备份 A. The backup as copy can only be taken to disk D. Backup will constitute all used and unused blocks in the database 手动分配通道会覆盖CONFIGURE配置的自动分配通道,并且rman的备份信息会默认放在fra中。故选A. 88.In your database,the flash recovery area (FRA) is configured as the default for RMAN backups. You executed the following commands to configure the settings in RMAN: Which statement is true about the outcome? A. Only one channel is allocated and the backup is created in the flash recovery area ALLOCATE CHANNEL Purpose ALLOCATE CHANNEL manually allocates a channel (which is a connection between RMAN and a database instance). The ALLOCATE CHANNEL command must be issued within a RUN block. It allocates a channel only in the block where the command is issued. Prerequisites The target instance must be started. Usage Notes Manually allocated channels are distinct from automatically allocated channels specified with CONFIGURE. Automatic channels apply to any RMAN job in which you do not manually allocate channels. You can override automatic channel configurations by manually allocating channels within a RUN command,but you cannot use BACKUP DEVICE TYPE or RESTORE DEVICE TYPE to use automatic channels after specifying manual channels with ALLOCATE CHANNEL. 虽然在配置时指定两个通道来备份,但是在run块里面只分配了一个通道,而备份时是按照run块来备份,所以只分配了一个通道进行备份。 并且,题中说FRA是默认的rman备份区,所以,备份集被存储在FRA区。选A。 89.You are using recovery Manager (RMAN) with a recovery catalog to backup up your production database. The backups and the archived redo log files are copied to a tape drive on a daily basis. The database was open and transactions were recorded in the redo logs. Because of fire in the building you lost your servers having the production database and the recovery catalog database. The archive log files generated after the last backup are intact on one of the remote locations. While performing a disaster recovery of the production database what is the next step that you must perform after restoring the datafiles and applying archived redo logs? 着火 远程 灾难恢复,怎么应用归档日志 D. Open the database with the RESETLOGS option 90.View the exhibit and examine the output. Which statement can be an inference推理推断 from the output? A. The FRA disk group has an asynchronous I/O bottleneck 91.Your database interface is running. A user SCOTT starts a sql *Plus session,and issues the following query: sql> SELECT * FROM sales; Which process would retrieve取回 the result from the database and return it to the client program? B. Server process 92.You observed the following output for a user session: sql > SELECT sid,event,seconds _in _wait FROM v$session _wait WHERE sid = 18; SID EVENT SECONDS_IN_WAIT --- --------------------------------------------- --------------- 18 statement suspended,wait error to be cleared 648 What do you infer from the preceding output? A. Resumable set for session with sid 18 sid=18的会话被暂停,等待错误被清除,清除后,会话恢复。 EVENT VARCHAR2(64) Resource or event for which the session is waiting See Also: Appendix C,"Oracle Wait Events" 93.The database is configured in ARCHIVELOG mode and regular complete database backups are taken. The loss of which two types of files may require a recovery with the RESETLOGS option? (Choose two) 归档模式 恢复 RESETLOGS选项两种方式 A. Control files 控制文件 D. Archived log files required to perform recovery 归档日志文件需要执行恢复 94.Multiple RMAN sessions are connected to the database instance. Examine the following output when backup commands are running in server sessions: What could have helped you to correlate关联的 server sessions with channels? 多个rman会话连接到数据库实例, 哪一个能帮助你关联服务器进程和通道。 C. Specify the command ID in the RMAN script 在RMAN脚本中指定COMMAND ID :监控和优化RMAN:http://blog.csdn.net/rlhua/article/details/12510975 当有多个RMAN 会话正在运行时,最好使用SET COMMAND ID命令在备份期间将某个进程与某个通道相关联,如下所示: 1.在每个会话中,将命令ID 设置为不同的值,然后备份所需的对象。例如,在会话1 中输入下列内容: RUN { SET COMMAND ID TO 'sess1'; BACKUP DATABASE; } 在会话2 中运行的作业中将命令ID 设置为一个字符串,如sess2: RUN { SET COMMAND ID TO 'sess2'; BACKUP DATABASE; } 2.启动sql*Plus 会话,然后在执行RMAN 作业时查询联接的V$SESSION和 V$PROCESS视图。例如,输入: SELECT SID,SPID,CLIENT_INFO FROM V$PROCESS p,V$SESSION s WHERE p.ADDR = s.PADDR AND CLIENT_INFO LIKE '%id=sess%'; 如果在RMAN 作业中运行SET COMMAND ID命令,则CLIENT_INFO列会以下列格式显示: id=command_id,rman channel=channel_id 例如,下面显示了一个示例输出: SID SPID CLIENT_INFO ---- ------------ ------------------------------ 11 8358 id=sess1 15 8638 id=sess2 14 8374 id=sess1,rman channel=c1 9 8642 id=sess2,rman channel=c1 sys@TEST0924> SELECT s.sid,p.spid,s.client_info FROM v$process p,v$session s WHERE p.addr = s.paddr AND CLIENT_INFO LIKE 'rman%'; SID SPID CLIENT_INFO ---- ------------------------ ------------------------------ 68 410 rman channel=ORA_DISK_1 160 722 rman channel=ORA_DISK_1 sys@TEST0924> SELECT s.sid,v$session s WHERE p.addr = s.paddr AND CLIENT_INFO like '%id=sess%'; SID SPID CLIENT_INFO ---- ------------------------ ------------------------------ 7 653 id=sess1 Matching Server Sessions with Channels in Multiple RMAN Sessions If more than one RMAN session is active,then it is possible for theV$SESSION.CLIENT_INFO column to yield the same information for a channel in each session. For example: SID SPID CLIENT_INFO ---- ------------ ------------------------------ 14 8374 rman channel=ORA_SBT_TAPE_1 9 8642 rman channel=ORA_SBT_TAPE_1 In this case,you have the following methods for determining which channel corresponds to whichSID value. 95.Examine the following scenario: The target database instance is running. The most recent backup available for the target database was taken two days ago. Log files switches have occurred in last two days. The target database is duplicated on the same host,using the Recovery Manager (RMAN) duplicate command as follows: RMAN> RUN { ALLOCATE AUXILIARY CHANNEL aux 1 DEVICE TYPE DISK; DUPLICATE TARGET DATABASE TO auxdb; } Which statement is true about the duplicate复制 database in this scenario? D. It contains all data except that which is used by the transactions in the current online redo file of target database rman 复制数据库包含所有数据,除了当前在线日志的事务 96.Examine the following command: sql> ALTER TABLE booking SHRINK SPACE COMPACT; Which activity is performed when the preceding command is executed? C. The progress of the shrink operation is saved in the bitmap blocks of the BOOKING table 虽然alter table move和shrink space,都是通过物理调整rowid来整理碎片的,但shrink space整理的不彻底,他好像不是重组,而是尽可能的合并,随意会残留一些block无法整理 注意: 1.再用alter table table_name move时,表相关的索引会失效,所以之后还要执行 alter index index_name rebuild online; 最后重新编译数据库所有失效的对象 2. 在用alter table table_name shrink space cascade时,他相当于alter table table_name move和alter index index_name rebuild online. 所以只要编译数据库失效的对象就可以 alter table move和shrink space除了碎片整理的效果有时不一样外,还有什么其他的不同呢 1. Move会移动高水位,但不会释放申请的空间,是在高水位以下(below HWM)的操作。 2. shrink space 同样会移动高水位,但也会释放申请的空间,是在高水位上下(below and above HWM)都有的操作。 compact:这个参数当系统的负载比较大时可以用,不降低HWM。如果系统负载较低时,直接用alter table table_name shrink space就一步到位了 cascade:这个参数是在shrink table的时候自动级联索引,相当于rebulid index 97.The RECYCLEBIN parameter is set to ON for your database. You drop a table,PRODUCTS,from the SCOTT schema. Which two statements are true regarding the outcome of this action? (Choose two) C. Only the related indexes are dropped whereas views are invalidated 相关索引删除, 视图无效 D. The flashback drop feature can recover both the table structure and its data 恢复表结构和数据 Answer: CD RECYCLEBIN参数设置为ON 删除一个表 哪两个语句正确 98.You plan to execute the following command to perform a Flashback Database operation in your database: sql> FLASHBACK DATABASE TO TIMESTAMP (SYSDATE -5/24); Which two statements are true about this? (Choose two) 闪回数据库到多少天以前 B. The database must be in the MOUNT state to execute the command 数据库必须在mount状态执行命令 E. The database must be opened with the RESETLOGS option after the flashback operation 在闪回操作后必须使用RESTLOGS选项打开数据库 Answer: BE 99.View the Exhibit and examine the steps that you executed to create a database resource plan. Subsequently,you execute the following procedure which results in an error: sql> EXECUTE dbms_resources_manager.validate_pending_area ( ); What could be the reason? D. The OTHER_GROUPS resources consumer group is not included in the resource plan directive Answer: D 利用dbms_resource_manager.create_plan_directive 可以指定各个组的资源的分配,包括session_pool,cpu,并行度,undo pool ,切换组 等信息 1.DBA 可以为每个组设定active session pool,每个cousumer group 同时并发的session 数量,如果超过 了这个数量则会自动进行排队。 active session pool parameter: active_sess_pool_p1 : 该consumer group 的并发session 上限 default 1000000 queueing_p1: session 在队列中等待的时间上限,超过该时间则会自动cancel. default 1000000 秒   2. oracle resource manager 可以评估事务最大执行时间,可以设定max_est_exec_time ,如果resource manager 评估的时间超过了这个时间,系统将不会执行,避免占用过多的系统资源。   3. automotic consumer group switch : directive 参数: switch_group : group switch to,default is null. swtich_time : active time 活动时间,过了这个时间就会自动切换到其他组中,default 1000000 swtich_estimate : true-> oracle 使用在切换前的评估执行时间,如果评估时间大于switch_time ,则直接切换,否则就是达到了switch_time 后才进行切换。 DEFAUL : FALSE 4. undo pool 的限额 限制某个consumer group 的undo size : 如果大于的话,则会阻止DML 的执行 default :1000000kB :验证草稿区   验证 pending area dbms_resource_manager.validate_pending_area() 提交 dbms_resource_manager.SUBMIT_pending_area() 默认调用dbms_resource_manager.validate_pending_area() 100.Examine the following command that is used to duplicate a database on the same host: RMAN> RUN { ALLOCATE AUXILIARY CHANNEL,aux 1 DEVICE TYPE DISK; DUPLICATE TARGET DATABASE TO auxdb SKIP READONLY; \ } Which two statements describe the effect after the database is duplicated successfully? (Choose two) A. The data files of the read-only tablespaces in the target database are not duplicated B. The read-only tablespaces in the target database are still defined in new the database 数据文件不在 空间在 新的数据库 仍有定义 101.Identify two situations in which you can use Data Recovery Advisor for recovery. (Choose two.) 数据恢复顾问 B. The database files are corrupted when the database is open. 数据库打开的情况下数据文件损坏 C. You are not able to start up the database instance because the required database files are missing. 需要的文件丢失,没法启动数据库 Answer: BC 原文链接:https://www.f2er.com/oracle/211634.html

猜你在找的Oracle相关文章