1Z0-062 Premium Bundle

1Z0-062 Premium Bundle

Oracle Database 12c: Installation and Administration Certification Exam

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

Oracle 1Z0-062 Free Practice Questions

Q1. You support Oracle Database 12c Oracle Database 11g, and Oracle Database log on the same server. 

All databases of all versions use Automatic Storage Management (ASM). 

Which three statements are true about the ASM disk group compatibility attributes that are set for a disk group? 

A. The ASM compatibility attribute controls the format of the disk group metadata. 

B. RDBMS compatibility together with the database version determines whether a database Instance can mount the ASM disk group. 

C. The RDBMS compatibility setting allows only databases set to the same version as the compatibility value, to mount the ASM disk group. 

D. The ASM compatibility attribute determines some of the ASM features that may be used by the Oracle disk group. 

E. The ADVM compatibility attribute determines the ACFS features that may be used by the Oracle 10 g database. 

Answer: A,B,D 

Explanation: AD: The value for the disk group COMPATIBLE.ASM attribute determines the minimum software version for an Oracle ASM instance that can use the disk group. This setting also affects the format of the data structures for the Oracle ASM metadata on the disk. 

B: The value for the disk group COMPATIBLE.RDBMS attribute determines the minimum COMPATIBLE database initialization parameter setting for any database instance that is allowed to use the disk group. Before advancing the COMPATIBLE.RDBMS attribute, ensure that the values for the COMPATIBLE initialization parameter for all of the databases that access the disk group are set to at least the value of the new setting for COMPATIBLE.RDBMS. 

For example, if the COMPATIBLE initialization parameters of the databases are set to either 11.1 or 11.2, then COMPATIBLE.RDBMS can be set to any value between 10.1 and 

11.1 inclusively. 

Not E: /The value for the disk group COMPATIBLE.ADVM attribute determines whether the disk group can contain Oracle ASM volumes. The value must be set to 11.2 or higher. Before setting this attribute, the COMPATIBLE.ASM value must be 11.2 or higher. Also, the Oracle ADVM volume drivers must be loaded in the supported environment. 

/ You can create an Oracle ASM Dynamic Volume Manager (Oracle ADVM) volume in a disk group. The volume device associated with the dynamic volume can then be used to host an Oracle ACFS file system. 

The compatibility parameters COMPATIBLE.ASM and COMPATIBLE.ADVM must be set to 

11.2 or higher for the disk group. 

Note: 

* The disk group attributes that determine compatibility are COMPATIBLE.ASM, COMPATIBLE.RDBMS. and COMPATIBLE.ADVM. The COMPATIBLE.ASM and COMPATIBLE.RDBMS attribute settings determine the minimum Oracle Database software version numbers that a system can use for Oracle ASM and the database instance types respectively. For example, if the Oracle ASM compatibility setting is 11.2, and RDBMS compatibility is set to 11.1, then the Oracle ASM software version must be at least 11.2, and the Oracle Database client software version must be at least 11.1. The COMPATIBLE.ADVM attribute determines whether the Oracle ASM Dynamic Volume Manager feature can create an volume in a disk group. 

Q2. The following parameter are set for your Oracle 12c database instance: 

OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES=FALSE OPTIMIZER_USE_SQL_PLAN_BASELINES=TRUE 

You want to manage the SQL plan evolution task manually. Examine the following steps: 

1. Set the evolve task parameters. 

2. Create the evolve task by using the DBMS_SPM.CREATE_EVOLVE_TASK function. 

3. Implement the recommendations in the task by using the DBMS_SPM.IMPLEMENT_EVOLVE_TASK function. 

4. Execute the evolve task by using the DBMS_SPM.EXECUTE_EVOLVE_TASK function. 

5. Report the task outcome by using the DBMS_SPM.REPORT_EVOLVE_TASK function. 

Identify the correct sequence of steps: 

A. 2, 4, 5 

B. 2, 1, 4, 3, 5 

C. 1, 2, 3, 4, 5 

D. 1, 2, 4, 5 

Answer:

Explanation: * Evolving SQL Plan Baselines 

Description of Figure 23-4 follows * 

2. Create the evolve task by using the DBMS_SPM.CREATE_EVOLVE_TASK function. 

This function creates an advisor task to prepare the plan evolution of one or more plans for a specified SQL statement. The input parameters can be a SQL handle, plan name or a list of plan names, time limit, task name, and description. 

1. Set the evolve task parameters. 

SET_EVOLVE_TASK_PARAMETER 

This function updates the value of an evolve task parameter. In this release, the only valid parameter is TIME_LIMIT. 

