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

1Z0-117 Online Practice Questions and Answers

Questions 4

A new application module is deployed on middle tier and is connecting to your database. You want to monitor the performance of the SQL statements generated from the application.

To accomplish this, identify the required steps in the correct order from the steps given below:

1.

Use DBNMS_APPLICATION_INFO to set the name of the module

2.

Use DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE to enable statistics gathering for the module.

3.

Use DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE to enable tracing for the service

4.

Use the trcsess utility to consolidate the trace files generated.

5.

Use the tkprof utility to convert the trace files into formatted output.

A. 1, 2, 3, 4, 5

B. 2, 3, 1, 4, 5

C. 3, 1, 2, 4, 5

D. 1, 2, 4, 5

E. 1, 3, 4, 5

F. 2, 1, 4, 5

Browse 125 Q&As
Questions 5

View Exhibit1 and examine the structure and indexes for the MYSALES table.

The application uses the MYSALES table to insert sales record. But this table is also extensively used for generating sales reports. The PROD_ID and CUST_ID columns are frequently used in the WHERE clause of the queries. These columns have few distinct values relative to the total number of rows in the table. The MYSALES table has 4.5 million rows.

View exhibit 2 and examine one of the queries and its autotrace output.

Which two methods can examine one of the queries and its autotrace output?

A. Drop the current standard balanced B* Tree indexes on the CUST_ID and PROD_ID columns and re-create as bitmapped indexes.

B. Use the INDEX_COMBINE hint in the query.

C. Create a composite index involving the CUST_ID and PROD_ID columns.

D. Rebuild the index to rearrange the index blocks to have more rows per block by decreasing the value for PCTFRE attribute.

E. Collect histogram statistics for the CUST_ID and PROD_ID columns.

Browse 125 Q&As
Questions 6

Examine the Following Query and execution plan:

Which query transformation technique is used by the optimizer?

A. Filter push down

B. Subquery factoring

C. Subquery unnesting

D. Predicate pushing

Browse 125 Q&As
Questions 7

You execute the following query for the first time:

Examine the SQL statement processing steps:

1.

The value of the variable SAL is obtained to run the query.

2.

The syntax of the query is checked

3.

A parse tree for the query is generated

4.

Semantics for the query are checked

5.

The required rows are fetched

6.

The SQL is executed to produce the required result.

Which is the correct order of execution of the above query?

A. 1, 2 3, 4, 5, 6

B. 1, 4, 2, 3, 6, 5

C. 2, 4, 1, 3, 6, 5

D. 2, 3, 1, 4, 6, 5

Browse 125 Q&As
Questions 8

An application issues many expensive join aggregations type queries.

Examine the Exhibit to view the queries.

Which two could help improve the performance of these SQL statements without changing application code?

A. Create B*-Tree indexes on the join columns.

B. Create a materialized view with query rewrite enabled for the first statement and nested MVIEWs for the other statements.

C. Collect histogram statistics on columns for which aggregating functions are performed.

D. Create an STS for these queries and use SQL Access Advisor, which may generate advice about MVIEWs.

E. Create an STS for these queries and use SQL Performance Analyzer, which may generate advice about MVIEWs.

Browse 125 Q&As
Questions 9

Auto DOP is enabled for your instance. You execute the following statements:

Which three are true about the execution of the join?

A. Dictionary DOP is used to calculate statements DOP.

B. Hinted DOP is used to calculate statement DOP.

C. The EMPLOYEES table is accessed in parallel.

D. The DEPARTMENTS table is accessed in parallel.

E. The hint operates at the level of each table accessed by the statement.

Browse 125 Q&As
Questions 10

You need to upgrade you Oracle Database 10g to 11g. You want to ensure that the same SQL plans that are currently in use in the 10g database are used in the upgraded database initially, but new, better plans are allowed subsequently.

Steps to accomplish the task:

1.

Set the OPTIMIZER_USE_SQL_BASELINE and OPTIMIZER_CAPTURE_SQL_PLAN_BASELINE to TRUE.

2.

Bulk load the SQL Management Base as part of an upgrade using an STS containing the plans captured in Oracle Database 10g.

3.

Evolve the plan baseline using the DBMS_SPM.EVOLVE_PLAN_BASELINE procedure.

4.

Fix the plan baseline using the DBMS_SPM.ALTER_SQL_PLANBASELINE procedure.

5.

Accept new, better plans using the DBMS_SPM.ALTER_SQL_PLAN_BASELINE procedure and manually load them to the existing baseline.

6.

Set OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES to FALSE.

Identify the required steps.

A. 1, 3, 4, 5

B. 1, 6, 3, 4, 5

C. 1, 2, 3, 5

D. 1, 2, 3, 4

E. 1, 6, 3

F. 1 and 2

Browse 125 Q&As
Questions 11

You are administering a database that supports a DSS workload, where in an application a set of queries use the query rewrite on materialized views. You notice that these queries are performing poorly.

Which two actions can you make to improve the performance of theses queries?

A. Use DBMS_MVIEW.EXPLAIN_REWRITE to analyze whether the queries are rewritten.

B. USE DBMS_ADVISOR.QUICK_TUNE to analyze the query rewrite usage of materialized views for the entire workload.

C. Create an STS for all the queries and use SQL performance Analyzer to generate recommendations for determining the regressed SQL statements.

D. Create an STS for all the queries in the application and use the SQL Tuning Advisor to generate recommendations.

E. Create an STS for all the queries in the application and use the SQL Access Advisor to generate a recommendation for optimizing materialized views for maximum query rewrite usage and fast refresh.

Browse 125 Q&As
Questions 12

You are administering a database that supports an OLTP workload in which one of the applications inserts rows in a table until 12 noon every, after which multiple years perform frequent queries on the table. You want the statistics to be more representative of the table population.

What must be done to ensure that an optimizer uses the latest statistics of the table?

A. Set the STALE_PERCENT preference to 0.

B. Set the OPTIMIZER_MODE parameter to ALL_ROWS.

C. Set the OPTIMIZER_DYNAMIC_SAMPLING parameter to 0.

D. Use the FIRST_ROWS_n hint in the queries.

E. Unlock and gather statistics for the table after inserts are done and lock them again.

Browse 125 Q&As
Questions 13

Which two statements are true about the use of the DYNAMIC_SAMPLING hint in a query?

A. It estimates selectivity better for the filters.

B. It is always used for flashback queries that contain the AS OF clause.

C. It cannot be used if there is a single-table predicate in the WHERE clause.

D. It cannot be used for processing SQL statements in parallel.

E. It can compensate for the lack of extended statistics to get accurate cardinality estimates for complex predicate expressions.

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

PDF

$49.99

VCE

$59.99

PDF + VCE

$67.99