Courseiva
Performance Tuning And DiagnosticshardMultiple ChoiceObjective-mapped

OCP Performance Tuning And Diagnostics Practice Question

You have a query that is being incorrectly optimized because the statistics are not representative of the actual data distribution. What is the best method to handle this without changing the global statistics?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use DBMS_STATS.SET_TABLE_PREFS

Table-specific statistics collection with specific parameters or using preference settings can help.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Run the SQL Tuning Advisor

    Why it's wrong here

    The advisor might recommend a profile, but setting preferences is cleaner for maintenance.

  • Modify the init.ora parameter

    Why it's wrong here

    Global parameters are not the right tool for local stats issues.

  • Use DBMS_STATS.SET_TABLE_PREFS

    Why this is correct

    Preferences allow granular control over how stats are gathered for a specific object.

  • Create a SQL Plan Baseline

    Why it's wrong here

    This fixes the plan, but doesn't address the underlying stats issue.

About these practice questions

One of 312 original OCP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Oracle exam blueprint

This OCP practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the OCP exam.