4. Execute the evolve task by using the DBMS_SPM.EXECUTE_EVOLVE_TASK function. 

This function executes an evolution task. The input parameters can be the task name, execution name, and execution description. If not specified, the advisor generates the name, which is returned by the function. 

3: IMPLEMENT_EVOLVE_TASK 

This function implements all recommendations for an evolve task. Essentially, this function is equivalent to using ACCEPT_SQL_PLAN_BASELINE for all recommended plans. Input parameters include task name, plan name, owner name, and execution name. 

5. Report the task outcome by using the DBMS_SPM_EVOLVE_TASK function. 

This function displays the results of an evolve task as a CLOB. Input parameters include the task name and section of the report to include. 

Reference: Oracle Database SQL Tuning Guide 12c, Managing SQL Plan Baselines 

Q3. 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? 

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

Q5. You created a new database using the "create database" statement without specifying the "ENABLE PLUGGABLE" clause. 

What are two effects of not using the "ENABLE PLUGGABLE database" clause? 

A. The database is created as a non-CDB and can never contain a PDB. 

B. The database is treated as a PDB and must be plugged into an existing multitenant container database (CDB). 

C. The database is created as a non-CDB and can never be plugged into a CDB. 

D. The database is created as a non-CDB but can be plugged into an existing CDB. 

E. The database is created as a non-CDB but will become a CDB whenever the first PDB is plugged in. 

Answer: A,D 

Explanation: A (not B,not E): The CREATE DATABASE ... ENABLE PLUGGABLE DATABASE SQL statement creates a new CDB. If you do not specify the ENABLE PLUGGABLE DATABASE clause, then the newly created database is a non-CDB and can never contain PDBs. 

D: You can create a PDB by plugging in a Non-CDB as a PDB. The following graphic depicts the options for creating a PDB: 

Description of cncpt358.png follows 

Incorrect: 

Not E: For the duration of its existence, a database is either a CDB or a non-CDB. You cannot transform a non-CDB into a CDB or vice versa. You must define a database as a CDB at creation, and then create PDBs within this CDB. 

Q6. In a recent Automatic Workload Repository (AWR) report for your database, you notice a high number of buffer busy waits. The database consists of locally managed tablespaces with free list managed segments. 

On further investigation, you find that buffer busy waits is caused by contention on data blocks. 

Which option would you consider first to decrease the wait event immediately? 

A. Decreasing PCTUSED 

B. Decreasing PCTFREE 

C. Increasing the number of DBWN process 

D. Using Automatic Segment Space Management (ASSM) 

E. Increasing db_buffer_cache based on the V$DB_CACHE_ADVICE recommendation 

Answer:

Explanation: * Automatic segment space management (ASSM) is a simpler and more efficient way of managing space within a segment. It completely eliminates any need to specify and tune the pctused,freelists, and freelist groups storage parameters for schema objects created in the tablespace. If any of these attributes are specified, they are ignored. 

* Oracle introduced Automatic Segment Storage Management (ASSM) as a replacement for traditional freelists management which used one-way linked-lists to manage free blocks with tables and indexes. ASSM is commonly called "bitmap freelists" because that is how Oracle implement the internal data structures for free block management. 

Note: 

* Buffer busy waits are most commonly associated with segment header contention onside the data buffer pool (db_cache_size, etc.). 

* The most common remedies for high buffer busy waits include database writer (DBWR) contention tuning, adding freelists (or ASSM), and adding missing indexes. 

Q7. Examine the contents of SQL loader control file: 

Which three statements are true regarding the SQL* Loader operation performed using the control file? 

A. An EMP table is created if a table does not exist. Otherwise, if the EMP table is appended with the loaded data. 

B. The SQL* Loader data file myfile1.dat has the column names for the EMP table. 

C. The SQL* Loader operation fails because no record terminators are specified. 

D. Field names should be the first line in the both the SQL* Loader data files. 

E. The SQL* Loader operation assumes that the file must be a stream record format file with the normal carriage return string as the record terminator. 

Answer: A,B,E 

Explanation: A: The APPEND keyword tells SQL*Loader to preserve any preexisting data in the table. Other options allow you to delete preexisting data, or to fail with an error if the table is not empty to begin with. 

B (not D): Note: 

* SQL*Loader-00210: first data file is empty, cannot process the FIELD NAMES record 

Cause: The data file listed in the next message was empty. Therefore, the FIELD NAMES 

FIRST FILE directive could not be processed. 

Action: Check the listed data file and fix it. Then retry the operation 

E: 

