1Z0-062 Exam - Oracle Database 12c: Installation and Administration

certleader.com

Q1. You execute the commands: 

SQL>CREATE USER sidney 

IDENTIFIED BY out_standing1 

DEFAULT TABLESPACE users 

QUOTA 10M ON users 

TEMPORARY TABLESPACE temp 

ACCOUNT UNLOCK; 

SQL> GRANT CREATE SESSION TO Sidney; 

Which two statements are true? 

A. The create user command fails if any role with the name Sidney exists in the database. 

B. The user sidney can connect to the database instance but cannot perform sort operations because no space quota is specified for the temp tablespace. 

C. The user sidney is created but cannot connect to the database instance because no profile is 

D. The user sidney can connect to the database instance but requires relevant privileges to create objects in the users tablespace. 

E. The user sidney is created and authenticated by the operating system. 

Answer: A,E 

Q2. Identify three scenarios in which you would recommend the use of SQL Performance Analyzer to analyze impact on the performance of SQL statements. 

A. Change in the Oracle Database version 

B. Change in your network infrastructure 

C. Change in the hardware configuration of the database server 

D. Migration of database storage from non-ASM to ASM storage 

E. Database and operating system upgrade 

Answer: A,C,E 

Explanation: Oracle 11g/12c makes further use of SQL tuning sets with the SQL Performance Analyzer, which compares the performance of the statements in a tuning set before and after a database change. The database change can be as major or minor as you like, such as: 

* (E) Database, operating system, or hardware upgrades. 

* (A,C) Database, operating system, or hardware configuration changes. 

* Database initialization parameter changes. 

* Schema changes, such as adding indexes or materialized views. 

* Refreshing optimizer statistics. 

* Creating or changing SQL profiles. 

Q3. Which two tasks can be performed on an external table? 

A. partitioning the table 

B. creating an invisible index 

C. updating the table by using an update statement 

D. creating a public synonym 

E. creating a view 

Answer: C,D 

Q4. Examine the parameter for your database instance: 

You generated the execution plan for the following query in the plan table and noticed that the nested loop join was done. After actual execution of the query, you notice that the hash join was done in the execution plan: 

Identify the reason why the optimizer chose different execution plans. 

A. The optimizer used a dynamic plan for the query. 

B. The optimizer chose different plans because automatic dynamic sampling was enabled. 

C. The optimizer used re-optimization cardinality feedback for the query. 

D. The optimizer chose different plan because extended statistics were created for the columns used. 

Answer:

Explanation: * optimizer_dynamic_sampling OPTIMIZER_DYNAMIC_SAMPLING controls both when the database gathers dynamic statistics, and the size of the sample that the optimizer uses to gather the statistics. Range of values0 to 11 

Q5. Identify three benefits of Unified Auditing. 

A. Decreased use of storage to store audit trail rows in the database. 

B. It improves overall auditing performance. 

C. It guarantees zero-loss auditing. 

D. The audit trail cannot be easily modified because it is read-only. 

E. It automatically audits Recovery Manager (RMAN) events. 

Answer: A,B,E 

Explanation: A: Starting with 12c, Oracle has unified all of the auditing types into one single unit called Unified auditing. You don’t have to turn on or off all of the different auidting types individually and as a matter of fact auditing is enabled by default right out of the box. The AUD$ and FGA$ tables have been replaced with one single audit trail table. All of the audit data is now stored in Secure Files table thus improving the overall management aspects of audit data itself. 

B: Further the audit data can also be buffered solving most of the common performance related problems seen on busy environments. 

E: Unified Auditing is able to collect audit data for Fine Grained Audit, RMAN, Data Pump, Label Security, Database Vault and Real Application Security operations. 

Note: 

* Benefits of the Unified Audit Trail 

The benefits of a unified audit trail are many: / (B) Overall auditing performance is greatly improved. The default mode that unified audit works is Queued Write mode. In this mode, the audit records are batched in SGA queue and is persisted in a periodic way. Because the audit records are written to SGA queue, there is a significant performance improvement. 

/ The unified auditing functionality is always enabled and does not depend on the initialization parameters that were used in previous releases 

/ (A) The audit records, including records from the SYS audit trail, for all the audited components of your Oracle Database installation are placed in one location and in one format, rather than your having to look in different places to find audit trails in varying formats. This consolidated view enables auditors to co-relate audit information from different components. For example, if an error occurred during an INSERT statement, standard auditing can indicate the error number and the SQL that was executed. Oracle Database Vault-specific information can indicate whether this error happened because of a command rule violation or realm violation. Note that there will be two audit records with a distinct AUDIT_TYPE. With this unification in place, SYS audit records appear with AUDIT_TYPE set to Standard Audit. 

/ The management and security of the audit trail is also improved by having it in single audit trail. 

/ You can create named audit policies that enable you to audit the supported components listed at the beginning of this section, as well as SYS administrative users. Furthermore, you can build conditions and exclusions into your policies. 

