1. 程式人生 > >Oracle OCP 1Z0-050(11-15題)解析

Oracle OCP 1Z0-050(11-15題)解析

QUESTION 11:

USER_DATA is a nonencrypted tablespace that contains a set of tables with data. You want to convert all existing data in the USER_DATA tablespace and the new data into the encrypted format. Which methods would you use to achieve this? (Choose all that apply.)

A. Encrypt the USER_DATA tablespace using the ALTER TABLESPACE statement so that all the data in the tablespace is automatically encrypted.

B. Use Data Pump to transfer the existing data to a new encrypted tablespace.

C. Use ALTER TABLE..MOVE to transfer the existing data to a new encrypted tablespace.

D. Enable row movement for each table to be encrypted and then use ALTER TABLESPACE to encrypt the tablespace.

E. Use CREATE TABLE AS SELECT to transfer the existing data to a new encrypted tablespace.

正確答案:B、C、E

【解析】

可以使用Data Pump 傳輸當前資料到一個新的加密的表空間;

可以使用 Alter Table Move... 傳輸當前資料到一個新的加密的表空間;

可以使用 Create Table as Select 移動當前資料到一個新的加密的表空間;

參考下文:

The following are restrictions for encrypted tablespaces:

  • You cannot encrypt an existing tablespace with an ALTER TABLESPACE statement. However, you can use Data Pump or SQL statements such as CREATE

    TABLE AS SELECT or ALTER TABLE MOVE to move existing table data into an encrypted tablespace.

  • Encrypted tablespaces are subject to restrictions when transporting to another database. See "Limitations on Transportable Tablespace Use".

  • When recovering a database with encrypted tablespaces (for example after a SHUTDOWN ABORT or a catastrophic error that brings down the database instance), you must open the Oracle wallet after database mount and before database open, so the recovery process can decrypt data blocks and redo.

QUESTION 12: Exhibit:

View the Exhibit to observe the error.

You receive this error regularly and have to shut down the database instance to overcome the error. What can the solution be to reduce the chance of this error in future, when implemented?

A. setting the PRE_PAGE_SGA parameter to TRUE

B. locking the SGA in memory

C. increasing the value of SGA_MAX_SIZE

D. automatic memory management

正確答案:D

【解析】

使用自動記憶體管理功能

QUESTION 13:

Which three are the valid statements in relation to SQL plan baselines? (Choose three.)

A. The plans generated for every SQL statement are stored in the SQL plan baseline by default.

B. The plans can be manually loaded to the SQL plan baseline.

C. The plan baselines are stored temporarily in the memory as long as the database instance is running.

D. The plans in the SQL plan baseline are verified and accepted plans.

E. For the SQL plan baselines to be accessible to the optimizer, the SYSAUX tablespace must be online.

正確答案:B、D、E

【解析】

參考Oracle官方文件的描述:

15.2.1 Capturing SQL Plan Baselines

During the SQL plan baseline capture phase, the database detects plan changes and records the new plan so that it can be evolved (verified) by the database administrator. To this end, the database maintains a plan history for individual SQL statements. Because ad hoc SQL statements do not repeat and thus do not suffer performance degradation, the database maintains plan history only for repeatable SQL statements.

To recognize repeatable SQL statements, the database maintains a statement log that contains the SQL ID of various SQL statements that the optimizer has evaluated. The database recognizes a SQL statement as repeatable when it is parsed or executed again after it has been logged.

For each repeatable SQL statement, the database maintains a plan history that contains all plans generated by the optimizer. The set of all accepted plans in the plan history is the SQL plan baseline.

You can configure the SQL Plan Baseline Capture phase for automatic capture of plan history and SQL plan baselines for repeatable SQL statements. Alternatively, you can manually load plans as SQL plan baselines.

15.6 SQL Management Base

The SQL management base (SMB) is a part of the data dictionary that resides in the SYSAUX tablespace. It stores statement logs, plan histories, SQL plan baselines, and SQL profiles. To allow weekly purging of unused plans and logs, the SMB uses automatic space management.

You can also add plans manually to the SMB for a set of SQL statements. This feature is especially useful when upgrading the database from a version before Oracle Database 11g because it helps to minimize plan regressions resulting from the use of a new optimizer version.

Because the SMB is located entirely within SYSAUX, the database does not use SQL plan management and SQL tuning features when this tablespace is unavailable.

QUESTION 14:

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 system change number (SCN)

B. the execution plan

C. the execution context

D. the SQL text

E. the execution frequency

正確答案:C、D、E

【解析】

QUESTION 15:

Which two statements are true regarding the Automatic Diagnostic Repository (ADR) in Oracle Database 11g? (Choose two.)

A. The BACKGROUND_DUMP_DEST initialization parameter overrides the DIAGNOSTIC_DEST initialization parameter for the location of the alert log file.

B. A single ADR can support multiple ADR homes for different database instances.

C. The alert files are stored in XML file format in the TRACE directory of each ADR home.

D. If the environmental variable ORACLE_BASE is set, then DIAGNOSTIC_DEST is set to $ORACLE_BASE.

正確答案:B、D

【解析】