* A comma-separated values (CSV) (also sometimes called character-separated values, because the separator character does not have to be a comma) file stores tabular data (numbers and text) in plain-text form. Plain text means that the file is a sequence of characters, with no data that has to be interpreted instead, as binary numbers. A CSV file consists of any number of records, separated by line breaks of some kind; each record consists of fields, separated by some other character or string, most commonly a literal comma or tab. Usually, all records have an identical sequence of fields. 

* Fields with embedded commas must be quoted. 

Example: 

1997,Ford,E350,"Super, luxurious truck" 

Note: 

* SQL*Loader is a bulk loader utility used for moving data from external files into the Oracle database. 

Q8. Which three statements are true about Flashback Database? 

A. Flashback logs are written sequentially, and are archived. 

B. Flashback Database uses a restored control file to recover a database. 

C. The Oracle database automatically creates, deletes, and resides flashback logs in the Fast Recovery Area. 

D. Flashback Database can recover a database to the state that it was in before a reset logs operation. 

E. Flashback Database can recover a data file that was dropped during the span of time of the flashback. 

F. Flashback logs are used to restore to the blocks' before images, and then the redo data may be used to roll forward to the desired flashback time. 

Answer: B,C,F 

Explanation: * Flashback Database uses its own logging mechanism, creating flashback logs and storing them in the fast recovery area (C). You can only use Flashback Database if flashback logs are available. To take advantage of this feature, you must set up your database in advance to create flashback logs. 

* To enable Flashback Database, you configure a fast recovery area and set a flashback retention target. This retention target specifies how far back you can rewind a database with Flashback Database. 

From that time onwards, at regular intervals, the database copies images of each altered block in every data file into the flashback logs. These block images can later be reused to reconstruct the data file contents for any moment at which logs were captured. (F) 

Incorrect: Not E: You cannot use Flashback Database alone to retrieve a dropped data file. If you flash back a database to a time when a dropped data file existed in the database, only the data file entry is added to the control file. You can only recover the dropped data file by using RMAN to fully restore and recover the data file. 

Reference: Oracle Database Backup and Recovery User's Guide 12c R 

Q9. Examine this command: 

SQL > exec DBMS_STATS.SET_TABLE_PREFS (‘SH’, ‘CUSTOMERS’, ‘PUBLISH’, ‘false’); 

Which three statements are true about the effect of this command? 

A. Statistics collection is not done for the CUSTOMERS table when schema stats are gathered. 

B. Statistics collection is not done for the CUSTOMERS table when database stats are gathered. 

C. Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time. 

D. Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as pending statistics. 

E. Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as pending statistics. 

Answer: C,D,E 

Explanation: * SET_TABLE_PREFS Procedure 

This procedure is used to set the statistics preferences of the specified table in the specified schema. 

* Example: Using Pending Statistics Assume many modifications have been made to the employees table since the last time statistics were gathered. To ensure that the cost-based optimizer is still picking the best plan, statistics should be gathered once again; however, the user is concerned that new statistics will cause the optimizer to choose bad plans when the current ones are acceptable. The user can do the following: 

EXEC DBMS_STATS.SET_TABLE_PREFS('hr', 'employees', 'PUBLISH', 'false'); 

By setting the employees tables publish preference to FALSE, any statistics gather from now on will not be automatically published. The newly gathered statistics will be marked as pending. 

Q10. Which statement is true about Enterprise Manager (EM) express in Oracle Database 12c? 

A. By default, EM express is available for a database after database creation. 

B. You can use EM express to manage multiple databases running on the same server. 

C. You can perform basic administrative tasks for pluggable databases by using the EM express interface. 

D. You cannot start up or shut down a database Instance by using EM express. 

E. You can create and configure pluggable databases by using EM express. 

Answer:

Explanation: EM Express is built inside the database. 

Note: Oracle Enterprise Manager Database Express (EM Express) is a web-based database management tool that is built inside the Oracle Database. It supports key performance management and basic database administration functions. From an architectural perspective, EM Express has no mid-tier or middleware components, ensuring that its overhead on the database server is negligible. 

Q11. You executed the following command to create a password file in the database server: 

$ orapwd file = orapworcl entries = 5 ignorecase=N 

Which statement describes the purpose of the above password file? 

A. It records usernames and passwords of users when granted the DBA role 

B. It contains usernames and passwords of users for whom auditing is enabled 

C. It is used by Oracle to authenticate users for remote database administrator 

D. It records usernames and passwords of all users when they are added to OSDBA or OSOPER operating groups 

Answer:

Q12. Your database has the SRV1 service configured for an application that runs on middle-tier application server. The application has multiple modules. You enable tracing at the service level by executing the following command: 

SQL > exec DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE (‘SRV1’); 

The possible outcome and actions to aggregate the trace files are as follows: 

