Oracle OCP 1Z0-050(161-170题)解析

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/seagal890/article/details/83004651

QUESTION 161:

Which tasks are run automatically as part of the Automated Maintenance Task by default? (Choose all that apply.)

A. Automatic Database Diagnostics Monitor

B. Automatic SQL Tuning Advisor

C. SQL Access Advisor

D. Segment Advisor

E. Optimizer statistics gathering

Answer: B,D,E

解析:

自动维护任务:是在创建数据库时自动创建的,并由调度程序进行管理。默认情况下,它会收集数据库中优化程序统计信息缺失或已过时的所有对象的统计信息。可以通过“Automatic Maintenance Tasks(自动维护任务)页更改默认配置。

 

QUESTION 162:

You decided to use Direct NFS configuration in a non-RAC Oracle installation and created the oranfstab file in /etc. Which two statements are true regarding this oranfstab file? (Choose two.)

A. It contains file systems that have been mounted by the kernel NFS system.

B. It is globally available to all Oracle 11g databases on the machine.

C. It contains file systems that have been mounted by Direct NFS.

D. Its entries are specific to a single database.

Answer: A,B

 

QUESTION 163:

Examine the following command:

ALTER DISKGROUP data MOUNT FORCE;

In which scenario can you use the above command to mount the disk group?

A. when ASM disk goes offline

B. when some disks in a failure group for a disk group are rebalancing

C. when some disks in a disk group are offline

D. when one or more ASM files are dropped

Answer: C

参考:http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_1007.htm#SQLRF52684

FORCE | NOFORCE Use these clauses to determine the circumstances under which the disk groups are mounted.

  • In the FORCE mode, Oracle ASM attempts to mount the disk group even if it cannot discover all of the devices that belong to the disk group. This setting is useful if some of the disks in a normal or high redundancy disk group became unavailable while the disk group was dismounted. When MOUNT FORCEsucceeds, Oracle ASM takes the missing disks offline.--感觉这里应该为online

If Oracle ASM discovers all of the disks in the disk group, then MOUNT FORCE fails. Therefore, use the MOUNT FORCE setting only if some disks are unavailable. Otherwise, use NOFORCE.

In normal- and high-redundancy disk groups, disks from one failure group can be unavailable and MOUNT FORCE will succeed. Also in high-redundancy disk groups, two disks in two different failure groups can be unavailable and MOUNT FORCE will succeed. Any other combination of unavailable disks causes the operation to fail, because Oracle ASM cannot guarantee that a valid copy of all user data or metadata exists on the available disks.

  • In the NOFORCE mode, Oracle ASM does not attempt to mount the disk group unless it can discover all the member disks. This is the default.

QUESTION 164:

Which client requests to the database can be captured as a part of the workload capture?

(Choose all that apply.)

A. distributed transactions

B. direct path load of data from external files

C. flashback query

D. logging in and logging out of sessions

E. all DDL statements having bind variables

Answer: D,E

he following types of user sessions and client requests are not supported by Database Replay:

  • Direct path load of data from external files using utilities such as SQL*Loader
  • Non-PL/SQL based Advanced Queuing (AQ)
  • Flashback queries
  • Oracle Call Interface (OCI) based object navigations
  • Non SQL-based object access
  • Distributed transactions

Any distributed transactions that are captured will be replayed as local transactions.

  • XA transactions

XA transactions are not captured or replayed. All local transactions are captured.

  • JAVA_XA transactions

If the workload uses the JAVA_XA package, JAVA_XA function and procedure calls are captured as normal PL/SQL workload. To avoid problems during workload replay, consider dropping the JAVA_XA package on the replay system to enable the replay to complete successfully.

  • Database Resident Connection Pooling (DRCP)
  • Workloads using OUT binds
  • Multi-threaded Server (MTS) and shared server sessions with synchronization mode set to OBJECT_ID
  • Migrated sessions

The workload is captured for migrated sessions. However, user logins or session migration operations are not captured. Without a valid user login or session migration, the replay may cause errors because the workload may be replayed by a wrong user.

Typically, Database Replay refrains from capturing these types of non-supported user sessions and client requests. Even when they are captured, Database Replay will not replay them. Therefore, it is usually not necessary to manually filter out non-supported user sessions and client requests. In cases where they are captured and found to cause errors during replay, consider using workload capture filters to exclude them from the workload.

 

