Free Oracle 1Z0-060 Exam Braindumps (page: 7)

Which three functions are performed by the SQL Tuning Advisor?

  1. Building and implementing SQL profiles
  2. Recommending the optimization of materialized views
  3. Checking query objects for missing and stale statistics
  4. Recommending bitmap, function-based, and B-tree indexes
  5. Recommending the restructuring of SQL queries that are using bad plans

Answer(s): A,C,E

Explanation:

The SQL Tuning Advisor takes one or more SQL statements as an input and invokes the Automatic Tuning Optimizer to perform SQL tuning on the statements. The output of the SQL Tuning Advisor is in the form of an advice or recommendations, along with a rationale for each recommendation and its expected benefit. The recommendation relates to collection of statistics on objects (C), creation of new indexes, restructuring of the SQL statement (E), or creation of a SQL profile (A). You can choose to accept the recommendation to complete the tuning of the SQL statements.



Examine the following command:

ALTER SYSTEM SET enable_ddl_logging=FALSE;

Which statement is true?

  1. None of the data definition language (DDL) statements are logged in the trace file.
  2. Only DDL commands that resulted in errors are logged in the alert log file.
  3. A new log.xml file that contains the DDL statements is created, and the DDL command details are removed from the alert log file.
  4. Only DDL commands that resulted in the creation of new database files are logged.

Answer(s): A

Explanation:

ENABLE_DDL_LOGGING enables or disables the writing of a subset of data definition language (DDL) statements to a DDL alert log.

The DDL log is a file that has the same format and basic behavior as the alert log, but it only contains the DDL statements issued by the database. The DDL log is created only for the RDBMS component and only if the ENABLE_DDL_LOGGING initialization parameter is set to true. When this parameter is set to false, DDL statements are not included in any log.



Your multitenant container database (CDB) contains three pluggable database (PDBs). You find that the control file is damaged. You plan to use RMAN to recover the control file. There are no startup triggers associated with the PDBs.

Which three steps should you perform to recover the control file and make the database fully operational? (Choose three.)

  1. Mount the container database (CDB) and restore the control file from the control file autobackup.
  2. Recover and open the CDB in NORMAL mode.
  3. Mount the CDB and then recover and open the database, with the RESETLOGS option.
  4. Open all the pluggable databases.
  5. Recover each pluggable database.
  6. Start the database instance in the nomount stage and restore the control file from control file autobackup.

Answer(s): C,D,F

Explanation:

Step 1: Start the database instance in the nomount stage and restore the control file from control file auto backup
Step 2: Open all the pluggable databases.
Step 3: If all copies of the current control file are lost or damaged, then you must restore and mount a backup control file. You must then run the RECOVER command, even if no data files have been restored, and open the database with the RESETLOGS option.

Note:
* RMAN and Oracle Enterprise Manager Cloud Control (Cloud Control) provide full support for backup and recovery in a multitenant environment. You can back up and recover a whole multitenant container database (CDB), root only, or one or more pluggable databases (PDBs).



A new report process containing a complex query is written, with high impact on the database. You want to collect basic statistics about query, such as the level of parallelism, total database time, and the number of I/O requests.

For the database instance STATISTICS_LEVEL, the initialization parameter is set to TYPICAL and the
CONTROL_MANAGEMENT_PACK_ACCESS parameter is set to DIAGNOSTIC+TUNING.
What should you do to accomplish this task?

  1. Execute the query and view Active Session History (ASH) for information about the query.
  2. Enable SQL trace for the query.
  3. Create a database operation, execute the query, and use the
    DBMS_SQL_MONITOR.REPORT_SQL_MONITOR function to view the report.
  4. Use the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure to monitor query execution and view the information from the V$SESSION_LONGOPS view.

Answer(s): C

Explanation:

The REPORT_SQL_MONITOR function is used to return a SQL monitoring report for a specific SQL statement.

Incorrect Answers:
A: Not interested in session statistics, only in statistics for the particular SQL query. B: We are interested in statistics, not tracing.
D: SET_SESSION_LONGOPS Procedure
This procedure sets a row in the V$SESSION_LONGOPS view. This is a view that is used to indicate the on- going progress of a long running operation. Some Oracle functions, such as parallel execution and Server Managed Recovery, use rows in this view to indicate the status of, for example, a database backup.

Applications may use the SET_SESSION_LONGOPS procedure to advertise information on the progress of application specific long running tasks so that the progress can be monitored by way of the V$SESSION_LONGOPS view.



Viewing page 7 of 55
Viewing questions 25 - 28 out of 216 questions



Post your Comments and Discuss Oracle 1Z0-060 exam prep with other Community members:

1Z0-060 Exam Discussions & Posts