1. The command fails because a module name is not specified. 

2. A trace file is created for each session that is running the SRV1 service. 

3. An aggregated trace file is created for all the sessions that are running the SRV1 service. 

4. The trace files may be aggregated by using the trcess utility. 

5. The trace files be aggregated by using the tkprof utility. 

Identify the correct outcome and the step to aggregate by using tkprof utility? 

A. 1 

B. 2 and 4 

C. 2 and 5 

D. 3 and 4 

E. 3 and 5 

Answer:

Explanation: Tracing information is present in multiple trace files and you must use the trcsess tool to collect it into a single file. 

Incorrect: 

Not 1: Parameter service_name 

Name of the service for which tracing is enabled. 

module_name 

Name of the MODULE. An optional additional qualifier for the service. 

Note: 

* The procedure enables a trace for a given combination of Service, MODULE and ACTION name. The specification is strictly hierarchical: Service Name or Service Name/MODULE, or Service Name, MODULE, and ACTION name must be specified. Omitting a qualifier behaves like a wild-card, so that not specifying an ACTION means all ACTIONs. Using the ALL_ACTIONS constant achieves the same purpose. 

* SERV_MOD_ACT_TRACE_ENABLE Procedure 

This procedure will enable SQL tracing for a given combination of Service Name, MODULE and ACTION globally unless an instance_name is specified. 

* DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE( 

service_name IN VARCHAR2, 

module_name IN VARCHAR2 DEFAULT ANY_MODULE, 

action_name IN VARCHAR2 DEFAULT ANY_ACTION, 

waits IN BOOLEAN DEFAULT TRUE, 

binds IN BOOLEAN DEFAULT FALSE, 

instance_name IN VARCHAR2 DEFAULT NULL); 

Q13. You are administering a database stored in Automatic Storage Management (ASM). You use RMAN to back up the database and the MD_BACKUP command to back up the ASM metadata regularly. You lost an ASM disk group DG1 due to hardware failure. 

In which three ways can you re-create the lost disk group and restore the data? 

A. Use the MD_RESTORE command to restore metadata for an existing disk group by passing the existing disk group name as an input parameter and use RMAN to restore the data. 

B. Use the MKDG command to restore the disk group with the same configuration as the backed-up disk group and data on the disk group. 

C. Use the MD_RESTORE command to restore the disk group with the changed disk group specification, failure group specification, name, and other attributes and use RMAN to restore the data. 

D. Use the MKDG command to restore the disk group with the same configuration as the backed-up disk group name and same set of disks and failure group configuration, and use RMAN to restore the data. 

E. Use the MD_RESTORE command to restore both the metadata and data for the failed disk group. 

F. Use the MKDG command to add a new disk group DG1 with the same or different specifications for failure group and other attributes and use RMAN to restore the data. 

Answer: A,C,F 

Explanation: AC (not E): 

The md_restore command allows you to restore a disk group from the metadata created by 

the md_backup command. 

md_restore can’t restore data, only metadata. 

Q14. Examine the details of the Top 5 Timed Events in the following Automatic Workloads Repository (AWR) report: 

What are three possible causes for the latch-related wait events? 

A. The size of the shared pool is too small. 

B. Cursors are not being shared. 

C. A large number COMMITS are being performed. 

D. There are frequent logons and logoffs. 

E. The buffers are being read into the buffer cache, but some other session is changing the buffers. 

Answer: A,B,E 

Q15. A database is stored in an Automatic Storage Management (ASM) disk group, disk group, DGROUP1 with SQL: 

There is enough free space in the disk group for mirroring to be done. 

What happens if the CONTROLLER1 failure group becomes unavailable due to error of for maintenance? 

A. Transactions and queries accessing database objects contained in any tablespace stored in DGROUP1 will fall. 

B. Mirroring of allocation units will be done to ASM disks in the CONTROLLER2 failure group until the CONTROLLER1 for failure group is brought back online. 

C. The data in the CONTROLLER1 failure group is copied to the controller2 failure group and rebalancing is initiated. 

D. ASM does not mirror any data until the controller failure group is brought back online, and newly allocated primary allocation units (AU) are stored in the controller2 failure group, without mirroring. 

E. Transactions accessing database objects contained in any tablespace stored in DGROUP1 will fail but queries will succeed. 

Answer:

Explanation: CREATE DISKGROUP NORMAL REDUNDANCY 

* For Oracle ASM to mirror files, specify the redundancy level as NORMAL REDUNDANCY (2-way mirroring by default for most file types) or HIGH REDUNDANCY (3-way mirroring for all files). 

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

START 1Z0-062 EXAM