1Z0-062 Premium Bundle

1Z0-062 Premium Bundle

Oracle Database 12c: Installation and Administration Certification Exam

4.5 
(20550 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
May 20, 2024Last update

Oracle 1Z0-062 Free Practice Questions

Q1. Which four actions are possible during an Online Data file Move operation? 

A. Creating and dropping tables in the data file being moved 

B. Performing file shrink of the data file being moved 

C. Querying tables in the data file being moved 

D. Performing Block Media Recovery for a data block in the data file being moved 

E. Flashing back the database 

F. Executing DML statements on objects stored in the data file being moved 

Answer: A,C,E,F 

Explanation: - You can now move On line Datafile without hove to stop Monoged Recovery and manually copy and rename Files. This can even be used to move Datafiles from or to ASM. 

-New in Oracle Database 12c: FROM METAUNK. Physical Standby Database is in Active Data Guard Mode (opened READ ONLY and Managed Recovery is running): It is now possible to online move a Datafile while Managed Recovery is running, ie. the Physical Standby Database is in Active Data Guard Mode. You con use this Command to move the Datafile 

-A flashback operation does not relocate a moved data file to its previous location. If you move a data file online from one location to another and later flash back the database to a point in time before the move, then the Data file remains in the new location, but the contents of the Data file ore changed to the contents at the time specified in the flashback. Oracle0 Database Administrator's Guide 12c Release 1 (12.1) 

Q2. Which two statements are true about the RMAN validate database command? 

A. It checks the database for intrablock corruptions. 

B. It can detect corrupt pfiles. 

C. It can detect corrupt spfiles. 

D. It checks the database for interblock corruptions. 

E. It can detect corrupt block change tracking files. 

Answer: A,C 

Explanation: 

Block corruptions can be divided Into Interblock corruption and intrablock corruption. In intrablock corruption. th. corruption occurs within the block itself and can be either physical or logical corruption. In interblock corruption, the corruption occurs between blocks and can only be logical corruption. (key word) * The VALIDATE command checks for intrablock corruptions only. Only DBVERIFY and the ANALYZE statement detect Interblock corruption. VALIDATE Command Output ..> List of Control File and SPFILE. 

File TYPE >.. SPFILE or Control File. 

Status >.. OK if no corruption, or FAILED If block corruption is found. 

Blocks Failing ... The number of blocks that fail the corruption check. These 

blocks are newly corrupt. 

Blocks Examined ... Total number of blocks in the file. 

Oracle' Database Backup and Recovery User's Guide 

12c Release 1 (12.1) - 16 Validating Database Files and Backups 

Q3. Your multitenant container database (CDB) contains a pluggable database, HR_PDB. The default permanent tablespace in HR_PDB is USERDATA. The container database (CDB) is open and you connect RMAN. 

You want to issue the following RMAN command: 

RMAN > BACKUP TABLESPACE hr_pdb:userdata; 

Which task should you perform before issuing the command? 

A. Place the root container in ARHCHIVELOG mode. 

B. Take the user data tablespace offline. 

C. Place the root container in the nomount stage. 

D. Ensure that HR_PDB is open. 

Answer:

Q4. Examine the following command; 

ALTER SYSTEM SET enable_ddl_logging = TRUE; 

Which statement is true? 

A. Only the data definition language (DDL) commands that resulted in errors are logged in the alert log file. 

B. All DDL commands are logged in the alert log file. 

C. All DDL commands are logged in a different log file that contains DDL statements and their execution dates. 

D. Only DDL commands that resulted in the creation of new segments are logged. 

E. All DDL commands are logged in XML format in the alert directory under the Automatic Diagnostic Repository (ADR) home. 

Answer:

Explanation: Once DDL logging is turned on, every DDL command will be logged in the alert log file and also the log.xml file. 

Note: 

* By default Oracle database does not log any DDL operations performed by any user. The default settings for auditing only logs DML operations. 

* Oracle 12c DDL Logging – ENABLE_DDL_LOGGING 

The first method is by using the enabling a DDL logging feature built into the database. By default it is turned off and you can turn it on by setting the value of ENABLE_DDL_LOGGING initialization parameter to true. 

* We can turn it on using the following command. The parameter is dynamic and you can 

turn it on/off on the go. 

SQL> alter system set ENABLE_DDL_LOGGING=true; 

System altered. Elapsed: 00:00:00.05 SQL> 

Once it is turned on, every DDL command will be logged in the alert log file and also the log.xml file. 

Q5. Which two statements are true concerning the Resource Manager plans for individual pluggable databases (PDB plans) in a multitenant container database (CDB)? 

A. If no PDB plan is enabled for a pluggable database, then all sessions for that PDB are treated to an equal degree of the resource share of that PDB. 

B. In a PDB plan, subplans may be used with up to eight consumer groups. 

C. If a PDB plan is enabled for a pluggable database, then resources are allocated to consumer groups across all PDBs in the CDB. 

D. If no PDB plan is enabled for a pluggable database, then the PDB share in the CDB plan is dynamically calculated. 

E. If a PDB plan is enabled for a pluggable database, then resources are allocated to consumer groups based on the shares provided to the PDB in the CDB plan and the shares provided to the consumer groups in the PDB plan. 

Answer: A,E 

Explanation: A: Setting a PDB resource plan is optional. If not specified, all sessions 

within the PDB are treated equally. 

* In a non-CDB database, workloads within a database are managed with resource plans. 

In a PDB, workloads are also managed with resource plans, also called PDB resource plans. The functionality is similar except for the following differences: / Non-CDB Database Multi-level resource plans Up to 32 consumer groups Subplans / PDB Database Single-level resource plans only Up to 8 consumer groups (not B) No subplans 

Q6. Which two statements are true about Oracle Managed Files (OMF)? 

A. OMF cannot be used in a database that already has data files created with user-specified directions. 

B. The file system directions that are specified by OMF parameters are created automatically. 

C. OMF can be used with ASM disk groups, as well as with raw devices, for better file management. 

D. OMF automatically creates unique file names for table spaces and control files. 

E. OMF may affect the location of the redo log files and archived log files. 

Answer: D,E 

Explanation: 

D: The database internally uses standard file system interfaces to create and delete files as needed for the following database structures: 

Tablespaces Redo log files Control files Archived logs Block change tracking files Flashback logs RMAN backups 

Note: 

* Using Oracle-managed files simplifies the administration of an Oracle Database. Oracle-managed files eliminate the need for you, the DBA, to directly manage the operating system files that make up an Oracle Database. With Oracle-managed files, you specify file system directories in which the database automatically creates, names, and manages files at the database object level. For example, you need only specify that you want to create a tablespace; you do not need to specify the name and path of the tablespace's datafile with the DATAFILE clause. 

http://www.oracle-base.com/articles/9i/oracle-managed-files.php http://docs.oracle.com/cd/B10500_01/server.920/a96521/omf.htm Reference: What Are Oracle-Managed Files? 

Q7. Examine the query and its output executed In an RDBMS Instance: 

Which three statements are true about the users (other than sys) in the output? 

A. The C # # B_ADMIN user can perform all backup and recovery operations using RMAN only. 

B. The C # # C_ADMIN user can perform the data guard operation with Data Guard Broker. 

C. The C # # A_ADMIN user can perform wallet operations. 

D. The C # # D_ADMIN user can perform backup and recovery operations for Automatic Storage Management (ASM). 

E. The C # # B_ADMIN user can perform all backup and recovery operations using RMAN or SQL* Plus. 

Answer: B,D,E Explanation: 

B: SYSDG administrative privilege has ability to perform Data Guard operations (including startup and shutdown) using Data Guard Broker or dgmgrl. 

D: SYSASM The new (introduced in 11g) SYSASM role to manage the ASM instance, variable extent sizes to reduce shared pool usage, and the ability of an instance to read from a specific disk of a diskgroup 

E (Not A): SYSDBA is like a role in the sense that it is granted, but SYSDBA is a special built-in privilege to allow the DBA full control over the database 

Incorrect: 

Not C: SYSKM. SYSKM administrative privilege has ability to perform transparent data encryption wallet operations. 

Note: 

Use the V$PWFILE_USERS view to see the users who have been granted administrative privileges. 

Q8. Examine the parameters for your database instance: 

Which three statements are true about the process of automatic optimization by using cardinality feedback? 

A. The optimizer automatically changes a plan during subsequent execution of a SQL statement if there is a huge difference in optimizer estimates and execution statistics. 

B. The optimizer can re optimize a query only once using cardinality feedback. 

C. The optimizer enables monitoring for cardinality feedback after the first execution of a query. 

D. The optimizer does not monitor cardinality feedback if dynamic sampling and multicolumn statistics are enabled. 

E. After the optimizer identifies a query as a re-optimization candidate, statistics collected by the collectors are submitted to the optimizer. 

Answer: A,C,D 

Explanation: C: During the first execution of a SQL statement, an execution plan is generated as usual. 

D: if multi-column statistics are not present for the relevant combination of columns, the optimizer can fall back on cardinality feedback. 

(not B)* Cardinality feedback. This feature, enabled by default in 11.2, is intended to improve plans for repeated executions. 

optimizer_dynamic_sampling optimizer_features_enable 

* dynamic sampling or multi-column statistics allow the optimizer to more accurately estimate selectivity of conjunctive predicates. 

Note: 

* OPTIMIZER_DYNAMIC_SAMPLING controls the level of dynamic sampling performed by the optimizer. Range of values. 0 to 10 

* Cardinality feedback was introduced in Oracle Database 11gR2. The purpose of this feature is to automatically improve plans for queries that are executed repeatedly, for which the optimizer does not estimate cardinalities in the plan properly. The optimizer may misestimate cardinalities for a variety of reasons, such as missing or inaccurate statistics, or complex predicates. Whatever the reason for the misestimate, cardinality feedback may be able to help. 

Q9. You are planning the creation of a new multitenant container database (CDB) and want to store the ROOT and SEED container data files in separate directories. 

You plan to create the database using SQL statements. 

Which three techniques can you use to achieve this? 

A. Use Oracle Managed Files (OMF). 

B. Specify the SEED FILE_NAME_CONVERT clause. 

C. Specify the PDB_FILE_NAME_CONVERT initialization parameter. 

D. Specify the DB_FILE_NAMECONVERT initialization parameter. 

E. Specify all files in the CREATE DATABASE statement without using Oracle managed Files (OMF). 

Answer: A,B,C 

Explanation: You must specify the names and locations of the seed's files in one of the following ways: 

* (A) Oracle Managed Files 

* (B) The SEED FILE_NAME_CONVERT Clause 

* (C) The PDB_FILE_NAME_CONVERT Initialization Parameter 

Q10. Which three features work together, to allow a SQL statement to have different cursors for the same statement based on different selectivity ranges? 

A. Bind Variable Peeking 

B. SQL Plan Baselines 

C. Adaptive Cursor Sharing 

D. Bind variable used in a SQL statement 

E. Literals in a SQL statement 

Answer: A,C,E 

Explanation: * In bind variable peeking (also known as bind peeking), the optimizer looks at the value in a bind variable when the database performs a hard parse of a statement. 

When a query uses literals, the optimizer can use the literal values to find the best plan. However, when a query uses bind variables, the optimizer must select the best plan without the presence of literals in the SQL text. This task can be extremely difficult. By peeking at bind values the optimizer can determine the selectivity of a WHERE clause condition as if literals had been used, thereby improving the plan. 

C: Oracle 11g/12g uses Adaptive Cursor Sharing to solve this problem by allowing the server to compare the effectiveness of execution plans between executions with different bind variable values. If it notices suboptimal plans, it allows certain bind variable values, or ranges of values, to use alternate execution plans for the same statement. This functionality requires no additional configuration. 

Q11. You create a table with the PERIOD FOR clause to enable the use of the Temporal Validity feature of Oracle Database 12c. 

Examine the table definition: 

Which three statements are true concerning the use of the Valid Time Temporal feature for the EMPLOYEES table? 

A. The valid time columns employee_time_start and employee_time_end are automatically created. 

B. The same statement may filter on both transaction time and valid temporal time by using the AS OF TIMESTAMP and PERIOD FOR clauses. 

C. The valid time columns are not populated by the Oracle Server automatically. 

D. The valid time columns are visible by default when the table is described. 

E. Setting the session valid time using DBMS_FLASHBACK_ARCHIVE.ENABLE_AT_VALID_TIME sets the visibility for data manipulation language (DML), data definition language (DDL), and queries performed by the session. 

Answer: A,B,E 

Explanation: A: To implement Temporal Validity(TV), 12c offers the option to have two date columns in that table which is having TV enabled using the new clause Period For in the Create Table for the newly created tables or in the Alter Table for the existing ones. The columns that are used can be defined while creating the table itself and will be used in the Period For clause or you can skip having them in the table’s definition in the case of which, the Period For clause would be creating them internally. 

E: ENABLE_AT_VALID_TIME Procedure 

This procedure enables session level valid time flashback. 

Q12. After implementing full Oracle Data Redaction, you change the default value for the NUMBER data type as follows: 

After changing the value, you notice that FULL redaction continues to redact numeric data with zero. 

What must you do to activate the new default value for numeric full redaction? 

A. Re-enable redaction policies that use FULL data redaction. 

B. Re-create redaction policies that use FULL data redaction. 

C. Re-connect the sessions that access objects with redaction policies defined on them. 

D. Flush the shared pool. 

E. Restart the database instance. 

Answer:

Explanation: About Altering the Default Full Data Redaction Value You can alter the default displayed values for full Data Redaction polices. By default, 0 is the redacted value when Oracle Database performs full redaction (DBMS_REDACT.FULL) on a column of the NUMBER data type. If you want to change it to another value (for example, 7), then you can run the DBMS_REDACT.UPDATE_FULL_REDACTION_VALUES procedure to modify this value. The modification applies to all of the Data Redaction policies in the current database instance. After you modify a value, you must restart the database for it to take effect. 

Note: 

* 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. 

* UPDATE_FULL_REDACTION_VALUES Procedure 

This procedure modifies the default displayed values for a Data Redaction policy for full redaction. 

* After you create the Data Redaction policy, it is automatically enabled and ready to redact data. 

* Oracle Data Redaction enables you to mask (redact) data that is returned from queries issued by low-privileged users or applications. You can redact column data by using one of the following methods: 

/ Full redaction. / Partial redaction. / Regular expressions. / Random redaction. / No redaction. 

Reference: Oracle Database Advanced Security Guide 12c, About Altering the Default Full Data Redaction Value 

Q13. You plan to migrate your database from a File system to Automata Storage Management (ASM) on same platform. 

Which two methods or commands would you use to accomplish this task? 

A. RMAN CONVERT command 

B. Data Pump Export and import 

C. Conventional Export and Import 

D. The BACKUP AS COPY DATABASE . . . command of RMAN 

E. DBMS_FILE_TRANSFER with transportable tablespace 

Answer: A,D 

Explanation: A: 

1. Get the list of all datafiles. 

. Use the convert datafile command to convert the datafile from the file system to ASM. 

Note: RMAN Backup of ASM Storage 

There is often a need to move the files from the file system to the ASM storage and vice versa. This may come in handy when one of the file systems is corrupted by some means and then the file may need to be moved to the other file system. 

D: Migrating a Database into ASM 

* To take advantage of Automatic Storage Management with an existing database you must migrate that database into ASM. This migration is performed using Recovery Manager (RMAN) even if you are not using RMAN for your primary backup and recovery strategy. 

* Example: 

Back up your database files as copies to the ASM disk group. 

BACKUP AS COPY INCREMENTAL LEVEL 0 DATABASE FORMAT '+DISK' TAG 'ORA_ASM_MIGRATION' 

Reference: Migrating Databases To and From ASM with Recovery Manager 

Q14. Your database is open and the listener LISTNENER is up. You issue the command: 

LSNRCTL> RELOAD 

What is the effect of reload on sessions that were originally established by listener? 

A. Only sessions based on static listener registrations are disconnected. 

B. Existing connections are not disconnected; however, they cannot perform any operations until the listener completes the re-registration of the database instance and service handlers. 

C. The sessions are not affected and continue to function normally. 

D. All the sessions are terminated and active transactions are rolled back. 

Answer:

Q15. Which three operations can be performed as multipartition operations in Oracle? 

A. Merge partitions of a list partitioned table 

B. Drop partitions of a list partitioned table 

C. Coalesce partitions of a hash-partitioned global index. 

D. Move partitions of a range-partitioned table 

E. Rename partitions of a range partitioned table 

F. Merge partitions of a reference partitioned index 

Answer: A,B,F 

Explanation: Multipartition maintenance enables adding, dropping, truncate, merge, split operations on multiple partitions. 

A: Merge Multiple Partitions: 

The new “ALTER TABLE … MERGE PARTITIONS ” help merge multiple partitions or subpartitions with a single statement. When merging multiple partitions, local and global index operations and semantics for inheritance of unspecified physical attributes are the same for merging two partitions. 

B: Drop Multiple Partitions: 

The new “ALTER TABLE … DROP PARTITIONS ” help drop multiple partitions or subpartitions with a single statement. 

Example: 

view plaincopy to clipboardprint? 

SQL> ALTER TABLE Tab_tst1 DROP PARTITIONS 

Tab_tst1_PART5, Tab_tst1_PART6, Tab_tst1_PART7; 

Table altered 

SQL> 

Restrictions : 

-You can’t drop all partitions of the table. 

-If the table has a single partition, you will get the error: ORA-14083: cannot drop the only partition of a partitioned. 

Q16. Your multitenant container database has three pluggable databases (PDBs): PDB1, PDB2, and PDB3. 

Which two RMAN commands may be; used to back up only the PDB1 pluggable database? 

A. BACKUP PLUGGABLE DATABASE PDB1 while connected to the root container 

B. BACKUP PLUGGABLE DATABASE PDB1 while connected to the PDB1 container 

C. BACKUP DATABASE while connected to the PDB1 container 

D. BACKUP DATABASE while connected to the boot container 

E. BACKUP PLUGGABLE database PDB1 while connected to PDB2 

Answer: A,C 

Explanation: To perform operations on a single PDB, you can connect as target either to the root or directly to the PDB. 

* (A) If you connect to the root, you must use the PLUGGABLE DATABASE syntax in your RMAN commands. For example, to back up a PDB, you use the BACKUP PLUGGABLE DATABASE command. 

* (C)If instead you connect directly to a PDB, you can use the same commands that you would use when connecting to a non-CDB. For example, to back up a PDB, you would use the BACKUP DATABASE command. 

Reference: Oracle Database Backup and Recovery User's Guide 12c, About Backup and Recovery of CDBs 

START 1Z0-062 EXAM