* Oracle Database 12c Unified Auditing enables selective and effective auditing inside the Oracle database using policies and conditions. The new policy based syntax simplifies management of auditing within the database and provides the ability to accelerate auditing based on conditions. 

* The new architecture unifies the existing audit trails into a single audit trail, enabling simplified management and increasing the security of audit data generated by the database. 

Q6. Which Oracle Database component is audited by default if the unified Auditing option is enabled? 

A. Oracle Data Pump 

B. Oracle Recovery Manager (RMAN) 

C. Oracle Label Security 

D. Oracle Database Vault 

E. Oracle Real Application Security 

Answer:

Q7. Identify two correct statements about multitenant architectures. 

A. Multitenant architecture can be deployed only in a Real Application Clusters (RAC) configuration. 

B. Multiple pluggable databases (PDBs) share certain multitenant container database (CDB) resources. 

C. Multiple CDBs share certain PDB resources. 

D. Multiple non-RAC CDB instances can mount the same PDB as long as they are on the same server. 

E. Patches are always applied at the CDB level. 

F. A PDB can have a private undo tablespace. 

Answer: B,E 

Explanation: B: Using 12c Resource manager you will be able control CPU, Exadata I/O, sessions and parallel servers. A new 12c CDB Resource Manager Plan will use so-called “Shares” (resource allocations) to specify how CPU is distributed between PDBs. A CDB Resource Manager Plan also can use “utilization limits” to limit the CPU usage for a PDB. With a default directive, you do not need to modify the resource plan for each PDB plug and unplug. 

E: New paradigms for rapid patching and upgrades. 

The investment of time and effort to patch one multitenant container database results in patching all of its many pluggable databases. To patch a single pluggable database, you simply unplug/plug to a multitenant container database at a different Oracle Database software version. 

Incorrect: Not A: 

* The Oracle RAC documentation describes special considerations for a CDB in an Oracle RAC environment. 

* Oracle Multitenant is a new option for Oracle Database 12c Enterprise Edition that helps customers reduce IT costs by simplifying consolidation, provisioning, upgrades, and more. It is supported by a new architecture that allows a container database to hold many pluggable databases. And it fully complements other options, including Oracle Real Application Clusters and Oracle Active Data Guard. An existing database can be simply adopted, with no change, as a pluggable database; and no changes are needed in the other tiers of the application. Not D: You can unplug a PDB from one CDB and plug it into a different CDB without altering your schemas or applications. A PDB can be plugged into only one CDB at a time. 

not F: 

* UNDO tablespace can NOT be local and stays on the CDB level. 

* Redo and undo go hand in hand, and so the CDB as a whole has a single undo tablespace per RAC instance. 

Q8. You run a script that completes successfully using SQL*Plus that performs these actions: 

1. Creates a multitenant container database (CDB) 

2. Plugs in three pluggable databases (PDBs) 

3. Shuts down the CDB instance 

4. Starts up the CDB instance using STARTUP OPEN READ WRITE 

Which two statements are true about the outcome after running the script? 

A. The seed will be in mount state. 

B. The seed will be opened read-only. 

C. The seed will be opened read/write. 

D. The other PDBs will be in mount state. 

E. The other PDBs will be opened read-only. 

F. The PDBs will be opened read/write. 

Answer: B,D 

Explanation: B: The seed is always read-only. 

D: Pluggable databases can be started and stopped using SQL*Plus commands or the ALTER PLUGGABLE DATABASE command. 

Q9. You execute the following piece of code with appropriate privileges: 

User SCOTT has been granted the CREATE SESSION privilege and the MGR role. 

Which two statements are true when a session logged in as SCOTT queries the SAL column in the view and the table? 

A. Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set. 

B. Data is redacted for EMP.SAL column only if the SCOTT session has the MGR role set. 

C. Data is never redacted for the EMP_V.SAL column. 

D. Data is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set. 

E. Data is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set. 

Answer: A,C 

Explanation: 

Note: 

* DBMS_REDACT.FULL completely redacts the column data. 

* DBMS_REDACT.NONE applies no redaction on the column data. Use this function for development testing purposes. LOB columns are not supported. 

* The DBMS_REDACT package provides an interface to Oracle Data Redaction, which enables you to mask (redact) data that is returned from queries issued by low-privileged users or an application. 

* If you create a view chain (that is, a view based on another view), then the Data Redaction policy also applies throughout this view chain. The policies remain in effect all of the way up through this view chain, but if another policy is created for one of these views, then for the columns affected in the subsequent views, this new policy takes precedence. 

Q10. Which two statements are true about the logical storage structure of an Oracle database? 

A. An extent contains data blocks that are always physically contiguous on disk. 

B. An extent can span multiple segments, 

C. Each data block always corresponds to one operating system block. 

D. It is possible to have tablespaces of different block sizes. 

E. A data block is the smallest unit of I/O in data files. 

Answer: B,D 

Reference: http://docs.oracle.com/cd/E11882_01/server.112/e40540/logical.htm#CNCPT250