Certbus > Oracle > Oracle Database > 1Z0-117 > 1Z0-117 Online Practice Questions and Answers

1Z0-117 Online Practice Questions and Answers

Questions 4

An application accessing your database got the following error in response to SQL query:

ORA-12827: insufficient parallel query slaves available

View the parallel parameters for your instance:

No hints are used and the session use default parallel settings.

What four changes could you make to help avoid the error and ensure that the query executes in parallel?

A. Set PARELLEL_DEGREE_POLICY to AUTO.

B. Increase the value of PARELLEL_MAX_SERVERS.

C. Increase PARELLEL_SERVERS_TARGET.

D. Decrease PARELLEL_MIN_PERCENT.

E. Increase PARELLEL_MIN_SERVERS.

F. Decrease PARELLEL_MIN_TIME_THRESHOLD.

G. Increase PARELLEL__MIN_TIME_THRESHOLD.

Browse 125 Q&As
Questions 5

Which type of SQL statement would be selected for tuning by the automatic SQL framework?

A. Serial queries that are among the costliest in any or all of the four categories: the past week, any day in the past week, any hour in the past week, or single response, and have the potential for improvement

B. Serial queries that have been tuned within the last 30days and have been SQL profiled by the SQL tuning Advisor.

C. Serial and parallel queries that top the AWR Top SQL in the past week only and have been SQL profiled by the SQL Tuning Advisor.

D. Serial queries that top the AWR Top SQL in the past week only and whose poor performance can be traced to concurrency issues.

E. Serial and parallel queries that are among the costliest in any or all of the four categories: the past week, and day in the past week, any hour in the past week, or a single response, and that can benefit from access method changes.

Browse 125 Q&As
Questions 6

Tracing has been enabled for the HR user. You execute the following command to check the contents of the orcl_25052.trc trace file, which was generated during tracing:

Which two statements are correct about the execution of the command?

A. SCRIPT.SQL stores the statistics for all traced SWL statements.

B. Execution plans for SQL statements are stored in TEMP_PLAN_TABLE and can be queried by the user.

C. SQL statements in the output files are stored in the order of elapsed time.

D. TKPROF use TEMP_PLAN_TABLE in the HR schema as a temporary plan table.

E. Recursive SQL statements are included in the output file.

Browse 125 Q&As
Questions 7

A database supports three applications: CRM, ERP, and ACC. These applications connect to the database by using three different services: CRM_SRV for the

CRM application, ERP_SRV for the ERP application, and ACC_SRV for the ACC application.

You enable tracing for the ACC_SRV service by issuing the following command:

SQL> EXECUTE DBMS for the ACC_SRV service by issuing the following command:

SQL> EXECUITIVE DBMS_MONITOR. SERV_MOD_ACT_TRACE_ENABLE

