Oracle Interview Questions
8 questions · Updated Oct 2026
Oracle provides enterprise databases, cloud infrastructure, and business software. Its interviews lean heavily on SQL, database internals, classic data-structure algorithms, and designing reliable, consistent large-scale enterprise systems.
Questions are pooled and anonymized from real interviews; the prep notes are our own - never anyone's actual answers.
- 1
Write a SQL query for the classic 'Nth Highest Salary' problem, generalized to the second-highest salary per department and handling ties correctly. Then explain how you'd optimize it if the table has hundreds of millions of rows.
TechnicalUse a window function like DENSE_RANK() partitioned by department, filtering for rank 2, and discuss NULL/tie handling. For scale, cover appropriate indexes, avoiding full scans, and how the optimizer uses statistics. Oracle's database heritage means deep, precise SQL reasoning is expected.
Software Engineer
- 2
Explain how a B-tree index speeds up queries, and describe a scenario where adding an index actually hurts performance.
TechnicalExplain how B-trees give logarithmic lookups and range scans, then note that indexes add write overhead and storage, hurting insert/update-heavy workloads or low-selectivity columns. Mention the optimizer sometimes ignoring an index. Oracle values candidates who understand database internals, not just how to call them.
Software Engineer
- 3
Solve 'Reverse Linked List' in place, then extend it to 'Linked List Cycle II': detect whether the list has a cycle and return the node where the cycle begins.
TechnicalReverse by rewiring next pointers with three-pointer iteration, O(1) space. For cycle detection use Floyd's tortoise-and-hare, then reset one pointer to the head to find the entry node. These classic pointer problems are common in Oracle screens, so clean, bug-free pointer handling matters most.
Software Engineer
5 more Oracle questions
Create a free account to see every question and how to approach it - plus live answers during your real interview.
Sign up free to see allShow up to your Oracle interview ready
InterviewEar listens on a second device and quietly suggests what to say, the moment a question lands - drawing on your resume and the role. Open it beside your call and stay present.
Start free