QUESTION 165:

You are managing an Oracle Database 11g instance with ASM storage. The ASM instance is down. To know the details of the disks in the DATA disk group , you issued the following ASMCMD command:

ASMCMD> lsdsk -I -d DATA

Which statement is true regarding the outcome of this command?

A. The command succeeds and retrieves information by scanning the disk headers based on an ASM_DISKSTRING value.

B. The command succeeds but it retrieves only the disk names.

C. The command produces an error because the ASM instance is down.

D. The command succeeds but it shows only the status of the ASM instance.

Answer: A

解析:参考Oracle官方文档

http://docs.oracle.com/cd/E11882_01/server.112/e18951/asm_util004.htm#OSTMG94560

The lsdsk command can run in connected or non-connected mode. The connected mode is always attempted first. The -I option forces non-connected mode.

  • In connected mode, lsdsk uses the V$ASM_DISK_STAT and V$ASM_DISK dynamic views to retrieve disk information. TheV$ASM_DISK_STAT view is used by default.
  • In non-connected mode, lsdsk scans disk headers to retrieve disk information. Some information is not available in this mode and some options are not valid combinations with this mode.

 

QUESTION 166:

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 allocation tables for consistency.

-Check whether the alias metadata directory and file directory are linked correctly.

-Check that ASM metadata directories do not have unreachable allocated blocks.

Which command accomplishes these tasks?

A. ALTER DISKGROUP data CHECK DISK IN FAILURE GROUP 1;

B. ALTER DISKGROUP data CHECK FILE;

C. ALTER DISKGROUP data CHECK;

D. ALTER DISKGROUP data CHECK DISK;

Answer: C

解析:参考Oracle官方文档

http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_1007.htm#SQLRF52644

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.

 

QUESTION 167:

Observe the following warning in an RMAN session of your database instance:

WARNING: new failures were found since last LIST FAILURE command

Which statement describes the scenario that must have produced this warning?

A. The CHANGE FAILURE command has detected new failures recorded in the Automatic Diagnostic Repository (ADR).

B. The RECOVER command has detected new failures recorded in the Automatic Diagnostic Repository (ADR) since the last LIST FAILURE command was executed.

C. The ADVISE FAILURE command has detected new failures recorded in the Automatic Diagnostic Repository (ADR) since the last LIST FAILURE.

D. The VALIDATE DATABASE command has detected new failures recorded in the Automatic Diagnostic Repository (ADR).

Answer: C

 

QUESTION 168:

Exhibit:

View the Exhibit to examine a portion of the output from the VALIDATE DATABASE command.

Which statement is true about the block corruption detected by the command?

A. No action is taken except the output in the Exhibit.

B. The ADVISE FAILURE command is automatically called to display the repair script.

C. The failure is logged into the Automatic Diagnostic Repository (ADR).

D. The corruption is repaired by the command implicitly.

Answer: C

解析:

DATABASE

Validates the database.

RMAN validates all data files and control files. If the database is currently using a server parameter file, then RMAN validates the server parameter file.

Note: The online redo log files and temp files are not validated.

 

QUESTION 169:

Which two statements about workload capture and replay operations are true? (Choose two.)

A. The clients must be created manually on the test machines to perform more realistic testing.

B. Restart the database in RESTRICTED mode before beginning workload capture to enable a clean state for capturing the workload.

C. The application state of the capture system must be identical to the application state of the replay system when the workload replay begins.

D. Restart the database in RESTRICTED mode before beginning workload replay to enable a clean state for workload replay.

Answer: B,C

解析:

B、在负载捕获开始之前以限制模式重新启动数据库,用于启动一个捕获负载的干净状态。

C、当工作负载重放开始时,捕获系统的应用状态必须和重放系统的应用状态相同。

QUESTION 170:

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?

A. RMAN renames the local stored scripts in the RCO11 catalog.

B. The scripts in the RCO11 catalog are overwritten.

C. The RMAN session in which the command is executed aborts.

D. RMAN renames the global scripts that are imported from the RCAT10 catalog.

Answer: D

解析:参考Oracle官方文档

http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmcatdb.htm#BRADV89699

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.

猜你喜欢

转载自blog.csdn.net/seagal890/article/details/83004651