Which two actions would you recommend to choose a goal for the optimizer based on the needs of your application?

You are working on an online transaction processing (OLTP) system. By day most of the
application users perform queries accessing the most recently added or modified rows. The
applications have most of the queries based on multiple tables. But at night, some batch
processing is also done. Which two actions would you recommend to choose a goal for the
optimizer based on the needs of your application? (Choose two.)

You are working on an online transaction processing (OLTP) system. By day most of the
application users perform queries accessing the most recently added or modified rows. The
applications have most of the queries based on multiple tables. But at night, some batch
processing is also done. Which two actions would you recommend to choose a goal for the
optimizer based on the needs of your application? (Choose two.)

A.
setting the OPTIMIZER_MODE parameter to ALL_ROWS at the instance level

B.
setting the OPTIMIZER_MODE parameter to FIRST_ROWS_n at the instance level

C.
asking the developer to add a hint /*ALL_ROWS*/ in the long-running batch processing queries

D.
asking the developer to add a hint /*FIRST_ROWS_n*/ in the long-running batch processing
queries



Leave a Reply 1

Your email address will not be published. Required fields are marked *


L. Zhu

L. Zhu

A is wrong. ALL_ROWS is good for DSS batch aim for throughput
B is right. OLTP response goal
C is right. statement level hint to make it throughput
D is wrong.

So B.C. are correct.