(service_name => `ACC_SRV', waits => TRUE, binds = > FALSE, instance_name = > `inst1');

Which statement is true?

A. All trace information for the service connection to inst1 will be stored in a single trace file.

B. A trace file is not created because the module name is not specified.

C. A single trace file is created for each session that uses the ACC_SRV service.

D. Only those SQL statements that are identified with the ACC_SRV service executed on the inst1 instance are recorded in trace files.

E. All trace information for the ACC_SRV service connected to inst1 is stored in multiple trace files, which can be consolidated by using the tkprof utility.

Browse 125 Q&As
Questions 8

You notice some performance degradation for a high-load SQL statement in your database. After investigations, you run the SQL Tuning Advisor, which recommends a SQL Profile. You accept the profile recommendation resulting in a new, tuned execution plan for the statement.

Your database uses SQL plan management and a SQL plan baseline exists for this SQL statement.

Which statement is true?

A. The database adds the tuned plan to the SQL plan baseline as a nonfixed plan.

B. The database adds the tuned plan to the SQL plan baseline as a fixed plan.

C. The optimizer uses the new tuned plan only when a reproducible fixed plan is present.

D. The created SQL profile will continuously adapt to all changes made to the database, the object, and to the system statistics over an extended length of time.

Browse 125 Q&As
Questions 9

Examine the initialization parameters for a database an OLTP overload.

What is the effect of changing the value of the parameter?

A. It influences the optimizer to always use the value of the parameter?

B. It influences the optimizer to use indexes instead of full table scans as the estimated cost of the using index is reduced.

C. It influences the optimizer to use full table scans instead of index scans as the estimated cost of full table scan is reduced.

D. It influenced the optimizer to use bitmap indexes as the estimated cost conversion from bimap is rowed us reduced.

Browse 125 Q&As
Questions 10

A database instance is configured in the shared server mode and it supports multiple applications running on a middle tier. These applications connect to the

database by using different services and tracing is enabled for the services. You want to view the detailed tracing setting for particular service.

What would you use to view the tracing information?

A. DBMS_SERVICE package

B. DBMS_MONITOR package

C. DBA_ENABLED_TRACES view

D. Trcsess and tkprof

Browse 125 Q&As
Questions 11

Examine the statements being executed for the first time:

Steps followed by a SQL statement during parsing:

1.

Search for a similar statement in the shared pool.

2.

Search for an identical statement in the shared pool.

3.

Search the SQL area of identical statement already in the shared pool.

4.

Proceed through the remaining steps of the parse phase to ensure that the execution plan of the existing statements is applicable to the view statement.

5.

Perform hard parsing.

6.

Share the SQL area of the similar statement already in the shared pool.

Identify the required steps in the correct sequence used by the third query.

A. 5, 1, 3, 4

B. 2, 4, 3

C. 5, 2, 3, 4

D. 1, 4, 3

E. Only 5

F. 2, 5

Browse 125 Q&As
Questions 12

View the exhibit and examine the findings provided by the SQL Tuning Advisor for SELECT Statement.

A SWL plan baseline already exists for the execution plan.

What two methods can you use to ensure that an alternate plan becomes an accepted plan?

A. Use the DBMS_SPM.ALTER_SQL_PLAN_BASELINE function.

B. Use the DBMS_SQLTUNE.CREATE_SQL_PLAN_BASELINE function.

C. Use the DBMS_SQLTUNE.CREATE_SQL_PLAN_BASELINE function and run the DBMS_STATS to manually refresh stale statistics.

D. Use the DBMS_SPM.LOAD_PLANS_FROM_SQLSET function.

Browse 125 Q&As
Questions 13

An application frequently executed similar types of queries that vary only in the usage of literals in the WHERE clause. You plan to use bind variable in place of literal values.

The CURSOR_SHARING parameter to set to EXACT.

Which two statements are true about the usage of bind variables?

A. The number of latch gets in the library cache will be reduced.

B. Bind peeking will take place and subsequent execution of queries can have different plans based on the cardinality of the bind value in the column.

C. Bind peeking will take place and subsequent execution of queries can have different plans only when the histograms exists on a column used in WHERE clause.

D. Bind peeking will not happen and the optimizer will use the same plan for all bind values if no histograms exist on a column use in the WHERE clause.

E. Bind peeking will happen and subsequent execution of queries will have the same parent cursor but different child cursors.

Browse 125 Q&As
Questions 14

Examine the exhibit to view the query and its execution plan.

Identify the two correct interpretations that can be made from the execution plan.

A. The DEPT table is driving table and the EMP table join is the driven table.

B. Rows from the DEPT table are first hashed by the join key into memory and then joined to the EMP table on the join key.

C. The EMP table is the driving table and the DEPT table us the driven table.

D. The rows from the DEPT table are sorted first by the join key and then hashed into memory.

E. Rows from both the tables are sorted by the join key, but only rows from the DEPT table are hashed into memory.

Browse 125 Q&As
Questions 15

You are administering a database, where an application frequently executes identical SQL statements with the same syntax.

How will you optimize the query results without retrieving data blocks from the storage?

A. By setting the CURSOR_SHARING parameter to FORCE.

B. By using the bind variables and setting the CURSOR_SHARING parameter to EXACT.

C. By using the CACHE hint to pin the queries in the library cache

D. By ensuring that RESULT_CACHE_MODE parameter is set to MANUAL and using the RESULT_CACHE hint in the queries.

E. By creating a SQL plan baseline for the identical statements.

Browse 125 Q&As
Questions 16

An application supplied by a new vendor is being deployed and the SQL statements have plan baselines provided by the supplier. The plans have been loaded from a SQL tuning set. You require the optimizer to use these baselines, but allow better plans to used, should any be created.

Which two tasks would you perform to achieve this?

A. Set the OPTIMIZER_USE_SQL_PLAN_BASELINES initialization parameter to TRUE.

B. Set the OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES initialization parameter to TRUE.

C. Use the DBMS_SPM.ALTER_SQL_PLAN_BASELINE function to fix the plans.

D. Use the DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE function to fix the new plans.

E. Use the DBMS_SPM.ALTER_SQL_BASELINE function to accept new plans.

Browse 125 Q&As
Questions 17

You recently gathered statistics for a table by using the following commands:

You noticed that the performance of queries has degraded after gathering statistics. You want to use the old statistics. The optimizer statistics retention period is

default.

What must you do to use the old statistics?

A. Use the flashback to bring back the statistics to the desired time.

B. Restore statistics from statistics history up to the desired time.

C. Delete all the statistics collected after the desired time.

D. Set OPTIMIZER_USE_PENDING_STATISTICS to TRUE.

Browse 125 Q&As
Questions 18

You want to run SQL Tuning Advisor statements that are not captured by ADDM, AWR, and are not in the library cache. What is the prerequisite?

A. Enable SQL plan management

B. Create a SQL plan baseline for each query

C. Create a SQL Tuning Set (STS) containing the SQL statements

D. Gather statistics for objects used in the application

Browse 125 Q&As
Exam Code: 1Z0-117
Exam Name: Oracle Database 11g Release 2: SQL Tuning Exam
Last Update: Apr 15, 2024
Questions: 125 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99