OCP Performance Tuning And Diagnostics Practice Question
An application query is failing to use a newly created index. You suspect the optimizer statistics are inaccurate. Which package should you use to gather statistics for this specific table?
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
✓
DBMS_STATS.GATHER_TABLE_STATS
DBMS_STATS is the standard package for managing optimizer statistics.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
DBMS_SQLTUNE
Why it's wrong here
Used for tuning, not for gathering statistics.
- ✗
DBMS_UTILITY
Why it's wrong here
This provides utility functions, not stats collection.
- ✓
DBMS_STATS.GATHER_TABLE_STATS
Why this is correct
This is the correct procedure for gathering table statistics.
- ✗
DBMS_ADVISOR
Why it's wrong here
Used for running advisors like SQL Access Advisor.
About these practice questions
One of 314 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 →
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.